Closed DanielSzenczi closed 4 years ago
Rookie opinion: Bash script looks right. In terminal, run
./ipsweep.sh 129.xxx.x(the ip you're recognising) > iplist.txt
once you've run the sweep script with the ip into a txt file, you'll be able to run the list of ip's that are pinging as good with other linux commands to find out if things like, which port is open if any.
Script looks okay. Can your machine communicate with that network?
I'm having the same problem with the same script... Did you ever figure it out?
seq is an outdated command which is replaced by {value..value}
The old line (line 9): for ip in `seq 1 254` ; do The new command is: for ip in {1..254} ; do
for ip in {1..254} ; do ping -c 1 $1.$ip | grep "64 bytes" | cut -d " " -f 4 | tr -d ":" & done
This is what work for me on Feb 2023
if [ "$1" = "" ] then echo "Suggest you run Ifconfig to get your network" echo "Dummy you forgot the IP Address!" echo "Syntax: ./ipscan.sh xxx.xxx.xxx" else for ip in {1..254} ; do ping -c 1 $1.$ip | grep "64 bytes" | cut -d " " -f 4 | tr -d ":" & done fi
This is what work for me on feb2023
Can someone explain why i might have problem with the script? It does not return any IP's when i run it. Does it make a difference if my pc is on LAN and the other devices is connected via. Wifi?![ipsweep](https://user-images.githubusercontent.com/42997753/65856149-1bd83d80-e361-11e9-97c9-9f464214e144.PNG)