One of my mastery comments on top of an “example code” file from the draichess archives… back when I was teaching hackers in #hackers on yahoo.com…
/*
An example RAW socket program for Linux 2.4.xx - RELOADED
By j00n1x (c) 2003
Greetz: sk4zi cr3w for pr0v1d1ng fr13nd5h1p.
This program requires superuser (root). Spoofs a packet of the type:
TCP SYN, UDP, or ICMP echo reply. Contains checksum algorithm.
<standard disclaimer>
NO WARRANTY ON THIS PROGRAM. THIS IS A TUTORIAL PROGRAM
AND SHOULD NOT BE USED FOR MALICIOUS PURPOSES! YOU HAVE
BEEN WARNED!
Ok, who am eye kidding... just d0nt j00se it to t4k3 d0wn y4h00 ok?
Just remember that Mafiab0y was r00ted by bubba in his 4x4 cell f0r
years bef0re h3 st4rt3d r0rt1ng the s3cur1ty industry and g0t p41d
t0 haxxor. Just as lame as Kevin M1tn1ck, but d1fferent...
*/
Apparently the draichess geocities archives were useful for some people, as documented here:
[RESOLU] traffic sortant sans libpcap
Bonjour, je cherche à capter du traffic sortant dans un programmme.
POur l’instant j’arrive à capter le traffic entrant avec recvfrom, mais je ne sais pas comment détecter le traffic sortant.
Est ce qu’il existe des options qui permettent de faire ca avec recvfrom (un man recvfrom n’a rien donné, j’ai éssayer de remplacer les flags dans la fonction par ceux MSG_OOB etc mais ca n’a rien donnée).
Est ce qu’il existe une autre fonction qui permette de capter le traffic sortant.
PS: je ne veux pas utiliser la libpcap ,car elle stocke ces données dans un buffer (ainsi quand on envoie un grand nombre de paquet seul une petite partie de ses paquets est stocké). Au passage, j’ai aussi essayer de voir comment été recu les paquets dans la libpcap (fichier pcap-linux.c) mais ca ne m’a pas aider. Voila
Merci d’avance pour ceux qui m’aideront
Followed by his post:
merci je vais voir ca
c’est bon j’ai trouvé en fait http://64.233.183.104/search?q=cache:oI9ifSf35u4J:www.geocities.com/draichess/example-sniffer3.c+struct+sockaddr_ll+%22%23include+%3Cstdio.h%3E%22&hl=fr&client=firefox-a
cette source m’adonnée la solution
(If you’re an English reader, you’ll have to use a translator, not gonna translate it for you.)
So apparently someone found my draichess geocities useful…
I’m thinking of reviving the mirror here, for the public, but not yet… actually most of the techniques are superceded or mitigated now, but would be good to archive it for historical purposes.
Leave a Reply