Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8533185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T09:54:09+00:00 2026-06-11T09:54:09+00:00

I want to scan a large network, for example 10.10.0.0/16 and I’m looking for

  • 0

I want to scan a large network, for example 10.10.0.0/16 and I’m looking for the port 22 open, but I’m only interested in those ports that run “OpenSSH 5.1”.

What I’ve done until now is the following:

nmap -PN -T4 -sS -p 22 -sV 10.10.0.0/16 -oG test_results
cat test_results | grep 'OpenSSH 5.1'

This works, but here is the difficult part. Nmap initiates service scan only after it completes port scan of all the IPs in the range of the scan, am I correct?

But what if I want to view the service that is running after each port scan of a single IP, not after the whole range of IPs has been scanned. In other words:

  1. Port scan one IP, find out if port 22 is open.
  2. If 22 port is open, then service scan now.
  3. If the service name matches ‘OpenSSH 5.1’, then output IP immediately on screen, while scan is still running.
  4. Port scan the next IP in range… and so on…

Hope I made some sense, thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T09:54:11+00:00Added an answer on June 11, 2026 at 9:54 am

    That is not how Nmap is designed to work, for efficiency reasons. Especially if you are scanning a /16 network, you will find this approach to be highly inefficient.

    You may be interested in the --max-hostgroup option, which can be used to set the maximum number of hosts per hostgroup. By default, scans for just a few ports use a larger hostgroup, which means you won’t see results as quickly (though the scan will be faster overall). You can set it to a lower value like 24 in order to get the results for each batch of 24 hosts when it is done. Setting it to 1 would give the effect you want.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create an application for Android that will be able to scan
i have many documents that i want to scan. every document will have about
I want to scan a website using jQuery, but the ID is constantly changing,
I want to build a cross-platform helper app that lets my users scan the
I want to scan a PowerPoint 2007 file, but I'm trying to do it
I have some large ASCII images that I want to check are symmetrical. Say
In order to localize strings used within my javascript, I want scan all my
I want to Scan QR codes on button Click, problem is when I run
I want to scan FAT32 disk (I just need file path and file name)
I an using Zbar SDK and want to scan QRcode and barcode in my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.