Documentation
¶
Overview ¶
net wrapper library with interesting functions for creating malicious code
Index ¶
- func ReciveFile(connection net.Conn) error
- func SendFile(path string, connection net.Conn) error
- func SendFileList(path string, connection net.Conn) error
- func SendIdentifyingSignal(identification string, connection net.Conn) error
- func ValidateIdentificationSign(identificationExpected string, connection net.Conn) bool
- type FileList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReciveFile ¶
function to receive file from a connection arguments are: connection=as the name says, the connection handler standard error handling, will come nil if it works
func SendFile ¶
function to send files over a connection arguments are: path=path to the file to be send, connection=as the name says, the connection handler standard error handling, will come nil if it works
func SendFileList ¶
function to list local files and send this list over connection arguments are: path=path where the files will be listed, connection=as the name says, the connection handler standard error handling, will come nil if it works
func SendIdentifyingSignal ¶ added in v0.1.2
function to send an identification notice to avoid unexpected errors between integrations. think of it as an alert to your code to know what is an id call to receive files or a reverse shell call the argument and the identification flag, and the connection
func ValidateIdentificationSign ¶ added in v0.1.2
this function validates a received id then returns if it is valid or not it serves to validate data that is yet to be received, without this data going to a function that does not expect this data the argument and the identification flag, and the connection
Types ¶
type FileList ¶
typing to a list with file/directory name and confirming if this item is indeed a directory or not
func ReceiveFileList ¶
function to which receives a list of files from the connection then returns it in the file|isDir format arguments are: connection=as the name says, the connection handler standard error handling, will come nil if it works