Packet Sniffing on Android - Networking

Hi Guys,
I'm writing an Android App for my diploma and i need to find a way to sniff the traffic of an unsecured wifi network. I need the session cookies, sent by other clients in the network.
I've tried to install busybox and use '/system/xbin/ifconfig eth0 promisc' to switch into promiscuous mode, and it actually does according to the output of 'system/xbin/ifconfig eth0' but i dont receive any packets of the clients in the network, only packets from my router.
My question is, what i'm doing wrong and how can i achieve to sniff cookies from other clients.
Thx in Advance!
Joker

SoSJokerSoS said:
Hi Guys,
I'm writing an Android App for my diploma and i need to find a way to sniff the traffic of an unsecured wifi network. I need the session cookies, sent by other clients in the network.
I've tried to install busybox and use '/system/xbin/ifconfig eth0 promisc' to switch into promiscuous mode, and it actually does according to the output of 'system/xbin/ifconfig eth0' but i dont receive any packets of the clients in the network, only packets from my router.
My question is, what i'm doing wrong and how can i achieve to sniff cookies from other clients.
Thx in Advance!
Joker
Click to expand...
Click to collapse
Read some good books on sockets and tcp/ip networking I can recommend Richard Stevens. O'Reilly does have some good books on tcp/ip networking. Ask your teacher how tcp/upd packets are routed in a network.

kwbr said:
Read some good books on sockets and tcp/ip networking I can recommend Richard Stevens. O'Reilly does have some good books on tcp/ip networking. Ask your teacher how tcp/upd packets are routed in a network.
Click to expand...
Click to collapse
can we read the 802.11 header( eg..probe, ARP,) with or without root into the device using just the onboard WIFI chip-set comes with the samsung S4 or any android phone.

Related

GPRS and Static IP with VPN

HI guys,
Does anyone know how to get a static IP address when using the GPRS connection to the internet. The reason being is because our corporate firewall has to recognise the device through it's IP. Is there any other possible methods for recognising the user?
Also does a VPN work well over GPRS and is there any extra configuration involved on the VPN server
Cheers
Any answers would be great.
Unfortunately there is no simple answer to your question. AFAIK you cant get a fixed ip on gprs, but if your using the right firewall and the right vpn host you dont need to.
I use and supply windows sbs 2003 servers and vpn into them regularly. I have also used citrix to achieve similar results. Might be a bit difficult to persuade your firms it dept to set up something like that for 1 person though.
PM me if youd like any advice.
BillyB said:
HI guys,
Does anyone know how to get a static IP address when using the GPRS connection to the internet. The reason being is because our corporate firewall has to recognise the device through it's IP. Is there any other possible methods for recognising the user?
Also does a VPN work well over GPRS and is there any extra configuration involved on the VPN server
Cheers
Any answers would be great.
Click to expand...
Click to collapse
Hello Billy,
You ask a good question, but the answer isn't simple. Most carriers do have two types of APN (Access Point Name) provision for your SIM: "private" APN (which provides a non-routable IP assignment from behind a NAT, for basic browsing and e-mail functionality) and "public" APN (that provides a routable IP assignment, which is the Minimum Requirement for a more sophisticated connection type, such as VPN, etc). However, both of them are assigned by a DHCP (Dynamic Host Configuration Protocol) Server on a GGSN (Gateway GPRS Support Node) of your particular GPRS network operator. In either case, the end result will obviously be a DYNAMIC IP address on your GPRS terminal (be it a laptop PC, a PDA, or phone)
Some carriers do offer what is called a "dedicated APN" provision, which gives the subscriber their own IP range to choose from (almost like a small subnet), but it is only available to corporate giants like Pepsi (for example).
Now, to sum it up, you must have the proper APN provisioned on your Mobile SIM account (which the provider will normally call something like a "VPN data package" in billing terms). Then, you must obviously establish a GPRS session before you can connect your VPN client (but remember that most basic VPN clients work the best). It is pretty sad to say, but Microsoft Windows-embedded VPN client on Win2k/XP Pro so far has performed the best with no quirks whatsoever. It has to be via PPTP...L2TP has also worked for me..otherwise, the fancier (and more secure) the VPN tunneling protocol, the more its likely to fail. Normally all you need for a basic MS WIndows VPN client config is the Server name (or IP address), the user name, and the password.
Hope this helps,
Let me know how it goes,
Alex
PS. PM me if you have further questions.
VPN and TS Its like pulling teeth
hi all this has got to be the most anoying problem ever. i can connect to O2 vpn access point and hence i can connect to my work vpn server. however as soon as i try to open a TS connection to my desktop (through the vpn) the VPN connection is dropped and i never connect. Can anybody tell me why? if i have a vpn connection to my work server why does TS try to make another connection and bomb out the original. Is there a fix or another way of doing this i.e. does a external IP have to be nat'd to my desktop IP on port 3389? all help greatly appreciated. Ian

Connecting 2 PPC Ad-hoc

HI!
I need connect two PPCs with wifi... VPN..? How I make it?
they would need to both connect to a vpn server.
but then the question is what do you expect the devices to do with each other. neither have any server type services for the other to connect to.
it would require one or both of the pocketpc's to run a VPN server if there is such a server program for pocketpc's at all
sounds like a non starter to me.
i think a vpn server needs to dish out IP addresses.
thats just to start with.
unless you are connecting both ppc's to a vpn server
Please elaborate. Do you mean direct P2P connection (which is very easy to do - see my related articles on this), or a plain Internet / VPN-based one?
marclouis said:
i think a vpn server needs to dish out IP addresses.
thats just to start with.
Click to expand...
Click to collapse
In internet-less P2P connections, you don't need VPN either for assigned IP addresses.

Best VPN, SSH, Firewall, IP Utils

I would like to hear what everyone is using for the following
VPN - I am trying the BlueFire Client, and it seems okay
SSH - The Cambridge Util is the only one I am aware of right now
IP Utils - I am using Cambridges VxUtil. It seems okay, I have used it in the past
Firewall - ??
Terminal Svcs - Is thier a better client than the OEM ver? It seems a bit limited..
Any other Networking utils that you would recomend??
Thanks a lot..
and what about OpenVPN for PPC - looks good
http://ovpnppc.ziggurat29.com/ovpnppc-main.htm
Hello
VPN : i use openvpn pocketpc on my WM VI ... but that's not a really good solution because CommManager is not aware of this connection --> applications that connect through CommManager don't use VPN :/
SSH : http://www.pocketputty.net/
IPUtils : like you, but im looking for a route editor
Good luck
Not aware of one.
oleshep said:
I would like to hear what everyone is using for the following
VPN - I am trying the BlueFire Client, and it seems okay
SSH - The Cambridge Util is the only one I am aware of right now
IP Utils - I am using Cambridges VxUtil. It seems okay, I have used it in the past
Firewall - ??
Terminal Svcs - Is thier a better client than the OEM ver? It seems a bit limited..
Any other Networking utils that you would recomend??
Thanks a lot..
Click to expand...
Click to collapse
Do you think a Firewall app would be worth $10 bucks? I've thought of building one, since there's really no protection from WiFi or BT attacks. The GPRS/EDGE/3G should be firewalled at the carrier.
Whew I have been really busy at work and I just got back to checking this thread.. Thanks for the tips on SSH and VPN.
I got the Bluefire VPN working after a little bit of hassle. The client does not support Split Tunnel and i get a lot of frame errors on my VPN concentrator when connected but it does seem to work.
I'll have to check out the OpenVPN and the SSH clients you guys posted.
As far as firewall goes. I think it is just a matter of time before we start seeing attacks aginst devices.
A firewall would be nice but it may cause some headaches with other apps.. Also even though the carrier data nets are firewalled where they connect to the Public Internet that might not protect you from connections from other devices on the carrier network.
SSH: http://www.choung.net/mToken/
Curiosity only
TKz said:
IPUtils : like you, but im looking for a route editor
Click to expand...
Click to collapse
What would you do with the router editor?

VPN in Windows Mobile 6

Hi,
I'm currently on a HTC Trinity using Mary's 3.3.5 ROM and want to be able to connect to my universities WiFi network but to do so I need to use a VPN tunnel, anyone recommend a good PPC App that will allow me to connect to my universities VPN?
Cheers,
Mike
mikecsmith said:
Hi,
I'm currently on a HTC Trinity using Mary's 3.3.5 ROM and want to be able to connect to my universities WiFi network but to do so I need to use a VPN tunnel, anyone recommend a good PPC App that will allow me to connect to my universities VPN?
Cheers,
Mike
Click to expand...
Click to collapse
WM6 Pro includes both a PPTP & a L2TP/IPSec VPN client. This will work with most VPN routers & firewalls, however they may not be configured to support it. If you can connect using Windows 2000/XP's built-in PPTP or L2TP/IPSec VPN Client then you can almost certainly connect with WM6's.
A lot if VPN Routers & Firewalls are supplied with a 'free' Windows client that has the documentation geared around it. However most (if not all?) of these products will work with the native VPN client in Windows 2000+ (and WM5/6). I would try and stick with the L2TP/IPSec client but this requires some additional steps over setting up PPTP - on both the client & server (router). It is worth the extra steps in my opinion though.
Andy
I have the same problem ... I am not able to connect using the default VPN client ...
Hi,
There's a great review of vpn clients by Menneisyys in the Wiki. It's entitled:
'Access Your Desktop PC From Your Pocket PC!'
I'm sure you'll find it very useful because it would point you in the right direction as regards VPN tunnelling to your Uni's server.
kiwi992.
kiwi992 said:
Hi,
There's a great review of vpn clients by Menneisyys in the Wiki. It's entitled:
'Access Your Desktop PC From Your Pocket PC!'
I'm sure you'll find it very useful because it would point you in the right direction as regards VPN tunnelling to your Uni's server.
kiwi992.
Click to expand...
Click to collapse
HI!
Thank you for your reply, but this articles are about "Remote desktop" - like solutions for WM - based devises. Not for connecting to VPN.
Did anybody have had any success so far?
Any working 3-rd party VPN clients / Solutions?
Thank you in advance.
Dmitry.
====
keyword list: VPN; connection; VNP over WIFI; VPN WM5; VPN WM6; VPN problem; VPN client;
Hi,
You might find Manneisyys' review very long but if you take your time to read it, you'll see that he talks about the various VPN clients and how they compare. VNC, VNC+, etc are all mentioned there.
Just take your time to read it.
kiwi992.
Nice article, is the VPN working?
Do you have the WM6 VPN client working? Specifically the ActiveSync -> VPN -> MS Exchange functionality that was there under WM5?
kiwi992 said:
Hi,
You might find Manneisyys' review very long but if you take your time to read it, you'll see that he talks about the various VPN clients and how they compare. VNC, VNC+, etc are all mentioned there.
Just take your time to read it.
kiwi992.
Click to expand...
Click to collapse
Thank you for your answer!
But. Once again: the article talks about REMOTE CONTROL with the use of things like: RAdmin, MS RDP, etc.
This sofware - are remote desktops, so called VNC, not VPN clients in a classic way.
There is a little mess we get at the moment. (I've defenetelly got)
Let me describe in detail:
People need VPN here for many reasons, for me it is:
- to connect to some VPN through WIFI with our WM5 \ 6 device.
In my case- this is a public WIFI internet provider, which has a wifi coverage in the city.
Wifi is open PPTP. I need to type in a login \ pass on the web page I get, to start using the internet in current wifi session.
The ALTERNATIVE way to conect to internet - is to establish a VPN connection over the wifi.
I can successfully do in on the laptop.
With my UNI, WM5, AKU 3.5 - I can connect to VPN with the built-in VPN Client, but the first request to internet (via browser or Messaging send-receive) - drops my VPN connection, as it described here in the forum.
So: we need some software that can work.
I tried so far:
1. BlueFire VPN - just can't connect.
2. Antha VPN - just doesn't work.
I have heard thah on some other ROMs there is no problem with the built-in VPN client for PPTP, will try with some other WM6 ROMs later.
Any solution so far?
Thank you, kiwi992
Thanks to everybody!
Hi, im sorry for my bad english.
I have the same Problem. I search for an VPN tool. I have wm6. I know ther ist an VPN client but it doesn't work. To connect to the VPN in my University I need the L2TP/IPSec "safety andcertificate" but I don't kwon where I can load this.
thank's for helping
IronMaster1987 said:
Hi, im sorry for my bad english.
I have the same Problem. I search for an VPN tool. I have wm6. I know ther ist an VPN client but it doesn't work. To connect to the VPN in my University I need the L2TP/IPSec "safety andcertificate" but I don't kwon where I can load this.
thank's for helping
Click to expand...
Click to collapse
Hi! The L2TP/IPSec is a special story.
It is widely discussed here at forum: xda-developers > General discussion > Networking >
Search for *VPN* string on this forum.
This is the: http://forum.xda-developers.com/showthread.php?t=302520&page=2&highlight=*VPN* one of the success stories.
You need to obtain the certificate from the system administrators of your network. You may also have some "magic" URL in your campus network, where you can download the required certificate. This URL should point to the inranet web page of the web interface of the VPN server.
If your goal is to securely connect to some specific computer on the network, you should use one of the VNC programs: the VNC server part on the computer, and the VNC client on your device.
In any case - first check your certificate \ settings on, say, Windows XP laptop, connected through WIFI, first, then continue with the device.
Good luck!
Dmitry
VPN problems
I don't know if this issue is specific to my device (pharos gps 600 gps phone), or to windows mobile 6 which I'm running.
I can't connect to my vpn through wifi, the reason being is that I cannot associate any connections through the wifi card with the vpn info.
Wifi card doesn't show as a selectable modem in the modem tab next to the vpn tab in the vpn config. Only modems are cellular line modems, bluetooth, and one "hayes compatible com1" which is my usb I would guess.
Does anybody know how I might get around this?

Turn your Raspberry Pi into a OpenVPN VPN-Server

If you are in a public network, for example at university or the airport, your traffic can be recorded and decrypted. To prevent others from doing that you can send your traffic through a secured VPN-tunnel. The VPN-tunnel leads your traffic encrypted to a server which is processing your requests.
In my following tutorial you will learn how to run OpenVPN Server on your Raspberry Pi:
Turn Raspberry Pi into OpenVPN VPN-Server
r3zin said:
If you are in a public network, for example at university or the airport, your traffic can be recorded and decrypted. To prevent others from doing that you can send your traffic through a secured VPN-tunnel. The VPN-tunnel leads your traffic encrypted to a server which is processing your requests.
In my following tutorial you will learn how to run OpenVPN Server on your Raspberry Pi:
Turn Raspberry Pi into OpenVPN VPN-Server
Click to expand...
Click to collapse
Dude, Why don't we two open a blog on blogspot?
Arnav.G said:
Dude, Why don't we two open a blog on blogspot?
Click to expand...
Click to collapse
Because I already opened a blog running wordpress
If you are interested in helping me send me a PM.
r3zin said:
If you are in a public network, for example at university or the airport, your traffic can be recorded and decrypted. To prevent others from doing that you can send your traffic through a secured VPN-tunnel. The VPN-tunnel leads your traffic encrypted to a server which is processing your requests.
Click to expand...
Click to collapse
Let's say I've got a RPi at home, on my wifi network, with an internal IP (internal to my home wifi router). At work, I'm on an internal ethernet network with an internal IP. Can I tunnel my traffic from my work computer through my Pi at home, and therefore circumvent any firewall policies at work (i.e. be able to access my facebook page, for example, which is normally blocked by my IT department's security policy)?
adzidek said:
Let's say I've got a RPi at home, on my wifi network, with an internal IP (internal to my home wifi router). At work, I'm on an internal ethernet network with an internal IP. Can I tunnel my traffic from my work computer through my Pi at home, and therefore circumvent any firewall policies at work (i.e. be able to access my facebook page, for example, which is normally blocked by my IT department's security policy)?
Click to expand...
Click to collapse
Yes, this is exactly what you can do with this
r3zin said:
Yes, this is exactly what you can do with this
Click to expand...
Click to collapse
Sweet!
OK, now here's the *big* question: on a noob scale of 1 to 10 (with 1 being total NOOB and 10 being Linus Torvalds), how hard is it to get this working properly?
Would there be any way to use this as a VPN on a home network exclusively, say for torrenting or something like that, instead of having to sign up for a monthly fee VPN service?
Sent from my SCH-I605 using XDA Premium HD app
shangrila500 said:
Would there be any way to use this as a VPN on a home network exclusively, say for torrenting or something like that, instead of having to sign up for a monthly fee VPN service?
Sent from my SCH-I605 using XDA Premium HD app
Click to expand...
Click to collapse
afaik, not in that way i think you mean. Since the rasPI uses your network like computer, its very same if u just connect computer without settings connection througth rasPi.
makkeonmies said:
afaik, not in that way i think you mean. Since the rasPI uses your network like computer, its very same if u just connect computer without settings connection througth rasPi.
Click to expand...
Click to collapse
That's what I thought but it was worth a shot asking. Thanks
Sent from my SCH-I605 using XDA Premium HD app
A little late lol But cool, I'll give it a go.
shangrila500 said:
Would there be any way to use this as a VPN on a home network exclusively, say for torrenting or something like that, instead of having to sign up for a monthly fee VPN service?
Sent from my SCH-I605 using XDA Premium HD app
Click to expand...
Click to collapse
Probably wouldn't work. You use a VPN for torrenting for security and speed. On a local network, you're not masking your external IP so it wouldn't help. The RPi also doesn't offer the fastest throughput, but it might be enough to get the job done (depending on your network speed). Either way, it's probably not going to work out they way you imagine.

Categories

Resources