fflush stdout
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 293
Sys::OutPut 2.1
Sys::OutPut is a Perl module to help make output easier. more>>
Sys::OutPut is a Perl module to help make output easier.
SYNOPSIS
usage Sys::OutPut;
talk $fmtstr [, @args];
out $fmtstr [, @args];
put $fmtstr [, @args];
err $fmtstr [, @args];
debug $fmtstr [, @args];
$Sys::OutPut::quiet = $::quiet;
$Sys::OutPut::debug = $::debug;
These subroutines will make generating output to STDOUT and STDERR easier.
All of the routines treat the $fmtstr argument as a printf format string, with @args as the format string arguments.
The talk routine generates output to STDERR only if the variable $Sys::OutPut::quiet is non-null and non-zero.
The out routine generates output to STDOUT, with a newline appended to , if it is not already terminated with one.
The put routine generates output to STDOUT, without any additional trailing newline.
The err routine generates output to STDERR, with a newline appended if needed.
The debug routine generates output to STDERR only if the variable
$Sys::OutPut::debug is non-null and non-zero, which is also returned as the result.
This allows for convenient usages such as in the following example:
sub foo {
...
return if debug "Stopping now.";
...
next if debug "Skipping further processing";
...
}
If not defined by the user, the $Sys::OutPut::quiet and $Sys::OutPut::debug variables are initialized from their corresponding main variables $::quiet and $::debug, respectively, unless they are already defined.
<<lessSYNOPSIS
usage Sys::OutPut;
talk $fmtstr [, @args];
out $fmtstr [, @args];
put $fmtstr [, @args];
err $fmtstr [, @args];
debug $fmtstr [, @args];
$Sys::OutPut::quiet = $::quiet;
$Sys::OutPut::debug = $::debug;
These subroutines will make generating output to STDOUT and STDERR easier.
All of the routines treat the $fmtstr argument as a printf format string, with @args as the format string arguments.
The talk routine generates output to STDERR only if the variable $Sys::OutPut::quiet is non-null and non-zero.
The out routine generates output to STDOUT, with a newline appended to , if it is not already terminated with one.
The put routine generates output to STDOUT, without any additional trailing newline.
The err routine generates output to STDERR, with a newline appended if needed.
The debug routine generates output to STDERR only if the variable
$Sys::OutPut::debug is non-null and non-zero, which is also returned as the result.
This allows for convenient usages such as in the following example:
sub foo {
...
return if debug "Stopping now.";
...
next if debug "Skipping further processing";
...
}
If not defined by the user, the $Sys::OutPut::quiet and $Sys::OutPut::debug variables are initialized from their corresponding main variables $::quiet and $::debug, respectively, unless they are already defined.
Download (0.010MB)
Added: 2006-11-02 License: Perl Artistic License Price:
1087 downloads
ipsort
ipsort script sorts a STDIN of IP addresses to STDOUT. more>>
ipsort script sorts a STDIN of IP addresses to STDOUT. It sorts by the first octet, then by the second, the third and the fourth.
Usage: Takes Standard in or a file or list of files. So ipsort < file1 > < file2 > or cat < file > | ipsort
Its quite clever and looks for an IP address on each line, rejecting if it doesnt find one
Options:
-c or --commas Separate the list by space-separated commas, rather than one IP per line.
-u or --unique Uniquely sort the list as well, to avoid duplicate IPs.
-s or --string Use this string to separate the IPs. Eg. -s :
-m or --multiple Search for multiple IP addresses per line.
-h or --help Display this usage message.
<<lessUsage: Takes Standard in or a file or list of files. So ipsort < file1 > < file2 > or cat < file > | ipsort
Its quite clever and looks for an IP address on each line, rejecting if it doesnt find one
Options:
-c or --commas Separate the list by space-separated commas, rather than one IP per line.
-u or --unique Uniquely sort the list as well, to avoid duplicate IPs.
-s or --string Use this string to separate the IPs. Eg. -s :
-m or --multiple Search for multiple IP addresses per line.
-h or --help Display this usage message.
Download (MB)
Added: 2007-04-05 License: GPL (GNU General Public License) Price:
934 downloads
LSF 0.9
LSF is a Perl API built on top of the LSF command line tools. more>>
LSF is a Perl API built on top of the LSF command line tools.
SYNOPSIS
use LSF;
use LSF RaiseError => 1, PrintError => 1, PrintOutput => 1;
NOTE: FOR THESE MODULES TO WORK IT IS ESSENTIAL THAT YOU INCLUDE THE LSF COMMAND LINES IN YOUR PATH.
This is the base class of the LSF suite of modules. use LSF will also preload all of the LSF modules at one time. Currently this includes:
LSF::Job
LSF::JobHistory
LSF::JobGroup
LSF::Queue
LSF::JobManager
Two error reporting strategies are available and can be set globally via the use LSF statement or individually in each of the LSF modules. By setting the RaiseError directive to true, or by using the RaiseError class method, the LSF modules will die on error, otherwise they will return false, setting $? to the exit value and $@ to the stderr of the LSF command line. Additionally the printing of LSF command line stdout and stderr can be controlled via the PrintOutput and PrintError directives or class methods of the same names. Defaults are as above.
For more information on any of these modules, please see its respective documentation.
CLASS METHODS
LSF()
Returns the LSF version string
RaiseError( [ [ TRUE or FALSE ] ] )
Controls whether LSF command line errors will be thrown. The default is FALSE. When called with no arguments returns the current value.
PrintError( [ [ TRUE or FALSE ] ] )
Controls printing to STDERR the stderr of the LSF command line. The default is TRUE. When called with no arguments returns the current value.
PrintOutput( [ [ TRUE or FALSE ] ] )
Controls printing to STDOUT the stdout of the LSF command line. The default is FALSE. When called with no arguments returns the current value.
<<lessSYNOPSIS
use LSF;
use LSF RaiseError => 1, PrintError => 1, PrintOutput => 1;
NOTE: FOR THESE MODULES TO WORK IT IS ESSENTIAL THAT YOU INCLUDE THE LSF COMMAND LINES IN YOUR PATH.
This is the base class of the LSF suite of modules. use LSF will also preload all of the LSF modules at one time. Currently this includes:
LSF::Job
LSF::JobHistory
LSF::JobGroup
LSF::Queue
LSF::JobManager
Two error reporting strategies are available and can be set globally via the use LSF statement or individually in each of the LSF modules. By setting the RaiseError directive to true, or by using the RaiseError class method, the LSF modules will die on error, otherwise they will return false, setting $? to the exit value and $@ to the stderr of the LSF command line. Additionally the printing of LSF command line stdout and stderr can be controlled via the PrintOutput and PrintError directives or class methods of the same names. Defaults are as above.
For more information on any of these modules, please see its respective documentation.
CLASS METHODS
LSF()
Returns the LSF version string
RaiseError( [ [ TRUE or FALSE ] ] )
Controls whether LSF command line errors will be thrown. The default is FALSE. When called with no arguments returns the current value.
PrintError( [ [ TRUE or FALSE ] ] )
Controls printing to STDERR the stderr of the LSF command line. The default is TRUE. When called with no arguments returns the current value.
PrintOutput( [ [ TRUE or FALSE ] ] )
Controls printing to STDOUT the stdout of the LSF command line. The default is FALSE. When called with no arguments returns the current value.
Download (0.012MB)
Added: 2007-05-10 License: Perl Artistic License Price:
908 downloads
Piffle::Template 0.3.1
Piffle::Template is a Perlish templating language. more>>
Piffle::Template is a Perlish templating language.
SYNOPSIS
use Piffle::Template;
use Piffle::Template qw{template_to_perl expand_template};
# OO syntax, with output stored and returned:
print Piffle::Template->expand(source_file => foo/fish.xml,
include_path => [foo/inc,foo]);
# Immediate: OO syntax: output goes directly to STDOUT:
Piffle::Template->expand(source_file => foo/fish.xml,
output_file => *STDOUT);
# Procedural syntax, data from a string
$string =
< ?perl } ? >
< ?include std_disclaimer.txt? >
__END__
expand_template(source => $string,
output_file => *FILE);
This is a simple Perl-embedding syntax for template code which is geared towards allowing authors to validate their templates directly against schemas or DTDs. The embedded language is Perl itself, which allows great flexibility at the expense of having to be disciplined about the barrier between template code and module code.
In operation, the source template is transformed to an in-memory Perl script which is then run using Perls eval operator. Errors can be redirected to files or subroutines, and the output can be either caught in a variable or written to a file or open filehandle.
<<lessSYNOPSIS
use Piffle::Template;
use Piffle::Template qw{template_to_perl expand_template};
# OO syntax, with output stored and returned:
print Piffle::Template->expand(source_file => foo/fish.xml,
include_path => [foo/inc,foo]);
# Immediate: OO syntax: output goes directly to STDOUT:
Piffle::Template->expand(source_file => foo/fish.xml,
output_file => *STDOUT);
# Procedural syntax, data from a string
$string =
< ?perl } ? >
< ?include std_disclaimer.txt? >
__END__
expand_template(source => $string,
output_file => *FILE);
This is a simple Perl-embedding syntax for template code which is geared towards allowing authors to validate their templates directly against schemas or DTDs. The embedded language is Perl itself, which allows great flexibility at the expense of having to be disciplined about the barrier between template code and module code.
In operation, the source template is transformed to an in-memory Perl script which is then run using Perls eval operator. Errors can be redirected to files or subroutines, and the output can be either caught in a variable or written to a file or open filehandle.
Download (0.009MB)
Added: 2006-09-13 License: Perl Artistic License Price:
1136 downloads
dump_kstat 0.05a
dump_kstat is a Perl module created to dump the kstat structure. more>>
dump_kstat is a Perl module created to dump the kstat structure.
This simple script dumps the entire kstat structure to stdout - useful for figuring out what statistics are available.
EXAMPLES
$ dump_kstat
audio.0.audioc0 class = controller
audio.0.audioc0 crtime = 3533.04802622
audio.0.audioc0 hard = 444966
audio.0.audioc0 multiple service = 0
audio.0.audioc0 snaptime = 1993147.67168284
audio.0.audioc0 soft = 0
audio.0.audioc0 spurious = 0
audio.0.audioc0 watchdog = 0
cpu_info.0.cpu_info0 class = misc
cpu_info.0.cpu_info0 clock_MHz = 296
cpu_info.0.cpu_info0 cpu_type = sparc
cpu_info.0.cpu_info0 crtime = 48.927526937
cpu_info.0.cpu_info0 fpu_type = sparc
cpu_info.0.cpu_info0 snaptime = 1993147.67383159
cpu_info.0.cpu_info0 state = on-line
cpu_info.0.cpu_info0 state_begin = 906386861
:
:
:
$
<<lessThis simple script dumps the entire kstat structure to stdout - useful for figuring out what statistics are available.
EXAMPLES
$ dump_kstat
audio.0.audioc0 class = controller
audio.0.audioc0 crtime = 3533.04802622
audio.0.audioc0 hard = 444966
audio.0.audioc0 multiple service = 0
audio.0.audioc0 snaptime = 1993147.67168284
audio.0.audioc0 soft = 0
audio.0.audioc0 spurious = 0
audio.0.audioc0 watchdog = 0
cpu_info.0.cpu_info0 class = misc
cpu_info.0.cpu_info0 clock_MHz = 296
cpu_info.0.cpu_info0 cpu_type = sparc
cpu_info.0.cpu_info0 crtime = 48.927526937
cpu_info.0.cpu_info0 fpu_type = sparc
cpu_info.0.cpu_info0 snaptime = 1993147.67383159
cpu_info.0.cpu_info0 state = on-line
cpu_info.0.cpu_info0 state_begin = 906386861
:
:
:
$
Download (0.024MB)
Added: 2007-06-19 License: Perl Artistic License Price:
858 downloads
xmltvdb 3
xmltvdb is a fairly simplistic tv listings database/viewer for xmltv listings. more>>
xmltvdb is a fairly simplistic tv listings database/viewer for xmltv listings. It uses PostgreSQL and mod_perl.
Creating the Database
First off, youll want to create your database. The schema.sql file contains the basics youll need. The mkschema.sh will replace the placeholder schema name within schema.sql with the value you pass it as an argument, and spit the result out to stdout. So, you might do something like:
./mkschema.sh xmltv | psql database xmltvuser
And assuming the xmltvuser has create schema privileges (important!) it should create everything. If you want separate users for schema ownership versus reading/writing data, youll have to setup the grants yourself. The pgadmin3 tool makes doing such mass grants easy.
<<lessCreating the Database
First off, youll want to create your database. The schema.sql file contains the basics youll need. The mkschema.sh will replace the placeholder schema name within schema.sql with the value you pass it as an argument, and spit the result out to stdout. So, you might do something like:
./mkschema.sh xmltv | psql database xmltvuser
And assuming the xmltvuser has create schema privileges (important!) it should create everything. If you want separate users for schema ownership versus reading/writing data, youll have to setup the grants yourself. The pgadmin3 tool makes doing such mass grants easy.
Download (0.044MB)
Added: 2006-09-26 License: Perl Artistic License Price:
1125 downloads
Net:IPMessenger::ToStdoutEventHandler 0.06
Net:IPMessenger::ToStdoutEventHandler is a Perl module for event handler for standard output. more>>
Net:IPMessenger::ToStdoutEventHandler is a Perl module for event handler for standard output.
SYNOPSIS
use Net::IPMessenger::ToStdoutEventHandler;
...
$ipmsg->add_event_handler( new Net::IPMessenger::ToStdoutEventHandler );
IP Messenger receive event handler for standard output.
METHODS
output
output($user->nickname . " joined.");
This actually converts encodings and output to STDOUT.
debug
Outputs debug receive message.
BR_ENTRY
Outputs "someone joined." message.
BR_EXIT
Outputs "someone left." message.
SENDMSG
Outputs "youve got message from someone." message.
<<lessSYNOPSIS
use Net::IPMessenger::ToStdoutEventHandler;
...
$ipmsg->add_event_handler( new Net::IPMessenger::ToStdoutEventHandler );
IP Messenger receive event handler for standard output.
METHODS
output
output($user->nickname . " joined.");
This actually converts encodings and output to STDOUT.
debug
Outputs debug receive message.
BR_ENTRY
Outputs "someone joined." message.
BR_EXIT
Outputs "someone left." message.
SENDMSG
Outputs "youve got message from someone." message.
Download (0.012MB)
Added: 2007-01-25 License: Perl Artistic License Price:
1006 downloads
WWW::Babelfish 0.15
WWW::Babelfish is a Perl extension for translation via Babelfish or Google. more>>
WWW::Babelfish is a Perl extension for translation via Babelfish or Google.
SYNOPSIS
use WWW::Babelfish;
$obj = new WWW::Babelfish( service => Babelfish, agent => Mozilla/8.0, proxy => myproxy );
die( "Babelfish server unavailablen" ) unless defined($obj);
$french_text = $obj->translate( source => English,
destination => French,
text => My hovercraft is full of eels,
delimiter => "nt",
ofh => *STDOUT );
die("Could not translate: " . $obj->error) unless defined($french_text);
@languages = $obj->languages;
Perl interface to the WWW babelfish translation server.
<<lessSYNOPSIS
use WWW::Babelfish;
$obj = new WWW::Babelfish( service => Babelfish, agent => Mozilla/8.0, proxy => myproxy );
die( "Babelfish server unavailablen" ) unless defined($obj);
$french_text = $obj->translate( source => English,
destination => French,
text => My hovercraft is full of eels,
delimiter => "nt",
ofh => *STDOUT );
die("Could not translate: " . $obj->error) unless defined($french_text);
@languages = $obj->languages;
Perl interface to the WWW babelfish translation server.
Download (0.009MB)
Added: 2006-11-24 License: Perl Artistic License Price:
1067 downloads
Standalonecomplex 1.3
Standalonecomplex is a banner scanner used for profiling subnets. more>>
Standalonecomplex is a banner scanner used for profiling subnets. Standalonecomplex project has built in nmap support as well as static port profiling.
Usage:
./standalonecomplex [-h] [-c < file >] [-r < range >] [-l < log >]
-h : print this screen.
-v : display only vulnerable hosts.
-c < file > : configuration file.
-l < log > : file to log output to (default is stdout).
-r < range > : ip range to scan.
<<lessUsage:
./standalonecomplex [-h] [-c < file >] [-r < range >] [-l < log >]
-h : print this screen.
-v : display only vulnerable hosts.
-c < file > : configuration file.
-l < log > : file to log output to (default is stdout).
-r < range > : ip range to scan.
Download (0.004MB)
Added: 2006-01-17 License: Freely Distributable Price:
1375 downloads
Pf 1
Pf is a C program that implements the manual cryptosystem Playfair invented in 1854 by Charles Wheatstone. more>>
Pf project implements the manual cryptosystem "Playfair" invented in 1854 by Charles Wheatstone.
Sample output
$ ./pf
pf version 1 Copyright (C) 2006 Timothy Jon Fraser
pf comes with ABSOLUTELY NO WARRANTY. This is free software, and you
are welcome to redistribute it under certain conditions. See the
LICENSE.txt file in the source distribution for details.
Usage examples:
Encrypt text from stdin to stdout:
pf -k MyKeyWord
Format output in 2-letter groups, 4 groups per line:
pf -k MyKeyWord -l 2 -g 4
Decrypt text from stdin to stdout:
pf -k MyKeyWord -d
Show key square for debugging purposes:
pf -k MyKeyWord -s
Show letters used by keyword for debugging purposes:
pf -k MyKeyWord -u
$ ./pf -k Apophenia -s
a p o h e
n i b c d
f g k l m
q r s t u
v w x y z
$ echo "An example message." | ./pf -k Apophenia
nfoz efhg duou qomp
$ echo "An example message." | ./pf -k Apophenia | ./pf -k Apohenia -d
anex ampl emes sage
<<lessSample output
$ ./pf
pf version 1 Copyright (C) 2006 Timothy Jon Fraser
pf comes with ABSOLUTELY NO WARRANTY. This is free software, and you
are welcome to redistribute it under certain conditions. See the
LICENSE.txt file in the source distribution for details.
Usage examples:
Encrypt text from stdin to stdout:
pf -k MyKeyWord
Format output in 2-letter groups, 4 groups per line:
pf -k MyKeyWord -l 2 -g 4
Decrypt text from stdin to stdout:
pf -k MyKeyWord -d
Show key square for debugging purposes:
pf -k MyKeyWord -s
Show letters used by keyword for debugging purposes:
pf -k MyKeyWord -u
$ ./pf -k Apophenia -s
a p o h e
n i b c d
f g k l m
q r s t u
v w x y z
$ echo "An example message." | ./pf -k Apophenia
nfoz efhg duou qomp
$ echo "An example message." | ./pf -k Apophenia | ./pf -k Apohenia -d
anex ampl emes sage
Download (0.013MB)
Added: 2006-09-26 License: GPL (GNU General Public License) Price:
1128 downloads
libSRTP 1.4.4
libSRTP is an implementation of the Secure Real-time Transport Protocol. more>>
libSRTP library is an open-source implementation of the Secure Real-time Transport Protocol (SRTP) originally authored by Cisco Systems, Inc. It is available under a BSD-style license.
SRTP is a security profile for RTP that adds confidentiality, message authentication, and replay protection to that protocol. It is specified in RFC 3711. More information on the SRTP protocol itself can be found on the Secure RTP Page.
Installation:
./configure [ options ] # GNU autoconf script
make # or gmake if needed; use GNU make
The configure script accepts the following options:
--help provides a usage summary
--disable-debug compile without the runtime debugging system
--enable-syslog use syslog for error reporting
--disable-stdout use stdout for error reporting
--enable-console use /dev/console for error reporting
--gdoi use GDOI key management (disabled at present)
By default, debbuging is enabled and stdout is used for debugging. You can use the above configure options to have the debugging output sent to syslog or the system console. Alternatively, you can define ERR_REPORTING_FILE in include/conf.h to be any other file that can be opened by libSRTP, and debug messages will be sent to it.
This package has been tested on Mac OS X (powerpc-apple-darwin1.4),
Cygwin (i686-pc-cygwin), and Sparc (sparc-sun-solaris2.6). Previous
versions have been tested on Linux and OpenBSD on both x86 and sparc
platforms.
Enhancements:
- Release 1.4.4 is a snapshot of the code in CVS, which has been slowly accumulating minor fixes and extensions.
<<lessSRTP is a security profile for RTP that adds confidentiality, message authentication, and replay protection to that protocol. It is specified in RFC 3711. More information on the SRTP protocol itself can be found on the Secure RTP Page.
Installation:
./configure [ options ] # GNU autoconf script
make # or gmake if needed; use GNU make
The configure script accepts the following options:
--help provides a usage summary
--disable-debug compile without the runtime debugging system
--enable-syslog use syslog for error reporting
--disable-stdout use stdout for error reporting
--enable-console use /dev/console for error reporting
--gdoi use GDOI key management (disabled at present)
By default, debbuging is enabled and stdout is used for debugging. You can use the above configure options to have the debugging output sent to syslog or the system console. Alternatively, you can define ERR_REPORTING_FILE in include/conf.h to be any other file that can be opened by libSRTP, and debug messages will be sent to it.
This package has been tested on Mac OS X (powerpc-apple-darwin1.4),
Cygwin (i686-pc-cygwin), and Sparc (sparc-sun-solaris2.6). Previous
versions have been tested on Linux and OpenBSD on both x86 and sparc
platforms.
Enhancements:
- Release 1.4.4 is a snapshot of the code in CVS, which has been slowly accumulating minor fixes and extensions.
Download (0.50MB)
Added: 2007-05-05 License: BSD License Price:
915 downloads
XML::Filter::Sort 1.01
XML::Filter::Sort is a SAX filter for sorting elements in XML. more>>
XML::Filter::Sort is a SAX filter for sorting elements in XML.
SYNOPSIS
use XML::Filter::Sort;
use XML::SAX::Machines qw( :all );
my $sorter = XML::Filter::Sort->new(
Record => person,
Keys => [
[ lastname, alpha, asc ],
[ firstname, alpha, asc ],
[ @age, num, desc]
],
);
my $filter = Pipeline( $sorter => *STDOUT );
$filter->parse_file(*STDIN);
Or from the command line:
xmlsort
This module is a SAX filter for sorting records in XML documents (including documents larger than available memory). The xmlsort utility which is included with this distribution can be used to sort an XML file from the command line without writing Perl code (see perldoc xmlsort).
<<lessSYNOPSIS
use XML::Filter::Sort;
use XML::SAX::Machines qw( :all );
my $sorter = XML::Filter::Sort->new(
Record => person,
Keys => [
[ lastname, alpha, asc ],
[ firstname, alpha, asc ],
[ @age, num, desc]
],
);
my $filter = Pipeline( $sorter => *STDOUT );
$filter->parse_file(*STDIN);
Or from the command line:
xmlsort
This module is a SAX filter for sorting records in XML documents (including documents larger than available memory). The xmlsort utility which is included with this distribution can be used to sort an XML file from the command line without writing Perl code (see perldoc xmlsort).
Download (0.025MB)
Added: 2006-09-06 License: Perl Artistic License Price:
1145 downloads
MassResolve 0.1
MassResolve application performs reverse DNS lookups for network blocks or an input file. more>>
MassResolve application performs reverse DNS lookups for network blocks or an input file. The requests can be performed mulit-threaded.
Usage:
./res < subnet or filename to resolve > < forks >
Code:
/*
MassResolve (C) 2000 John Anderson (john@ev6.net)
This program performs reverse dns lookups for network blocks
or an input file and supports multi threading.
*/
#include < stdio.h>
#include < fcntl.h>
#include < netdb.h>
#include < signal.h>
#include < sys/time.h>
#include < unistd.h>
#include < netinet/in.h>
#include < netinet/ip.h>
#include < netinet/ip_icmp.h>
#include < errno.h>
#include < string.h>
#include < getopt.h>
#include < setjmp.h>
char *
rlookup (u_long ip)
{
static char hostname[256];
struct hostent *host;
struct sockaddr_in addr;
addr.sin_addr.s_addr = ip;
host =
gethostbyaddr ((char *) &addr.sin_addr, sizeof (addr.sin_addr), AF_INET);
if (host == NULL)
{
printf ("%s does not resolve.n", inet_ntoa (ip));
fflush (stdout);
}
else
{
printf ("%s resolves to %sn", inet_ntoa (ip), host->h_name);
fflush (stdout);
}
}
int maxforq = 0;
int
main (int argc, char **argv)
{
int pid, k, j, frk, i, mforks;
char *pt;
char mehost[200], sv[3];
FILE *inp;
mforks = 64; /* default */
if (argv[1] == NULL)
{
printf ("Usage: %s n", argv[0]);
exit (0);
}
if (!argv[2] == NULL)
{
mforks = atoi (argv[2]);
}
/* printf ("Resolving all hosts in %s with %d threadsn", argv[1], mforks); */
if((inp=fopen(argv[1],"r"))!=NULL)
{
while(fgets(mehost,sizeof(mehost),inp))
{
sscanf(mehost,"%sn",mehost);
frk = fork ();
if (frk == 0)
{
fflush (stdout);
rlookup (inet_addr (mehost));
exit (0);
}
else
{ /* frk = 0 */
maxforq++;
if (maxforq > mforks)
{
wait (NULL); // waiting until the child died
maxforq--;
}
}
}
fclose(inp);
exit(0);
}
pt = strchr (argv[1], .);
if (pt == NULL)
{ /* ANET */
for (k = 0; k<<less
Usage:
./res < subnet or filename to resolve > < forks >
Code:
/*
MassResolve (C) 2000 John Anderson (john@ev6.net)
This program performs reverse dns lookups for network blocks
or an input file and supports multi threading.
*/
#include < stdio.h>
#include < fcntl.h>
#include < netdb.h>
#include < signal.h>
#include < sys/time.h>
#include < unistd.h>
#include < netinet/in.h>
#include < netinet/ip.h>
#include < netinet/ip_icmp.h>
#include < errno.h>
#include < string.h>
#include < getopt.h>
#include < setjmp.h>
char *
rlookup (u_long ip)
{
static char hostname[256];
struct hostent *host;
struct sockaddr_in addr;
addr.sin_addr.s_addr = ip;
host =
gethostbyaddr ((char *) &addr.sin_addr, sizeof (addr.sin_addr), AF_INET);
if (host == NULL)
{
printf ("%s does not resolve.n", inet_ntoa (ip));
fflush (stdout);
}
else
{
printf ("%s resolves to %sn", inet_ntoa (ip), host->h_name);
fflush (stdout);
}
}
int maxforq = 0;
int
main (int argc, char **argv)
{
int pid, k, j, frk, i, mforks;
char *pt;
char mehost[200], sv[3];
FILE *inp;
mforks = 64; /* default */
if (argv[1] == NULL)
{
printf ("Usage: %s n", argv[0]);
exit (0);
}
if (!argv[2] == NULL)
{
mforks = atoi (argv[2]);
}
/* printf ("Resolving all hosts in %s with %d threadsn", argv[1], mforks); */
if((inp=fopen(argv[1],"r"))!=NULL)
{
while(fgets(mehost,sizeof(mehost),inp))
{
sscanf(mehost,"%sn",mehost);
frk = fork ();
if (frk == 0)
{
fflush (stdout);
rlookup (inet_addr (mehost));
exit (0);
}
else
{ /* frk = 0 */
maxforq++;
if (maxforq > mforks)
{
wait (NULL); // waiting until the child died
maxforq--;
}
}
}
fclose(inp);
exit(0);
}
pt = strchr (argv[1], .);
if (pt == NULL)
{ /* ANET */
for (k = 0; k<<less
Download (0.004MB)
Added: 2007-08-22 License: GPL (GNU General Public License) Price:
796 downloads
syncpasswd 0.4
syncpasswd is an Expect script that synchronizes passwords via SSH on multiple platforms (Linux/BSD, OS X, and Solaris). more>>
syncpasswd is an Expect script that synchronizes passwords via SSH on multiple platforms (Linux/BSD, OS X, and Solaris).
It takes hostnames as a list of arguments and changes the specified user passwords on those hosts. syncpasswd outputs results to stdout and logs to /var/log/syncpasswd.log (by default).
<<lessIt takes hostnames as a list of arguments and changes the specified user passwords on those hosts. syncpasswd outputs results to stdout and logs to /var/log/syncpasswd.log (by default).
Download (0.003MB)
Added: 2006-08-15 License: GPL (GNU General Public License) Price:
1166 downloads
Arphound 1.3.1
Arphound is a tools that listens to all traffic on an ethernet network interface, and reports IP/MAC address pair. more>>
Arphound project is a tools that listens to all traffic on an ethernet network interface, and reports IP/MAC address pair, as well as events such as IP changes, IP conflict, IP addresses with no RDNS, various ARP spoofing, and packets not using the expected gateway.
Reporting is done to stdout, to a specified file and/or to syslog.
Installation & desinstallation:
The usual way:
make
make install
To uninstall the whole package, stop the program, then:
make uninstall
Enhancements:
- Fixes many glitches that prevented 1.3 from compiling with gcc 3 or 4.
- Fixes bugs that prevented arphound from running on 64-bit architectures.
<<lessReporting is done to stdout, to a specified file and/or to syslog.
Installation & desinstallation:
The usual way:
make
make install
To uninstall the whole package, stop the program, then:
make uninstall
Enhancements:
- Fixes many glitches that prevented 1.3 from compiling with gcc 3 or 4.
- Fixes bugs that prevented arphound from running on 64-bit architectures.
Download (0.044MB)
Added: 2006-04-12 License: GPL (GNU General Public License) Price:
1290 downloads
Secleted [ 0 ] software to compare
Copyright Notice:
Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future software development. The above fflush stdout search only lists software in full, demo and trial versions for free download. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed