Aircrack-ng on La Fonera w/ DD-WRT

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Goto page 1, 2, 3, 4  Next
Author Message
dltv
DD-WRT User


Joined: 05 Mar 2007
Posts: 114
Location: USA

PostPosted: Sat May 19, 2007 18:55    Post subject: Aircrack-ng on La Fonera w/ DD-WRT Reply with quote
Has anyone successfully been able to do this?

So far my attempts have been less then perfect and this would be my first time to run aircrack-ng

What ive done so this

1. First i logged into the router
2. Go to the Administrator tab and enabled jffs2 support
3. Then enable the clean the jffs2 partition aswell
4. telnet into the router- some reason i can't SSH but its enabled?
5. 'ipkg list' .....gives the list of ipkg's available
6. For the La Fonera Firmware no packages are available so you have to manually install one
7. I then install one by useing 'ipkg install packagename' so in this case it would be

ipkg -d temp install http://127.0.0.1/aircrack_2.41-1_mipsel.ipk

maybe
ipkg -d ram install http://127.0.0.1/aircrack_2.41-1_mipsel.ipk
ipkg -d root install http://127.0.0.1/aircrack_2.41-1_mipsel.ipk

but i can never get it to copy to the temp/ram/root directory its like i don't have write ability? What can i do?
Should i do a mkdir temp and use wget ?
Sponsor
Orque
DD-WRT Novice


Joined: 15 Apr 2007
Posts: 5

PostPosted: Mon May 21, 2007 3:04    Post subject: Reply with quote
hey man, how did you get ipkg working?
dltv
DD-WRT User


Joined: 05 Mar 2007
Posts: 114
Location: USA

PostPosted: Tue May 22, 2007 1:36    Post subject: Reply with quote
ipkg works from what ive been told but its a matter of writing to the correct location with the packages.
redsector
DD-WRT Novice


Joined: 09 Apr 2007
Posts: 22

PostPosted: Tue May 22, 2007 10:52    Post subject: Reply with quote
Here the sequence

ipkg -d /jffs/ install nameofthepackage

then you must create the monitor interface with

wlanconfig mon0 create wlandev wifi0 wlanmode monitor

it work great.
hard_where
DD-WRT User


Joined: 13 Feb 2007
Posts: 141

PostPosted: Wed May 23, 2007 3:18    Post subject: Reply with quote
redsector wrote:
Here the sequence

ipkg -d /jffs/ install nameofthepackage

then you must create the monitor interface with

wlanconfig mon0 create wlandev wifi0 wlanmode monitor

it work great.


Used your tips and when I try to run airodump-ng my fonera freezes and then reboots. It also reboots when I run ifconfig mon0 up. Have you seen this before??
Mikelevel
DD-WRT Novice


Joined: 17 Apr 2007
Posts: 6

PostPosted: Wed May 23, 2007 15:12    Post subject: Reply with quote
Works fine for me. Im using 16/05/07 firmware. Thanks redsector.

Now i need cifs working to get some space
hard_where
DD-WRT User


Joined: 13 Feb 2007
Posts: 141

PostPosted: Wed May 23, 2007 15:36    Post subject: Reply with quote
Mikelevel wrote:
Works fine for me. Im using 16/05/07 firmware. Thanks redsector.

Now i need cifs working to get some space


What aircrack ipkg file did you install/use? The one BS provided or another? If another, do you have the link?

Also, are you having to run 'ifconfig mod0 up' prior to running airodump/aircrack?

Thanks.
Mikelevel
DD-WRT Novice


Joined: 17 Apr 2007
Posts: 6

PostPosted: Wed May 23, 2007 17:08    Post subject: Reply with quote
http://ipkg.k1k2.de/packages/aircrack-ng_0.9-1_mips.ipk
http://ipkg.k1k2.de/packages/libpthread_0.9.28-8_mips.ipk

I used this.
When you create mon0 this is up
hard_where
DD-WRT User


Joined: 13 Feb 2007
Posts: 141

PostPosted: Wed May 23, 2007 22:11    Post subject: Reply with quote
Mikelevel wrote:
http://ipkg.k1k2.de/packages/aircrack-ng_0.9-1_mips.ipk
http://ipkg.k1k2.de/packages/libpthread_0.9.28-8_mips.ipk

I used this.
When you create mon0 this is up


Are you connected to router via wireless connection or wired connection?
What mode is the router in? AP, client, client bridge?

Thanks again for the advice!
Mikelevel
DD-WRT Novice


Joined: 17 Apr 2007
Posts: 6

PostPosted: Wed May 23, 2007 22:24    Post subject: Reply with quote
Its in ap mode.

Router -- Fonera ((((())))) Laptop
|
|
PC

I can connect from laptop and pc.

Aicrack in ddwrt its a good idea but.... i dont know where to save captured packets... cifs/samba are missing

PVery Happy: Sorry my english again
hard_where
DD-WRT User


Joined: 13 Feb 2007
Posts: 141

PostPosted: Wed May 23, 2007 23:07    Post subject: Reply with quote
The SD card mod and drivers sound promising, but I haven't heard if it works in DD-WRT
hard_where
DD-WRT User


Joined: 13 Feb 2007
Posts: 141

PostPosted: Wed May 23, 2007 23:16    Post subject: Packet Injection? Reply with quote
Got aircrack running, but it doesn't look like the mad-wifi drivers are setup to inject packets. See the attached screenshot of airodump-ng and aireplay-ng running:
meltyblood
DD-WRT User


Joined: 06 May 2007
Posts: 114

PostPosted: Fri May 25, 2007 2:26    Post subject: How did you get it to stop crashing? Reply with quote
I got it working. But the binaries I used before were bad. -Edit: The newer aircrack-ng versions have been changed to adapt to a madwifi-ng problem. This aircrack-ng works with madwifi-ng (madwifi 0.9.x accepts either one + other applications like MDK3 and airpwn ). I DID NOTICE SOMETHING IMPORTANT. Channel switching (sometimes) causes problems with some nonstandard (outside of 1,6,11) channels. Airodump seems to stop recieving information (in fact the wireless interface completely chokes) sometimes if I let it run on all of the available channels (it helps to use client mode, physical lan port to make sure you don't get kicked when the interface chokes). I have to use "ifconfig mon0 down" then "ifconfig mon0 up" to get the wireless ready again. This probably has to do with Madwifi-ng. Have all of the necessary patches been applied?

Last edited by meltyblood on Mon Jun 11, 2007 7:15; edited 1 time in total
dltv
DD-WRT User


Joined: 05 Mar 2007
Posts: 114
Location: USA

PostPosted: Sat May 26, 2007 17:51    Post subject: Reply with quote
So this is the sequence of events to how i installed but..

I ran/started the HFS Http Server. Once it was running I added the aircrack-np
package to be shared on the Http server. Then I logged into telnet screen and
went into the tmp directory where I could copy the ipk package


Run Code:

cd /tmp
wget http://192.168.0.101/aircrack-ng_0.9-1_mips.ipk
ipkg -d /jffs/ install aircrack-ng_0.9-1_mips.ipk


Then what do i need to do? I took some screen shots as well but when i did a
ipkg list it did not show any installed packages? Do i install both the packages because i just installed aircrack-ng.
meltyblood
DD-WRT User


Joined: 06 May 2007
Posts: 114

PostPosted: Sat May 26, 2007 22:56    Post subject: Reply with quote
There is no need to run a server. The router can download stuff right from the internet by itself, and WinSCP + Putty are the best file transfer and communication tools. Putty now support communication over serial meaning it's a hyperterminal replacement.

Make sure libpthread is installed! I'm still looking for MDK2 or MDK3 for DD-WRT for the fonera. I have an openwrt version but it doesn't work in DD-WRT for some reason. Read my post about it crashing the router. Too bad since it's better than aircrack.
Goto page 1, 2, 3, 4  Next Display posts from previous:    Page 1 of 4
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum