forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

psp based mitm sniffer

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
dowload



Joined: 10 Sep 2007
Posts: 3

PostPosted: Mon Sep 10, 2007 10:46 am    Post subject: psp based mitm sniffer Reply with quote

I posted this on some other forums and was told to check here.
Would it be possible to write a non-promiscuous mode sniffer for the
PSP that simply captures all incoming packets, ie: intercept all incoming
pings.
Also, is it possible to craft ARP packets on the PSP?
My idea was to write a sniffer that uses ARP cache poisoning to create
a Man-In-The-Middle condition which would allow one to sniff packets
without using promiscuous mode.
Here is a link to the code I have written so far: http://intercon.ifastnet.com/files/main.c
And here is the sniffer it was based on:
http://hacktivist.net/index.php?page=scripts&action=view&scripts=41
Unfortunately, it is not capturing the incoming packets.
I have been looking up the sceIoIoctl function to see if this would help.
Does anyone know what I should try?

--download
Back to top
View user's profile Send private message
califrag



Joined: 04 Apr 2007
Posts: 30

PostPosted: Tue Sep 11, 2007 7:14 pm    Post subject: Reply with quote

well i don't know anything about what you've posted above, BUT, here's something you can look into...

take a look at psputility_netparam.h

would it be possible make a call to

sceUtilitySetNetParam(int param, const void *val)

and pass PSP_NETPARAM_WEPKEY

I'm thinking you could generate WEP keys and brute force it until it connects... though there is no telling how long it may take to crack the WEP key. but I know the source for some key crackers are available (aircrack -ng)

let me know if you make any progress, interested in this myself!

just a thought
Back to top
View user's profile Send private message
dowload



Joined: 10 Sep 2007
Posts: 3

PostPosted: Wed Sep 12, 2007 2:26 pm    Post subject: Reply with quote

no, I meant to capture packets once already connected to the network,
not try to brute force WEP. That would be theoretically possible, but would
take an inordinate amount of time.
Back to top
View user's profile Send private message
Viper8896



Joined: 26 Jan 2006
Posts: 110

PostPosted: Wed Sep 12, 2007 2:58 pm    Post subject: Reply with quote

It would be great as a tool that worked as a team with another computer connected through the usb so the psp just does the capturing while the high performance computer does the cracking
Back to top
View user's profile Send private message
dowload



Joined: 10 Sep 2007
Posts: 3

PostPosted: Wed Sep 12, 2007 5:33 pm    Post subject: Reply with quote

It doesn't need to crack anything!
It's just sopposed to capture already incoming packets.
For example: you ping the PSP and those ICMP echo request
packets show up in the sniffer logs.
THIS HAS NOTHING TO DO WITH WEP CRACKING!
Back to top
View user's profile Send private message
mojojojo



Joined: 01 Jan 2007
Posts: 33

PostPosted: Sun Sep 16, 2007 3:59 am    Post subject: Libertas! Reply with quote

dowload wrote:
It doesn't need to crack anything!
It's just sopposed to capture already incoming packets.
For example: you ping the PSP and those ICMP echo request
packets show up in the sniffer logs.
THIS HAS NOTHING TO DO WITH WEP CRACKING!


I've been looking for a libpcap like sniffer capability for the PSP myself. (As a user, not a coder)

From my research, it seems like the stopping block is the wireless NIC technology they used. There are no obvious hooks into the low-level capabilities of the NIC.

http://jylam.info/psp/dev.html wrote:


PSP uses two chips for wifi stuff :

* Marvell Libertas 88W8010 - RF Transceiver
* Marvell Libertas 88W8380 - ARM9 Processor


It handles 802.11b and g (11 and 54Mbps), WEP and AES encryption (not sure for AES).

Unfortunately, there is no GPL'd Linux driver for this. A big problem, I've absolutely no experience in wlan drivers coding, and it seems Marvell released no documentation at all about its chip.x



If you've got driver/linux kung fu ... you can try here http://wiki.laptop.org/go/Libertas ...

Scroll down to links with some projects to reverse engineer libertas for various devices. I've looked at some of it but it is way out of my league.
Back to top
View user's profile Send private message
Viper8896



Joined: 26 Jan 2006
Posts: 110

PostPosted: Sun Sep 16, 2007 8:02 pm    Post subject: Re: Libertas! Reply with quote

mojojojo wrote:

http://jylam.info/psp/dev.html wrote:

...It handles 802.11b and g (11 and 54Mbps)...



g/54Mbps?? erm don't think so.
Back to top
View user's profile Send private message
adrahil



Joined: 16 Mar 2006
Posts: 277

PostPosted: Sun Sep 16, 2007 8:39 pm    Post subject: Reply with quote

The Marvell card the PSP got does :) But of course SCE are too cheap to extend their WLAN FW ;)
Back to top
View user's profile Send private message
Viper8896



Joined: 26 Jan 2006
Posts: 110

PostPosted: Sun Sep 16, 2007 11:08 pm    Post subject: Reply with quote

adrahil wrote:
...SCE are too cheap to extend their WLAN FW ;)


is that the same fw as in
a. psp fw 3.52
or
b. something built on the wlan

if the answer is b is it writable and could it be a possibility it a new custom fw.
Back to top
View user's profile Send private message
someone
Idiot


Joined: 13 Sep 2005
Posts: 74

PostPosted: Mon Sep 24, 2007 10:54 am    Post subject: Reply with quote

I believe that the Libertas ARM9/ARM7 combo with its own flash chip and a JTAG port is able to do a lot of nice stuff not already implemented.

But without specs or code written, it will be very hard to implement it.
Back to top
View user's profile Send private message
tabularasa



Joined: 22 Nov 2006
Posts: 13

PostPosted: Mon Oct 08, 2007 6:53 pm    Post subject: Re: psp based mitm sniffer Reply with quote

dowload wrote:

Here is a link to the code I have written so far: http://intercon.ifastnet.com/files/main.c


Hm doesn't really work for me that URL. But i like the idea of a working psp sniffer. More to come?

Edit:
Hm. Are there any other ways to hijack wifi connections more low level based than on ARP spoofing? I'm not that familiar with wifi so ...
http://monkey.org/~dugsong/dsniff/ should be a good starting point regarding arp spoofed packets. Maybe i got some more time later on to check code and try to figure out some things.
Back to top
View user's profile Send private message
tabularasa



Joined: 22 Nov 2006
Posts: 13

PostPosted: Tue Oct 09, 2007 1:47 am    Post subject: Reply with quote

Hm. Unforunately when i try to send something over raw socket i get the errno error #121 = Remote I/O error.
My arp packet looks something like that:
Code:
/*
    router: 192.168.2.1   (00:03:C9:A8:70:D5)
    laptop: 192.168.2.155 (00:01:36:0E:21:8E)
    psp:    192.168.2.102 (00:01:4A:A8:D8:18)
*/

const char atob[] = "\x00\x01\x36\x0E\x21\x8E" /* address to spoof (laptop)*/
                    "\x00\x01\x4a\xa8\xd8\x18" /* myself (psp) */
                    "\x08\x06"                 /* type: ARP */
                    "\x00\01"                  /* hardware type: ethernet */
                    "\x08\x00"                 /* prot. type: IP */
                    "\x06"                     /* hardware size: 6 */
                    "\x04"                     /* prot. size: 4 */
                    "\x00\x02"                 /* Opcode: reply */
                    "\x00\x01\x4a\xa8\xd8\x18" /* sender mac address (psp) */
                    "\xc0\xa8\x02\x01"         /* sender ip address (router) */
                    "\x00\x01\x36\x0E\x21\x8e" /* target mac address (laptop) */
                    "\xc0\xa8\x02\x9b";        /* target ip address (laptop) */

const char btoa[] = "\x00\x03\xc9\xa8\x70\xd5" /* address to spoof (router) */
                    "\x00\x01\x4a\xa8\xd8\x18" /* myself (psp) */
                    "\x08\x06"                 /* type: ARP */
                    "\x00\01"                  /* hardware type: ethernet */
                    "\x08\x00"                 /* prot. type: IP */
                    "\x06"                     /* hardware size: 6 */
                    "\x04"                     /* prot. size: 4 */
                    "\x00\x02"                 /* Opcode: reply */
                    "\x00\x01\x4a\xa8\xd8\x18" /* sender mac address (psp) */
                    "\xc0\xa8\x02\x9b"         /* sender ip address (laptop) */
                    "\x00\x03\xc9\xa8\x70\xd5" /* target mac address (router) */
                    "\xc0\xa8\x02\x01";        /* target ip address (router) */
Back to top
View user's profile Send private message
Gaby_64



Joined: 19 Dec 2008
Posts: 33

PostPosted: Thu Jan 15, 2009 9:53 am    Post subject: No one working on this anymore Reply with quote

Quote:
I posted this on some other forums and was told to check here.
Would it be possible to write a non-promiscuous mode sniffer for the
PSP that simply captures all incoming packets, ie: intercept all incoming
pings.
Also, is it possible to craft ARP packets on the PSP?
My idea was to write a sniffer that uses ARP cache poisoning to create
a Man-In-The-Middle condition which would allow one to sniff packets
without using promiscuous mode.
Here is a link to the code I have written so far: http://intercon.ifastnet.com/files/main.c
And here is the sniffer it was based on:
http://hacktivist.net/index.php?page=scripts&action=view&scripts=41
Unfortunately, it is not capturing the incoming packets.
I have been looking up the sceIoIoctl function to see if this would help.
Does anyone know what I should try?


The links dont work, does anyone know what was the sniffer he used
This technic is very much possible on psp to capture packets and hopefuly dump them into a cap file
Back to top
View user's profile Send private message
Wally



Joined: 26 Sep 2005
Posts: 672

PostPosted: Thu Jan 15, 2009 12:22 pm    Post subject: Re: No one working on this anymore Reply with quote

Gaby_64 wrote:
Quote:
I posted this on some other forums and was told to check here.
Would it be possible to write a non-promiscuous mode sniffer for the
PSP that simply captures all incoming packets, ie: intercept all incoming
pings.
Also, is it possible to craft ARP packets on the PSP?
My idea was to write a sniffer that uses ARP cache poisoning to create
a Man-In-The-Middle condition which would allow one to sniff packets
without using promiscuous mode.
Here is a link to the code I have written so far: http://intercon.ifastnet.com/files/main.c
And here is the sniffer it was based on:
http://hacktivist.net/index.php?page=scripts&action=view&scripts=41
Unfortunately, it is not capturing the incoming packets.
I have been looking up the sceIoIoctl function to see if this would help.
Does anyone know what I should try?


The links dont work, does anyone know what was the sniffer he used
This technic is very much possible on psp to capture packets and hopefuly dump them into a cap file


This thread is two years old! Of course the links wont work.
No I have no idea
Back to top
View user's profile Send private message AIM Address
Gaby_64



Joined: 19 Dec 2008
Posts: 33

PostPosted: Fri Jan 16, 2009 1:01 pm    Post subject: Reply with quote

Well witch program would be the best to port that has arp spoofing capability's and captures packets

Anyway here is a link to my current progress: http://psp.wijou.com/forum/index.php?showtopic=815
Back to top
View user's profile Send private message
Gaby_64



Joined: 19 Dec 2008
Posts: 33

PostPosted: Fri Jan 30, 2009 12:23 am    Post subject: Reply with quote

Version 0.52 of my aircrack was released yesterday, its goty a working wep cap file decrypter that takes less then 10 seconds
Back to top
View user's profile Send private message
Gaby_64



Joined: 19 Dec 2008
Posts: 33

PostPosted: Sat Feb 07, 2009 12:13 pm    Post subject: Reply with quote

Well Aircrack-PSP 0.544993 was released today

Does anyone look at this, reply, im still looking for that file

the one Download made (main.c) if you look at the first post
Back to top
View user's profile Send private message
Dariusc123456



Joined: 12 Aug 2008
Posts: 394

PostPosted: Sat Feb 07, 2009 1:42 pm    Post subject: Reply with quote

Gaby,

Where the link on that site to download the latest version of Aircrack-psp?
Back to top
View user's profile Send private message AIM Address
Gaby_64



Joined: 19 Dec 2008
Posts: 33

PostPosted: Sat Feb 07, 2009 1:45 pm    Post subject: Reply with quote

here: http://psp.wijou.com/forum/index.php?showtopic=815
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group