Syndicate

Syndicate content

Flattr


Flattr this

If you like this, you can use flattr. ;)

Imprint

About
eMail: wishinet at gmail . com
PGP ID: 0xCCCA5E74

Jabber: wishi@jabber.ccc.de

SCAPY - makes TCP/IP 3d

txttxtToday I needed Ubuntu (in VM) because I needed the "visual module" in scapy.py. Scapy is well known, and a brilliant tool. It can visualise the logical structures of the WAN easier than every other solution I know. And you know... it can do much more :). Even this so called "Hacker magazine" hakin9 featured Scapy once. But the magazine is crap, and therefore the Howto was silly.




What you need:

1. python knowledge - if you don't know python jet, read A Byte Of Python i. e.. That's for free and very good. I personally liked "Programming Python, 3rd Edition by Mark Lutz. But that's an advanced one, aiming for sophisticated programmers. Don't start with that, but if you like Python, keep it in mind.

2. a VM solution or Ubuntu directly installed

3. ten minutes of time (that's what I like apt-get for) - to install, hours of time to get used to it

4. x11, good CPU, networking experience, good Unix/Windows skills


Install vpython via apt-get (search in Synaptic) and of course Scapy. apt-get automatically tracks all dependencies and registers the python modules.

Afterwards go reading through this introduction in Scapy.

You see:


res,unans = traceroute(["www.microsoft.com","www.cisco.com",
"www.yahoo.com","www.wanadoo.fr","www.pacsec.com"],
dport=[80,443],maxttl=20,retry=-2)

res.trace3D()


And you've got the graphics in 3d.

Inguma features Scapy btw. You might like it. And don't think of Backtrack Linux in this case. That's work. Even if you're like me and installed bt3 in a VM solution - for convenience reasons - you won't get slapt-get to install vpython and doing it manually isn't cool in an OS-distribution like bt3. Because it is not meant to be a fully customisable Linux distribution.


If you know a way to install libdnet for python2.5 in MacOS 10.5 (py-libdnet in MacPorts is for python2.4) tell me. Sourcing it worked, but:


Traceback (most recent call last):
File "./test.py", line 6, in
import dnet
ImportError: dlopen(/Library/Python/2.5/site-packages/dnet.so, 2):
Symbol not found: _addr_bcast
Referenced from: /Library/Python/2.5/site-packages/dnet.so
Expected in: dynamic lookup


You can get binaries for vpython (for x11) for osX:


wget http://vpython.org/download/VPython3.2.11_IntelOSX_5.pkg


Just browse the pkg content, if you don't use fink, and copy them into an exported path.


Have fun,
wishi

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.

Save the nature. Don't print this!


I provide textual exports for every blog entry. However let's save the nature together. The nature is everything around us. Every being should be respected. Save the nature - don't print too much.


Die Umgehung dieser Ausdrucksperre ist nach § 95a UrhG verboten!
Inhaltlich Verantwortlicher gemäß § 10 Absatz 3 MDStV: Marius Ciepluch - Anschrift via eMail. Die eMail Adresse entnehmen sie dem Impresseum dieser englischsprachigen Seite.
Aus Datenschutzgründen habe ich weder offiziellen noch behördlichen Schriftverkehr via eMail. Dazu ist die postalische, beim Dienstleister hinterlegte, Anschrift zu verwenden.

Datenerfassung

Es werden keine personenbezogenen Daten erfasst. Logdaten werden anonymisiert.