I’ve been quietly developing a local network attack tool for quite a while now, and it’s approaching a state I deem ‘presentable’. Bugs are still being ironed out, and tons of features are still planned, but I’ve gotten some great feedback over the past few months and decided it was time for an official introductory post. This post serves as an introduction into the current capabilities of the framework, as well as a timeline for future development and goals.
zarp is a local network attack toolkit that emphasizes absolute control over local networks. It’s end goal is to provide a very clean, modular, well-defined interface into a network, handing absolute control over to the user. Over the course of several months, I discovered myself having to harness one too many tools to perform very basic, and what should be, simple network exploitation. Mind you, zarp is not about exploiting hosts. It is merely about the manipulation of any and all traffic present on the local network, and allowing the user the ability to view it, manipulate it, and save it in any manner they desire. I would align zarp more with Ettercap than Metasploit.
zarp is written in Python and makes an attempt to be as modular as possible while maintaining a high level of independence. As of now, three things are required to run zarp: Python 2.7.x, Linux, and Scapy. Because of Scapy’s age, I’ve had to modify the source code explicitly for zarp, and thus Scapy comes packaged with zarp. I’m currently working to replace Scapy entirely and move to Python 3, but this won’t be for awhile. Zarp modules are dynamically loaded at runtime, and a very basic, but useable, interface has been defined. It is incredibly easy to write a zarp module and get them loaded up into the framework.
zarp’s predominant interface is a CLI-driven GUI, as shown:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
Each module is loaded into one of six buckets. These buckets define the traits of the module and its intended use. Sessions  are how sessions are managed. Zarp allows a user to poison, sniff, and scan as many hosts as your system allows. This means that all of your network poisoning and sniffing can be performed all in one spot.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
As shown, many sessions can be managed from this interface at once. Each module defines how output is displayed when the user is ‘viewing’ the session; it could be network traffic, passwords, HTTP requests, and more. Various sniffers built in allow easy parsing and logging.
Below are some of the built-in modules.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
Also included are various router exploits, switch flooding, ARP shells, access point cracking, and more. Zarp also allows modules to set CLI options, which can be used like any regular CLI application:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
The idea behind services is this: honeypots are scary effective at what they do because they exploit a certain trust a user has in a system, or address. But, if I’m able to DoS a web server, ARPP/DNS spoof the host into redirecting it to me, I can fetch credentials off them just by presenting a login. These can be leveraged in any number of ways, including spoofing, social engineering, etc.
I realize that many of these attacks are not bleeding-edge; that’s okay, for now. I needed a solid foundation full of tried-and-true attacks that I can then expand upon; for this reason, I’ve gone for breadth over depth, initially. Modules are still being actively developed and features piled on. zarp is currently lacking a few key features, such as packet modification and ssl stripping, but these are currently in development. Moxie’s sslstrip is fantastic, but I would prefer a native implementation without relying on twisted.
Now comes the future; what’s the end-goal for zarp. I see zarp as a master control system for a local network. Plug it in and watch it grow. Recently I’ve added a database logging tool that formats certain key bits, username/passwords, hosts, logs, etc., and inserts them into a local sqlite3 database. This will be expanded to eventually allow connections to postgresql/mysql servers for remote work and collaboration. The idea behind this is to allow a web application the ability to aggregate everything zarp spits out and organize, analyze, and display this in a very powerful way. This web application presents network topologies, host relationships, active connections, man-in-the-middle attacks, and more. The television to zarp’s remote control.
Though ambitious, I feel this could be an incredibly powerful tool that provides pentesters an invaluable service. I’m hoping this post garners a few users who can provide solid usage feedback and help iron out bugs or develop features; if you like what you’ve seen, please check out the wiki or send me an email (drone AT ballastsecurity DOT net) or tweet (@dronesec). Any and all feedback, including suggestions/bugs/questions, are welcome.