Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Turn Binary Data into Airborne Packets?

Are there any software libraries and/or wireless drivers that make it possible to turn a sequence of binary data into a wireless packet in the air? For example, if someone used Airpcap / Wireshark to capture a series of interesting packets, is there some library that can be fed that binary data in order to turn it back into 802.11 wireless packets for testing purposes? If so, can we then also make minor alterations to the values of the packet in order to generate a wide variety of testing scenarios? Is anyone aware of tools/libraries that enable or assist this scenario?

like image 485
GWLlosa Avatar asked Aug 26 '12 21:08

GWLlosa


2 Answers

While there are many tools around that may be used to replay and send data, one of the most advanced and flexible one is:

TCPReplay

http://tcpreplay.synfin.net/

You can edit the packets at different levels and then to send them.

Excerpt from their website:

... You can ... classify traffic as client or server, rewrite Layer 2, 3 and 4 headers and finally replay ...

There are some alternatives such as bitTwist and the WinPcap library.

like image 148
Avenger Avatar answered Nov 15 '22 10:11

Avenger


Most Wi-fi tools are set up for cracking networks or stealing data so you might be able to re-purpose an existing attacker's tool or library (like ettercap or aircrack-ng) for your testing purposes. Most tools I've encountered focus on ethernet, tcp and http.

The following list of software might merit further investigation:

  1. TCPReplay
  2. Bit-Twist
  3. aircrack-ng suite
  4. Nemesis
  5. Packet Editor

Bit-Twist and TCPReplay are your best bet if you're willing to compromise for something higher up in the protocol stack.

like image 30
Goldfish Sandwich Avatar answered Nov 15 '22 10:11

Goldfish Sandwich