how to capture network packets with Python 3 under Windows

This is the place for queries that don't fit in any of the other categories.

how to capture network packets with Python 3 under Windows

Postby tbaror » Thu Aug 29, 2013 7:00 pm

Hello All

I need to write a utility that will control winpcap under Windows 7 using Pyhton 3.x So i can control which interface stop start capture and dump to file.

It will be most appreciated if someone could suggest me what library to use

Please advice

Thanks
tbaror
 
Posts: 10
Joined: Sun Jul 07, 2013 8:06 pm

Re: how to capture network packets with Python 3 under Windo

Postby vijaykumbhani » Fri Sep 13, 2013 6:01 am

in built library in python
Exmaples:

Code: Select all
s = socket(AF_PACKET, SOCK_RAW)


to use below link

http://docs.python.org/3.3/library/socket.html
[b][i]With Regards,
Vijay Kumbhani[/i][/b]
vijaykumbhani
 
Posts: 33
Joined: Wed Aug 14, 2013 4:26 am
Location: Surat, Gujarat, India

Re: how to capture network packets with Python 3 under Windo

Postby micseydel » Fri Sep 13, 2013 9:43 pm

I'm thinking this what you're looking for http://www.secdev.org/projects/scapy/
Join the #python-forum IRC channel on irc.freenode.net!
User avatar
micseydel
 
Posts: 1116
Joined: Tue Feb 12, 2013 2:18 am
Location: Mountain View, CA

Re: how to capture network packets with Python 3 under Windo

Postby tbaror » Sun Sep 15, 2013 4:14 am

vijaykumbhani wrote:in built library in python
Exmaples:

Code: Select all
s = socket(AF_PACKET, SOCK_RAW)


to use below link

http://docs.python.org/3.3/library/socket.html


thanks 8-)
tbaror
 
Posts: 10
Joined: Sun Jul 07, 2013 8:06 pm


Return to General Coding Help

Who is online

Users browsing this forum: No registered users and 3 guests

cron