LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   problem with aircrack-ng (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/problem-with-aircrack-ng-894749/)

jacopo9214 07-31-2011 06:26 AM

problem with aircrack-ng
 
hello everybody, i'm using a linux virtual machine on my OS windows 7 64bit. when i type in the terminal airmon-ng i've a screen like this:

interface chipset driver


without anything written below. how can i do? please help me

corp769 07-31-2011 10:42 AM

Hello,

That's because you need to tell it what to do. Type the following:
Code:

airmon-ng --help
A more common way to start monitor mode is as follows:
Code:

airmon-ng wlan0 start
Hope this helps!

Josh

jefro 07-31-2011 12:39 PM

They don't make a virtual wireless do they?

TobiSGD 07-31-2011 01:06 PM

Quote:

Originally Posted by jefro (Post 4430018)
They don't make a virtual wireless do they?

It depends. If the wireless device is USB you are able to pass it through to the guest OS. The current version of Virtualbox even has experimental support to do that with PCI-devices.

jacopo9214 07-31-2011 01:24 PM

i've written airmon-ng --help and the terminal gives me:

usage: airmon-ng <start|stop|check> <interface> [channel of frequency]


i need to discover something under interface chipset and driver typing airmon-ng... i don't know how to do... i've checked a guide on youtube that says to go on virtual machine - removable devices - disable "network adapter" and enable my wireless adapter... unfortunately in the interface i've only "network adapter" and not my wireless adapter (something like realtek wireles...) so i can't enable it.

if i disable network adapter and i type airmon-ng i've nothing below... help me pleaseeee

TobiSGD 07-31-2011 01:33 PM

We need more information from you:
1. Which virtualization software do you use in which version?
2. Is your wireless a USB or a PCI device?

jacopo9214 07-31-2011 02:55 PM

for virtualisation i use vmware player and i think that my wireless device is a PCI because i'm using a notebook hp pavilion

corp769 07-31-2011 03:17 PM

Could you post the output of lspci for us?

TobiSGD 07-31-2011 03:24 PM

VMware Player isn't capable of passing PCI devices through to the guest OS, so you will not get that running. Either get yourself an USB wireless device or install Linux natively on your physical hardware.

16pide 07-31-2011 04:13 PM

I hope you're not trying to crack my home wifi! ;)

jacopo9214 07-31-2011 05:00 PM

noooooo why you think so??
so i need to install linux in my notebook??

TobiSGD 07-31-2011 05:28 PM

Quote:

Originally Posted by jacopo9214 (Post 4430165)
so i need to install linux in my notebook??

Yes, or at least run it as live-medium, but you have to run it on your physical hardware.

corp769 07-31-2011 05:56 PM

Quote:

Originally Posted by TobiSGD (Post 4430176)
Yes, or at least run it as live-medium, but you have to run it on your physical hardware.

To the OP - I would personally go the live cd route, then see how you like it. I completely forgot in my last post that you are running it virtually; Definitely run it natively and post the output of the command I asked before. Most likely, it will work when it is not being ran via virtual box or whatever software that you are using.

Tinkster 07-31-2011 07:03 PM

Out of curiosity: what's the background of the request?
What do you need aircrack for?


Cheers,
Tink

corp769 07-31-2011 07:05 PM

Quote:

Originally Posted by Tinkster (Post 4430218)
Out of curiosity: what's the background of the request?
What do you need aircrack for?

Cheers,
Tink

Nothing big, he just wants to tap into your wireless internet ;)

jacopo9214 08-01-2011 05:53 AM

i've installed ubuntu in my notebook... when i type airmon-ng i found wlan0 etc. but then i have to type airodump-ng wlan0 and this is what i find:


Interface Chipset Driver

wlan0 Atheros ath9k - [phy0]
(monitor mode enabled on mon0)

root@ubuntu:/home/jac# airodump-ng wlan0
ioctl(SIOCSIWMODE) failed: Device or resource busy

ARP linktype is set to 1 (Ethernet) - expected ARPHRD_IEEE80211,
ARPHRD_IEEE80211_FULL or ARPHRD_IEEE80211_PRISM instead. Make
sure RFMON is enabled: run 'airmon-ng start wlan0 <#>'
Sysfs injection support was not found either.

so what can i do?

TobiSGD 08-01-2011 06:05 AM

Did you try it with the command the error-message suggested?

jacopo9214 08-01-2011 06:22 AM

you mean typing 'airmon-ng start wlan0 <#>'?

TobiSGD 08-01-2011 06:33 AM

Exactly.

jacopo9214 08-01-2011 06:43 AM

if i type airmon-ng start wlan0 <#> the terminal says that there is a sintax error symbol <new line>

if i type airmon-ng start wlan0 i've:


Found 4 processes that could cause trouble.
If airodump-ng, aireplay-ng or airtun-ng stops working after
a short period of time, you may want to kill (some of) them!

PID Name
830 avahi-daemon
831 NetworkManager
832 avahi-daemon
1093 wpa_supplicant


Interface Chipset Driver

wlan0 Atheros ath9k - [phy0]
(monitor mode enabled on mon0)


what does it mean?

TobiSGD 08-01-2011 06:52 AM

So, the first error-message
Quote:

Device or resource busy
stated that the device is already in use and therefore can't be used by the program you started.
The output of the second command
Quote:

Found 4 processes that could cause trouble.
If airodump-ng, aireplay-ng or airtun-ng stops working after
a short period of time, you may want to kill (some of) them!

PID Name
830 avahi-daemon
831 NetworkManager
832 avahi-daemon
1093 wpa_supplicant
shows you which programs could it be that are currently using the wireless device, so that you can try to kill them and see if it works after that. Since i don't have any knowledge how penetration testing works I am not able to say which one it may be.

corp769 08-01-2011 09:19 AM

Quote:

Originally Posted by jacopo9214 (Post 4430572)
if i type airmon-ng start wlan0 <#> the terminal says that there is a sintax error symbol <new line>

if i type airmon-ng start wlan0 i've:


Found 4 processes that could cause trouble.
If airodump-ng, aireplay-ng or airtun-ng stops working after
a short period of time, you may want to kill (some of) them!

PID Name
830 avahi-daemon
831 NetworkManager
832 avahi-daemon
1093 wpa_supplicant


Interface Chipset Driver

wlan0 Atheros ath9k - [phy0]
(monitor mode enabled on mon0)


what does it mean?

Sorry to sound like a dick, but the <#> symbolizes the channel number that you want to perform your actions upon. So instead of what you typed in, you would type in the following:
Code:

airmon-ng start wlan0 6
This will start it on channel 6. I highly suggest that you use google and learn about network devices, wireless devices, and how many channels per US specifications you have to work with.

Now second of all, take a look at the following output:
Code:

Sysfs injection support was not found either.
So even though the output from airmon-ng told you that monitor mode is possible to enable, that has nothing to do with injection because it is separate from the physical device wlan0, and mon0 is the virtual device being created. With your wireless device on, can you post the output of lsmod for us?

Cheers,

Josh

Tinkster 08-01-2011 12:29 PM

Closed for now as the OP chose to ignore my question.
jacopo9214, please contact me via e-Mail w/ an answer
to my question in thread if you want this re-opened.

Tinkster 08-02-2011 09:08 PM

The OP has assured me this for purely educational purposes,
and for use with his own WiFi router. Re-opened.

Jacopo, for future reference: if a mod asks you about
clarification, or to comply with his requests I recommend
doing so in a timely manner. Makes life easier and so
much more pleasant.

jacopo9214 08-03-2011 12:10 PM

sorry for misunderstanding, i will be better in future.

so my problem now is this: first of all, using airodump-ng wlan0 i get this message:
ARP linktype is set to 1 (Ethernet) - expected ARPHRD_IEEE802w11,
ARPHRD_IEEE80211_FULL or ARPHRD_IEEE80211_PRISM instead. Make
sure RFMON is enabled: run 'airmon-ng start wlan0 <#>'
Sysfs injection support was not found either.

if i use airodump-ng mon0 i can go on...

but when i type aireplay-ng -0 15 -a 02:26:5A:E1:22:8A -c 03:26:5A:E1:22:8A mon0
i get this message:
mon0 is on channel -1, but the AP uses channel 1


someone can help me?

corp769 08-03-2011 03:15 PM

Ahhh, THAT bug. Read my one blog about how I got my Alfa device working, it will definitely help. You need to patch chan.c if using compat-wireless, which I do recommend since you are having this problem.

Cheers,

Josh

jacopo9214 08-03-2011 05:44 PM

sorry,i'm not expert in this site.. can you post me te link of your blog please? thank you very much

corp769 08-04-2011 10:50 AM

You see my LQ handle off to the left? Click on it, then click on "View Blog."

jacopo9214 08-04-2011 02:13 PM

thanks i'll have a look!

corp769 08-04-2011 05:49 PM

No problem. Just note that you may have to manually patch chan.c; If you feel the need, I can create a new patch file. Read the updated text within my blog and write me a comment if you think I should, as it is kind of like a poll :p


All times are GMT -5. The time now is 08:01 PM.