Blizzhackers

Return of the Jedi

* Login   * Register    * FAQ    * Search

Join us on IRC: #bh@irc.synirc.net (or Mibbit Web IRC)


MuleFactory


It is currently Mon May 20, 2013 12:22 am


All times are UTC [ DST ]





Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Capturing packets without recv/send hook
PostPosted: Mon Mar 12, 2012 5:33 pm 
 
User
User

Joined: Tue Oct 27, 2009 9:04 pm
Hi guys,

what options do i have to caputer packets from a certain process beside hooking the network functions of the process?

I tried to use WinPCap but at the moment i have an usb modem which is not supported by winpcap.

Any other options?

Top
 Profile  
 Post subject: Re: Capturing packets without recv/send hook
PostPosted: Tue Mar 13, 2012 6:02 am 
 
User Gold
User Gold
User avatar

Joined: Wed Sep 22, 2004 11:55 pm
Location: The Wired
If you only want to capture packets, then you can just fire up Wireshark, do your thing, and then save out the capture.

Or if you need to do realtime packet capturing, then you have a few options:
Write a Winsock LSP (layered service provider) to do your capturing in software at the Winsock-level
Write a driver that interfaces with NDIS and do your capturing at the driver-level
Buy a hardware packet capturing device (pricey)

Or just use a send/recv hook. There's loads of fun methods of getting that working. By the way, what's your goal in doing this packet capturing?

_________________
Image
Lewis Carroll wrote:
Still she haunts me, phantom-wise, Alice moving under skies; Never seen by waking eyes...
Name origins

Top
 Profile  
 Post subject: Re: Capturing packets without recv/send hook
PostPosted: Tue Mar 13, 2012 1:11 pm 
 
User
User

Joined: Tue Oct 27, 2009 9:04 pm
I was just curious if there is another way to obtain the packet stream of a process.
Because when i try to capture packets with WPE Pro it doesnt catch the diablo 3 login packets. (WPE Pro hooks recv/send/sendto/recvfrom afaik). Maybe they load some kind of login module for the login process which isnt affected by the hook?


Sadly Wireshark uses WinPcap and so even wireshark doesnt work on my internet connection. It cannot find the USB modem.

Top
 Profile  
 Post subject: Re: Capturing packets without recv/send hook
PostPosted: Wed Mar 14, 2012 6:03 am 
 
User Gold
User Gold
User avatar

Joined: Wed Sep 22, 2004 11:55 pm
Location: The Wired
Why are you trying to capture the D3 login packets? I think that the packet format for those is already documented somewhere.

_________________
Image
Lewis Carroll wrote:
Still she haunts me, phantom-wise, Alice moving under skies; Never seen by waking eyes...
Name origins

Top
 Profile  
 Post subject: Re: Capturing packets without recv/send hook
PostPosted: Wed Mar 14, 2012 6:27 am 
 
User
User

Joined: Tue Oct 27, 2009 9:04 pm
Yes i know, i was just curious why the packets didnt show up on WPE Pro and if there is another possibility to capture them.

Top
 Profile  
 Post subject: Re: Capturing packets without recv/send hook
PostPosted: Thu Mar 15, 2012 1:25 pm 
 
Half Moderator
Half Moderator
User avatar

Joined: Tue Jul 23, 2002 1:43 pm
Location: gone
Run d3 in a vm with bridged network and capture the traffic from host to vm if you want to use wireshark with usb modem. (I think will work) does your usb modem not add a network device?

_________________
the best thing that's happened to bh

Top
 Profile  
 Post subject: Re: Capturing packets without recv/send hook
PostPosted: Thu Mar 15, 2012 6:31 pm 
 
Section Leader Gold
Section Leader Gold
User avatar

Joined: Fri Sep 20, 2002 2:38 am
Location: ٩(͡๏̯͡๏)۶0x3CC4E7C0 CHATSUBO
Try it in a Windows XP environment. I believe WinPcap has some limited functionality with certain PPP device capturing on x86 XP. I think it will translate it to some pseudo-ethernet dealio or something. Try Microsoft NetMon, too. It couldn't hurt. Otherwise, what DG2 said. Personally, I think a hardware sniffer is a good investment if you have the means to utilize it. I find mine useful.

_________________
[23:04] <~Cthanukah> DM is my khaleesi. || [01:28:49] <~Cthanukah> They put their dicks in butts
DM, the DECEPTION - Lies within a lie within a lie. “Just a second-rate Snarg living in a third-rate Blizzhackers.”
Image Image
Image Image Image Image

Image

Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


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

Search for:
Jump to:  
cron