From charlesreid1

Line 69: Line 69:




==Setting Things Up==
==Writing Toolz==
 
<pre>
$ opkg install git
</pre>
 
Using git will allow us to share our work across computers, and develop scripts on a laptop to run on the device.
 
From the router, run this command to clone something on the local network (which you're still connected to with the on-board wifi):
 
<pre>
$ git clone user@10.0.0.100:/path/to/project.name
</pre>
 
This should ask you for a password, just like SSH (or not, if you have SSH keys).

Revision as of 03:11, 22 August 2015

Imagine a wireless aircraft carrier, communication systems up, radios on, ears open, listening carefully, avoiding being observed itself. Attack aircraft come and go from the deck. It's launching dozens of attacks, readying more, and packed full of goodies to keep it running for the long term.

Now imagine the equivalent for wireless attacks. That's what this little TP Link battery powered router will become, when we're through with it.

The Procedure

We'll start by upgrading the on-board software, and installing some tools of our own.

Install Software Packages

Once again we'll use opkg to install packages.

Wireless Toolz

Let's ugprade our wireless toolz.

$ opkg update
$ opkg install wireless-tools

Other Stuffs with opkg

There's lots of goodies in the opkg package lists, too. First, general-purpose utilities:

$ opkg install screen
$ opkg install wget
$ opkg install python
$ opkg install nmap
$ opkg install tcpdump

Now tools for wireless attacks:

$ opkg install aircrack-ng
$ opkg install kmod-tun # for airbase-ng to work
$ opkg install macchanger
$ opkg install mdk3
$ opkg install reaver
$ opkg install snort
$ opkg install wavemon

and yet more tools, some still unfamiliar:

$ opkg install kismet-server kismet-drone kismet-client
$ opkg install airpwn

Networking tools:

$ opkg install squid
$ opkg install ettercap

Installing Python Packages

Remember that OpenWrt is designed for tiny systems, so the Python installation is minimal - no pip. But you can still install python packages the old fashioned way:

python setup.py build
python setup.py install


Writing Toolz

$ opkg install git

Using git will allow us to share our work across computers, and develop scripts on a laptop to run on the device.

From the router, run this command to clone something on the local network (which you're still connected to with the on-board wifi):

$ git clone user@10.0.0.100:/path/to/project.name 

This should ask you for a password, just like SSH (or not, if you have SSH keys).