[bash]: IP Discover Script

Need help with C, C++, perl, python, etc?

[bash]: IP Discover Script

Postby HyperY2K » 2007-01-22 13:29

I've got a problem with an old router. This router has DHCP disabled and the hardware reset won't work.
So I've got to found the correct IP address by trying each one (192.169.x.y ones). I've thought on a shell script.
Did anyone have an idea?
Posts: 25
Joined: 2006-06-19 22:15

Postby mzilikazi » 2007-01-22 14:21

My router is So you could scan the network w/ nmap something like so:
Code: Select all

That shows you every i.p. on the subnet.
Debian Sid Laptops:
AMD Athlon(tm) 64 X2 Dual-Core Processor TK-55 / 1.5G
Intel(R) Pentium(R) Dual CPU T2390 @ 1.86GHz / 3G
User avatar
Forum Ninja
Posts: 3321
Joined: 2004-09-16 02:14
Location: Colorado Springs, CO

Postby Guest » 2007-01-22 14:44

so , do you have an idea how this would work in a bash-script with a for-loop to "scan" across until networks?

Postby plugwash » 2007-01-22 18:45

if you know its in 192.168 just set the subnet mask on your interface to and then do nmap

it'll take a while though

also if the hardware reset isn't working then it seems pretty likely that the unit may simply be dead
Posts: 2508
Joined: 2006-09-17 01:10

Return to Programming

Who is online

Users browsing this forum: No registered users and 5 guests