Copyright Goodheart-Willcox Co., Inc. 276 Principles of Cybersecurity Goodheart-Willcox Publisher Figure 8-24. Advanced IP Scanner is one of several open-source solutions for conducting ping sweeps. Quick Look 8.2.2 Ping Sweep Software A ping sweep can be done without using any special software. In this exercise, you will conduct a ping sweep of your current subnet. This exercise assumes a /24 subnet. 1. Applying what you have learned, open the Windows Command Prompt, run the ipconfig command, and note the network address of your subnet. 2. Enter the following command (all this is one command), substituting your network address for x.x.x.%x. For example, if your network address is 192.168.1.0, then enter 192.168.1.%x in place of x.x.x.%x. 3. This command runs for a while as all hosts on the network are pinged. When the command is fi nished, open the pingresult.txt fi le with Notepad or other word processor. Review the valid addresses on your subnet. for /L %x in (1,1,255) do ping –n 1 x.x.x.%x | find /i "reply" pingresults.txt Piping for...do loop performs the ping command counting up from 1 by 1 until 255 is reached Searches for the text reply ignoring case (/l) Appends data to the file pingresults.txt without overwriting existing data Number of requests is 1 Substitute your network address
Previous Page Next Page

Resources and Downloads

Attachments

Extracted Text (may have errors)

Copyright Goodheart-Willcox Co., Inc. 276 Principles of Cybersecurity Goodheart-Willcox Publisher Figure 8-24. Advanced IP Scanner is one of several open-source solutions for conducting ping sweeps. Quick Look 8.2.2 Ping Sweep Software A ping sweep can be done without using any special software. In this exercise, you will conduct a ping sweep of your current subnet. This exercise assumes a /24 subnet. 1. Applying what you have learned, open the Windows Command Prompt, run the ipconfig command, and note the network address of your subnet. 2. Enter the following command (all this is one command), substituting your network address for x.x.x.%x. For example, if your network address is 192.168.1.0, then enter 192.168.1.%x in place of x.x.x.%x. 3. This command runs for a while as all hosts on the network are pinged. When the command is fi nished, open the pingresult.txt fi le with Notepad or other word processor. Review the valid addresses on your subnet. for /L %x in (1,1,255) do ping –n 1 x.x.x.%x | find /i "reply" pingresults.txt Piping for...do loop performs the ping command counting up from 1 by 1 until 255 is reached Searches for the text reply ignoring case (/l) Appends data to the file pingresults.txt without overwriting existing data Number of requests is 1 Substitute your network address

Help

loading