From 6eccc389a44d595726c82965dab6b6f09e9bb7c4 Mon Sep 17 00:00:00 2001 From: demian Date: Mon, 7 Apr 2003 20:58:27 +0000 Subject: [PATCH 1/1] : Added Files: : elfutils/elfutils injectso/injectso : nmap/inet_aton.patch.deprecated nmap/nmap-3.10ALPHA.patch : ogg-vorbis/vorbis ttysnoop/ttysnoop vmware/vmware : ---------------------------------------------------------------------- --- demian/elfutils/elfutils | 7 ++ demian/injectso/injectso | 8 ++ demian/nmap/inet_aton.patch.deprecated | 30 ++++++ demian/nmap/nmap-3.10ALPHA.patch | 136 +++++++++++++++++++++++++ demian/ogg-vorbis/vorbis | 26 +++++ demian/ttysnoop/ttysnoop | 16 +++ demian/vmware/vmware | 7 ++ 7 files changed, 230 insertions(+) create mode 100644 demian/elfutils/elfutils create mode 100644 demian/injectso/injectso create mode 100644 demian/nmap/inet_aton.patch.deprecated create mode 100644 demian/nmap/nmap-3.10ALPHA.patch create mode 100644 demian/ogg-vorbis/vorbis create mode 100644 demian/ttysnoop/ttysnoop create mode 100644 demian/vmware/vmware diff --git a/demian/elfutils/elfutils b/demian/elfutils/elfutils new file mode 100644 index 0000000..b030747 --- /dev/null +++ b/demian/elfutils/elfutils @@ -0,0 +1,7 @@ +# HDW Linux elfutils +# +# [M] Jonathan J. Vargas demian@hackdaworld.dyndns.org +# [I] Several useful ELF programs +# [V] FIXME +# [S] 3 8 +# [D] elfutils-bh.tar.gz FIXME diff --git a/demian/injectso/injectso b/demian/injectso/injectso new file mode 100644 index 0000000..5763917 --- /dev/null +++ b/demian/injectso/injectso @@ -0,0 +1,8 @@ +# HDW Linux injectso +# +# [M] Jonathan J. Vargas demian@hackdaworld.dyndns.org +# [I] A very deep program to inject a shared library +# [I] into an already running process +# [V] FIXME +# [S] 3 9 FIXME +# [D] injectso-0.2-tar.gz FIXME diff --git a/demian/nmap/inet_aton.patch.deprecated b/demian/nmap/inet_aton.patch.deprecated new file mode 100644 index 0000000..42fc309 --- /dev/null +++ b/demian/nmap/inet_aton.patch.deprecated @@ -0,0 +1,30 @@ +diff -u old/nmap.h new/nmap.h +--- old/nmap.h 2002-10-27 18:58:44.000000000 -0600 ++++ new/nmap.h 2002-10-27 18:24:04.000000000 -0600 +@@ -362,9 +362,9 @@ + void skid_output(unsigned char *s); + + /* From glibc 2.0.6 because Solaris doesn't seem to have this function */ +-#ifndef HAVE_INET_ATON ++/*#ifndef HAVE_INET_ATON + int inet_aton(register const char *, struct in_addr *); +-#endif ++#endif*/ + #ifndef HAVE_SNPRINTF + int snprintf ( char *str, size_t n, const char *format, ... ); + #endif +diff -u old/tcpip.h new/tcpip.h +--- old/tcpip.h 2002-10-27 18:58:59.000000000 -0600 ++++ new/tcpip.h 2002-10-27 18:24:04.000000000 -0600 +@@ -354,9 +354,9 @@ + /* Hex dump */ + int get_link_offset(char *device); + char *readip_pcap(pcap_t *pd, unsigned int *len, long to_usec); +-#ifndef HAVE_INET_ATON ++/*#ifndef HAVE_INET_ATON + int inet_aton(register const char *, struct in_addr *); +-#endif ++#endif*/ + + + #endif /*TCPIP_H*/ diff --git a/demian/nmap/nmap-3.10ALPHA.patch b/demian/nmap/nmap-3.10ALPHA.patch new file mode 100644 index 0000000..9179f86 --- /dev/null +++ b/demian/nmap/nmap-3.10ALPHA.patch @@ -0,0 +1,136 @@ +this will allow the deep use of the -e option and some other +nice features + demian + + +diff -r -u nmap-3.10ALPHA3/NmapOps.h nmap-3.10ALPHA3IX/NmapOps.h +--- nmap-3.10ALPHA3/NmapOps.h 2002-09-16 04:54:43.000000000 +0200 ++++ nmap-3.10ALPHA3IX/NmapOps.h 2002-11-10 11:24:26.000000000 +0100 +@@ -80,6 +80,7 @@ + // setPacketTrace(false) has been called + void setPacketTrace(bool pt) { pTrace = pt; } + int verbose; ++ int count; + int randomize_hosts; + int spoofsource; /* -S used */ + char device[64]; +diff -r -u nmap-3.10ALPHA3/nmap.cc nmap-3.10ALPHA3IX/nmap.cc +--- nmap-3.10ALPHA3/nmap.cc 2002-09-16 05:00:21.000000000 +0200 ++++ nmap-3.10ALPHA3IX/nmap.cc 2002-11-10 10:07:53.000000000 +0100 +@@ -172,6 +172,7 @@ + { + {"version", no_argument, 0, 'V'}, + {"verbose", no_argument, 0, 'v'}, ++ {"count", no_argument, 0, 'c'}, + {"debug", optional_argument, 0, 'd'}, + {"help", no_argument, 0, 'h'}, + {"max_parallelism", required_argument, 0, 'M'}, +@@ -571,6 +572,7 @@ + exit(0); + break; + case 'v': o.verbose++; break; ++ case 'c': o.count=1; break; + } + } + +@@ -1208,6 +1210,7 @@ + " -p ports to scan. Example range: '1-1024,1080,6666,31337'\n" + " -F Only scans ports listed in nmap-services\n" + " -v Verbose. Its use is recommended. Use twice for greater effect.\n" ++ " -c Counting stats\n" + " -P0 Don't ping hosts (needed to scan www.microsoft.com and others)\n" + "* -Ddecoy_host1,decoy2[,...] Hide scan using many decoys\n" + " -6 scans via IPv6 rather than IPv4\n" +diff -r -u nmap-3.10ALPHA3/scan_engine.cc nmap-3.10ALPHA3IX/scan_engine.cc +--- nmap-3.10ALPHA3/scan_engine.cc 2002-09-16 06:39:58.000000000 +0200 ++++ nmap-3.10ALPHA3IX/scan_engine.cc 2002-11-10 15:31:11.000000000 +0100 +@@ -536,6 +536,8 @@ + struct scanstats ss; + int rawsd = -1; + int scanflags = 0; ++ int itimes = 0; ++ int iresends = 0; + int victim; + int senddelay = 0; + pcap_t *pd = NULL; +@@ -545,6 +547,7 @@ + int res; + int connecterror = 0; + int starttime; ++ int lastcheckedtime; + struct sockaddr_storage sock; + struct sockaddr_in *sin = (struct sockaddr_in *) &sock; + #if HAVE_IPV6 +@@ -700,6 +703,7 @@ + } + + starttime = time(NULL); ++ lastcheckedtime = 0; + + if (scantype != SYN_SCAN) + ack_number = get_random_uint(); +@@ -912,6 +916,15 @@ + current->state = PORT_TESTING; + current->trynum = 0; + /* if (!testinglist) testinglist = current; */ ++ if (o.count) { ++ itimes++; ++ if ( time(NULL) != lastcheckedtime ) { ++ lastcheckedtime = time(NULL); ++ log_write(LOG_STDOUT, "Tried: %5d (%d resends) \nP/S: %8.2f ETS: %7.0f \e[28D\e[A", itimes , iresends , (double) ( itimes ) / ( 1 + lastcheckedtime - starttime ) , (double) ( numports - itimes + iresends ) / ( (double) itimes / ( 1 + lastcheckedtime - starttime ) ) ); ++ log_flush(LOG_STDOUT); ++ } ++ } ++ + ss.numqueries_outstanding++; + gettimeofday(¤t->sent[0], NULL); + if ((scantype == SYN_SCAN) || (scantype == WINDOW_SCAN) || +@@ -1049,6 +1062,7 @@ + current->state = PORT_FRESH; + current->trynum = 0; + current->sd[0] = current->sd[1] = current->sd[2] = -1; ++ iresends++; + if (o.debugging) { + log_write(LOG_STDOUT, "Preparing for retry, nonresponsive port %lu noted\n", current->portno); + } +@@ -1245,6 +1259,9 @@ + int tries = 0; + int tmp = 0; + int starttime; ++ int lastcheckedtime; ++ int itimes = 0; ++ int iresends = 0; + u16 newport; + int newstate = 999; /* This ought to break something if used illegally */ + struct portinfo *scan, *openlist, *current, *testinglist, *next; +@@ -1334,6 +1351,7 @@ + fatal("Unknown scan type for super_scan"); } + + starttime = time(NULL); ++ lastcheckedtime = 0; + + if (o.debugging || o.verbose) + log_write(LOG_STDOUT, "Initiating %s against %s\n", scantype2str(scantype), target->NameIP(hostname, sizeof(hostname))); +@@ -1416,6 +1434,14 @@ + /* lets send a packet! */ + current->state = PORT_TESTING; + /* if (!testinglist) testinglist = current; */ ++ if (o.count) { ++ itimes++; ++ if ( time(NULL) != lastcheckedtime ) { ++ lastcheckedtime = time(NULL); ++ log_write(LOG_STDOUT, "Tried: %5d (%d resends) \nP/S: %8.2f ETS: %7.0f \e[28D\e[A", itimes , iresends , (double) itimes / ( 1 + lastcheckedtime - starttime ) , (double) ( numports - itimes + iresends ) / ( (double) ( itimes + iresends ) / ( 1 + lastcheckedtime - starttime ) ) ); ++ log_flush(LOG_STDOUT); ++ } ++ } + numqueries_outstanding++; + gettimeofday(¤t->sent[0], NULL); + if (o.fragscan) +@@ -1637,6 +1663,7 @@ + for(current = openlist; current; current = (current->next >= 0)? &scan[current->next] : NULL) { + current->state = PORT_FRESH; + current->trynum = 0; ++ iresends++; + if (o.debugging) { + log_write(LOG_STDOUT, "Preparing for retry, open port %lu noted\n", current->portno); + } diff --git a/demian/ogg-vorbis/vorbis b/demian/ogg-vorbis/vorbis new file mode 100644 index 0000000..654cdbd --- /dev/null +++ b/demian/ogg-vorbis/vorbis @@ -0,0 +1,26 @@ +# HDW Linux vorbis +# +# [M] Jonathan J. Vargas demian@hackdaworld.dyndns.org +# [I] Audio compression tools. Open Source replacement +# [I] of the mp3 music format +# [V] 1.0 +# [S] 3 8 +# [D] libvorbis-1.0.tar.gz http://www.vorbis.com/files/1.0/unix/ +# [D] vorbisinfo-0.2.pl http://drocklinux.dyndns.org/rene/vorbisinfo/ +# [D] vorbis-tools-1.0.tar.gz http://www.vorbis.com/files/1.0/unix/ +# [D] libogg-1.0.tar.gz http://www.vorbis.com/files/1.0/unix/ + +build_main() +{ + ./configure $confopt ; make $make_conf ; make $install_conf install + cd .. + for pak in vorbis-tools-1.0 libogg-1.0 + do + echo "untaring ${pak}.tar.gz" + tar --use-compress-program=gzip -xvf \ + $archdir/${pak}.tar.gz + cd $pak ; + ./configure $confopt ; make $make_conf ; make $install_conf install + cd .. + done +} diff --git a/demian/ttysnoop/ttysnoop b/demian/ttysnoop/ttysnoop new file mode 100644 index 0000000..4d0f797 --- /dev/null +++ b/demian/ttysnoop/ttysnoop @@ -0,0 +1,16 @@ +# HDW Linux ttysnoop +# +# [M] Jonathan J. Vargas demian@hackdaworld.dyndns.org +# [I] Server and client programs to watch and write to a +# [I] tty device, special to watch what a user does. +# [V] none +# [S] 3 5 +# [D] ttysnoop.tar.gz unknown + +build_main() +{ + make $make_conf + cp -v snooptab /etc + cp -v ttysnoops $prefix/sbin + cp -v ttysnoop $prefix/bin +} diff --git a/demian/vmware/vmware b/demian/vmware/vmware new file mode 100644 index 0000000..213c9fa --- /dev/null +++ b/demian/vmware/vmware @@ -0,0 +1,7 @@ +# HDW Linux vmware +# +# [M] Jonathan J. Vargas demian@hackdaworld.dyndns.org +# [I] Virtual Machine to run several OS on an OS host. +# [V] FIXME +# [S] 4 5 +# [D] FIXME -- 2.39.2