EvilZone
Hacking and Security => Hacking and Security => : McCloud January 28, 2015, 01:09:25 PM
-
Recently I needed to get into a protected wifi (and I took it as a good opportunity for me to finally start with Kali and penetration testing).
I have installed Kali on Virtualbox but the problem arises with the wifi adapter.
From what I understand, it is necessary to have an external USB wifi adapter with injection capabilities, in order to do any kind of wifi hacking.
My question is.. is there a way around it? I've done some research and came across this (http://www.itsupportforum.net/topic/how-can-i-connect-the-external-wifi-adapter-to-vm-on-ubuntu/) article and seems like it might be what I am looking for.
Right now, I am not in a position to buy a new piece of hardware...
Is there not a driver that I could use for this purpose? When I tried adding a USB device in Virtualbox, none of my laptop's network adapters appeared.
Thanks for suggestions.
-
Or you could just route the information through the hosts wifi?
-
No if your main wireless adapter is working for the main OS there is totally not a reason to take an external wireless USB adapter. Well I guess that you are on windows (though you should tell us the OS!).
Take a look on this : https://www.youtube.com/watch?v=oVo_zFhGe3U (https://www.youtube.com/watch?v=oVo_zFhGe3U)
Give some feedback.
-
yes, Win8.. could've mentioned that before, sorry.
The video is basically useless in this specific instance.
syntax990, I don't think just routing would work. Right now I have it set up on bridged with my host's wifi adapter, but when I run something like airmon-ng I don't see any interface.
I guess trying the Aircrack Windows version is just a waste of time?
And so would be this (http://www.maplin.co.uk/p/maplin-single-band-n150-nano-usb-network-adapter-a71lb) kind of bullshit, right?
-
I had similar problems, although never tried to access wifi through a virtual machine, which is a preferred method for a multitude of reasons. But just for the heck of it, check this out and make sure your card is or isn't on the list. http://www.aircrack-ng.org/doku.php?id=compatibility_drivers
-
I have installed Kali on Virtualbox but the problem arises with the wifi adapter.
From what I understand, it is necessary to have an external USB wifi adapter with injection capabilities, in order to do any kind of wifi hacking.
Hey, be polite!
The video is not useless based on what you said there ^ you seemed that you couldn't make the bridging the videos shows what you just did. You didn't specified any of the needed information such us " I made the bridging via the VM but Kali won't recognise the interface via airmon-ng." except if you can find the previous sentence somewhere on your first post. Next time be more specific if you would like to avoid missunderstandings.
Now probably Kali won't detect your hardware (wifi adapter) properly, cause it is lacking the specific drivers.
Here is some fast steps that will make it happen.
Run this on your terminal as root:
lspci -nn | grep Network;
Get the name of the card and then google this:
Debian official drivers for <paste the results you got from the previous command(the adapters name)>
This will give you the package's name for the wanted hardware, then either install it via apt suite(suggested) like this:
apt-get install <package name>
Or if for some reason the previous one won't work download the package from the page and install it like this:
dpkg -i <path to the package>
Give some feedback, if it worked or not.
-
ok, thanks a lot for the suggestions.
I'll look into it tomorrow and will edit this post (as I won't have internet anymore in like 5 minutes - that's why I need to crack neighbors wifi :P )
-
syntax990, I don't think just routing would work. Right now I have it set up on bridged with my host's wifi adapter, but when I run something like airmon-ng I don't see any interface.
Open your virtual box settings and go to networking. Their will be a tab called adapter 1. I'll assume your VM has internet access anyway and this is probably why.
The issue with your mon0 interface is probably because it does not have it's own interface via adapter 2. Just a hunch but check it out anyway?
-
No, No, and No. There is NO way to use the built in wifi adapter of the host to hack wifi from a VM. You can "use" it for say by running bridged mode or NAT to get internet access, but the VM is still technically connected via ethernet. This is why 'airmon-ng' shows nothing.
You must have an external wifi adapter.
I can confirm. I literally have a laptop setup like this for reasons involving stuff. Windows 7 laptop with a linux VM. Absolutely 100% have to use an external adapter in order for the virtualbox VM to do injection stuff. This is because the virtualbox drivers are simply not built for host adapter pass through, but is built for USB pass through.
-
Now when it seems confirmed that virtualbox+internal wifi is not going to work in this case, why not liveboot kali and try that way to do what ever you are going to do. Have you checked if your internal wifi adapter even supports monitor mode?
-
Now when it seems confirmed that virtualbox+internal wifi is not going to work in this case, why not liveboot kali and try that way to do what ever you are going to do. Have you checked if your internal wifi adapter even supports monitor mode?
ye, I thought about that option too.. but I never liked live-booted things. Idk why really.
My wifi adapter is Ralink RT3290 802.11bgn Wi-Fi Adapter which according to the link above from Shome should be supported.
Open your virtual box settings and go to networking. Their will be a tab called adapter 1. I'll assume your VM has internet access anyway and this is probably why.
The issue with your mon0 interface is probably because it does not have it's own interface via adapter 2. Just a hunch but check it out anyway?
Do you think this (http://www.amazon.co.uk/gp/product/B00FV5S3X0/ref=pd_lpo_sbs_dp_ss_2?pf_rd_p=569136327&pf_rd_s=lpo-top-stripe&pf_rd_t=201&pf_rd_i=B000W4CXCM&pf_rd_m=A3P5ROKL5A1OLE&pf_rd_r=12TMP3HB8A4QNK3H9ZRV) would suffice? Ralink should be supported on Linux (I am not sure if the fact that it runs on VM makes any difference here).
madf0x do you use a more expensive card? Would you recommend the above one? (link)
I will need to do some more reading, just to make sure it's compatible...
-
No, No, and No. There is NO way to use the built in wifi adapter of the host to hack wifi from a VM. You can "use" it for say by running bridged mode or NAT to get internet access, but the VM is still technically connected via ethernet. This is why 'airmon-ng' shows nothing.
You must have an external wifi adapter.
I can confirm. I literally have a laptop setup like this for reasons involving stuff. Windows 7 laptop with a linux VM. Absolutely 100% have to use an external adapter in order for the virtualbox VM to do injection stuff. This is because the virtualbox drivers are simply not built for host adapter pass through, but is built for USB pass through.
Ohhh, I wasn't aware this detail. I was thinking that the wifi won't work at all on the Kali, if its about airmon-ng just pardon me... I never used it via a VM, as its kinda silly imo(for aircrack-ng). As gray-fox said, run it on live-boot and do the job more properly.
Don't forget to add this parameter:
--ignore-negative-one
When its needed, otherwise most of the commands, will not run properly or at all(airodump-ng, aireplay-ng).
If I am not mistaken this bug still remains.
-
ye, I thought about that option too.. but I never liked live-booted things. Idk why really.
My wifi adapter is Ralink RT3290 802.11bgn Wi-Fi Adapter which according to the link above from Shome should be supported.
Do you think this (http://www.amazon.co.uk/gp/product/B00FV5S3X0/ref=pd_lpo_sbs_dp_ss_2?pf_rd_p=569136327&pf_rd_s=lpo-top-stripe&pf_rd_t=201&pf_rd_i=B000W4CXCM&pf_rd_m=A3P5ROKL5A1OLE&pf_rd_r=12TMP3HB8A4QNK3H9ZRV) would suffice? Ralink should be supported on Linux (I am not sure if the fact that it runs on VM makes any difference here).
madf0x do you use a more expensive card? Would you recommend the above one? (link)
I will need to do some more reading, just to make sure it's compatible...
I find that nowadays most cards are supported unless youre working with something strange. I have an alfa card that works fairly well, but Im not using it for anything heavy duty really.
I'd say stick with a live boot, or grab some other linux distro and dual boot it, then build up your own toolbox for playing with stuff.
-
ok, so I successfully did a live boot. This time, it recognized the wlan0 interface, but I had no connection to the internet.
I also couldn't see any of the wifi connections.
This is what I got..
-
Are you saying you can't connect to internet as seperate issue? If so, for that if i remember right:
nano /etc/NetworkManager/NetworkManager.conf
Change false to true, then:
service network-manager restart
For the actual "problem", is your interface(wlan0) in monitor mode and if it is are you using right interface with airodump(isn't that in your picture)? propably named mon0 or something like that. I suggest you start reading some tuts and if you have, read some more.[emoji14]
-
you're right. I only have one wifi adapter (wlan0) and the screen is taken from airodump on mon0.
And ye, I am trying to do some intensive reading on this stuff right now..
Sorry about the pic.
// Just an update...strangely enough, the second time I ran Kali, the networking worked fine and I was able to see the wifi connections.Didn't have to do any tweaking.
First time reaver ran successfully for some time.. but now, whenever I run it I always get this error:
Failed to associate with XX:XX:XX:XX:XX:XX (ESSID: name)
Perhaps the signal is not strong enough? (-80 dB).. or there's something wrong with my network adapter?I'll need to do some more research on this.
Seems to be much more problematic than I though it would be :D
-
I remember when Kali was the cute innocent girl in class; always too afraid to raise her hand let alone answer the hard questions. It's a good thing she came out of her shell in around 11th grade - how else would I have ever discovered I could fit my big dick into her tight throat? Man, that girl can blow.
This is all of course metaphorical.
-
hmm.. very interesting analogy. But I am afraid I didn't quite grasp the meaning.
Perhaps another sign that I am still new in the 'hacking business'.
-
Don't forget to add this parameter:
--ignore-negative-one
When its needed, otherwise most of the commands, will not run properly or at all(airodump-ng, aireplay-ng).
If I am not mistaken this bug still remains.
L0aD1nG, is this in reference to when using airodump-ng and the Hosts are not associating with the BSSID?
Also, I do have to agree, there is no way to make a built-in adapter to initiate the commands to set the wifi adapter into monitor mode. Hardware alteration is not possible through a VM.
Here is a link for the best adapters to use for Kali: http://www.wirelesshack.org/top-kali-linux-compatible-wireless-usb-adapters-2014.html
Happy Hacking!
-
L0aD1nG, is this in reference to when using airodump-ng and the Hosts are not associating with the BSSID?
This is to fix the the bug of:
fixed channel mon0: -1
Which appears.
This will appear both on airodump-ng and aireplay-ng, and aireplay-ng commands won't even work properly without this parameter.
-
If i remember correctly you can't browse the internet, nor do any other "normal" network-related activity, while your adapetr is in monitor mode ...
-
L0aD1nG, thank you for clearing up that bug, will definitely help!
doppiamunnezza, That is correct, with monitor mode enabled you are unable to browse the internet. You are setup to capture "most" packets. Not to send any back out. (Unless Deauthing)
-
If i remember correctly you can't browse the internet, nor do any other "normal" network-related activity, while your adapetr is in monitor mode ...
You can, but if you do that:
1. You won't be able to change your mac while doing the job, or even if you change it its time you will connect on some network it will return to your official.
2. You won't be able to scan all the channels, you will just make scans on your own channel(the channel on which the network you will be connected will be set to listen to).
3. You won't be able to use some of the injection techiques with aireplay-ng (if I remember correctly).
Generally it is a terrible idea, if you would like to be "invisible" you should just make the job with the aircrack-ng suite and then do all the other things that you have in mind.
L0aD1nG, thank you for clearing up that bug, will definitely help!
doppiamunnezza, That is correct, with monitor mode enabled you are unable to browse the internet. You are setup to capture "most" packets. Not to send any back out. (Unless Deauthing)
You are welcome, and no you are able to browse the internet as I said already. It is just a terrible idea. And you will loose many abilities, well now if you are already scanning a specific network... Scanning process may face problems cause it might will be set up to listen on different channel (than the network that you will be connected to browse the internet).
I have done this sometimes on couple of my buddies houses, when we were "borrowing" internet to listen to music and it was lagging due to some other people on the neighboorhood which were also "borrowing" the same internet. So I massively DEauth them with a script over and over again in a frequency of like 20-30 seconds. The lag disappeared and we were listen to music properly then.
BUT as I already said, this is a bad idea... you should not do that like this! Those buddies wouldn't care for revealing there MACs even though I warned them and also the danger is kinda low on a country like mine... well we really were in need to listen music properly too...
The non-typical rules of aircrack-ng suite usage is:
1. To not be connected on any network, while you are using it.
2. To change your MAC address before doing anything, even before setting your card on monitor mode.
On Kali Linux macchanger should be pre-installed so:
ifconfig <interface> down;
macchanger -r <interface>;
ifconfig <interface> up;
Then do what you wish...