![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| scan direcotries | nagrcm | Shell Programming and Scripting | 1 | 03-02-2008 10:37 PM |
| How to scan and capture | akondeti | Shell Programming and Scripting | 3 | 01-06-2008 08:10 PM |
| Please let me know Regarding Port Scan | myramkumar | UNIX for Advanced & Expert Users | 7 | 05-17-2007 08:11 AM |
| File Scan | Dastard | Shell Programming and Scripting | 2 | 04-08-2007 12:35 PM |
| Scan Rates | Negm | AIX | 0 | 03-20-2005 01:15 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
IP Name scan
Hi.
how to search a range of IP:s for their registed IP names? Like nslookup or host for all IPs 130.xxx.xxx.1 to 130.xxx.xxx.254 //nicke |
| Forum Sponsor | ||
|
|
|
||||
|
There is a DNS scanning utility that is often used by hackers or security folks that do a dnswalk or similar scan. Try this and let us know if it works for you!
http://sourceforge.net/projects/dnswalk/ |
|
|||
|
hi.
well all DNS components for perl was not installed so it didnt work with dnswalk. however I asked a workingmate and he wrote a script in a few minutes... Code:
#!/usr/bin/perl
use Socket;
# While sdtin
while(<>) {
chomp($_);
if($_ =~ /(\d+\.\d+\.\d+\.)(\d+)\s+(\d+)/) {
for($2..$3) {
$iaddr = inet_aton( "$1$_" );
print "$1$_ = ".(gethostbyaddr($iaddr, AF_INET) or "hostname not found")."\n";
}
} elsif($_ =~ /(\d+\.\d+\.\d+\.\d+)/ ) {
$iaddr = inet_aton( $1 );
print "$1 = ".(gethostbyaddr($iaddr, AF_INET) or "hostname not found")."\n";
} else {
print "Invalid ip\n";
}
}
inserted code tags for readability --oombera Last edited by oombera; 02-16-2004 at 12:26 PM. |
|||
| Google The UNIX and Linux Forums |
| Thread Tools | |
| Display Modes | |
|
|