Posted: Sun Aug 10, 2008 6:13 Post subject: openWRT ipkg optware installing to wrong location
Router Setup:
Router model: Linksys WRT54g-TM
Firmware version: DD-WRT v24-sp1 ( 07/27/08 ) std - build 10011
Router running in client mode with SD/MMC mod
Currently has mount --bind /mmc/jffs /jffs and mount -o bind /jffs/opt /opt saved as startup script.
Downloading http://ftp.iasi.roedu.net/pub/mirrors/openwrt.org/kamikaze/packages/mipsel/aircrack-ng_0.9.1-1_mipsel.ipk
Installing aircrack-ng (0.9.1-1) to /opt/...
ipkg: /usr/bin/aircrack-ng: Read-only file system
ipkg: /usr/bin/airdecap-ng: Read-only file system
ipkg: /usr/bin/packetforge-ng: Read-only file system
ipkg: /usr/bin/ivstools: Read-only file system
ipkg: /usr/bin/kstats: Read-only file system
ipkg: /usr/sbin/aireplay-ng: Read-only file system
ipkg: /usr/sbin/airodump-ng: Read-only file system
ipkg: /usr/sbin/airmon-ng: Read-only file system
Configuring aircrack-ng
Successfully terminated.
The files are neither in the locations that ipkg tries to install them to, nor are they located at /opt/bin. I have tried using http://downloads.openwrt.org/backports/0.9 by placing it into my ipkg.conf and updating, but the same thing happens. I have tried installing optware from http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/ and the optware that I have tried (ncftp and transmission) both work, but why don't the OpenWRT packages from the links listed above work? I have followed both the ipkg and optware wikis, and have also search the forums, but I couldn't find any way to get it to install to the correct directory.
If someone knows of a solution that could help me, or even a theory, please reply. Thanks in advance!
Ok this is weird, I just tried typing in airodump and the list of valid commands came up like it was installed, even though I ipkg says that it isn't installed. I tried using
maybe thats what did it. I tried running the following in terminal
Code:
find / -name aircrack -print
which displays that aircrack is located at /jffs/usr/bin/aircrack and /mmc/jffs/usr/bin/aircrack. Should it be at /opt/bin instead of /user/bin? Also, what interface do I use for airodump?
Posted: Sun Aug 10, 2008 19:08 Post subject: airodump wont run
Hmm, I still dont know what interface to use for airodump. I tried prism0, but the router doesn't acknowledge it as a valid network interface. I ran ifconfig in the terminal which gave me a list of network interfaces:
vlan1 Link encap:Ethernet HWaddr 00:1A:70:E1:C8:C1
UP BROADCAST RUNNING PROMISC ALLMULTI MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
I tried running airodump with each of the following, but none have worked:
Code:
root@DD-WRT:~# airodump br0 cap 6 1
ioctl(SIOCSIWMODE) failed: Operation not supported
ARP linktype is set to 1 (Ethernet) - expected ARPHRD_IEEE80211
or ARPHRD_IEEE80211_PRISM instead. Make sure RFMON is enabled:
run 'ifconfig br0 up; iwconfig br0 mode Monitor channel <#>'
root@DD-WRT:~# airodump br0:0 cap 6 1
ioctl(SIOCSIWMODE) failed: Operation not supported
ARP linktype is set to 1 (Ethernet) - expected ARPHRD_IEEE80211
or ARPHRD_IEEE80211_PRISM instead. Make sure RFMON is enabled:
run 'ifconfig br0:0 up; iwconfig br0:0 mode Monitor channel <#>'
root@DD-WRT:~# airodump eth0 cap 6 1
ioctl(SIOCSIWMODE) failed: Operation not supported
ARP linktype is set to 1 (Ethernet) - expected ARPHRD_IEEE80211
or ARPHRD_IEEE80211_PRISM instead. Make sure RFMON is enabled:
run 'ifconfig eth0 up; iwconfig eth0 mode Monitor channel <#>'
root@DD-WRT:~# airodump eth1 cap 6 1
ioctl(SIOCSIWMODE) failed: Invalid argument
ARP linktype is set to 1 (Ethernet) - expected ARPHRD_IEEE80211
or ARPHRD_IEEE80211_PRISM instead. Make sure RFMON is enabled:
run 'ifconfig eth1 up; iwconfig eth1 mode Monitor channel <#>'
root@DD-WRT:~# airodump lo cap 6 1
ioctl(SIOCSIWMODE) failed: Operation not supported
Unsupported hardware link type 772 - expected ARPHRD_IEEE80211
or ARPHRD_IEEE80211_PRISM instead. Make sure RFMON is enabled:
run 'ifconfig lo up; iwconfig lo mode Monitor channel <#>'
root@DD-WRT:~# airodump vlan0 cap 6 1
ioctl(SIOCSIWMODE) failed: Operation not supported
ARP linktype is set to 1 (Ethernet) - expected ARPHRD_IEEE80211
or ARPHRD_IEEE80211_PRISM instead. Make sure RFMON is enabled:
run 'ifconfig vlan0 up; iwconfig vlan0 mode Monitor channel <#>'
root@DD-WRT:~# airodump vlan1 cap 6 1
ioctl(SIOCSIWMODE) failed: Operation not supported
ARP linktype is set to 1 (Ethernet) - expected ARPHRD_IEEE80211
or ARPHRD_IEEE80211_PRISM instead. Make sure RFMON is enabled:
run 'ifconfig vlan1 up; iwconfig vlan1 mode Monitor channel <#>'
Am I using the wrong interfaces, or do I simply have to run a few extra commands before trying the program? Any suggestions and/or comments would be appreciated. Thanks!