Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
P

penetration-testing-cheat-sheet

> 测试质量
Open source

Work in progress...

836 stars0 likes3 views
WebsiteGitHub

About

Work in progress...

Penetration Testing Cheat Sheet

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:

  • cwe.mitre.org/data
  • owasp.org/projects
  • owasp.org/www-project-top-ten
  • cheatsheetseries.owasp.org
  • first.org/cvss/calculator/4.0
  • bugcrowd.com/vulnerability-rating-taxonomy
  • nvd.nist.gov/ncp/repository
  • attack.mitre.org

My other cheat sheets:

  • Android Testing Cheat Sheet
  • iOS Penetration Testing Cheat Sheet
  • WiFi Penetration Testing Cheat Sheet

Table of Contents

0. Install Tools and Setup

  • API Keys
  • User-Agents
  • DNS Resolvers
  • ProxyChains-NG

1. Reconnaissance

  • Useful Websites
  • Dmitry
  • theHarvester
  • FOCA
  • Sublist3r
  • assetfinder
  • Subfinder
  • Amass
  • dig
  • Fierce
  • DNSRecon
  • host
  • WHOIS
  • ASNmap
  • httpx
  • gau
  • urlhunter
  • Google Dorks
  • Chad
  • PhoneInfoga
  • git-dumper
  • TruffleHog
  • File Scraper
  • katana
  • Scrapy Scraper
  • Directory Fuzzing
  • DirBuster
  • feroxbuster
  • snallygaster
  • IIS Tilde Short name Scanning
  • WhatWeb
  • Parsero
  • EyeWitness
  • Wordlists

2. Scanning/Enumeration

  • Useful Websites
  • Nmap
  • testssl.sh
  • OpenSSL
  • keytool
  • uncover

3. Vulnerability Assesment/Exploiting

  • Useful Websites
  • Collaborator Servers
  • Subdomain Takeover
  • Subzy
  • subjack
  • Bypassing the 401 and 403
  • Nikto
  • WPScan
  • Nuclei
  • Arjun
  • WFUZZ
  • Insecure Direct Object Reference (IDOR)
  • HTTP Response Splitting
  • Cross-Site Scripting (XSS)
  • SQL Injection
  • sqlmap
  • dotdotpwn
  • Web Shells
  • Send a Payload With Python

4. Post Exploitation

  • Useful Websites
  • Generate a Reverse Shell Payload for Windows OS
  • PowerShell Encoded Command

5. Password Cracking

  • Useful Websites
  • crunch
  • hash-identifier
  • Hashcat
  • Cracking the JWT
  • Hydra
  • Password Spraying

6. Social Engineering

  • Drive-by Download
  • Phishing Website

7. Miscellaneous

  • Useful Websites
  • cURL
  • Ncat
  • multi/handler
  • ngrok
  • Additional References

0. Install Tools and Setup

Most tools can be installed with the Linux package manager:

bash
apt-get update && apt-get -y install sometool

For more information see kali.org/tools.


Some Python tools need to be downloaded and installed manually:

fundamental
python3 setup.py install

Or, installed from the PyPi:

fundamental
pip3 install sometool

python3 -m pip install sometool

Some Golang tools need to be downloaded and built manually:

fundamental
go build sometool.go

Or, installed directly:

fundamental
go install -v github.com/user/sometool@latest

For more information see pkg.go.dev.

To set up Golang, run:

bash
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.txt

1. Reconnaissance

Keep 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.

1.1 Useful Websites

  • whois.domaintools.com
  • otx.alienvault.com - domain lookup
  • reverseip.domaintools.com - web-based reverse IP lookup
  • lookup.icann.org
  • sitereport.netcraft.com
  • searchdns.netcraft.com - web-based DNS lookup
  • search.censys.io - domain lookup and more
  • crt.sh - certificate fingerprinting
  • commoncrawl.org - web crawl dumps
  • opendata.rapid7.com - scan dumps
  • searchcode.com
  • virustotal.com - malware database lookup
  • haveibeenpwned.com
  • intelx.io - database breaches
  • search.wikileaks.org
  • archive.org - wayback machine
  • pgp.circl.lu - OpenPGP key server
  • shodan.io - IoT search engine
  • sherlockeye.io - account lookup
  • whoisds.com - newly registered domains
  • radar.cloudflare.com - website lookup and more

Dmitry

Gather information:

fundamental
dmitry -wines -o dmitry_results.txt somedomain.com

Deprecated. Netcraft search does not work.

theHarvester

Gather information:

fundamental
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.com

This 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:

bash
jq '.hosts[]' theharvester_results.json | sort -uf | tee -a subdomains.txt

Extract IPs from the results:

bash
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.txt

Extract subdomains from the results:

bash
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.txt

Extract emails from the results:

bash
jq '.emails // empty | .[]' theharvester_results.json | sort -uf | tee -a emails.txt

Extract ASNs from the results:

bash
jq '.asns // empty | .[]' theharvester_results.json | sort -uf | tee -a asns.txt

FOCA (Fingerprinting Organizations with Collected Archives)

Find metadata and hidden information in files.

Tested on Windows 10 Enterprise OS (64-bit).

Minimum requirements:

  • download and install MS SQL Server 2014 Express or greater,
  • download and install MS .NET Framework 4.7.1 Runtime or greater,
  • download and install MS Visual C++ 2010 (64-bit) or greater,
  • download and install FOCA.

GUI is very intuitive.

Sublist3r

Gather subdomains using OSINT:

fundamental
sublist3r -o sublister_results.txt -d somedomain.com

assetfinder

Gather subdomains using OSINT:

bash
assetfinder --subs-only somedomain.com | gre

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

PHPbug-bountyenumerationethical-hackingexploitation

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category测试质量
PricingOpen source

> Related tools

J
Jest
JavaScript 测试框架
P
Playwright
现代端到端测试框架
E
eslint-plugin-test-selectors
Enforces that data-test-id attributes are added to interactive DOM elements (JSX) to help with UI testing. JSX only.