Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Porting Nmap to OS X

Porting Nmap to OS X
Thread Tools
Fresh-Faced Recruit
Join Date: May 2001
Location: USA
Status: Offline
Reply With Quote
May 3, 2001, 10:04 AM
 
I want NMAP (http://www.insecure.org/nmap/) and I want it to run on OS X. The problem is that I've never really compiled a source distribution without step-by-step instructions. I tried with nmap but I don't think it will run on a PPC. Then again, I have no idea. I would appreciate ANY advice on how to get this thing running in command-line mode. Thanks.

------------------
"Govenment is not
reason; it is not
eloquence. It is force.
Like fire it is a
dangerous servant and
a fearful master."
- George
Washington
"None are more hopelessly enslaved than those who falsely believe they are free." - Goethe
     
Mac Elite
Join Date: Jan 2001
Location: Sad King Billy's Monument on Hyperion
Status: Offline
Reply With Quote
May 5, 2001, 10:38 PM
 
No porting needs to be done. It can run on Mac OS X with a straight recompile. I installed it on my computer just last week, in fact.

Here's a good resource to get you starting on compiling apps in Mac OS X:
http://www.macaddict.com/osx/xphiles/11_02_00.html
I abused my signature until she cried.
     
Fresh-Faced Recruit
Join Date: Apr 2001
Location: New York, NY USA
Status: Offline
Reply With Quote
May 9, 2001, 01:46 PM
 
compiled and ran fine for me too. no proglems.

     
Dedicated MacNNer
Join Date: May 2001
Status: Offline
Reply With Quote
May 27, 2001, 12:29 PM
 
Which nmap version did you try? I tried the latest stable from source and the latest beta from freebsd ports source and they both didnt compile. Thanks for info.
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
May 27, 2001, 03:24 PM
 
A friend of mine just wrote a funky GUI to nmap, I'm currently writing an Objective-C wrapper for Security.framework so he can authenticate (some nmap functions need root privs, for some reason).
     
Fresh-Faced Recruit
Join Date: May 2001
Location: USA
Status: Offline
Reply With Quote
May 27, 2001, 07:58 PM
 
Yeah, I copied the config files from /usr/libexec/config.* into a couple directories and it worked fine. Thanks to whoever posted a link to macaddict's article.
"None are more hopelessly enslaved than those who falsely believe they are free." - Goethe
     
Dedicated MacNNer
Join Date: May 2001
Status: Offline
Reply With Quote
May 27, 2001, 09:40 PM
 
Originally posted by Chiznibitz:
Yeah, I copied the config files from /usr/libexec/config.* into a couple directories and it worked fine. Thanks to whoever posted a link to macaddict's article.
Do you have the article link, i copied only the guess.config or somethign liek thsat but it still bombs
also anyone try compiling dsniff yet?
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
May 28, 2001, 01:25 PM
 
You'll notice that the link was posted higher up the thread. You'll need to copy config.guess AND config.sub, though.
     
Dedicated MacNNer
Join Date: May 2001
Status: Offline
Reply With Quote
May 28, 2001, 06:49 PM
 
Originally posted by Angus_D:
You'll notice that the link was posted higher up the thread. You'll need to copy config.guess AND config.sub, though.
K, I see, I need config.sub, while on the subject og compiling, did anyone get dsniff or python to compile? You probably need X though for dsniff to get the webspy to work though.
     
Dedicated MacNNer
Join Date: May 2001
Status: Offline
Reply With Quote
Jun 1, 2001, 11:26 PM
 
sorry, it still doesnt compile, dont know what im doing wrong(im a unix guy too)
history:
tar -xzvf nmap-2.53.tar.gz
cd nmap-2.53
cp /usr/libexec/config.* .
./configure
result is:
loading cache .././config.cache
checking host system type... configure: error: can not guess host type; you must specify one
configure: error: ./configure failed for libpcap-possiblymodified

I tried erasing config.cache and redoing but that didnt work, any suggestions?

     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Jun 2, 2001, 04:49 AM
 
You'll probably need to cp the config.sub and config.guess files into the libpcap-mossiblymodified directory, too.

And yes, plenty of people have Python working. Python 2.1 compiles just-about-out-of-the-box, if you follow the instructions in the README (or is it INSTALL? )
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:56 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2