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

add port format A-B #26

Merged
merged 2 commits into from
Nov 13, 2022
Merged

add port format A-B #26

merged 2 commits into from
Nov 13, 2022

Conversation

cokeBeer
Copy link
Contributor

-p arg can accept A-B format port now

./smap 80,90,1-443 1.1.1.1
Starting Nmap 9.99 ( https://nmap.org ) at 2022-10-19 17:22 CST
Nmap scan report for one.one.one.one (1.1.1.1)
Host is up.

PORT    STATE SERVICE  VERSION
53/tcp  open  domain?  
80/tcp  open  http?    
443/tcp open  https?   

Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 0.65 seconds

@rahul0x01
Copy link

I am facing error while running the argument -p, I tried -p1-10000, -p 1-10000, -p -, I get the following error:

' ' is not a valid port number.
QUITTING!

Please solve this ASAP!

@s0md3v s0md3v added the enhancement New feature or request label Nov 11, 2022
@s0md3v s0md3v merged commit e5eb86e into s0md3v:main Nov 13, 2022
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

Successfully merging this pull request may close these issues.

None yet

3 participants