Documentation
¶
Index ¶
- Constants
- Variables
- func AddAuth(auth string)
- func Attack()
- func BurpImport(filename string)
- func Bytes(s uint64) string
- func CheckData() (check bool)
- func DefineInsertions()
- func DownloadPayloads(filepath string, url string)
- func EditInfo(attribute string, change string)
- func GetFileContentType(out *os.File) (string, error)
- func GetPayloadLen() (length int)
- func GetThreads() (num string)
- func IBytes(s uint64) string
- func LoadPayloads(filename string)
- func MakeRequest(payload string)
- func Manual()
- func ParseBytes(s string) (uint64, error)
- func Pause()
- func PrintBanner()
- func PrintInfo(attribute string)
- func PrintPayloadLen() (length string)
- func Resume()
- func SetProxy(addr string)
- func SetThreads(change int)
- func SingleRequest()
- func Unload()
- func UnsetProxy()
- func Unzip(file string)
- type Items
- type WriteCounter
Constants ¶
const ( Byte = 1 << (iota * 10) KiByte MiByte GiByte TiByte PiByte EiByte )
IEC Sizes. kibis of bits
const ( IByte = 1 KByte = IByte * 1000 MByte = KByte * 1000 GByte = MByte * 1000 TByte = GByte * 1000 PByte = TByte * 1000 EByte = PByte * 1000 )
SI Sizes.
const Version = "0.0.1 BETA"
Version is a constant variable containing the version number for the Slackord package
Variables ¶
var CurrentDir, _ = os.Getwd()
CurrentDir is the current directory where Slackord was executed from
var Debug = false
var PROXY_ADDR string
define global variables for PROXY ADDR
Functions ¶
func BurpImport ¶
func BurpImport(filename string)
func Bytes ¶
Bytes produces a human readable representation of an SI size.
See also: ParseBytes.
Bytes(82854982) -> 83 MB
func DefineInsertions ¶
func DefineInsertions()
func DownloadPayloads ¶
func GetFileContentType ¶
Check FileType to make sure it's approved.
func GetPayloadLen ¶
func GetPayloadLen() (length int)
func GetThreads ¶
func GetThreads() (num string)
func IBytes ¶
IBytes produces a human readable representation of an IEC size.
See also: ParseBytes.
IBytes(82854982) -> 79 MiB
func MakeRequest ¶
func MakeRequest(payload string)
func ParseBytes ¶
ParseBytes parses a string representation of bytes into the number of bytes it represents.
See Also: Bytes, IBytes.
ParseBytes("42 MB") -> 42000000, nil ParseBytes("42 mib") -> 44040192, nil
func PrintBanner ¶
func PrintBanner()
func PrintPayloadLen ¶
func PrintPayloadLen() (length string)
func SetThreads ¶
func SetThreads(change int)
func SingleRequest ¶
func SingleRequest()
func UnsetProxy ¶
func UnsetProxy()
Types ¶
type Items ¶
type Items struct { XMLName xml.Name `xml:"items"` Text string `xml:",chardata"` BurpVersion string `xml:"burpVersion,attr"` ExportTime string `xml:"exportTime,attr"` UserAgent string `xml:"useragent,attr"` Item struct { Text string `xml:",chardata"` Time string `xml:"time"` URL string `xml:"url"` Host struct { Text string `xml:",chardata"` Ip string `xml:"ip,attr"` } `xml:"host"` Port string `xml:"port"` Protocol string `xml:"protocol"` Method string `xml:"method"` Path string `xml:"path"` Extension string `xml:"extension"` Request struct { Text string `xml:",chardata"` Base64 string `xml:"base64,attr"` } `xml:"request"` Status string `xml:"status"` Responselength string `xml:"responselength"` Mimetype string `xml:"mimetype"` Response struct { Text string `xml:",chardata"` Base64 string `xml:"base64,attr"` } `xml:"response"` Comment string `xml:"comment"` } `xml:"item"` }
Structure created using the online XML parser https://www.onlinetool.io/xmltogo/
type WriteCounter ¶
type WriteCounter struct {
Total uint64
}
WriteCounter counts the number of bytes written to it. It implements to the io.Writer interface and we can pass this into io.TeeReader() which will report progress on each write cycle.
func (WriteCounter) PrintProgress ¶
func (wc WriteCounter) PrintProgress()