Work in progress...
This is more of a checklist for myself. May contain useful tips and tricks.
I have automated some of the tasks from this cheat sheet in my project at ivan-sincek/auto-recon.
Everything was tested on Kali Linux v2024.2 (64-bit).
For help with any of the tools write [-h | -hh | --help] or man .
Sometimes -h can be mistaken for a host or some other option. If that's the case, use -hh or --help instead, or read the manual with man.
Some tools do similar tasks, but get slightly different results. Run everything you can. Many tools complement each other!
Keep in mind when no protocol nor port number in a URL is specified, i.e., if you specify only somesite.com, some tools will default to HTTP protocol and port 80, i.e, to http://somesite.com:80.
If you didn't already, read OWASP Web Security Testing Guide. Checklist can be downloaded here.
Highly recommend reading Common Security Issues in Financially-Orientated Web.
Highly recommend doing PortSwigger Web Security Academy, very underrated and super cheap.
Websites that you should use while writing the report:
My other cheat sheets:
3. Vulnerability Assesment/Exploiting
Most tools can be installed with the Linux package manager:
apt-get update && apt-get -y install sometoolFor more information see kali.org/tools.
Some Python tools need to be downloaded and installed manually:
python3 setup.py installOr, installed from the PyPi:
pip3 install sometool
python3 -m pip install sometoolSome Golang tools need to be downloaded and built manually:
go build sometool.goOr, installed directly:
go install -v github.com/user/sometool@latestFor more information see pkg.go.dev.
To set up Golang, run:
apt-get -y install golang
cat >> ~/.zshrc proxychains.txt
curl -s 'https://proxylist.geonode.com/api/proxy-list?limit=50&page=1&sort_by=lastChecked&sort_type=desc' -H 'Referer: https://proxylist.geonode.com/' | jq -r '.data[] | "\(.protocols[])://\(.ip):\(.port)"' > proxies.txtKeep in mind that some [legacy] websites might only be accessible through specific web browsers such as MS Internet Explorer or MS Edge.
Keep in mind that some websites may be missing the index page and may not redirect you to the real home page. If that's the case, try to manually guess a full path to the home page, use wayback machine or gau to find old URLs, or try directory fuzzing with feroxbuster or DirBuster.
Search the Internet for default / pre-defined paths and files for a specific web application. Use the gathered information in combination with Google Dorks, Chad, and httpx to find the same paths and files on different [sub]domains. For not so common web applications, try to find and browse the source code for default / pre-defined paths and files.
You can find the application's source code on GitHub, GitLab, Bitbucket, searchcode, etc.
Search the application's source code for hardcoded sensitive information with TruffleHog and File Scraper. Don't forget to check old GitHub commits for old but still active API keys or credentials.
Inspect the web console for possible errors. Inspect the application's source code for possible comments.
Don't forget to access the web server over an IP address because you might find server's default welcome page or some other content.
Read what is ASN and CIDR before starting your OSINT.
Gather information:
dmitry -wines -o dmitry_results.txt somedomain.comDeprecated. Netcraft search does not work.
Gather information:
theHarvester -f theharvester_results.json -b baidu,certspotter,chaos,commoncrawl,crtsh,duckduckgo,gitlab,hackertarget,otx,rapiddns,robtex,subdomaincenter,subdomainfinderc99,thc,threatcrowd,urlscan,waybackarchive,yahoo -l 500 -d somedomain.comThis tool is changing the search engines quite often, as such, some of them might not work as of this reading.
Sometimes the output file might default to /usr/lib/python3/dist-packages/theHarvester/ directory.
Extract subdomains from the results:
jq '.hosts[]' theharvester_results.json | sort -uf | tee -a subdomains.txtExtract IPs from the results:
jq '.ips // empty | .[]' theharvester_results.json | sort -uf | tee -a ips.txt
jq '.hosts // empty | .[] | select(contains(":")) | split(":")[1]' theharvester_results.json | sort -uf | tee -a ips.txtExtract subdomains from the results:
jq '.hosts // empty | .[] | select(contains(":") | not)' theharvester_results.json | sort -uf | tee -a subdomains.txt
jq '.hosts // empty | .[] | select(contains(":")) | split(":")[0]' theharvester_results.json | sort -uf | tee -a subdomains.txtExtract emails from the results:
jq '.emails // empty | .[]' theharvester_results.json | sort -uf | tee -a emails.txtExtract ASNs from the results:
jq '.asns // empty | .[]' theharvester_results.json | sort -uf | tee -a asns.txtFind metadata and hidden information in files.
Tested on Windows 10 Enterprise OS (64-bit).
Minimum requirements:
GUI is very intuitive.
Gather subdomains using OSINT:
sublist3r -o sublister_results.txt -d somedomain.comGather subdomains using OSINT:
assetfinder --subs-only somedomain.com | greNo open issues yet, or sync has not completed.