mirror of
https://github.com/edoardottt/cariddi.git
synced 2026-09-12 04:37:47 +02:00
fix linting
This commit is contained in:
+1
-1
@@ -126,7 +126,7 @@ func main() {
|
||||
flags.Rua, flags.Proxy, flags.Insecure, flags.Secrets, secretsFileSlice, flags.Plain, flags.Endpoints,
|
||||
endpointsFileSlice, flags.Extensions, headers, flags.Errors, flags.Info, flags.Debug, flags.UserAgent)
|
||||
|
||||
finalResults = append(finalResults, results.Results...)
|
||||
finalResults = append(finalResults, results.URLs...)
|
||||
finalSecret = append(finalSecret, results.Secrets...)
|
||||
finalEndpoints = append(finalEndpoints, results.Endpoints...)
|
||||
finalExtensions = append(finalExtensions, results.Extensions...)
|
||||
|
||||
+12
-12
@@ -126,7 +126,7 @@ func New(target string, txt string, html string, delayTime int, concurrency int,
|
||||
link := e.Attr("href")
|
||||
if len(link) != 0 && link[0] != '#' {
|
||||
visitHTMLLink(link, protocolTemp, targetTemp, target, intensive,
|
||||
ignoreBool, debug, ignoreSlice, &results.Results, e, c)
|
||||
ignoreBool, debug, ignoreSlice, &results.URLs, e, c)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -134,77 +134,77 @@ func New(target string, txt string, html string, delayTime int, concurrency int,
|
||||
c.OnHTML("script[src]", func(e *colly.HTMLElement) {
|
||||
link := e.Attr("src")
|
||||
visitHTMLLink(link, protocolTemp, targetTemp, target, intensive,
|
||||
ignoreBool, debug, ignoreSlice, &results.Results, e, c)
|
||||
ignoreBool, debug, ignoreSlice, &results.URLs, e, c)
|
||||
})
|
||||
|
||||
// On every link element which has href attribute call callback
|
||||
c.OnHTML("link[href]", func(e *colly.HTMLElement) {
|
||||
link := e.Attr("href")
|
||||
visitHTMLLink(link, protocolTemp, targetTemp, target, intensive,
|
||||
ignoreBool, debug, ignoreSlice, &results.Results, e, c)
|
||||
ignoreBool, debug, ignoreSlice, &results.URLs, e, c)
|
||||
})
|
||||
|
||||
// On every iframe element which has src attribute call callback
|
||||
c.OnHTML("iframe[src]", func(e *colly.HTMLElement) {
|
||||
link := e.Attr("src")
|
||||
visitHTMLLink(link, protocolTemp, targetTemp, target, intensive,
|
||||
ignoreBool, debug, ignoreSlice, &results.Results, e, c)
|
||||
ignoreBool, debug, ignoreSlice, &results.URLs, e, c)
|
||||
})
|
||||
|
||||
// On every svg element which has src attribute call callback
|
||||
c.OnHTML("svg[src]", func(e *colly.HTMLElement) {
|
||||
link := e.Attr("src")
|
||||
visitHTMLLink(link, protocolTemp, targetTemp, target, intensive,
|
||||
ignoreBool, debug, ignoreSlice, &results.Results, e, c)
|
||||
ignoreBool, debug, ignoreSlice, &results.URLs, e, c)
|
||||
})
|
||||
|
||||
// On every img element which has src attribute call callback
|
||||
c.OnHTML("img[src]", func(e *colly.HTMLElement) {
|
||||
link := e.Attr("src")
|
||||
visitHTMLLink(link, protocolTemp, targetTemp, target, intensive,
|
||||
ignoreBool, debug, ignoreSlice, &results.Results, e, c)
|
||||
ignoreBool, debug, ignoreSlice, &results.URLs, e, c)
|
||||
})
|
||||
|
||||
// On every from element which has action attribute call callback
|
||||
c.OnHTML("form[action]", func(e *colly.HTMLElement) {
|
||||
link := e.Attr("action")
|
||||
visitHTMLLink(link, protocolTemp, targetTemp, target, intensive,
|
||||
ignoreBool, debug, ignoreSlice, &results.Results, e, c)
|
||||
ignoreBool, debug, ignoreSlice, &results.URLs, e, c)
|
||||
})
|
||||
|
||||
// Create a callback on the XPath query searching for the URLs
|
||||
c.OnXML("//url", func(e *colly.XMLElement) {
|
||||
link := e.Text
|
||||
visitXMLLink(link, protocolTemp, targetTemp, target, intensive,
|
||||
ignoreBool, debug, ignoreSlice, &results.Results, e, c)
|
||||
ignoreBool, debug, ignoreSlice, &results.URLs, e, c)
|
||||
})
|
||||
|
||||
// Create a callback on the XPath query searching for the URLs
|
||||
c.OnXML("//link", func(e *colly.XMLElement) {
|
||||
link := e.Text
|
||||
visitXMLLink(link, protocolTemp, targetTemp, target, intensive,
|
||||
ignoreBool, debug, ignoreSlice, &results.Results, e, c)
|
||||
ignoreBool, debug, ignoreSlice, &results.URLs, e, c)
|
||||
})
|
||||
|
||||
// Create a callback on the XPath query searching for the URLs
|
||||
c.OnXML("//href", func(e *colly.XMLElement) {
|
||||
link := e.Text
|
||||
visitXMLLink(link, protocolTemp, targetTemp, target, intensive,
|
||||
ignoreBool, debug, ignoreSlice, &results.Results, e, c)
|
||||
ignoreBool, debug, ignoreSlice, &results.URLs, e, c)
|
||||
})
|
||||
|
||||
// Create a callback on the XPath query searching for the URLs
|
||||
c.OnXML("//loc", func(e *colly.XMLElement) {
|
||||
link := e.Text
|
||||
visitXMLLink(link, protocolTemp, targetTemp, target, intensive,
|
||||
ignoreBool, debug, ignoreSlice, &results.Results, e, c)
|
||||
ignoreBool, debug, ignoreSlice, &results.URLs, e, c)
|
||||
})
|
||||
|
||||
// Create a callback on the XPath query searching for the URLs
|
||||
c.OnXML("//fileurl", func(e *colly.XMLElement) {
|
||||
link := e.Text
|
||||
visitXMLLink(link, protocolTemp, targetTemp, target, intensive,
|
||||
ignoreBool, debug, ignoreSlice, &results.Results, e, c)
|
||||
ignoreBool, debug, ignoreSlice, &results.URLs, e, c)
|
||||
})
|
||||
|
||||
// Add headers (if needed) on each request
|
||||
|
||||
Reference in New Issue
Block a user