Docker allows you to serve the entire Hacktricks suite offline on localhost .
, the creator of HackTricks, provides official PDF and e-book versions. These are often the most stable way to view the content without a browser. Where to find : Check the HackTricks GitHub HackTricks Training site : Searchable, portable, works on tablets/e-readers. : Can fall out of date quickly compared to the live site. 2. GitBook Local Build (Developer Method)
The author of HackTricks, Carlos Polop, hosts the entire book structure as public repositories on GitHub. You can easily clone these repositories to create your offline mirror. 1. Identify the Repositories
There are three primary ways to take HackTricks offline, ranging from simple document downloads to full, interactive local web servers. 1. The Official PDF/eBook Version
What (Kali Linux, macOS, Windows) you are using hacktricks offline
Searching Stack Overflow or HackTricks.wiki from a compromised host is dangerous. Your DNS queries, HTTP traffic, and SSL certificates can alert a blue team to your presence. A rogue HTTP request to hacktricks.xyz from a compromised internal server is a massive red flag. By hosting the content locally , you generate zero suspicious outbound traffic.
Add an alias to your .bashrc or .zshrc :
To use , you can either run a local Docker instance of the entire wiki or mirror the site using command-line tools. Running a local copy is generally preferred as it preserves the structure and search functionality better than a standard mirror. Option 1: Run HackTricks Locally (Docker)
Remote assessments, coffee shops, or client sites with poor reception can hinder your workflow. Docker allows you to serve the entire Hacktricks
Since HackTricks is primarily a GitBook-based wiki, "reading it offline" usually involves either converting the online content into a local format (like PDF or EPUB) or cloning the repository to run a local instance.
cd hacktricks rg "linpeas"
HackTricks is primarily rendered via GitBook. GitBook allows you to download a static HTML archive or PDF .
Why is this article important? Because cybersecurity professionals need to be prepared. However, Using an offline copy to conduct unauthorized access (black hat hacking) is illegal. Where to find : Check the HackTricks GitHub
Ensure you have Node.js installed on your attack machine, then install honkit globally:
Running HackTricks offline ensures you always have local, high-speed, and secure access to privilege escalation vectors, payload cheatsheets, and exploit methodologies. This comprehensive guide covers every reliable method to download, compile, and optimize HackTricks for completely offline use. Why You Need HackTricks Offline
Compress it for portability:
# Install Calibre (required for ebook conversion) sudo apt install calibre -y # Generate an EPUB honkit epub ./ ./hacktricks.epub # Generate a PDF honkit pdf ./ ./hacktricks.pdf Use code with caution. Keeping Your Offline HackTricks Updated
wget --mirror --convert-links --adjust-extension --page-requisites --no-parent https://hacktricks.xyz Use code with caution.
If you prefer a linear reading experience or need to view the documentation on a tablet/E-reader, converting HackTricks to PDF or EPUB is a solid option.