Skip to content

Latest commit

 

History

History
65 lines (47 loc) · 1.47 KB

Crawl_Parameters.md

File metadata and controls

65 lines (47 loc) · 1.47 KB

Crawl parameters with getallurls

Usage:

gau -subs domain.com | grep -oP "(\?|\&)\w+" | tr -d "?|&" | sort -u | tee params

GREP

greping parameters in response body

grep -oP "<input.*?>" | grep -oP "name=[\"'].+" | cut -d "\"" -f2

crawl and Scan

  • Add this function in .bashrc file

First need download and install htmlattribs by tomnomnom from repository

https://github.com/tomnomnom/hacks/tree/master/htmlattribs

# Parameter scanner with Jaeles
### Input tag
checkparam(){
for i in $(cat $1); do
        curl -sk "$i" | htmlattribs name input | tee params.txt
        jaeles scan -v -s ~/path_To_Jaeles_Signature/xss.yaml -u "$i"
        rm params.txt
done
}

  • collect urls with your favorite tool. "Burp, gospider, hakrawler"
  • check urls which includer " tag" with ffuf
ffuf -u FUZZ -w urls.txt -mr "<input" -s | tee crawled.txt
  • Scan collected urls, command for terminal
checkparam crawled.txt

js code variable

jsvarxss(){
	cat urls | grep -vE ".(js$|js\?)" | ffuf -u FUZZ -w - -mr "var [a-zA-Z0-9_-]{1,}" | tee var_urls
	for i in $(cat var_urls); do
		curl -sk $i | grep -Eo "var [a-zA-Z0-9_-]{1,}" | cut -d " " -f2 | sort -u | tee params.txt
		jaeles scan -v -s ~/pentest/pro-signatures/ghsec-jaeles-signatures/fuzz-param/xss.yaml -u "$i"
		rm params.txt
	done
}
jsvarxss