goofer

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2022 License: LGPL-2.1 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Spoofer

type Spoofer struct {

	// CurrentIP specifies the current ip that will be visible to remote users
	CurrentIP string

	// ProxyListFile specifies the path to the file containing proxies.
	//
	// ProxyListFile must be a CSV file, with the format:
	// ProxyIP, Port Number.
	// You can download a free proxy file from:
	// https://www.proxy-list.download/HTTP
	ProxyListFile string

	// UseSecureProxy specifies if the Spoofer should use a secure proxy.
	UseSecureProxy bool
	// contains filtered or unexported fields
}

Spoofer defines an IP spoofer.

func NewSpoofer

func NewSpoofer(proxyListFile string, useSecureProxy bool) (*Spoofer, error)

NewSpoofer creates a Spoofer instance and returns it.

func (*Spoofer) ParseProxyList added in v0.0.2

func (s *Spoofer) ParseProxyList() ([]string, error)

ParseProxyList parses proxy list specified in Spoofer.

If it is not defined/specified, the program uses a default, i.e. "Proxy List.csv"

func (*Spoofer) Spoof added in v0.0.2

func (s *Spoofer) Spoof(proxy string)

Spoof changes the current IP address to proxy.

If proxy is not specified or is invalid, the Spoofer chooses a proxy from ProxyListFile.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL