Skip to content
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

how can i pass multiple args #18

Closed
tbaror opened this issue Jun 13, 2020 · 4 comments
Closed

how can i pass multiple args #18

tbaror opened this issue Jun 13, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@tbaror
Copy link

tbaror commented Jun 13, 2020

Hi,
I am trying to run multiple args but seems not gettings all args ,shown below
nmap.nmap_version_detection("192.168.1.10",args="-O -p- --script=freevulnsearch.nse")

Please advice
Thanks

@nmmapper nmmapper added the enhancement New feature or request label Jun 19, 2020
@nmmapper
Copy link
Owner

Then there is a bug there, the main bug could be that we don't parse the results of all arguments. We only parse and return nmap_version_detection, but not --script. We need to fix that.

@starnightcyber
Copy link

starnightcyber commented Nov 24, 2020

Same question!
I think you'd better define a kind of 'normal' function to accept args like scan() in python-nmap.
Using quit a few args is very common when using nmap.

import nmap
nm = nmap.PortScanner()
nm.scan(ip, '80, 445', '-v -n -sS -T4 -Pn')

@nmmapper
Copy link
Owner

That's a great Idea, you can open a pull request

@starnightcyber
Copy link

I need to figure out how you did in python-nmap first.
It will take some time.

nmmapper added a commit that referenced this issue Dec 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants