The penetration testing tools the pros use
20 August 2020 | 0
Penetration testing (or pentesting) is a simulated cyber attack where professional ethical hackers break into corporate networks to find weaknesses before attackers do.
It is a simulated cyber attack where the pentester, or ethical hacker, uses the tools and techniques available to malicious hackers.
Again, pentesting shows where and how a malicious attacker might exploit your network. This allows you to mitigate any weaknesses before a real attack occurs.
According to recent research from Positive Technologies, pretty much every company has weaknesses that attackers can exploit. In 93% of cases, pentesters were able to breach the network perimeter and access the network. The average amount of time needed to do so was four days. At 71% of the companies, an unskilled hacker would have been able to penetrate the internal network.
Back in the old days, hacking was hard and required a lot of manual bit fiddling. Today, however, a full suite of automated testing tools turn hackers into cyborgs, computer-enhanced humans who can test far more than ever before.
Here is a list of the tools that make a modern pentester’s job faster, better, and smarter.
1. Kali Linux
If you are not using Kali as your base pentesting operating system, you either have bleeding-edge knowledge and a specialised use case or you’re doing it wrong. Formerly known as BackTrack Linux and maintained by the good folks at Offensive Security (OffSec, the same folks who run the OSCP certification), Kali is optimised in every way for offensive use as a penetration tester.
While you can run Kali on its own hardware, it’s far more common to see pentesters using Kali virtual machines on OS X or Windows.
Kali ships with most of the tools mentioned here and is the default pentesting operating system for most use cases. Be warned, though – Kali is optimised for offense, not defence, and is easily exploited in turn. Don’t keep your super-duper extra secret files in your Kali VM.
The granddaddy of port scanners, nmap – short for network mapper – is a tried-and-true pen testing tool few can live without. What ports are open? What’s running on those ports? This is indispensable information for the pentester during recon phase, and nmap is often the best tool for the job.
Despite the occasional hysteria from a non-technical C-suite exec that some unknown party is port scanning the enterprise, nmap by itself is completely legal to use, and is akin to knocking on the front door of everyone in the neighbourhood to see if someone is home.
Many legitimate organisations such as insurance agencies, internet cartographers like Shodan and Censys, and risk scorers like BitSight scan the entire IPv4 range regularly with specialised port-scanning software (usually nmap competitors masscan or zmap) to map the public security posture of enterprises both large and small. That said, attackers who mean malice also port scan, so it’s something to log for future reference.
Why exploit when you can meta-sploit? This appropriately named meta-software is like a crossbow: Aim at your target, pick your exploit, select a payload, and fire. Indispensable for most pentesters, metasploit automates vast amounts of previously tedious effort and is truly “the world’s most used penetration testing framework,” as its web site trumpets. An open-source project with commercial support from Rapid7, Metasploit is a must-have for defenders to secure their systems from attackers.
Wireshark is the ubiquitous tool to understand the traffic passing across your network. While commonly used to drill down into your everyday TCP/IP connection issues, Wireshark supports analysis of hundreds of protocols including real-time analysis and decryption support for many of those protocols. If you are new to pentesting, Wireshark is a must-learn tool.
5. John the Ripper
Unlike the software’s namesake, John does not serially kill people in Victorian London, but instead will happily crack encryption as fast as your GPU can go. This password cracker is open-source and is meant for offline password cracking. John can use a word list of likely passwords and mutate them to replace “a” with “@” and “s” with “5” and so forth, or it can run for an infinity with muscular hardware until a password is found. Considering that the vast majority of people use short passwords of little complexity, John is frequently successful at breaking encryption.
The self-proclaimed “world’s fastest and most advanced password recovery utility” may not be modest, but the hashcat folks certainly know their worth. Hashcat gives John the Ripper a run for its money. It is the go-to pentesting tool to crack hashes, and hashcat supports many kinds of password-guessing brute force attacks, including dictionary and mask attacks.
Pentesting commonly involves exfiltration of hashed passwords, and exploiting those credentials means turning a program like hashcat loose on them offline in the hope of guessing or brute-forcing at least some of those passwords.
Hashcat runs best on a modern GPU (sorry, Kali VM users). Legacy hashcat still supports hash cracking on the CPU, but warns users it is significantly slower than harnessing your graphics card’s processing power.
John the Ripper’s companion, Hydra, comes into play when you need to crack a password online, such as an SSH or FTP login, IMAP, IRC, RDP and many more. Point Hydra at the service you want to crack, pass it a word list if you like, and pull the trigger. Tools like Hydra are a reminder why rate-limiting password attempts and disconnecting users after a handful of login attempts can be successful defensive mitigations against attackers.
8. Burp Suite
No discussion of pentesting tools is complete without mentioning web vulnerability scanner Burp Suite, which, unlike other tools mentioned so far, is neither free nor libre, but an expensive tool used by the pros. While there is a Burp Suite community edition, it lacks much of the functionality, and the Burp Suite enterprise edition goes for a cool €3,499 a year (that psychological pricing does not make it seem that much cheaper, guys).
There is a reason they can get away with those kind of nosebleed prices, though. Burp Suite is an incredibly effective web vulnerability scanner. Point it at the web property you want to test, and fire when ready. Burp competitor Nessus offers a similarly effective (and similarly priced) product.
9. Zed Attack Proxy
Those without the cash to pay for a copy of Burp Suite will find OWASP’s Zed Attack Proxy (ZAP) to be almost as effective, and it is both free and libre software. Like the name suggests, ZAP sits between your browser and the web site you are testing and allows you to intercept (aka man in the middle) the traffic to inspect and modify. It lacks many of Burp’s bells and whistles, but its open-source license makes it easier and cheaper to deploy at scale, and it makes a fine beginner’s tool to learn how vulnerable web traffic really is. ZAP competitor Nikto offers a similar open source tool.
Did somebody say SQL injection? Well hello, sqlmap. This incredibly effective SQL injection tool is open-source and “automates the process of detecting and exploiting SQL injection flaws and taking over of database servers,” just like its website says. Sqlmap supports all the usual targets, including MySQL, Oracle, PostgreSQL, Microsoft SQL Server, Microsoft Access, IBM DB2, SQLite, Firebird, Sybase, SAP MaxDB, Informix, HSQLDB and H2. Old-timers used to have to craft their SQL injection with a hot needle to their hard drive. These days sqlmap will take the squinty-eyed work out of your pentesting gig.
Just how secure is your client’s Wi-Fi – or your home Wi-Fi? Find out with aircrack-ng. This Wi-Fi security auditing tool is free/libre, but the Pringles can you’ll have to acquire on your own. (We hear the darknet market at 7-11 can give you one on the down low.) Cracking Wi-Fi today is often possible because of poor configuration, bad passwords, or outdated encryption protocols. Aircrack-ng is the go-to choice for many – with or without a Pringles ‘cantenna’.
IDG News Service