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

It's not working. Any way to fix the following Error? "ERROR: to add targets run with -sC or --script options" #2

Closed
jetblack90 opened this issue Feb 20, 2022 · 1 comment

Comments

@jetblack90
Copy link

nmap --script country_scan --script-args 'country=AR, max_ip=2'

Starting Nmap 7.92SVN ( https://nmap.org ) at 2022-02-20 23:25 CET


| NSE country scan |

Scanning: Argentina

ERROR: to add targets run with -sC or --script options.
ERROR: to add targets run with -sC or --script options.
WARNING: No targets were specified, so 0 hosts scanned.
Nmap done: 0 IP addresses (0 hosts up) scanned in 0.27 seconds

@mmpx12
Copy link
Owner

mmpx12 commented Jun 28, 2022

Sorry for late answers.
It should works now unless you are using nmap 7.92 (Archlinux based os or Termux), and fixes were done on nmap.

But now you 'll have to had the 'newtargets' flags too. So after update the script, your command would be:

nmap --script country_scan --script-args 'country=AR, max_ip=2, newtargets'

@mmpx12 mmpx12 closed this as completed Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants