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 [...]
Tags: Network, Python
admin June 7th, 2005
While running my access point in public mode, i want to know when people log in. This can be a good way to find intruders too, but not my purpose.
I decided to run arpwatch on my linksys access point, but this is not so easy ..
1) Mail
First you need to have sendmail on the WRT. [...]
Tags: Network, openwrt, sysadmin, wrt
admin May 12th, 2005
Tcpdump is clearly one of my favorite tool. Here a little example to filter the traffic of my OSPF router.
tcpdump -i eth0 ip[9] == 89
And the result:
12:43:48.219432 IP p2b.soif.fr > OSPF-ALL.MCAST.NET: OSPFv2, Hello (1), length: 48
12:43:48.560817 IP wrt.soif.fr > OSPF-ALL.MCAST.NET: OSPFv2, Hello (1), length: 48
Wonderfull no ? :)
Tags: Network, sysadmin
admin February 6th, 2005
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
Tags: Network, Python
admin December 23rd, 2003
I’ve been hacking a part of the w-e w/ my firewall setting (mainly cause my firewall blocks my wifi network ..). Everything is fine right now, but i’m wondering what is the difference in satefull and stateless firewalls.
Here is a quote from Sun:
When talking about protocols it is possible to describe TCP as stateful and [...]
Tags: Network, sysadmin
admin December 3rd, 2003
In fact, i’m trying to turn my Wifi gateway (which is really a gateway 2 interfaces + masquerading ) in a transparent bridge. You know only have a single IP for the two interfaces, so going on the wired networks and back won’t be masquerade. In fact until now i can’t access to the Wifi [...]
Tags: Network, Wifi
admin November 27th, 2003
#!/usr/bin/python
“”"
A really simple piece of code that i use to track down my
dynamics IP (assigned by my isp while using ppp).
“”"
filename = ‘/home/soif/Perso/Data/lastIp.sqlite’
import sys,os,time
try:
import sqlite
except ImportError:
print “Please install python sqlite binding first”
sys.exit(0)
def createTables(cursor):
schema = “CREATE TABLE connect (
[...]
Tags: dsl, Network, Python
admin August 29th, 2003