Below you will find a list of tools I frequently use(d) during CTF’s, including links to specific tools described in the walkthroughs.
Amazing site on all things related to Active Directory security (or lack thereof).
Awesome CTF Page
A curated list of Capture The Flag (CTF) frameworks, libraries, resources, softwares and tutorials. This list aims to help starters as well as seasoned CTF players to find everything related to CTFs at one place.
Awesome list Windows Server Hardening
Overview of what you can do to harden Windows servers (especially domain controllers) and how to attack them.
BloodHound uses graph theory to reveal the hidden and often unintended relationships within an Active Directory environment. Attackers can use BloodHound to easily identify highly complex attack paths that would otherwise be impossible to quickly identify. Defenders can use BloodHound to identify and eliminate those same attack paths. Both blue and red teams can use BloodHound to easily gain a deeper understanding of privilege relationships in an Active Directory environment.
Good walkthrough and data-set can be found at https://insinuator.net/2018/11/the-dog-whisperers-handbook/
If you want to have great CTF’s, taking notes is of the essence. It allows you to capture what you have found and prevent you from visiting the same technique or commands twice. My favorite note taker is Cherrytree. It can act as both a no nonsense text editor or can be a full blown word processor.
CrackStation uses massive pre-computed lookup tables to crack password hashes. These tables store a mapping between the hash of a password, and the correct password for that hash. The hash values are indexed so that it is possible to quickly search the database for a given hash. If the hash is present in the database, the password can be recovered in a fraction of a second.
Cyberchef – A Cyber Swiss Army Knife
Need to to 13 iterations of base64 encoding? Need something encrypted through AES? Build a decrypt set? Cyberchef has your back.
“CyberChef is a simple, intuitive web app for carrying out all manner of “cyber” operations within a web browser. These operations include simple encoding like XOR or Base64, more complex encryption like AES, DES and Blowfish, creating binary and hexdumps, compression and decompression of data, calculating hashes and checksums, IPv6 and X.509 parsing, changing character encodings, and much more.
The tool is designed to enable both technical and non-technical analysts to manipulate data in complex ways without having to deal with complex tools or algorithms. ”
Great resource for finding exploits, especially proof-of-concept (POC) ones.
The Exploit Database is maintained by Offensive Security, an information security training company that provides various Information Security Certifications as well as high end penetration testing services. The Exploit Database is a non-profit project that is provided as a public service by Offensive Security.
Kali has an offline version of ExploitDB available by default, which you can use by triggering:
The offline version is updated every Wednesday.
fimap is a little python tool which can find, prepare, audit, exploit and even google automatically for local and remote file inclusion bugs in webapps. fimap should be something like sqlmap just for LFI/RFI bugs instead of sql injection.
g0tmi1k Linux Basic Enumeration & Privilege Escalation guides
With every CTF you will play, enumeration is key. Enumeration is a fancy term for exploring and poking around the system. As which user am I logged on? What privileges do I have as that user? What files are on the machine? What services are running? Who is the owner of those services? And so on. g0tmi1k made an extensive list of things to check on Linux systems. If you get stuck, check if you did all of these steps. g0tmi1k also created Vulnhub, which can be found under CTF sites.
Google Hacking Database
Search the Google Hacking Database or browse GHDB categories
HighonCofee.net Penetration Testing Cheat Sheet
Still my go to cheat sheets when I am stuck on a machine. He has several others as well that are awesome.
HighonCofee.net Reverse Shell Cheat Sheet
Still my go to cheat sheets when I am stuck on a machine. He has several others as well that are awesome.
Impacket is a collection of Python classes for working with network protocols. Impacket is focused on providing low-level programmatic access to the packets and for some protocols (e.g. SMB1-3 and MSRPC) the protocol implementation itself. Packets can be constructed from scratch, as well as parsed from raw data, and the object oriented API makes it simple to work with deep hierarchies of protocols. The library provides a set of tools as examples of what can be done within the context of this library.
IppSec’s Youtube Channel
This guy makes the most informative and complete video’s for a large number of CTF’s. Definitely recommend looking at some of his work, since you will always learn something!
Tim Medin presented at DerbyCon 2014 where he released a tool he called Kerberoast which cracks Kerberos TGS tickets, He determined that possession of a TGS service ticket encrypted with RC4 provides the opportunity to take the ticket to a password cracking computer (or cloud system) and attempt to crack the service account’s password. How does this work? Since the TGS Kerberos ticket is encrypted with RC4 encryption, that means the service account’s password hash is used to encrypt the ticket. The cracking system only needs to have a dictionary list of words and common passwords which the cracking system loops through, converts to NTLM, and attempts to open the TGS ticket. If the TGS ticket is opened, we know the clear text password and the NTLM password hash for the account.
More on ADsecurity.org
Great how-to: https://www.blackhillsinfosec.com/a-toast-to-kerberoast/
Awesome work by rebootuser. This script gives you all the info you need to do local enumeration. Should be staple in every CTF you do.
Linux Exploit Suggester
Often a leads to nothing, but good to run none the less.
Next-generation exploit suggester based on Linux_Exploit_Suggester
Key Improvements Include:
- More exploits! (Last updated: April 15, 2018)
- Accurate wildcard matching. This expands the scope of searchable exploits.
- Output colorization for easy viewing.
- And more to come!
This script is intended to be executed locally on a Linux box to enumerate basic system info and search for common privilege escalation vectors such as world writable files, misconfigurations, clear-text passwords and applicable exploits.
Metasploit is the world’s most used penetration testing software. It comes standard with most pentesting OS’es, such as ParrotOS or Kali. The unleased guide gives you a quick-start on how to use it.
Meterpreter Privilege Escalation Guide
Setup guide made by Offensive Security, creators of Meterpreter and Metasploit. It gives insight into how escalate privileges when you’ve got a nice meterpreter shell.
mimikatz is a tool I’ve made to learn C and make somes experiments with Windows security.
It’s well known to extract plaintexts passwords, hash, PIN code and kerberos tickets from memory.
mimikatz can also perform pass-the-hash, pass-the-ticket, build Golden tickets, play with certificates or private keys, vault, … maybe make coffee?
MSFVenom is part of the Metasploit toolset. MSFVenom allows you to generate your own custom payloads. You can incorporate either exploits from the Metasploit universe, ExploitDB or just add your own.
Netcat for Windows
Read and write TCP and UDP Packets, useful for creating reverse shells and transferring files on Windows machines since they often don’t allow meterpreter
Nmap discovery scripts
Default scripts used by Nmap to retrieve information.
Nmap exploit scripts
Default scripts used by Nmap to exploit identified services.
Nmap Vuln scannig
Default vulnerability scanning options in Nmap.
NodeJS security course
Great script to help you get NOdeJS reverse scripts. Includes a ready-to-go reverse shell generator.
OSCP Surival guide by lduck11007
Awesome summary of often used techniques while doing the OSCP exam. Lots of these tools are also found on this page.
Pentestmonkey Reverse Shell Cheat Sheet
Very nice overview of several reverse shells that you can use once you gain entry to a machine through an exploit.
When you’re testing/attacking a Windows machine, sometimes Powershell is all you need.Empire is a post-exploitation framework that includes a pure-PowerShell2.0 Windows agent, and a pure Python 2.6/2.7 Linux/OS X agent. It is the merge of the previous PowerShell Empire and Python EmPyre projects. The framework offers cryptologically-secure communications and a flexible architecture. On the PowerShell side, Empire implements the ability to run PowerShell agents without needing powershell.exe, rapidly deployable post-exploitation modules ranging from key loggers to Mimikatz, and adaptable communications to evade network detection, all wrapped up in a usability-focused framework.
PowerSploit is a collection of Microsoft PowerShell modules that can be used to aid penetration testers during all phases of an assessment.
Reverse Engineering Malware 101 by Endgame Inc. (malwareunicorn)
Very down-to-earth 101 on how to look at malware: what is does, how to pull it apart and understand how to make/prevent it.
Ropnop Cheat Sheet on upgrading simple shells
Sometimes it is not possible to get a full shell after the initial exploitation. Ropnop has a very nice and complete cheat sheet on how to upgrade your simple shell.
SecLists is the security tester’s companion. It’s a collection of multiple types of lists used during security assessments, collected in one place. List types include usernames, passwords, URLs, sensitive data patterns, fuzzing payloads, web shells, and many more. The goal is to enable a security tester to pull this repo onto a new testing box and have access to every type of list that may be needed.
Shellpop is all about popping shells. With this tool you can generate easy and sophisticated reverse or bind shell commands to help you during penetration tests.
Sherlock PowerShell script
PowerShell script to quickly find missing software patches for local privilege escalation vulnerabilities.
SMBMap allows users to enumerate samba share drives across an entire domain. List share drives, drive permissions, share contents, upload/download functionality, file name auto-download pattern matching, and even execute remote commands. This tool was designed with pen testing in mind, and is intended to simplify searching for potentially sensitive data across large networks.
Some of the features have not been thoroughly tested, so changes will be forth coming as bugs are found. I only really find and fix the bugs while I’m on engagements, so progress is a bit slow. Any feedback or bug reports would be appreciated. It’s definitely rough around the edges, but I’m just trying to pack in features at the moment. Version 2.0 should clean up the code a lot….whenever that actually happens ;). Thanks for checking it out!! Planned features include simple remote shell (instead of the god awful powershell script in the examples), actual logging, shadow copying ntds.dit automation (Win7 and up only..for now), threading, other things….
Sploitspren Windows Privilege Escalation Guide
Same as g0tmi1k named above, but for Windows. Still a work in progress but already quite good!
SSH to Meterpreter
If you’ve managed to obtain some ssh credentials, and can ssh over to the target system, but want a Meterpreter shell, then use the following to upgrade my shell.
SSL analyzer (Qualsys)
This free online service performs a deep analysis of the configuration of any SSL web server on the public Internet. Please note that the information you submit here is used only to provide you the service.
sqlmap is an open source penetration testing tool that automates the process of detecting and exploiting SQL injection flaws and taking over of database servers. It comes with a powerful detection engine, many niche features for the ultimate penetration tester and a broad range of switches lasting from database fingerprinting, over data fetching from the database, to accessing the underlying file system and executing commands on the operating system via out-of-band connections.
During a CTF, you will probably need to run several tools and commands at the same time. While screen can get you quite far, I prefer a multi-window terminal to do my business. I landed on Terminator for both its easy of use and its awesome name.
This is a penetration testing tool intended to leverage Apache Tomcat credentials in order to automatically generate and deploy JSP Backdoor, as well as invoke it afterwards and provide nice shell (either via web gui, listening port binded on remote machine or as a reverse tcp payload connecting back to the adversary).
In practice, it generates JSP backdoor WAR package on-the-fly and deploys it at the Apache Tomcat Manager Application, using valid HTTP Authentication credentials that pentester provided (or custom ones, in the end, we all love tomcat:tomcat )
Magic Unicorn is a simple tool for using a PowerShell downgrade attack and inject shellcode straight into memory. Based on Matthew Graeber’s powershell attacks and the powershell bypass technique presented by David Kennedy (TrustedSec) and Josh Kelly at Defcon 18.
Usage is simple, just run Magic Unicorn (ensure Metasploit is installed if using Metasploit methods and in the right path) and magic unicorn will automatically generate a powershell command that you need to simply cut and paste the powershell code into a command line window or through a payload delivery system. Unicorn supports your own shellcode, cobalt strike, and Metasploit.
“Veil-Evasion is a tool designed to generate metasploit payloads that bypass common anti-virus solutions.”
The Volatility Framework is a completely open collection of tools, implemented in Python under the GNU General Public License, for the extraction of digital artifacts from volatile memory (RAM) samples. The extraction techniques are performed completely independent of the system being investigated but offer visibilty into the runtime state of the system. The framework is intended to introduce people to the techniques and complexities associated with extracting digital artifacts from volatile memory samples and provide a platform for further work into this exciting area of research.
Windows Privilege Escalation Fundamentals (Fuzzy Security)
Very thorough, beginner-friendly explanation of how to start with Windows Priv Esc.