Documentation ¶
Index ¶
- Variables
- func CopyRequest(req *http.Request, dstRequest *fasthttp.Request, data []byte) error
- func DealMultipart(contentType string, ruleBody string) (result string, err error)
- func DoFasthttpRequest(req *fasthttp.Request, redirect bool) (*proto.Response, error)
- func GenOriginalReq(target string) (*http.Request, error)
- func GenerateToken(username, password string) (string, error)
- func GetOriginalReqBody(originalReq *http.Request) ([]byte, error)
- func InitRate()
- func LimitWait()
- func ParseFasthttpResponse(originalResp *fasthttp.Response, req *fasthttp.Request) (*proto.Response, error)
- func ParseUrl(u *url.URL) *proto.UrlType
- func RandFromChoices(n int, choices string) string
- func RandLetterNumbers(n int) string
- func RandLetters(n int) string
- func RandLowLetterNumber(n int) string
- func RequestGet() *proto.Request
- func RequestPut(r *proto.Request)
- func RespGet() *proto.Response
- func ResponsePut(resp *proto.Response)
- func ResponsesPut(responses []*proto.Response)
- func Setup()
- func SingleVersionCompare(verCurrent string, verVul string) (int, error)
- func TcpSend(targetAddr string, data []byte) ([]byte, error)
- func TcpTlsSend(targetAddr string, data []byte) ([]byte, error)
- func UnzipResponseBody(response *fasthttp.Response) ([]byte, error)
- func UrlTypeToString(u *proto.UrlType) string
- func VerifyInputTarget(target string) (bool, string)
- func VerifyPortConnection(targetAddr string) bool
- type Claims
- type FormatString
- type ReqFormat
- type RespFormat
- type ScanResult
- func DebugVulnerableHttpResult(target string, output string, respList []*proto.Response) *ScanResult
- func VulnerableHttpResult(target string, output string, respList []*proto.Response) *ScanResult
- func VulnerableTcpOrUdpResult(target string, output string, payload []string, resp []string) *ScanResult
Constants ¶
This section is empty.
Variables ¶
View Source
var InVulnerableResult = ScanResult{ Vulnerable: false, }
没漏洞时返回的结果
Functions ¶
func CopyRequest ¶
func DealMultipart ¶
func DoFasthttpRequest ¶
func GenerateToken ¶
func ParseFasthttpResponse ¶
func RandFromChoices ¶
RandFromChoices 从choices里面随机获取
func RequestGet ¶
func RequestPut ¶
func ResponsePut ¶
func ResponsesPut ¶
func SingleVersionCompare ¶
SingleVersionCompare 版本对比方法 <=0没有漏洞 >0有漏洞
func TcpTlsSend ¶
TcpSend 指定目标发送tls嵌套的tcp报文,返回结果(仅适用于一次交互即可判断漏洞的场景)
func UnzipResponseBody ¶
UnzipResponseBody 返回解压缩的 Body : 目前支持 identity gzip deflate
func UrlTypeToString ¶
func VerifyInputTarget ¶
func VerifyPortConnection ¶
Types ¶
type Claims ¶
type Claims struct { Username string `json:"username"` Password string `json:"password"` jwt.StandardClaims }
func ParseToken ¶
type FormatString ¶
type FormatString struct {
Raw string `json:"raw"`
}
type RespFormat ¶
type ScanResult ¶
type ScanResult struct { Vulnerable bool `json:"vulnerable"` // 是否存在漏洞 Target string `json:"target"` // 漏洞url Output string `json:"output"` // 一些说明 ReqMsg []string `json:"req_msg"` // 请求列表 RespMsg []string `json:"resp_msg"` // 响应列表 }
保存扫描结果
func DebugVulnerableHttpResult ¶
func DebugVulnerableHttpResult(target string, output string, respList []*proto.Response) *ScanResult
debug没漏洞返回的结果(http)
func VulnerableHttpResult ¶
func VulnerableHttpResult(target string, output string, respList []*proto.Response) *ScanResult
有漏洞时返回的结果(http)
func VulnerableTcpOrUdpResult ¶
func VulnerableTcpOrUdpResult(target string, output string, payload []string, resp []string) *ScanResult
有漏洞时返回的结果(tcp/udp)
Click to show internal directories.
Click to hide internal directories.