Archive for the 'Network' Category

Send hand-crafted Ethernet Frames in Python (ARP for example)

Tonight I decided to send ARP flood over the wireless link to find who is using it. This is a strange thing .. ok but it works pretty fine and quickly ..
First step is to build the custom packet.. I tested several suffs and i decided to keep the dpkt package. It support a large […]

admin June 7th, 2005

Packet filtering w/ Python and Linux

While looking for a fun way to filter my WIFI traffic, I decided to look at userland firewall API in Python. I found: ipqueue.
I haven’t really wrote a full featured app with it, but here the first things to make it work.
# load the kernel queue module
modprobe ip_queue
# all outgoing ping will pass throught the […]

admin November 1st, 2004

Full featured SMTP in Python ?

In a recent post Ian explain he get a lot of trouble w/ the configuration of his mail system. I ran into the same issues a little time ago. Now i’m using postfix and courier-imap and maildrop to dispatch the mail between. This setup is really easy because Postfix just accept incomming mail, and maildrop […]

admin September 1st, 2004

Twisted in EndUserLand

As nobody notice that, the new apt-proxy use python (not perl as the old one). This is really a good news because i love Python and the new apt-proxy has some better performance than the oldest perlish one. The key value here is the Twisted Matrix framework, now apt-proxy can download multiple .deb at the […]

admin July 14th, 2004

SupyBot

http://supybot.sourceforge.net (SupyBot) is the coolest ircbot written in python, that i’ ever used. After 3 years of good work with eggdrop, it’s time to use something more userfriendly and python based.

This is a short introduction to use it:

download and install it (python setup.py install) as usual
run the supybot-wizard to build your own bot script
call […]

admin January 30th, 2004

DNS and Localisation w/ Python

This post load testing BIND using dnspython and queryperf is a nice post about the use of dnspython module. There is a bunch of dns module right now adns and other.. but this one looks kool since it can read zone file directly .. the best thing would be to do the reverse .. building […]

admin January 27th, 2004

Dive into BSD packet filter w/ Python

While looking for a way to call ioctl in Python, I found this . This is really strange.. have you ever think of tweaking a kernel with Python ? , i don’t.
Anyway, I really enjoy this, since i don’t want to do this kind of stuff, but i gonna use this is avoid the use […]

admin January 19th, 2004

Raw Network access in Python

Ever think of sniffing or forging packet in Python ? I spent a part of time hacking some UDP packet for my work and building Ethercap rules is a bit hard now you can do this with :

http://oss.coresecurity.com/projects/pcapy.html
http://oss.coresecurity.com/projects/impacket.html

admin December 23rd, 2003

Twisted or not

I spent a couple of hours to look at http://www.twistedmatrix.com/ . After a little of hacking, i think i understand how it works, mainly static.File. But i still need to work on this since i want to use it to share some large files and this need a little work to avoid locking the whole […]

admin November 11th, 2003

Medusa strikes back

While I was thinking about some sync / async download for iAggregator (mainly to reduce the time needed to this), i remember that i’ve read it previously somewhere .. After a little search i have found this : http://effbot.org/zone/effnews-1.htm
Perhaps you don’t know the Effbot ? Python’s user should take a look at http://effbot.org/zone/ .

admin October 24th, 2003