Feb 22, 2025 03:57 PM
(This post was last modified: Feb 22, 2025 04:44 PM by Chorozon.)
( Beginner's Tutorial ) Using Subfinder , Nuclei And XSStrike For Cross Site Scripting Detection
Bounty Hunt Tutorial
These 2 tools are imperative to your success at starting to learn bounty hunting
Lets start with the tool Subfinder Subfinder Github https://github.com/projectdiscovery/subfinder
Use Subfinder to find all valid sub-domains attached to your target
Subfinder is coded in GO so make sure you have go1.21 installed
Full Install Docs
Run
Run subfinder with -h flag for options
To run Subfinder on a specific target use the -d flag to specify the domain
Use the -o flag to save to a file
Now you should have a list of all your targets valid sub domains :)
Use Subfinder to find all valid sub-domains attached to your target
Subfinder is coded in GO so make sure you have go1.21 installed
Full Install Docs
Run
Code
go install -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latestRun subfinder with -h flag for options
Code
subfinder -hTo run Subfinder on a specific target use the -d flag to specify the domain
Code
subfinder -d hackforums.netUse the -o flag to save to a file
Code
subfinder -d hackforums.net -o output.txtNow you should have a list of all your targets valid sub domains :)
Now armed with our full list of domains its time to start our recon and attack
Lets use Nuclei to scan our Url list for vulnerabilities
Nuclei is a powerful tool and also supports scanning multiple urls from list
lets download it the same as the last tool
We can pull up the Help information the same as well using the -h flag
Lets scan our whole list
We can also use XSStrike to scan and test payload lists on vulnerable urls
Github - https://github.com/s0md3v/XSStrike
Run to download
Test a single webpage which uses GET method.
If you want to skip DOM testing use the -skip-dom flag
Again we can pull up the help details for the tool using
Happy hacking guys 💯
If you want me to go into detail on any section of the guide or you have a topic you would like one written on drop a comment below
Also want to mention Katana Git
https://github.com/projectdiscovery/katana
Nuclei Templates - https://github.com/projectdiscovery/nuclei-templates
https://github.com/projectdiscovery
Lets use Nuclei to scan our Url list for vulnerabilities
Nuclei is a powerful tool and also supports scanning multiple urls from list
lets download it the same as the last tool
Code
go install -v github.com/projectdiscovery/nuclei/v3/cmd/nuclei@latestWe can pull up the Help information the same as well using the -h flag
Code
nuclei -hLets scan our whole list
Code
nuclei -targets urls.txtWe can also use XSStrike to scan and test payload lists on vulnerable urls
Github - https://github.com/s0md3v/XSStrike
Run to download
Code
git clone https://github.com/s0md3v/XSStrike.gitTest a single webpage which uses GET method.
Code
python3 xsstrike.py -u "http://<URL>/faq.php?lang=q"If you want to skip DOM testing use the -skip-dom flag
Code
python3 xsstrike.py -u "http://<URL>/faq.php?lang=q" –skip-domAgain we can pull up the help details for the tool using
Code
python3 xsstrike.py -hHappy hacking guys 💯
If you want me to go into detail on any section of the guide or you have a topic you would like one written on drop a comment below
Also want to mention Katana Git
https://github.com/projectdiscovery/katana
Nuclei Templates - https://github.com/projectdiscovery/nuclei-templates
https://github.com/projectdiscovery
![[Image: Chorozon-Signature-v1.gif[]](https://i.ibb.co/mVBSTn3v/Chorozon-Signature-v1.gif%5B)

