hi,

anyone care to run and show the output of the command below in your
mac os console?

touch _temp_.c ; gcc -dM -E _temp_.c | more ; rm _temp_.c

i wrote a program in C language that can create a customized tcp, udp
or icmp packets using raw socket. It can modify any fields or bits in
the header of those three protocols that i mentioned including the ip
header... it can be use in a good way (eg. testing firewall rules by
spoofing any fields in the header) or in a bad way (eg. denial of
service attack such as syn attack with a spoof source ip address)

i tested this on freebsd, netbsd, dragonfly, linux, solaris and
openbsd... but... freebsd, netbsd, dragonfly are doing different way
with their ip header while linux, solaris and openbsd are doing the
other way... i want this code to be portable as possible to all
operating system...

in order for my code to determined the host's OS.. i look at gcc's
predefined name for that OS.. for example... freebsd, netbsd and
dragonfly predefined names are __FreeBSD__, __NetBSD__ and
__DragonFly__ respectively..

current mac OS is based on freebsd.. ill just assume that the
construction of its ip header is the same with freebsd...

fooler.
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph

Reply via email to