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";
}
}
Can any one please let me know below ones
1) How to Perform the Port Scan in Solaris Environment and how to block the unwanted Ports.
2) How to know whether particular Port is listning the requests or not?
Thanks
Ramkumar.B (7 Replies)
Hi,
I am new to unix.
I have a file with records like the below
ads-sap-4.txt: </a></b></span><span class="linkbutton yellow_but"><a id="2005754_more" style="cursor:pointer; cursor:hand;"... (3 Replies)
Hi
I am new to this forum, and glad to be a part of it here after. I have an intersting issue for which I need suggestions of you great minds.
I am in process a building a shell script which should scan a directory for a specified amount of time and prepare a list of all the files that were... (1 Reply)
i have a script to look for a file, but it moves a file that's being used.
i want to use:
if file exists > 0, and not being updated/used in the last 2 minutes, move to /tmp
i can do this much:
if
then
mv filename.txt /tmp
else
exit
fi
or how can i check if... (3 Replies)
The script should
_scan a specific directory
_If a file name is like one provided, then run the command to send the file via CFT
The name should be picked from a list. The current list is :
... (11 Replies)
Dear Gurus,
Can any one advice about the normal limits for the Page scanning rates on the AIX platforms, i am having enormous values for the scan rate along the hour it may reache 3000 pages/sec.
Regards, Negm (2 Replies)
Hello all
I want to help
I have some compressed files on the system
When you want to unzip these files
Delete any file which symlink
"ln -s"
{{
I need script is necessary
Script contain:
Any operation to decompress the system is doing to delete any symlink... (0 Replies)
In Solaris the administrator has to update /kernel/drv/sd.conf file to tell the sd driver to scan for a broader range of scsi devices.
Can someone please tell me what file needs to be update in Redhat Linux 5 for the same.
Second part of the question is WWN for HBA's can be found (atleast in my... (1 Reply)
i want to scan all open and closed ports on a server. how can i do this.
i intend on using nmap, but if there are better ways to do it, please let me know.
i understand there are a total of 6335 allowable ports on a server.
so out of that 6335, i want to know which is open or closed. id... (1 Reply)
Discussion started by: SkySmart
1 Replies
LEARN ABOUT DEBIAN
pdfimages
pdfimages(1) General Commands Manual pdfimages(1)NAME
pdfimages - Portable Document Format (PDF) image extractor (version 3.00)
SYNOPSIS
pdfimages [options] PDF-file image-root
DESCRIPTION
Pdfimages saves images from a Portable Document Format (PDF) file as Portable Pixmap (PPM), Portable Bitmap (PBM), or JPEG files.
Pdfimages reads the PDF file PDF-file, scans one or more pages, and writes one PPM, PBM, or JPEG file for each image, image-root-nnn.xxx,
where nnn is the image number and xxx is the image type (.ppm, .pbm, .jpg).
OPTIONS -f number
Specifies the first page to scan.
-l number
Specifies the last page to scan.
-j Normally, all images are written as PBM (for monochrome images) or PPM (for non-monochrome images) files. With this option, images
in DCT format are saved as JPEG files. All non-DCT images are saved in PBM/PPM format as usual.
-opw password
Specify the owner password for the PDF file. Providing this will bypass all security restrictions.
-upw password
Specify the user password for the PDF file.
-p Include page numbers in output file names.
-q Don't print any messages or errors.
-v Print copyright and version information.
-h Print usage information. (-help and --help are equivalent.)
EXIT CODES
The Xpdf tools use the following exit codes:
0 No error.
1 Error opening a PDF file.
2 Error opening an output file.
3 Error related to PDF permissions.
99 Other error.
AUTHOR
The pdfimages software and documentation are copyright 1998-2004 Glyph & Cog, LLC.
SEE ALSO pdffonts(1), pdfinfo(1), pdftocairo(1), pdftohtml(1), pdftoppm(1), pdftops(1), pdftotext(1)
22 January 2004 pdfimages(1)