attacks

package
v0.0.0-...-521e56b Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthAttack

func AuthAttack(url, post, userFile, passFile, proxy string, nWorkers int, redirect bool)

AuthAttack Auth attack for http or https

func ConstWithFile

func ConstWithFile(argument, file string, posArg int, loginChan chan login)

ConstWithFile read one file and other argument that it could be user or password and it is specified in posArg

func FTPattackStart

func FTPattackStart(userFile, passFile, serverIP, serverPort string, nWorkers, nTimeOut int)

FTPattackStart FTP attack with 2 files to iterate

func FileAttack

func FileAttack(url, post, word, file, ext, proxy string, nWorkers int, redirect bool)

FileAttack File attack for http or https

func FileTry

func FileTry(urlsite, word, fileWord, ext, post, proxy string, redirect bool) (string, int, string)

FileTry Send a request to verify a file if it exist

func FormAttack

func FormAttack(url, post, userFile, passFile, word, proxy string, nWorkers int, redirect, show bool)

FormAttack Form login attack for http or https

func FormLogin

func FormLogin(urlsite, post, phrase, proxy string, redirect bool) (string, int, bool)

FormLogin Send a request of a form to log in

func Read2Files

func Read2Files(userFile, passFile string, loginChan chan login)

Read2Files read 2 files to itter between them

func SMBattackStart

func SMBattackStart(userFile, passFile, serverIP, serverPort string, nWorkers int)

SMBattackStart SMB attack with 2 files to iterate

func SMTPattackStart

func SMTPattackStart(userFile, passFile, serverIP, serverPort string, nWorkers int)

SMTPattackStart SMTP attack with 2 files to iterate

func SSHattackStart

func SSHattackStart(userFile, passFile string, serverIP, serverPort string, nWorkers int)

SSHattackStart SSH attack with 2 files to iterate

func SendAuth

func SendAuth(urlsite, post, username, password, proxy string, redirect bool) (string, int)

SendAuth Send Auth request

Types

type RequestData

type RequestData struct {
	User      string
	Pass      string
	UserAgent string
	Proxy     string
	Client    *http.Client
}

RequestData Basic data for requests

func NewRequestData

func NewRequestData() *RequestData

NewRequestData Creates a requests data for http attacks

func (*RequestData) GetOrPost

func (r *RequestData) GetOrPost(urlsite string, post string, redirect bool) (string, int, *http.Response)

GetOrPost request for get or post method

func (*RequestData) Send

func (r *RequestData) Send(method, urlsite, post string, redirect bool) (string, int, *http.Response)

Send Send the data

func (*RequestData) SetProxy

func (r *RequestData) SetProxy(urlPort string)

SetProxy set proxy the data

Jump to

Keyboard shortcuts

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