User avatar
flipjargendy
Posts: 13
Joined: Wed May 01, 2013 2:08 pm
Location: Minnesota, United States
Contact: Website

Nano Wifi Dongle (Packet Injection)

Mon May 06, 2013 3:24 am

I just gave my old Toughbook away to a friend (it's his first computer [he's old]) and am looking for a wifi dongle that would be usable with the RPi that is capable of packet injection. I'm starting out with some basics to get the feel of how this all works.

Since I just received my RPi and I'm new here, I was hoping someone could give me some direction. I'm not sure how well it handles USB wifi dongles yet. Are there any compatibility issues I need to worry about or can I just get any USB wifi dongle out there?

timmoore46
Posts: 266
Joined: Tue Jul 17, 2012 4:36 pm

Re: Nano Wifi Dongle (Packet Injection)

Mon May 06, 2013 11:00 am

Know nothing of Packet Injection but this might help:-

Total easy fix for getting a WiFi Dongle to work here !

As Dongles cost less than a fiver, changing to dongle that works out of box makes sense !

viewtopic.php?f=63&t=37799&p=314524#p314524

also

http://cgi.ebay.co.uk/ws/eBayISAPI.dll? ... OU:GB:3160

(the easy fix is even linked into the listing.)

:D :D :D

Tim

DirkS
Posts: 10347
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Nano Wifi Dongle (Packet Injection)

Mon May 06, 2013 11:02 am

Tim,

Your links don't work...

pjc123
Posts: 922
Joined: Thu Mar 29, 2012 3:37 pm
Contact: Website

Re: Nano Wifi Dongle (Packet Injection)

Mon May 06, 2013 11:30 am

I have the TP-Link TL-WN722N on my pi and it works with packet injection. It also has a removable antenna which allows you to wire an external remote higher gain antenna.

If that is not what you are looking for, look at the various sites/forums for what works:

http://www.backtrack-linux.org/

http://www.kali.org/

http://www.aircrack-ng.org/index.html

etc., and compare it to works on the pi here:

http://elinux.org/RPi_VerifiedPeripherals
My Raspberry Pi Project Page:

https://www.flaminghellmet.com/launch/

User avatar
flipjargendy
Posts: 13
Joined: Wed May 01, 2013 2:08 pm
Location: Minnesota, United States
Contact: Website

Re: Nano Wifi Dongle (Packet Injection)

Mon May 06, 2013 4:14 pm

Thanks for the replies! All super helpful!

pjc123, I was thinking of going with a Nano dongle but the one you mentioned is in my price range and probably going to be better for what I want to use it for.

* I forgot that aircrack provides resources on this subject!

pjc123
Posts: 922
Joined: Thu Mar 29, 2012 3:37 pm
Contact: Website

Re: Nano Wifi Dongle (Packet Injection)

Mon May 06, 2013 4:32 pm

flipjargendy wrote:Thanks for the replies! All super helpful!

pjc123, I was thinking of going with a Nano dongle but the one you mentioned is in my price range and probably going to be better for what I want to use it for.

* I forgot that aircrack provides resources on this subject!
Oops, I didn't see the nano in the title of your post. The TP-Link is quite a bit bigger, but has unbelievably good reception (It is advertised as a high gain wifi device). Since you just received your pi, I am assuming it is a Model B Rev 2 board and therefore TP-Link will work out of the box with that. Raspbian Wheezy has the drivers built in, and the simplest way to get it working is with the wicd gui wifi setup program. The Rev 1 board requires that the TP-Link be powered by both USB ports with a Y splitter cable or with the USB fuses removed because it draws too much current.

There are a couple issues with the TP-Link however:

1) With the Rev2 board, sometimes it does not get an ip address at boot, so I added a script to check after boot and it resets the device. I did not have that problem with the Rev 1 board so I suspect it is something like the boot speed that is not giving it time to set up properly, as the Rev2 running Raspbian Wheezy is much faster booting and running than the Rev 1 with Soft-float Wheezy.

2) I ran a test someone posted, and I am seeing high packet loss at higher bandwidths between two of these TP-Links, but I have no way of knowing whether it is one or more of the TP-Links or my router, as I don't have a different model router or other wifi dongles to test.

Neither of these issues are noticeable when running the pi, so I am happy with it.
My Raspberry Pi Project Page:

https://www.flaminghellmet.com/launch/

User avatar
flipjargendy
Posts: 13
Joined: Wed May 01, 2013 2:08 pm
Location: Minnesota, United States
Contact: Website

Re: Nano Wifi Dongle (Packet Injection)

Mon May 06, 2013 11:52 pm

Oops, I didn't see the nano in the title of your post. The TP-Link is quite a bit bigger...
That's okay. At least I know of one that is capable of this. If anyone else knows of a Nano Wifi Dongle that is capable of packet injection, please post it! :D

timmoore46
Posts: 266
Joined: Tue Jul 17, 2012 4:36 pm

Re: Nano Wifi Dongle (Packet Injection)

Mon May 27, 2013 9:57 am

Instructions on how to get the USB Nano WiFi dongle to work:-


Correcting an error in a link. (Just for the record.

Quote:-


I just followed some tips on how to do this and worked first time !

1_ get the 9th Feb 2013 raspbian any way you can.

2_ sudo apt-get update

3_ sudo apt-get upgrade ignoring any error messages

4_ startx

5_ Find WiFi Config ikon and click on it

6_ make sure the USB adapter is plugged in (the one recommended in the quote.

7_ bottom right of the wpa_gui window is scan, click on that

8_ the available wifi networks should show up

9_ after that I found a configuration screen and enter my password thing and clicked on connect !

10_ it got hazy now as I was so exited ! All I had was the password to enter and put it in a box marked PSK and that was that !

11_ I could ssh to it from another computer on the same WiFi network with ssh -l (lowercase L) pi 192.168.1.106 (found this out from ifconfig )

all done and dusted thanks to exartemarte !

What a wonderful Forum !

A very very very happy,

:D :D :D :D :D :D

Tim

pjc123
Posts: 922
Joined: Thu Mar 29, 2012 3:37 pm
Contact: Website

Re: Nano Wifi Dongle (Packet Injection)

Mon May 27, 2013 11:32 am

timmoore46 wrote:Instructions on how to get the USB Nano WiFi dongle to work:-
What does this have to do with packet injection? You really should have started a new post.
My Raspberry Pi Project Page:

https://www.flaminghellmet.com/launch/

timmoore46
Posts: 266
Joined: Tue Jul 17, 2012 4:36 pm

Re: Nano Wifi Dongle (Packet Injection)

Mon May 27, 2013 11:54 am

Getting the dongle to work in the first place, gives confidence to get to more advanced techniques was the reason I posted it.

If the dongle doesn't work........

Tim

pjc123
Posts: 922
Joined: Thu Mar 29, 2012 3:37 pm
Contact: Website

Re: Nano Wifi Dongle (Packet Injection)

Mon May 27, 2013 12:25 pm

timmoore46 wrote:Getting the dongle to work in the first place, gives confidence to get to more advanced techniques was the reason I posted it.

If the dongle doesn't work........

Tim
I actually stand corrected, as I re-read the original post and the OP was asking about both issues. The title of the post makes you think otherwise.
My Raspberry Pi Project Page:

https://www.flaminghellmet.com/launch/

bozza
Posts: 8
Joined: Tue Oct 15, 2013 10:49 pm

Re: Nano Wifi Dongle (Packet Injection)

Tue Oct 15, 2013 10:55 pm

Hi pjc123,

I am considering getting this USB stick. You mentioned that sometimes the stick doesn't get an IP address while booting. Does this problem still persist?

Could you share your script to turn the stick on manually?

pjc123
Posts: 922
Joined: Thu Mar 29, 2012 3:37 pm
Contact: Website

Re: Nano Wifi Dongle (Packet Injection)

Wed Oct 16, 2013 10:35 am

bozza wrote:Hi pjc123,

I am considering getting this USB stick. You mentioned that sometimes the stick doesn't get an IP address while booting. Does this problem still persist?

Could you share your script to turn the stick on manually?
Yes, it still has the issue, but the script fixes it. Actually the script resets the interface automatically, not manually. Although, to do it manually all you have to do is run the ifdown command followed by the ifup command from the script to do it manually. I posted the script a couple of times on this forum but I don't know where it is at the moment; search my threads for it.

EDIT: Here:

http://www.raspberrypi.org/phpBB3/viewt ... 4&start=25
My Raspberry Pi Project Page:

https://www.flaminghellmet.com/launch/

bozza
Posts: 8
Joined: Tue Oct 15, 2013 10:49 pm

Re: Nano Wifi Dongle (Packet Injection)

Wed Oct 16, 2013 1:15 pm

pjc123 wrote:
bozza wrote:Hi pjc123,

I am considering getting this USB stick. You mentioned that sometimes the stick doesn't get an IP address while booting. Does this problem still persist?

Could you share your script to turn the stick on manually?
Yes, it still has the issue, but the script fixes it. Actually the script resets the interface automatically, not manually. Although, to do it manually all you have to do is run the ifdown command followed by the ifup command from the script to do it manually. I posted the script a couple of times on this forum but I don't know where it is at the moment; search my threads for it.

EDIT: Here:

http://www.raspberrypi.org/phpBB3/viewt ... 4&start=25
Wow, thanks for the super quick reply pjc123!

Would the script have to be run only at boot? Some people, on the thread you linked to, are talking about running the script in an infite loop which pauses for 2 minutes.

One of my uses for this stick would be a mini router I would like to build. Would the ping ip method still apply if I boot my raspberry pi in AP mode?

pjc123
Posts: 922
Joined: Thu Mar 29, 2012 3:37 pm
Contact: Website

Re: Nano Wifi Dongle (Packet Injection)

Wed Oct 16, 2013 1:49 pm

bozza wrote:
pjc123 wrote:
bozza wrote:Hi pjc123,

I am considering getting this USB stick. You mentioned that sometimes the stick doesn't get an IP address while booting. Does this problem still persist?

Could you share your script to turn the stick on manually?
Yes, it still has the issue, but the script fixes it. Actually the script resets the interface automatically, not manually. Although, to do it manually all you have to do is run the ifdown command followed by the ifup command from the script to do it manually. I posted the script a couple of times on this forum but I don't know where it is at the moment; search my threads for it.

EDIT: Here:

http://www.raspberrypi.org/phpBB3/viewt ... 4&start=25
Wow, thanks for the super quick reply pjc123!

Would the script have to be run only at boot? Some people, on the thread you linked to, are talking about running the script in an infite loop which pauses for 2 minutes.

One of my uses for this stick would be a mini router I would like to build. Would the ping ip method still apply if I boot my raspberry pi in AP mode?
The. cron in my instructions runs it as often as you like.
My Raspberry Pi Project Page:

https://www.flaminghellmet.com/launch/

kupi
Posts: 3
Joined: Sat Dec 20, 2014 5:18 am

Re: Nano Wifi Dongle (Packet Injection)

Sat Dec 20, 2014 5:53 am

hi pjc123, i see some peoples have problems with kali on RP. I just red that 1.0.0 kali work but newer don't work. I'm looking to do packet injection with this wifi tplink dongle and RP. Can you advice me which version of kali (if you used this to test packets injection), and RP you use ?

when you said
I am seeing high packet loss at higher bandwidths between two of these TP-Links
, what do you means on higher bandwiths, in term of 2.4ghz band ? so one some channel the packet injection seems to not really work ?

thanks for your help

Return to “General discussion”