Skip to content

Zenmap on OS X does not accept command-line options #839

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
dmiller-nmap opened this issue Apr 11, 2017 · 1 comment
Open

Zenmap on OS X does not accept command-line options #839

dmiller-nmap opened this issue Apr 11, 2017 · 1 comment
Labels
bug macOS/OS X Issues affecting Apple macOS and OS X Zenmap

Comments

@dmiller-nmap
Copy link

Zenmap on OS X installed by our .dmg binary package does not accept command-line options like the zenmap command on other platforms. http://seclists.org/nmap-dev/2017/q2/25

Here is the execution chain:

  1. User runs open -a Zenmap --args -f example.xml or the equivalent /Applications/Zenmap.app/Contents/MacOS/Zenmap -f example.xml
  2. The Zenmap executable, compiled from zenmap/install_scripts/macosx/zenmap_auth.m, runs the AppleScript command "do shell script \"/Applications/Zenmap.app/Contents/MacOS/zenmap.bin <args>\" with administrator privileges". First bug: I think the <args> are not being passed correctly here, and will probably have to be quoted or escaped or something.
  3. The zenmap.bin shell script sets up the environment and then executes the included Python interpreter to set the real UID from the effective UID and execute the Zenmap.app/Contents/Resources/bin/zenmap Python script. Second bug: I am quite certain that no arguments are passed from the zenmap.bin invocation to the zenmap (Python) command.
@dmiller-nmap dmiller-nmap added bug macOS/OS X Issues affecting Apple macOS and OS X Zenmap labels Apr 11, 2017
@WoNaNoW
Copy link

WoNaNoW commented Nov 29, 2017

Hey guys, I just fixed this bug, see the PR : #1076.

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug macOS/OS X Issues affecting Apple macOS and OS X Zenmap
Projects
None yet
Development

No branches or pull requests

2 participants