PDA

View Full Version : How to install airdrop-ng (and lorcon2)



Vulpi
2013-04-06, 05:20
There is a lot of outdated source code and documentation on the net, and it took me a few false starts to get this going. I think these were the commands which worked:

Requires lorcon2:


cd /usr/src
apt-get install libpcap0.8-dev libnl-dev
git clone https://code.google.com/p/lorcon
cd lorcon
./configure
make
make install

# install pylorcon
cd pylorcon2
python setup.py build
python setup.py install

# to make lorcon available to metasploit
cd ../ruby-lorcon/
ruby extconf.rb
make
make install

Intalling airdrop-ng:


cd /usr/src
git clone git://github.com/jalcine/aircrack-ng.git # I couldn't pull down just airdrop-ng branch - don't know why
cd /aircrack-ng/scripts/airdrop-ng
make install
airodump-ng-oui-update #(airdrop-ng -u)

When running airdrop, you may get this error:


oui.txt not found in /usr/local/lib/python2.7/dist-packages/airdrop/support
or ./support/
Please run python airdrop-ng -u

You need to find an airodump-ng-oui.txt, copy and rename it. This worked for me:


cp /etc/aircrack-ng/airodump-ng-oui.txt /usr/local/lib/python2.7/dist-packages/airdrop/support/oui.txt

NB: There could be a reason these tools are not packaged in the repo's!

Reference: http://blog.opensecurityresearch.com/2012/09/getting-started-with-lorcon.html (http://http://blog.opensecurityresearch.com/2012/09/getting-started-with-lorcon.html)

Gr4nD T3R0R
2013-04-06, 16:11
" root@localhost:/usr/src/lorcon/ruby-lorcon# ruby extconf.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from extconf.rb:2:in `<main>' " <-- i got this error on kali amd64
THE FIX IS HERE :
sudo apt-get install ruby
sudo apt-get install ruby-dev
sudo apt-get install rubygems
sudo gem install rails

sora1
2013-04-06, 22:43
I've been thinking about doing some stuff with lorcon soon, so thanks for the tutorial. I also have installed aircrack-ng from source though with svn. I was trying to get the --manufacturer option in airodump to work, but it seemed the version of aircrack-ng suite from Kali Repo was too old. The airodump --manufacturer option or (-M) is quite neat and also works off the oui.txt file you mentioned.

trauko
2013-04-17, 20:05
i'm getting this error when i try to use aircrack
after this airmong-ng start wlan0

airodump-ng mon0 (i get this error)
interface mon0:
ioctl(SIOCGIFINDEX) failed: no such device
what can i do? thanks a lot (usb cisco AE2500) vmware 9.0.2 on windows 8

matt
2013-04-26, 16:14
I want to add something also.

If you are getting a fatal error saying your missing Python.h (Python Header) make sure you install the python header and remove the previous build from your cache...


apt-get install python-dev
rm -rf ~/build

brazen
2014-02-19, 17:02
There is a lot of outdated source code and documentation on the net, and it took me a few false starts to get this going. I think these were the commands which worked:

Requires lorcon2:


cd /usr/src
apt-get install libpcap0.8-dev libnl-dev
git clone https://code.google.com/p/lorcon
cd lorcon
./configure
make
make install

# install pylorcon
cd pylorcon2
python setup.py build
python setup.py install

# to make lorcon available to metasploit
cd ../ruby-lorcon/
ruby extconf.rb
make
make install

Intalling airdrop-ng:


cd /usr/src
git clone git://github.com/jalcine/aircrack-ng.git # I couldn't pull down just airdrop-ng branch - don't know why
cd /aircrack-ng/scripts/airdrop-ng
make install
airodump-ng-oui-update #(airdrop-ng -u)

When running airdrop, you may get this error:



You need to find an airodump-ng-oui.txt, copy and rename it. This worked for me:


cp /etc/aircrack-ng/airodump-ng-oui.txt /usr/local/lib/python2.7/dist-packages/airdrop/support/oui.txt

NB: There could be a reason these tools are not packaged in the repo's!

Reference: http://blog.opensecurityresearch.com/2012/09/getting-started-with-lorcon.html (http://http://blog.opensecurityresearch.com/2012/09/getting-started-with-lorcon.html)

i was getting a few errors so i googled and found this to work with no errors http://www.coyotus.com/viewtopic.php?pid=2274

it's in another language but you can follow the still...


apt-get install libpcap-dev libnl-dev python-dev


git clone https://code.google.com/p/lorcon/


cd lorcon


./configure --libdir=/usr/lib


make


make isntall


svn co http://pylorcon2.googlecode.com/svn/trunk pylorcon2


cd pylorcon2


python setup.py build


svn co http://svn.aircrack-ng.org/trunk/scripts/airdrop-ng


airdrop-ng/old-installers/install.py
now say yes to everything y



cd airdrop-bg


mv airdrop /usr/bin/airdrop


mv airdrop-ng /usr/bin/airdrop-ng


to uninstall: airdrop-ng/old-installers/uninstall.py



for usage examples, Rule Fiile Configuration Examples: http://www.aircrack-ng.org/doku.php?id=airdrop-ng

AlienMan
2014-02-22, 23:37
I learned a lot here.

Thanks.