Home page logo
/

nmap-dev logo Nmap Development mailing list archives

Quick patch for Intel-based Macintosh
From: Kurt Grutzmacher <grutz () jingojango net>
Date: Wed, 25 Jan 2006 00:05:13 -0800

--- nmap-3.98BETA1/tcpip.cc     2006-01-22 13:50:10.000000000 -0800
+++ nmap-3.98BETA1-grutz/tcpip.cc       2006-01-24 22:26:25.000000000  
-0800
@@ -987,7 +987,7 @@
       must deal with it here rather than when building the packet,
       because they should be in NBO when I'm sending over raw
       ethernet */
-#if FREEBSD || BSDI || NETBSD || DEC
+#if FREEBSD || BSDI || NETBSD || DEC || MACOSX
    ip->ip_len = ntohs(ip->ip_len);
    ip->ip_off = ntohs(ip->ip_off);
#endif

Otherwise you get a ton of these:

sendto in send_ip_packet: sendto(6, packet, 40, 0, 127.0.0.1, 16) =>  
Invalid argument

Still checking out the rest of the functions, this one just made  
anything but connect scanning impossible. This may break PPC OSX but  
I don't have one to play with and try. Hooray for endians!

Compiled with i686-apple-darwin8-gcc-4.0.1.






_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev


  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]