From charlesreid1

 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
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.
[[Image:Widy.jpg|300px]]
 
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=
=The Procedure=
Line 25: Line 23:


<pre>
<pre>
$ opkg install screen
opkg install screen
$ opkg install wget
opkg install wget
$ opkg install python
opkg install python
$ opkg install nmap
opkg install nmap
$ opkg install tcpdump
opkg install tcpdump
opkg install collectd
</pre>
</pre>


Line 35: Line 34:


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


Line 47: Line 46:


<pre>
<pre>
$ opkg install kismet-server kismet-drone kismet-client
opkg install kismet-server kismet-drone kismet-client
$ opkg install airpwn
opkg install airpwn
</pre>
</pre>


Line 54: Line 53:


<pre>
<pre>
$ opkg install squid
opkg install squid
$ opkg install ettercap
opkg install ettercap
</pre>
</pre>


Line 69: Line 68:




==Sharing Toolz==
==Sharing Toolz and Scripts==
 
You can use git to share tools and scripts, even if the Widy doesn't have an internet connection.


Toolz = scripts
Start by installing git (you will need an internet connection to run this command):


<pre>
<pre>
Line 77: Line 78:
</pre>
</pre>


Using git will allow us to share our work across computers, and develop scripts on a laptop to run on the device.
Now we can use git to share our work across computers, which allows us to develop scripts on a laptop or desktop, then run them on the Widy.
 
To do this, you can create a git repository on the laptop or desktop, then clone a copy (over the local network) on the Widy.


From the Widy device, run this command to clone something on the local network (which you should be connected to via the on-board wifi, via the web interface):
Assuming your Widy has an IP of <code>10.0.0.1</code> and your git repository is on a computer at <code>10.0.0.100</code>, you can use this command to clone something over the local network:


<pre>
<pre>
Line 91: Line 94:
==Writing Python Toolz==
==Writing Python Toolz==


For more info on scripting wireless stuff with Pyhon, see [[Wireless/Python]]
For more info on scripting wireless stuff with Python, see [[Wireless/Python]]
 
 
 
 


{{AircrackFlag}}
{{WidyFlag}}

Latest revision as of 02:24, 30 January 2018

Widy.jpg

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
opkg install collectd

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


Sharing Toolz and Scripts

You can use git to share tools and scripts, even if the Widy doesn't have an internet connection.

Start by installing git (you will need an internet connection to run this command):

$ opkg install git

Now we can use git to share our work across computers, which allows us to develop scripts on a laptop or desktop, then run them on the Widy.

To do this, you can create a git repository on the laptop or desktop, then clone a copy (over the local network) on the Widy.

Assuming your Widy has an IP of 10.0.0.1 and your git repository is on a computer at 10.0.0.100, you can use this command to clone something over the local network:

$ 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).

This will add the remote address 10.0.0.100 as "origin", which I like to rename.

Writing Python Toolz

For more info on scripting wireless stuff with Python, see Wireless/Python