autosec-devel Mailing List for Automated Security Tools
Brought to you by:
red0x
You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(30) |
Aug
(53) |
Sep
(4) |
Oct
(39) |
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
|
Feb
|
Mar
(1) |
Apr
(31) |
May
(15) |
Jun
(1) |
Jul
(1) |
Aug
(7) |
Sep
(42) |
Oct
(37) |
Nov
(39) |
Dec
(15) |
2004 |
Jan
(10) |
Feb
(17) |
Mar
(2) |
Apr
(56) |
May
(22) |
Jun
(17) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
2005 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(10) |
2007 |
Jan
(2) |
Feb
(7) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Quotes.com A. <dag...@ca...> - 2007-01-13 10:57:06
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><title></title> <META http-equiv=3DContent-Type content=3D"text/html; charset=3Dwindows-125= 1"> <meta http-equiv=3D"Content-Style-Type" content=3D"text/css"> </head> <body> <html> <head> Recent U.S. elections added fuel to the argument from Democrats that U.S. s= oldiers need to come home. But Bush has resisted that, even while projectin= g the need for a different approach.<br><br> <style type=3D"text/css"> <!-- style1 { font-weight: bold; color: #0000FF; } style2 {color: #FF0000} body { background-color: #FFFFFF; } style17 {color: #006600} style18 {color: #009966} style19 {color: #FF00FF} style22 {color: #000000} style23 { font-size: large; color: #9900FF; } --> </style> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-= 1"></head> <body> <hr size=3D"2" color=3D""> <p align=3D"center"><tt><span class=3D"style2"><strong>MARSHALL HOLDINGS IN= TERNATIONAL INC=92S(MHII.OB)</strong></span> <strong>SHARES WILL LEAD YOU O= NLY ON HIGH POSITIONS IN BUSINESS.<br> COMPANY WITH:</strong></tt></p> <div align=3D"center"> <ul class=3D"style1"> <li><tt>TOP-QUALITY MANAGEMENT </tt></li> <li><tt>LONG-LASTING COMPETITIVE ADVANTAGES </tt></li> <li><tt>SIMPLE BUSINESSES QUALIFY FOR ENTRY INTO THE PORTFOLIO </tt>= </li> </ul> <strong><tt>THIS <span class=3D"style22"> EXCITING</span> SHARE WITH STE= ADY STRATEGY GRAB IT SOONER.<br> THE NEXT PRICES ARE: <u><span class=3D"style18">JAN8th=3D0.01$</span></u>= AND CURRENT <u><span class=3D"style17">JAN12th=3D0.04$ </span></u>ON TUESD= AY <span class=3D"style17"><u>IT WILL 0.15$</u>!!!</span><br> IT GROWTHS MORE THAN <span class=3D"style19">30%</span> EVERY DAY!!! BE C= AREFUL JOIN THIS STOCK ON <span class=3D"style23">TUESDAY</span> NEXT WEEK!= !!<br> DOUBLE YOUR <span class=3D"style22">INCOME</span>. DO NOT FORGET IT WILL= EXPLODE!!! </tt></strong> <hr size=3D"2"> </div> </body> Bush pushed back against skeptics of his goal of spreading freedom across t= he Middle East. "I understand these doubts but I do not share them," the pr= esident said."Defeating them will require the full commitment of our allian= ce," Bush said.In Riga to attend a NATO summit, Bush also enlisted r= enewed commitments from the NATO allies that have deployed 32,000 troops to= Afghanistan. He said NATO commanders must have the resources and fl= exibility to do the job =97 an apparent reference to the fact that only a h= andful of countries =97 primarily Canada, Britain, the United States and th= e Netherlands =97 are doing much of the heavy lifting in the dangerous sout= hern provinces against a resurgent Taliban.<br><br> </html> </body></html> |
From: Nicolas S. <Nic...@RO...> - 2006-12-19 19:08:49
|
Get FPMC First Thing tomorrow. This Is Going To Explode! Check out for HOT NEWS!!! The alert is ON!! FLAIR PETROLEUM CORP (FPMC.PK) CURRENT_PRICE: $0.27 GET IT N0W! TARGET PRICE IN 1 WEEK: 0.73$ Please use your brokerage site to read the full news on this exciting company. Go FPMC! |
From: belong w. <hd...@op...> - 2006-12-05 07:11:04
|
17078 |
From: <no...@so...> - 2005-01-19 21:41:15
|
A BUGNOTE has been added to this bug. ======================================================================= http://autosec.sourceforge.net/helpDesk/mantis/view_bug_page.php?f_id=0000048 ======================================================================= Reporter: Anonymous Handler: ======================================================================= Project: sonar Bug ID: 0000048 Category: Bugs Reproducibility: always Severity: crash Priority: normal Status: new ======================================================================= Date Submitted: 01-12-05 00:44 PST Last Modified: 01-19-05 13:14 PST ======================================================================= Summary: sonar 1.2.2 gives floating point error Description: http://bugs.gentoo.org/show_bug.cgi?id=53409 ======================================================================= ----------------------------------------------------------------------- red0x - 01-19-05 13:14 PST ----------------------------------------------------------------------- Yea, so things up here have been a little dead. I am in my senior year at University, and am busy as hell. I remember running into this error as well, but plans for a major redesign have been in the works. So, lately, active development has been suspended, and requirements design and other stuff for the redesign has yet to begin. The project is kind of in limbo at the moment. Sorry for the bad news. |
From: red0x <re...@us...> - 2004-11-14 07:05:32
|
Update of /cvsroot/autosec/tracker/ids In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15500 Removed Files: redb0x.tracker xpider.tracker Log Message: Removed old trackers.. --- redb0x.tracker DELETED --- --- xpider.tracker DELETED --- |
From: red0x <re...@us...> - 2004-11-14 07:05:31
|
Update of /cvsroot/autosec/tracker/ids In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15500 Removed Files: redb0x.tracker xpider.tracker Log Message: Removed old trackers.. --- redb0x.tracker DELETED --- --- xpider.tracker DELETED --- |
From: Jacob F. <ph...@us...> - 2004-06-18 09:39:32
|
Update of /cvsroot/autosec/sonar/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16344 Modified Files: target.c Log Message: Fixed a bug where sonar_find_target would get stuck in an infinite loop if a match for the target could not be found Index: target.c =================================================================== RCS file: /cvsroot/autosec/sonar/src/target.c,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** target.c 13 Apr 2004 03:42:08 -0000 1.18 --- target.c 18 Jun 2004 09:39:22 -0000 1.19 *************** *** 139,143 **** sonar_find_target(sonar_t * this, struct addrinfo * ai) { ! target_t *res = NULL; uint32_t start, end, longtmp; struct sockaddr_in *sa; --- 139,143 ---- sonar_find_target(sonar_t * this, struct addrinfo * ai) { ! target_t *res = NULL, *head; uint32_t start, end, longtmp; struct sockaddr_in *sa; *************** *** 149,152 **** --- 149,153 ---- res = this->vectors; + head=res; if(res->addrinfo) *************** *** 181,184 **** --- 182,187 ---- if(res->addrinfo) { + if(memcmp(res->addrinfo, ai, sizeof(struct addrinfo)) == 0) + return res; assert(res->addrinfo->ai_addr != NULL); switch (res->addrinfo->ai_family) *************** *** 203,209 **** return NULL; } - if(memcmp(res->addrinfo, ai, sizeof(struct addrinfo)) == 0) - return res; } } return NULL; --- 206,213 ---- return NULL; } } + /* we've run through the list and didn't find a match */ + if(res==head) + return NULL; } return NULL; |
From: Jacob F. <ph...@us...> - 2004-06-18 08:53:25
|
Update of /cvsroot/autosec/sonar/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18589 Modified Files: expand.c Log Message: I borked the portname expansion in that last checkin. This fixes it Index: expand.c =================================================================== RCS file: /cvsroot/autosec/sonar/src/expand.c,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** expand.c 17 Jun 2004 06:32:22 -0000 1.9 --- expand.c 18 Jun 2004 08:53:06 -0000 1.10 *************** *** 321,325 **** break; default: - /* XXX: pharkas, what should this return? */ return -1; } --- 321,324 ---- *************** *** 356,363 **** } strl=strlen(portnam->s_name); ! checksize(strl+2, result); ! snprintf(result->resptr, strl+1, "%s", portnam->s_name); ! result->curlen+=strl-1; ! result->resptr+=strl-1; return strl; } --- 355,362 ---- } strl=strlen(portnam->s_name); ! checksize(strl+3, result); ! strncpy(result->resptr, portnam->s_name, strl+2); ! result->curlen+=strl; ! result->resptr+=strl; return strl; } |
From: Jacob F. <ph...@us...> - 2004-06-17 06:32:32
|
Update of /cvsroot/autosec/sonar/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8975 Modified Files: expand.c expand.h Log Message: Documentation and a bit of cleanup Index: expand.c =================================================================== RCS file: /cvsroot/autosec/sonar/src/expand.c,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** expand.c 11 Jun 2004 05:14:27 -0000 1.8 --- expand.c 17 Jun 2004 06:32:22 -0000 1.9 *************** *** 25,50 **** "\100$ autosec/sonar: $Id$"; ! /******************************************************************************* ! * ! * String expansion characters: ! * %t - hostname:portnumber ! * %T - hostname:portname ! * %h - hostname ! * %p - portnumber ! * %P - portname ! * %c - timestamp (Day Mon dd hh:mm:ss yyyy) ! * %Y - year (4 digit) ! * %y - year (2 digit) ! * %m - month (numeric) ! * %b - month (short alpha) ! * %B - month (full alpha) ! * %a - day (short alpha) ! * %A - day (full alpha) ! * %d - day (numeric) ! * %H - hour (12 hour) ! * %M - minutes ! * %S - seconds ! * %Q - AM/PM ! ******************************************************************************/ char * --- 25,58 ---- "\100$ autosec/sonar: $Id$"; ! /** @fn expand_target(char *format, struct addrinfo * addrinfo, uint16_t port) ! * String expansion function ! * String expansion characters: ! * %t - hostname:portnumber ! * %T - hostname:portname ! * %h - hostname ! * %p - portnumber ! * %P - portname ! * %c - timestamp (Day Mon dd hh:mm:ss yyyy) ! * %Y - year (4 digit) ! * %y - year (2 digit) ! * %m - month (numeric) ! * %b - month (short alpha) ! * %B - month (full alpha) ! * %a - day (short alpha) ! * %A - day (full alpha) ! * %d - day (numeric) ! * %H - hour (12 hour) ! * %M - minutes ! * %S - seconds ! * %Q - AM/PM ! * %x - date (mm/dd/yy) ! * %X - time (hh:mm:ss) ! * ! * @param format The format string to be used for the expanded string ! * @param addrinfo addrinfo struct containing information for the expansion ! * @param port The port being scanned in the current expansion ! * @return A pointer to an expanded string. This string must be freed by the ! * caller. ! */ char * *************** *** 122,126 **** fmtptr++; strftime(timebuf, TIMEBUF_SIZE, "%c", curtime); ! print_string(timebuf, &result); memset(timebuf, '\0', TIMEBUF_SIZE); break; --- 130,134 ---- fmtptr++; strftime(timebuf, TIMEBUF_SIZE, "%c", curtime); ! print_string(timebuf, strlen(timebuf), &result); memset(timebuf, '\0', TIMEBUF_SIZE); break; *************** *** 129,133 **** fmtptr++; strftime(timebuf, TIMEBUF_SIZE, "%Y", curtime); ! print_string(timebuf, &result); memset(timebuf, '\0', TIMEBUF_SIZE); break; --- 137,141 ---- fmtptr++; strftime(timebuf, TIMEBUF_SIZE, "%Y", curtime); ! print_string(timebuf, strlen(timebuf), &result); memset(timebuf, '\0', TIMEBUF_SIZE); break; *************** *** 135,139 **** fmtptr++; strftime(timebuf, TIMEBUF_SIZE, "%y", curtime); ! print_string(timebuf, &result); memset(timebuf, '\0', TIMEBUF_SIZE); break; --- 143,147 ---- fmtptr++; strftime(timebuf, TIMEBUF_SIZE, "%y", curtime); ! print_string(timebuf, strlen(timebuf), &result); memset(timebuf, '\0', TIMEBUF_SIZE); break; *************** *** 141,145 **** fmtptr++; strftime(timebuf, TIMEBUF_SIZE, "%B", curtime); ! print_string(timebuf, &result); memset(timebuf, '\0', TIMEBUF_SIZE); break; --- 149,153 ---- fmtptr++; strftime(timebuf, TIMEBUF_SIZE, "%B", curtime); ! print_string(timebuf, strlen(timebuf), &result); memset(timebuf, '\0', TIMEBUF_SIZE); break; *************** *** 147,151 **** fmtptr++; strftime(timebuf, TIMEBUF_SIZE, "%B", curtime); ! print_string(timebuf, &result); memset(timebuf, '\0', TIMEBUF_SIZE); break; --- 155,159 ---- fmtptr++; strftime(timebuf, TIMEBUF_SIZE, "%B", curtime); ! print_string(timebuf, strlen(timebuf), &result); memset(timebuf, '\0', TIMEBUF_SIZE); break; *************** *** 153,157 **** fmtptr++; strftime(timebuf, TIMEBUF_SIZE, "%m", curtime); ! print_string(timebuf, &result); memset(timebuf, '\0', TIMEBUF_SIZE); break; --- 161,165 ---- fmtptr++; strftime(timebuf, TIMEBUF_SIZE, "%m", curtime); ! print_string(timebuf, strlen(timebuf), &result); memset(timebuf, '\0', TIMEBUF_SIZE); break; *************** *** 159,163 **** fmtptr++; strftime(timebuf, TIMEBUF_SIZE, "%a", curtime); ! print_string(timebuf, &result); memset(timebuf, '\0', TIMEBUF_SIZE); break; --- 167,171 ---- fmtptr++; strftime(timebuf, TIMEBUF_SIZE, "%a", curtime); ! print_string(timebuf, strlen(timebuf), &result); memset(timebuf, '\0', TIMEBUF_SIZE); break; *************** *** 165,169 **** fmtptr++; strftime(timebuf, TIMEBUF_SIZE, "%a", curtime); ! print_string(timebuf, &result); memset(timebuf, '\0', TIMEBUF_SIZE); break; --- 173,177 ---- fmtptr++; strftime(timebuf, TIMEBUF_SIZE, "%a", curtime); ! print_string(timebuf, strlen(timebuf), &result); memset(timebuf, '\0', TIMEBUF_SIZE); break; *************** *** 171,175 **** fmtptr++; strftime(timebuf, TIMEBUF_SIZE, "%d", curtime); ! print_string(timebuf, &result); memset(timebuf, '\0', TIMEBUF_SIZE); break; --- 179,183 ---- fmtptr++; strftime(timebuf, TIMEBUF_SIZE, "%d", curtime); ! print_string(timebuf, strlen(timebuf), &result); memset(timebuf, '\0', TIMEBUF_SIZE); break; *************** *** 177,181 **** fmtptr++; strftime(timebuf, TIMEBUF_SIZE, "%I", curtime); ! print_string(timebuf, &result); memset(timebuf, '\0', TIMEBUF_SIZE); break; --- 185,189 ---- fmtptr++; strftime(timebuf, TIMEBUF_SIZE, "%I", curtime); ! print_string(timebuf, strlen(timebuf), &result); memset(timebuf, '\0', TIMEBUF_SIZE); break; *************** *** 183,187 **** fmtptr++; strftime(timebuf, TIMEBUF_SIZE, "%M", curtime); ! print_string(timebuf, &result); memset(timebuf, '\0', TIMEBUF_SIZE); break; --- 191,195 ---- fmtptr++; strftime(timebuf, TIMEBUF_SIZE, "%M", curtime); ! print_string(timebuf, strlen(timebuf), &result); memset(timebuf, '\0', TIMEBUF_SIZE); break; *************** *** 189,193 **** fmtptr++; strftime(timebuf, TIMEBUF_SIZE, "%S", curtime); ! print_string(timebuf, &result); memset(timebuf, '\0', TIMEBUF_SIZE); break; --- 197,201 ---- fmtptr++; strftime(timebuf, TIMEBUF_SIZE, "%S", curtime); ! print_string(timebuf, strlen(timebuf), &result); memset(timebuf, '\0', TIMEBUF_SIZE); break; *************** *** 195,209 **** fmtptr++; strftime(timebuf, TIMEBUF_SIZE, "%p", curtime); ! print_string(timebuf, &result); break; case 'x': /* date (mm/dd/yy) */ fmtptr++; strftime(timebuf, TIMEBUF_SIZE, "%x", curtime); ! print_string(timebuf, &result); break; case 'X': /* time (hh:mm:ss) */ fmtptr++; strftime(timebuf, TIMEBUF_SIZE, "%X", curtime); ! print_string(timebuf, &result); break; default: /* unrecognized format */ --- 203,217 ---- fmtptr++; strftime(timebuf, TIMEBUF_SIZE, "%p", curtime); ! print_string(timebuf, strlen(timebuf), &result); break; case 'x': /* date (mm/dd/yy) */ fmtptr++; strftime(timebuf, TIMEBUF_SIZE, "%x", curtime); ! print_string(timebuf, strlen(timebuf), &result); break; case 'X': /* time (hh:mm:ss) */ fmtptr++; strftime(timebuf, TIMEBUF_SIZE, "%X", curtime); ! print_string(timebuf, strlen(timebuf), &result); break; default: /* unrecognized format */ *************** *** 231,238 **** } ! /******************************************************************************* ! * check the size of the result string and expand it as needed to fit a string ! * of length len ! ******************************************************************************/ void checksize(int len, resultBox result) --- 239,250 ---- } ! /** @fn checksize(int len, resultBox result) ! * Check the size of the result string and expand it as needed to fit a string ! * of length len ! * @param len The number of characters to be added to the string ! * @param result The resultBox containing the expanded string, the string ! * length, and the string size. ! * @return void ! */ void checksize(int len, resultBox result) *************** *** 252,255 **** --- 264,272 ---- } + /** @fn countdigits(int d) + * Counts the number of characters needed to represent a given integer + * @param d The integer to represent + * @return The number of characters needed to represent the integer + */ int countdigits(int d) *************** *** 261,270 **** } int ! print_hostname(struct addrinfo * addrinfo, resultBox result) { ! int strl = strlen(addrinfo->ai_canonname); checksize(strl+2, result); ! snprintf(result->resptr, strl+1, "%s", addrinfo->ai_canonname); result->curlen+=strl; result->resptr+=strl; --- 278,294 ---- } + /** @fn print_hostname(struct addrinfo *addrinfo, resultBox result) + * Expands the hostname from the addrinfo struct into the result string in + * the given resultBox + * @param target addrinfo struct for the current host + * @param result The result structure that holds the expanded string + * @return The number of characters that were added to the result string + */ int ! print_hostname(struct addrinfo * target, resultBox result) { ! int strl = strlen(target->ai_canonname); checksize(strl+2, result); ! snprintf(result->resptr, strl+1, "%s", target->ai_canonname); result->curlen+=strl; result->resptr+=strl; *************** *** 272,276 **** } ! int print_ip(struct addrinfo *target, resultBox result) { char ip[INET6_ADDRSTRLEN]; --- 296,307 ---- } ! /** @fn print_ip(struct addrinfo *target, resultBox result) ! * Prints the ip from the addrinfo struct into the result string in the given ! * resultBox ! * @param target addrinfo struct for the current host ! * @param result The result structure that holds the expanded string ! * @return The number of characters that were added to the result string ! */ ! int print_ip(struct addrinfo * target, resultBox result) { char ip[INET6_ADDRSTRLEN]; *************** *** 301,304 **** --- 332,343 ---- } + /** @fn print_portname(int portnum, resultBox result) + * Prints the port name from the port number into the result string in the + * given resultBox. If no name is found for the given port number in + * /etc/services the port number itself is printed in the expanded string + * @param portnum The port number to look up + * @param result The result structure that holds the expanded string + * @return The number of characters that were added to the result string + */ int print_portname(int portnum, resultBox result) *************** *** 324,327 **** --- 363,372 ---- } + /** @fn print_number(int num, resultBox result) + * Prints the given number into the result string in the given resultBox + * @param num The number to print + * @param result The result structure that holds the expanded string + * @return The number of characters that were added to the result string + */ int print_number(int num, resultBox result) *************** *** 339,347 **** } int ! print_string(char *str, resultBox result) { - int strl; - strl=strlen(str); checksize(strl+2, result); snprintf(result->resptr, strl+1, "%s", str); --- 384,397 ---- } + /** @fn print_string(char *str, int strlen, resultBox result) + * Prints the given string into the result string in the given resultBox + * @param str The string to print + * @param strlen The length of the given string + * @param result The result structure that holds the expanded string + * @return The number of characters that were added to the result string + */ int ! print_string(char *str, int strl, resultBox result) { checksize(strl+2, result); snprintf(result->resptr, strl+1, "%s", str); Index: expand.h =================================================================== RCS file: /cvsroot/autosec/sonar/src/expand.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** expand.h 11 Jun 2004 05:14:27 -0000 1.5 --- expand.h 17 Jun 2004 06:32:22 -0000 1.6 *************** *** 53,57 **** int print_portname(int, resultBox); int print_number(int, resultBox); ! int print_string(char *, resultBox); #endif --- 53,57 ---- int print_portname(int, resultBox); int print_number(int, resultBox); ! int print_string(char *, int, resultBox); #endif |
From: red0x <re...@us...> - 2004-06-11 05:56:04
|
Update of /cvsroot/autosec/sonar/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8517/doc Modified Files: sonar.1.in Log Message: Madcap manpage update\! Woohoo\! Index: sonar.1.in =================================================================== RCS file: /cvsroot/autosec/sonar/doc/sonar.1.in,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** sonar.1.in 6 May 2004 20:51:12 -0000 1.5 --- sonar.1.in 11 Jun 2004 05:55:53 -0000 1.6 *************** *** 2,6 **** .TH SONAR 1 "10 Nov 2003" .SH NAME ! sonar \- plugable network reconnaissance by red0x .SH SYNOPSIS \fBsonar\fR [options\] <\fBscan-type\fR> <\fBtargets..\fR> --- 2,6 ---- .TH SONAR 1 "10 Nov 2003" .SH NAME ! sonar \- pluggable network reconnaissance .SH SYNOPSIS \fBsonar\fR [options\] <\fBscan-type\fR> <\fBtargets..\fR> *************** *** 42,47 **** The ICMP scan plugin supports destination unreachable generation. At the current stage, you need root priveleges to use this, as it uses RAW ICMP ! sockets. Plans are to change that in the future (to make it more like ! nmap, which does not need root). .TP .B \-sA --- 42,46 ---- The ICMP scan plugin supports destination unreachable generation. At the current stage, you need root priveleges to use this, as it uses RAW ICMP ! sockets. Plans are to change that in the future. .TP .B \-sA *************** *** 53,56 **** --- 52,63 ---- need root priveleges to generate the special ACK packets. .TP + .B \-sT + TCP connect() scan: This is a plain vanilla port scan, and, currently, it + supports no extra options. + .TP + .B \-sB + Bannger grab scan: This will grab the port banners, if any, that certain + services (like sendmail and ssh) output when they receive a conenction. + .TP .B \-s? You can make your own plugins, and once you do, you can access them through *************** *** 58,61 **** --- 65,72 ---- your plugin. .TP + .B \-l + You can see what plugins are available, and a short description of each by + typing 'sonar -l'. + .TP .B GENERAL OPTIONS None of these options are required, but they control how sonar operates. *************** *** 68,75 **** .TP .B \-c, \--scan_count=count ! Set the number of scans to do. default is 4. \-1 means go forever. .TP .B \-\-input_plugin=plugin ! Use the named input plugin. No input plugins are supported yet. .TP .B \-l, \-\-plugin_list --- 79,86 ---- .TP .B \-c, \--scan_count=count ! Set the number of scans to do. default is 1. \-1 means go forever. .TP .B \-\-input_plugin=plugin ! Use the named input plugin. .TP .B \-l, \-\-plugin_list *************** *** 79,100 **** Use the specified output plugin. Still outputs to stdout. .TP - .B \-\-TTL=hops - Set the TTL on all scans that it could apply to. - .TP - .B \-\-source_port=port - Set the source port for all scans that it could apply to. - .TP - .B \-\-packet_size=bytes - Set size of the packets. Avoid using really large numbers, as you could - really kill the network/host/your-computer with large packets. - Automatically limits size so that generated raw IP packets wont be - fragmented. - .TP - .B \-\-pattern=string - Set the pattern to fill the payload in with. When sending packets that - have a - .U packet_size - setting, fill the extra space with this pattern string. - .TP .B \-?,\-\-help Get detailed usage information. --- 90,93 ---- *************** *** 103,106 **** --- 96,157 ---- Get simple usage line. + .SH Plugin Specific Options + A little info on plugin specific options. + .TP + .B ACK Scan Options + The ACK scan supports the following, comma-separated options: + .TP + .B ttl=<num> + Set the TTL on all outbound packets from this plugin. + .TP + .B srcprt=<port> + Set the source port. + .TP + .B prog="<cmd line>" + Set the program to run if the host is online. + + Example: sonar -sA,ttl=255,scrprt=25,prog="echo %t" + + .TP + .B ICMP Scan Options + The ICMP scan supports the following, comma-separated options: + .TP + .B payload=<filename> + Append contents of specified file to the payload of the ICMP packets. + .TP + .B type=<type_name> + Set the ICMP type to send. Try 'sonar -sI,type=help' for a complete list. + .TP + .B code=<number> + Set the code field of the ICMP packet. + .TP + .B ttl=<num> + Set the TTL on all outbound packets from this plugin. + .TP + .B size=<num> + Set the packet size. + + .TP + .B Banner Grab Plugin + The Banner Grab plugin currently supports the following options: + .TP + .B <filename> + Output complete banner information to this file. + + .TP + .B Log File Plugin Options + The Log file output plugin + .B MUST + have the following options: + .TP + .B -oL,<filename>,[o/a] + <filename> specifies what file to output to, and [o/a] tells the plugin to + either overwrite (o) or append to (a) that file; overwrite mode is the default. + + .TP + .B XML Output Plugin + The XML output plugin has the same options as the logfile output plugin. + + .TP .B TIMING OPTIONS *************** *** 181,182 **** --- 232,235 ---- .SH "AUTHORS" red0x <re...@us...> + + pharkas <ph...@us...> |
From: red0x <re...@us...> - 2004-06-11 05:25:50
|
Update of /cvsroot/autosec/sonar In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9418 Modified Files: Makefile.am Makefile.in Log Message: Ammended build process to NOT rely on pdflatex, or doxygen. If you want any extra documentation, other than the man page, make html and sonar_plugin_man.pdf in the doc dir. Index: Makefile.in =================================================================== RCS file: /cvsroot/autosec/sonar/Makefile.in,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -d -r1.33 -r1.34 *** Makefile.in 9 Jun 2004 01:07:41 -0000 1.33 --- Makefile.in 11 Jun 2004 05:25:40 -0000 1.34 *************** *** 97,101 **** AUTOMAKE_OPTIONS = 1.6 ! SUBDIRS = libltdl src plugins AUX_DIST = $(ac_aux_dir)/config.guess \ --- 97,101 ---- AUTOMAKE_OPTIONS = 1.6 ! SUBDIRS = libltdl src plugins doc AUX_DIST = $(ac_aux_dir)/config.guess \ Index: Makefile.am =================================================================== RCS file: /cvsroot/autosec/sonar/Makefile.am,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** Makefile.am 9 Jun 2004 01:07:41 -0000 1.18 --- Makefile.am 11 Jun 2004 05:25:40 -0000 1.19 *************** *** 5,9 **** AUTOMAKE_OPTIONS = 1.6 ! SUBDIRS = libltdl src plugins AUX_DIST = $(ac_aux_dir)/config.guess \ --- 5,9 ---- AUTOMAKE_OPTIONS = 1.6 ! SUBDIRS = libltdl src plugins doc AUX_DIST = $(ac_aux_dir)/config.guess \ |
From: red0x <re...@us...> - 2004-06-11 05:25:50
|
Update of /cvsroot/autosec/sonar/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9418/doc Modified Files: Makefile.am Makefile.in Log Message: Ammended build process to NOT rely on pdflatex, or doxygen. If you want any extra documentation, other than the man page, make html and sonar_plugin_man.pdf in the doc dir. Index: Makefile.in =================================================================== RCS file: /cvsroot/autosec/sonar/doc/Makefile.in,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** Makefile.in 9 Jun 2004 01:07:42 -0000 1.20 --- Makefile.in 11 Jun 2004 05:25:40 -0000 1.21 *************** *** 238,242 **** info-am: ! install-data-am: install-data-local install-man install-exec-am: --- 238,242 ---- info-am: ! install-data-am: install-man install-exec-am: *************** *** 256,260 **** mostlyclean-am: mostlyclean-generic mostlyclean-libtool ! uninstall-am: uninstall-info-am uninstall-local uninstall-man uninstall-man: uninstall-man1 --- 256,260 ---- mostlyclean-am: mostlyclean-generic mostlyclean-libtool ! uninstall-am: uninstall-info-am uninstall-man uninstall-man: uninstall-man1 *************** *** 263,272 **** distclean distclean-generic distclean-libtool distdir dvi \ dvi-am info info-am install install-am install-data \ ! install-data-am install-data-local install-exec install-exec-am \ ! install-info install-info-am install-man install-man1 \ ! install-strip installcheck installcheck-am installdirs \ ! maintainer-clean maintainer-clean-generic mostlyclean \ ! mostlyclean-generic mostlyclean-libtool uninstall uninstall-am \ ! uninstall-info-am uninstall-local uninstall-man uninstall-man1 sonar_plugin_man.pdf: sonar_plugin_man.tex --- 263,272 ---- distclean distclean-generic distclean-libtool distdir dvi \ dvi-am info info-am install install-am install-data \ ! install-data-am install-exec install-exec-am install-info \ ! install-info-am install-man install-man1 install-strip \ ! installcheck installcheck-am installdirs maintainer-clean \ ! maintainer-clean-generic mostlyclean mostlyclean-generic \ ! mostlyclean-libtool uninstall uninstall-am uninstall-info-am \ ! uninstall-man uninstall-man1 sonar_plugin_man.pdf: sonar_plugin_man.tex *************** *** 289,312 **** -rm -f Makefile.in - install-data-local: html sonar_plugin_man.pdf - @$(NORMAL_INSTALL) - $(mkinstalldirs) $(DESTDIR)$(pkgdatadir) - @list='$(DOCSUBDIRS)'; for p in $$list; do \ - if test -d "$$p"; then d= ; else d="$(top_srcdir)/doc/"; fi; \ - $(mkinstalldirs) $(DESTDIR)$(pkgdatadir); \ - echo "cp -rf $$d$$p $(DESTDIR)$(pkgdatadir)"; \ - cp -rf $$d$$p $(DESTDIR)$(pkgdatadir); \ - done - cp -f sonar_plugin_man.pdf $(DESTDIR)$(pkgdatadir) - - uninstall-local: - @$(NORMAL_UNINSTALL) - @list='$(DOCSUBDIRS)'; for p in $$list; do \ - if test -d "$$p"; then d= ; else d="$(top_srcdir)/doc/"; fi; \ - echo "rm -rf $(DESTDIR)$(pkgdatadir)/$$d$$p"; \ - rm -rf $(DESTDIR)$(pkgdatadir)/$$d$$p; \ - done - rm -f $(DESTDIR)$(pkgdatadir)/sonar_plugin_man.pdf - html: mkdir -p html --- 289,292 ---- *************** *** 314,322 **** $(DOXYGEN) docConf ! sonar_plugin_man.pdf: sonar_plugin_man.tex ! if [ -x `which pdflatex` ]; then `which pdflatex` $(top_srcdir)/doc/sonar_plugin_man.tex > /dev/null; fi ! all-am: html sonar_plugin_man.pdf ! docs: all # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. --- 294,302 ---- $(DOXYGEN) docConf ! #sonar_plugin_man.pdf: sonar_plugin_man.tex ! # if [ -x `which pdflatex` ]; then `which pdflatex` $(top_srcdir)/doc/sonar_plugin_man.tex > /dev/null; fi ! #all-am: html sonar_plugin_man.pdf ! #docs: all # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. Index: Makefile.am =================================================================== RCS file: /cvsroot/autosec/sonar/doc/Makefile.am,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** Makefile.am 9 Jun 2004 01:07:42 -0000 1.9 --- Makefile.am 11 Jun 2004 05:25:40 -0000 1.10 *************** *** 22,44 **** -rm -f Makefile.in - install-data-local: html sonar_plugin_man.pdf - @$(NORMAL_INSTALL) - $(mkinstalldirs) $(DESTDIR)$(pkgdatadir) - @list='$(DOCSUBDIRS)'; for p in $$list; do \ - if test -d "$$p"; then d= ; else d="$(top_srcdir)/doc/"; fi; \ - $(mkinstalldirs) $(DESTDIR)$(pkgdatadir); \ - echo "cp -rf $$d$$p $(DESTDIR)$(pkgdatadir)"; \ - cp -rf $$d$$p $(DESTDIR)$(pkgdatadir); \ - done - cp -f sonar_plugin_man.pdf $(DESTDIR)$(pkgdatadir) - - uninstall-local: - @$(NORMAL_UNINSTALL) - @list='$(DOCSUBDIRS)'; for p in $$list; do \ - if test -d "$$p"; then d= ; else d="$(top_srcdir)/doc/"; fi; \ - echo "rm -rf $(DESTDIR)$(pkgdatadir)/$$d$$p"; \ - rm -rf $(DESTDIR)$(pkgdatadir)/$$d$$p; \ - done - rm -f $(DESTDIR)$(pkgdatadir)/sonar_plugin_man.pdf html: --- 22,25 ---- *************** *** 47,53 **** $(DOXYGEN) docConf ! sonar_plugin_man.pdf: sonar_plugin_man.tex ! if [ -x `which pdflatex` ]; then `which pdflatex` $(top_srcdir)/doc/sonar_plugin_man.tex > /dev/null; fi ! all-am: html sonar_plugin_man.pdf ! docs: all --- 28,34 ---- $(DOXYGEN) docConf ! #sonar_plugin_man.pdf: sonar_plugin_man.tex ! # if [ -x `which pdflatex` ]; then `which pdflatex` $(top_srcdir)/doc/sonar_plugin_man.tex > /dev/null; fi ! #all-am: html sonar_plugin_man.pdf ! #docs: all |
From: red0x <re...@us...> - 2004-06-11 05:14:36
|
Update of /cvsroot/autosec/sonar/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28409/src Modified Files: expand.c expand.h Log Message: plugins/rfc793.c: Calling expand string with the address info, instead of the target. src/expand.c: Protocol independent ip address printing. src/expand.h: Merged conflicts. Index: expand.c =================================================================== RCS file: /cvsroot/autosec/sonar/src/expand.c,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** expand.c 11 Jun 2004 04:39:36 -0000 1.7 --- expand.c 11 Jun 2004 05:14:27 -0000 1.8 *************** *** 49,53 **** char * ! expand_target(char *format, struct addrinfo *target, uint16_t port) { char *fmtptr; --- 49,53 ---- char * ! expand_target(char *format, struct addrinfo * addrinfo, uint16_t port) { char *fmtptr; *************** *** 89,93 **** case 't': /* ip:port number */ fmtptr++; ! print_ip(target, &result); checksize(1, &result); *(result.resptr++) = ':'; --- 89,93 ---- case 't': /* ip:port number */ fmtptr++; ! print_ip(addrinfo, &result); checksize(1, &result); *(result.resptr++) = ':'; *************** *** 97,101 **** case 'T': /* hostname:portname */ fmtptr++; ! print_hostname(target, &result); checksize(1, &result); *(result.resptr++) = ':'; --- 97,101 ---- case 'T': /* hostname:portname */ fmtptr++; ! print_hostname(addrinfo, &result); checksize(1, &result); *(result.resptr++) = ':'; *************** *** 105,113 **** case 'h': /* hostname */ fmtptr++; ! print_hostname(target, &result); break; case 'i': /* ip address */ fmtptr++; ! print_ip(target, &result); break; case 'p': /* port number */ --- 105,113 ---- case 'h': /* hostname */ fmtptr++; ! print_hostname(addrinfo, &result); break; case 'i': /* ip address */ fmtptr++; ! print_ip(addrinfo, &result); break; case 'p': /* port number */ *************** *** 262,270 **** int ! print_hostname(struct addrinfo *target, resultBox result) { ! int strl = strlen(target->ai_canonname); checksize(strl+2, result); ! snprintf(result->resptr, strl+1, "%s", target->ai_canonname); result->curlen+=strl; result->resptr+=strl; --- 262,270 ---- int ! print_hostname(struct addrinfo * addrinfo, resultBox result) { ! int strl = strlen(addrinfo->ai_canonname); checksize(strl+2, result); ! snprintf(result->resptr, strl+1, "%s", addrinfo->ai_canonname); result->curlen+=strl; result->resptr+=strl; *************** *** 274,279 **** int print_ip(struct addrinfo *target, resultBox result) { ! char ip[INET_ADDRSTRLEN]; ! inet_ntop(PF_INET, target->ai_addr, ip, INET_ADDRSTRLEN); int strl = strlen(ip); checksize(strl+2, result); --- 274,296 ---- int print_ip(struct addrinfo *target, resultBox result) { ! char ip[INET6_ADDRSTRLEN]; ! struct sockaddr_in *sa; ! struct sockaddr_in6 *sa6; ! /* this is the most ugly, but protcol independent ! function call i've ever written.. -red0x */ ! switch(target->ai_family) ! { ! case PF_INET: ! sa = target->ai_addr; ! inet_ntop(PF_INET, (void *)&(sa->sin_addr), ip, INET6_ADDRSTRLEN); ! break; ! case PF_INET6: ! sa6 = target->ai_addr; ! inet_ntop(PF_INET6, (void *)&(sa6->sin6_addr), ip, INET6_ADDRSTRLEN); ! break; ! default: ! /* XXX: pharkas, what should this return? */ ! return -1; ! } int strl = strlen(ip); checksize(strl+2, result); Index: expand.h =================================================================== RCS file: /cvsroot/autosec/sonar/src/expand.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** expand.h 11 Jun 2004 04:39:38 -0000 1.4 --- expand.h 11 Jun 2004 05:14:27 -0000 1.5 *************** *** 46,50 **** typedef struct rb* resultBox; ! char *expand_target(char *, struct addrinfo*, uint16_t); void checksize(int, resultBox); int countdigits(int); --- 46,50 ---- typedef struct rb* resultBox; ! char *expand_target(char *, struct addrinfo *, uint16_t); void checksize(int, resultBox); int countdigits(int); |
From: red0x <re...@us...> - 2004-06-11 05:14:35
|
Update of /cvsroot/autosec/sonar/plugins In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28409/plugins Modified Files: rfc793.c Log Message: plugins/rfc793.c: Calling expand string with the address info, instead of the target. src/expand.c: Protocol independent ip address printing. src/expand.h: Merged conflicts. Index: rfc793.c =================================================================== RCS file: /cvsroot/autosec/sonar/plugins/rfc793.c,v retrieving revision 1.55 retrieving revision 1.56 diff -C2 -d -r1.55 -r1.56 *** rfc793.c 10 Jun 2004 22:12:06 -0000 1.55 --- rfc793.c 11 Jun 2004 05:14:26 -0000 1.56 *************** *** 749,753 **** ("%s[%s]:%d online & UNfiltered: range: %.2f ms " "ttl: %d size: %d\n", ! my_host->addrinfo->ai_canonname, inet_ntoa(from.sin_addr), ntohs(tcp->th_sport), triptime, iphdr->ip_ttl, ntohs(iphdr->ip_len)); --- 749,753 ---- ("%s[%s]:%d online & UNfiltered: range: %.2f ms " "ttl: %d size: %d\n", ! ai->ai_canonname, inet_ntoa(from.sin_addr), ntohs(tcp->th_sport), triptime, iphdr->ip_ttl, ntohs(iphdr->ip_len)); *************** *** 759,763 **** if(op.prog) { ! expanded=mthis->expand_target(op.prog, my_host, ntohs(tcp->th_sport)); if(expanded) { --- 759,763 ---- if(op.prog) { ! expanded=mthis->expand_target(op.prog, ai, ntohs(tcp->th_sport)); if(expanded) { |
From: Jacob F. <ph...@us...> - 2004-06-11 04:39:48
|
Update of /cvsroot/autosec/sonar/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19700 Modified Files: expand.c expand.h Log Message: Changed expand_target to take an addrinfo struct. Trying to add in ip expansion Index: expand.c =================================================================== RCS file: /cvsroot/autosec/sonar/src/expand.c,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** expand.c 11 Jun 2004 04:03:45 -0000 1.6 --- expand.c 11 Jun 2004 04:39:36 -0000 1.7 *************** *** 49,53 **** char * ! expand_target(char *format, target_t* target, uint16_t port) { char *fmtptr; --- 49,53 ---- char * ! expand_target(char *format, struct addrinfo *target, uint16_t port) { char *fmtptr; *************** *** 87,93 **** switch (*(++fmtptr)) /* skip over the % */ { ! case 't': /* hostname:port number */ fmtptr++; ! print_hostname(target, &result); checksize(1, &result); *(result.resptr++) = ':'; --- 87,93 ---- switch (*(++fmtptr)) /* skip over the % */ { ! case 't': /* ip:port number */ fmtptr++; ! print_ip(target, &result); checksize(1, &result); *(result.resptr++) = ':'; *************** *** 107,110 **** --- 107,114 ---- print_hostname(target, &result); break; + case 'i': /* ip address */ + fmtptr++; + print_ip(target, &result); + break; case 'p': /* port number */ fmtptr++; *************** *** 258,266 **** int ! print_hostname(target_t * t, resultBox result) { ! int strl = strlen(t->addrinfo->ai_canonname); checksize(strl+2, result); ! snprintf(result->resptr, strl+1, "%s", t->addrinfo->ai_canonname); result->curlen+=strl; result->resptr+=strl; --- 262,282 ---- int ! print_hostname(struct addrinfo *target, resultBox result) { ! int strl = strlen(target->ai_canonname); checksize(strl+2, result); ! snprintf(result->resptr, strl+1, "%s", target->ai_canonname); ! result->curlen+=strl; ! result->resptr+=strl; ! return strl; ! } ! ! int print_ip(struct addrinfo *target, resultBox result) ! { ! char ip[INET_ADDRSTRLEN]; ! inet_ntop(PF_INET, target->ai_addr, ip, INET_ADDRSTRLEN); ! int strl = strlen(ip); ! checksize(strl+2, result); ! snprintf(result->resptr, strl+1, "%s", ip); result->curlen+=strl; result->resptr+=strl; Index: expand.h =================================================================== RCS file: /cvsroot/autosec/sonar/src/expand.h,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** expand.h 10 Jun 2004 22:11:35 -0000 1.3 --- expand.h 11 Jun 2004 04:39:38 -0000 1.4 *************** *** 24,27 **** --- 24,30 ---- #include <netdb.h> #include <netinet/in.h> + #include <sys/types.h> + #include <sys/socket.h> + #include <arpa/inet.h> #include <time.h> #include "mem.h" *************** *** 43,51 **** typedef struct rb* resultBox; ! char *expand_target(char *, target_t *, uint16_t); void checksize(int, resultBox); int countdigits(int); ! int print_hostname(target_t *, resultBox); ! int print_ip(target_t *, resultBox); int print_portname(int, resultBox); int print_number(int, resultBox); --- 46,54 ---- typedef struct rb* resultBox; ! char *expand_target(char *, struct addrinfo*, uint16_t); void checksize(int, resultBox); int countdigits(int); ! int print_hostname(struct addrinfo*, resultBox); ! int print_ip(struct addrinfo*, resultBox); int print_portname(int, resultBox); int print_number(int, resultBox); |
From: Jacob F. <ph...@us...> - 2004-06-11 04:03:53
|
Update of /cvsroot/autosec/sonar/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32388 Modified Files: expand.c Log Message: Added %x and %X for date and time Fixed a bug with %t Index: expand.c =================================================================== RCS file: /cvsroot/autosec/sonar/src/expand.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** expand.c 10 Jun 2004 22:11:35 -0000 1.5 --- expand.c 11 Jun 2004 04:03:45 -0000 1.6 *************** *** 94,97 **** --- 94,98 ---- result.curlen++; print_number(port, &result); + break; case 'T': /* hostname:portname */ fmtptr++; *************** *** 192,195 **** --- 193,206 ---- print_string(timebuf, &result); break; + case 'x': /* date (mm/dd/yy) */ + fmtptr++; + strftime(timebuf, TIMEBUF_SIZE, "%x", curtime); + print_string(timebuf, &result); + break; + case 'X': /* time (hh:mm:ss) */ + fmtptr++; + strftime(timebuf, TIMEBUF_SIZE, "%X", curtime); + print_string(timebuf, &result); + break; default: /* unrecognized format */ checksize(2, &result); *************** *** 275,280 **** checksize(strl+2, result); snprintf(result->resptr, strl+1, "%s", portnam->s_name); ! result->curlen+=strl; ! result->resptr+=strl; return strl; } --- 286,291 ---- checksize(strl+2, result); snprintf(result->resptr, strl+1, "%s", portnam->s_name); ! result->curlen+=strl-1; ! result->resptr+=strl-1; return strl; } |
From: Jacob F. <ph...@us...> - 2004-06-10 22:12:16
|
Update of /cvsroot/autosec/sonar/plugins In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1981 Modified Files: rfc793.c Log Message: Added string expansion to the plugin Index: rfc793.c =================================================================== RCS file: /cvsroot/autosec/sonar/plugins/rfc793.c,v retrieving revision 1.54 retrieving revision 1.55 diff -C2 -d -r1.54 -r1.55 *** rfc793.c 9 Jun 2004 01:07:43 -0000 1.54 --- rfc793.c 10 Jun 2004 22:12:06 -0000 1.55 *************** *** 21,25 **** #include <assert.h> ! #include <pthread.h> #include "rfc793.h" #include "mem.h" --- 21,25 ---- #include <assert.h> ! //#include <pthread.h> #include "rfc793.h" #include "mem.h" *************** *** 622,626 **** int bread, ret; double triptime; ! char buf[MAX_PACKET], *adr; int fromlen; struct sockaddr_in from; --- 622,628 ---- int bread, ret; double triptime; ! char buf[MAX_PACKET]; ! char adr[25]; ! char *expanded; int fromlen; struct sockaddr_in from; *************** *** 692,696 **** from.sin_addr.s_addr = iphdr->ip_src.s_addr; - adr = Malloc(sizeof(char) * 25); memset(adr, 0, sizeof(char) * 25); strncpy(adr, inet_ntoa(iphdr->ip_src), 24); --- 694,697 ---- *************** *** 713,717 **** strncpy(ai->ai_canonname, adr, len); } - free(adr); if((my_host = mthis->find_target(mthis, ai)) == NULL) --- 714,717 ---- *************** *** 744,753 **** my_host->stats.packets_recvd++; - /* - * PHARKAS - * Call your function like this - */ - //mthis->foobar(char*string_to_expand, tcp->th_sport, my_host); - if(mthis->opts.iVerbose > 1) mthis-> --- 744,747 ---- *************** *** 763,774 **** print_packet(tcp); ! if(op.prog != NULL) { ! ret = system(op.prog); ! if(WIFSIGNALED(ret) && ! (WTERMSIG(ret) == SIGINT || WTERMSIG(ret) == SIGQUIT)) ! { ! done = 1; ! //pthread_exit(NULL); } } --- 757,775 ---- print_packet(tcp); ! if(op.prog) { ! expanded=mthis->expand_target(op.prog, my_host, ! ntohs(tcp->th_sport)); ! if(expanded) { ! ret = system(expanded); ! if(WIFSIGNALED(ret) && ! (WTERMSIG(ret) == SIGINT || WTERMSIG(ret) == SIGQUIT)) ! { ! done = 1; ! //pthread_exit(NULL); ! /* what should go here instead of pthread_exit()? */ ! return RFC_NORESP; ! } ! free(expanded); } } *************** *** 818,822 **** from.sin_addr = icmphdr->icmp_ip.ip_dst; - adr = Malloc(25); memset(adr, 0, 25); strncpy(adr, inet_ntoa(from.sin_addr), 24); --- 819,822 ---- *************** *** 838,842 **** strncpy(ai->ai_canonname, adr, len); } - free(adr); if((my_host = mthis->find_target(mthis, ai)) == NULL) --- 838,841 ---- |
From: Jacob F. <ph...@us...> - 2004-06-10 22:11:45
|
Update of /cvsroot/autosec/sonar/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1296 Modified Files: util.c sonar.c plugin.h expand.c expand.h Log Message: The string expansion is done (finally) Sorry it took so long. Here's the list of expandable characters: %t - hostname:portnumber %T - hostname:portname %h - hostname %p - portnumber %P - portname %c - timestamp (Day Mon dd hh:mm:ss yyyy) %Y - year (4 digit) %y - year (2 digit) %m - month (numeric) %b - month (short alpha) %B - month (full alpha) %a - day (short alpha) %A - day (full alpha) %d - day (numeric) %H - hour (12 hour) %M - minutes %S - seconds %Q - AM/PM Index: expand.c =================================================================== RCS file: /cvsroot/autosec/sonar/src/expand.c,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** expand.c 23 Apr 2004 04:41:01 -0000 1.4 --- expand.c 10 Jun 2004 22:11:35 -0000 1.5 *************** *** 25,135 **** "\100$ autosec/sonar: $Id$"; ! static char *res, *r; ! static int reslen = 0, curlen = 0; char * ! expand_target(char *format, target_t * target, int port) { ! /* pointers within the format and res string, respectively */ ! char *f, *portname; ! int i; ! /* ! * we're freeing the previous result, so hopefully the caller realizes ! * that the return value is only good until the next call of ! * expand_target() ! * red0x: pharkas, make sure you document this well in the API document ! * as well as the plugin writer's manual. ! */ ! if(res != NULL) ! free(res); ! reslen = sizeof(format) * MALLOC_INC; ! res = (char *) malloc(sizeof(char) * reslen); ! f = format; ! r = res; ! while(*f != '\0') { ! if(*f == '%') { ! switch (*(++f)) { ! /* hostname:portname */ ! case 'T': ! /* skip over the 'T' */ ! f++; ! r += print_hostname(r, target); ! checksize(1); ! *r++ = ':'; ! curlen++; ! r += print_portname(r, port); break; ! /* ip:portnum */ ! case 't': ! f++; ! r += print_ip(r, target); ! checksize(1); ! *r++ = ':'; ! curlen++; ! r += print_port(r, port); break; ! /* ip */ ! case 'i': ! f++; ! r += print_ip(r, target); break; ! /* hostname */ ! case 'h': ! f += 2; ! break; ! /* port number */ ! case 'p': ! f += 2; ! break; ! /* port name */ ! case 'P': ! f += 2; ! break; ! /* year */ ! case 'y': ! f += 2; ! break; ! /* month (numeric) */ ! case 'm': ! f += 2; ! break; ! /* day (numeric?) */ ! case 'd': ! f += 2; ! break; ! /* hour */ ! case 'H': ! f += 2; ! break; ! /* minutes */ ! case 'M': ! f += 2; ! break; ! /* seconds */ ! case 'S': ! f += 2; ! break; ! default: ! checksize(2); ! *(r) = '%'; ! *(++r) = *f++; ! r++; ! curlen += 2; break; } --- 25,200 ---- "\100$ autosec/sonar: $Id$"; ! /******************************************************************************* ! * ! * String expansion characters: ! * %t - hostname:portnumber ! * %T - hostname:portname ! * %h - hostname ! * %p - portnumber ! * %P - portname ! * %c - timestamp (Day Mon dd hh:mm:ss yyyy) ! * %Y - year (4 digit) ! * %y - year (2 digit) ! * %m - month (numeric) ! * %b - month (short alpha) ! * %B - month (full alpha) ! * %a - day (short alpha) ! * %A - day (full alpha) ! * %d - day (numeric) ! * %H - hour (12 hour) ! * %M - minutes ! * %S - seconds ! * %Q - AM/PM ! ******************************************************************************/ char * ! expand_target(char *format, target_t* target, uint16_t port) { ! char *fmtptr; ! char timebuf[TIMEBUF_SIZE]; ! time_t ttime; ! struct tm *curtime; ! struct rb result; ! if(!format) ! return NULL; ! ! ttime=time(NULL); ! curtime=localtime(&ttime); ! memset(timebuf, '\0', TIMEBUF_SIZE); ! ! /* ! * the caller needs to make sure to free the expanded string when they're ! * done with it ! */ ! result.reslen = strlen(format) * MALLOC_INC; ! result.res = (char *) Malloc(sizeof(char) * result.reslen); ! memset(result.res, '\0', result.reslen); ! result.curlen=0; ! fmtptr = format; ! result.resptr = result.res; ! while(*fmtptr != '\0') { ! if(*fmtptr == '%') { ! /* ! * we've found a % character, so decode the following letter and ! * expand it ! */ ! switch (*(++fmtptr)) /* skip over the % */ { ! case 't': /* hostname:port number */ ! fmtptr++; ! print_hostname(target, &result); ! checksize(1, &result); ! *(result.resptr++) = ':'; ! result.curlen++; ! print_number(port, &result); ! case 'T': /* hostname:portname */ ! fmtptr++; ! print_hostname(target, &result); ! checksize(1, &result); ! *(result.resptr++) = ':'; ! result.curlen++; ! print_portname(port, &result); break; ! case 'h': /* hostname */ ! fmtptr++; ! print_hostname(target, &result); break; ! case 'p': /* port number */ ! fmtptr++; ! print_number(port, &result); break; ! case 'P': /* port name */ ! fmtptr++; ! print_portname(port, &result); break; ! case 'c': /* timestamp: Day Mon dd hh:mm:ss yyyy */ ! fmtptr++; ! strftime(timebuf, TIMEBUF_SIZE, "%c", curtime); ! print_string(timebuf, &result); ! memset(timebuf, '\0', TIMEBUF_SIZE); break; ! /* it gets boring after here...*/ ! case 'Y': /* year (4 digit) */ ! fmtptr++; ! strftime(timebuf, TIMEBUF_SIZE, "%Y", curtime); ! print_string(timebuf, &result); ! memset(timebuf, '\0', TIMEBUF_SIZE); break; ! case 'y': /* year (2 digit) */ ! fmtptr++; ! strftime(timebuf, TIMEBUF_SIZE, "%y", curtime); ! print_string(timebuf, &result); ! memset(timebuf, '\0', TIMEBUF_SIZE); break; ! case 'b': /* month (alpha - short) */ ! fmtptr++; ! strftime(timebuf, TIMEBUF_SIZE, "%B", curtime); ! print_string(timebuf, &result); ! memset(timebuf, '\0', TIMEBUF_SIZE); break; ! case 'B': /* month (alpha - full) */ ! fmtptr++; ! strftime(timebuf, TIMEBUF_SIZE, "%B", curtime); ! print_string(timebuf, &result); ! memset(timebuf, '\0', TIMEBUF_SIZE); break; ! case 'm': /* month (numeric) */ ! fmtptr++; ! strftime(timebuf, TIMEBUF_SIZE, "%m", curtime); ! print_string(timebuf, &result); ! memset(timebuf, '\0', TIMEBUF_SIZE); break; ! case 'a': /* day (alpha - short) */ ! fmtptr++; ! strftime(timebuf, TIMEBUF_SIZE, "%a", curtime); ! print_string(timebuf, &result); ! memset(timebuf, '\0', TIMEBUF_SIZE); break; ! case 'A': /* day (alpha - full) */ ! fmtptr++; ! strftime(timebuf, TIMEBUF_SIZE, "%a", curtime); ! print_string(timebuf, &result); ! memset(timebuf, '\0', TIMEBUF_SIZE); break; ! case 'd': /* day (numeric) */ ! fmtptr++; ! strftime(timebuf, TIMEBUF_SIZE, "%d", curtime); ! print_string(timebuf, &result); ! memset(timebuf, '\0', TIMEBUF_SIZE); ! break; ! case 'H': /* hour (12 hour) */ ! fmtptr++; ! strftime(timebuf, TIMEBUF_SIZE, "%I", curtime); ! print_string(timebuf, &result); ! memset(timebuf, '\0', TIMEBUF_SIZE); ! break; ! case 'M': /* minutes */ ! fmtptr++; ! strftime(timebuf, TIMEBUF_SIZE, "%M", curtime); ! print_string(timebuf, &result); ! memset(timebuf, '\0', TIMEBUF_SIZE); ! break; ! case 'S': /* seconds */ ! fmtptr++; ! strftime(timebuf, TIMEBUF_SIZE, "%S", curtime); ! print_string(timebuf, &result); ! memset(timebuf, '\0', TIMEBUF_SIZE); ! break; ! case 'Q': /* AM/PM */ ! fmtptr++; ! strftime(timebuf, TIMEBUF_SIZE, "%p", curtime); ! print_string(timebuf, &result); ! break; ! default: /* unrecognized format */ ! checksize(2, &result); ! *(result.resptr++) = '%'; ! *(result.resptr++) = *fmtptr++; ! result.curlen += 2; break; } *************** *** 137,168 **** else { ! checksize(1); ! *(r++) = *(f++); ! curlen++; } } ! /* terminate the string */ ! checksize(1); ! *(res + curlen + 1) = '\0'; ! return res; } ! static void ! checksize(int i) { ! if(curlen + i >= reslen) { ! while(curlen + i >= (reslen *= MALLOC_INC)) ! { ! /* TODO: use safe realloc */ ! res = (char *) realloc(res, reslen); ! /* res may have been relocated in memory- make sure r is still at ! * the right place */ ! r = res + curlen; ! } } - // curlen+=i; } --- 202,238 ---- else { ! /* the character was not a '%' - copy it direct to the expanded string ! */ ! checksize(1, &result); ! *(result.resptr++) = *(fmtptr++); ! result.curlen++; } } ! /* all done */ ! checksize(1, &result); ! return result.res; } ! /******************************************************************************* ! * check the size of the result string and expand it as needed to fit a string ! * of length len ! ******************************************************************************/ ! void ! checksize(int len, resultBox result) { ! if((result->curlen + len) >= result->reslen) { ! /* expand the string until it fits */ ! while((result->curlen + len) >= (result->reslen *= MALLOC_INC)) ; ! ! result->res = (char *) Realloc(result->res, result->reslen+1); ! /* res may have been relocated in memory- make sure resptr is still ! * at the right place ! */ ! result->resptr = result->res + result->curlen; ! memset(result->resptr, '\0', result->reslen-result->curlen); } } *************** *** 177,231 **** int ! print_hostname(char *result, target_t * t) { ! int i = strlen(t->entry); ! checksize(i); ! snprintf(result, i + 1, "%s", t->entry); ! curlen += i + 1; ! *(result + i) = '\0'; ! return i; } - /* TODO: have this print the actual IP */ int ! print_ip(char *result, target_t * t) { ! return print_hostname(result, t); } int ! print_portname(char *result, int portnum) { ! int i = countdigits(portnum); ! checksize(i); ! snprintf(result, i + 1, "%d", portnum); ! curlen += i + 1; ! *(result + i) = '\0'; ! return i; ! } ! int ! print_port(char *result, int portnum) ! { ! int i = countdigits(portnum); ! checksize(i); ! snprintf(result, i + 1, "%d", portnum); ! curlen += i + 1; ! *(result + i) = '\0'; ! return i; } - /* red0x: I'm wrapping this in ifdef's for later testing */ - #ifdef TEST_EXPAND - int ! main() { ! target_t t; ! char *name = "test"; ! t.entry = name; ! printf("|%s|\n", expand_target("a b c %d %e %T %f %% %T", &t, 80)); ! return 0; } - - #endif /* TEST_EXPAND */ --- 247,307 ---- int ! print_hostname(target_t * t, resultBox result) { ! int strl = strlen(t->addrinfo->ai_canonname); ! checksize(strl+2, result); ! snprintf(result->resptr, strl+1, "%s", t->addrinfo->ai_canonname); ! result->curlen+=strl; ! result->resptr+=strl; ! return strl; } int ! print_portname(int portnum, resultBox result) { ! int strl; ! struct servent *portnam; ! if(portnum<0) ! return 0; ! ! portnam=getservbyport(htons(portnum), NULL); ! if(!portnam || !portnam->s_name) { ! /* we didn't get anything back from getservbyport - print the port ! * number instead ! */ ! return print_number(portnum, result); ! } ! strl=strlen(portnam->s_name); ! checksize(strl+2, result); ! snprintf(result->resptr, strl+1, "%s", portnam->s_name); ! result->curlen+=strl; ! result->resptr+=strl; ! return strl; } int ! print_number(int num, resultBox result) { ! int strl; ! if(num<0) ! return 0; ! strl = countdigits(num); ! checksize(strl+2, result); ! snprintf(result->resptr, strl+1, "%d", num); ! result->curlen+=strl; ! result->resptr+=strl; ! return strl; } int ! print_string(char *str, resultBox result) { ! int strl; ! strl=strlen(str); ! checksize(strl+2, result); ! snprintf(result->resptr, strl+1, "%s", str); ! result->curlen+=strl; ! result->resptr+=strl; ! return strl; } Index: expand.h =================================================================== RCS file: /cvsroot/autosec/sonar/src/expand.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** expand.h 23 Apr 2004 04:31:49 -0000 1.2 --- expand.h 10 Jun 2004 22:11:35 -0000 1.3 *************** *** 22,38 **** #include <stdlib.h> #include "mem.h" #include "plugin.h" ! /* red0x: what does this alter? */ ! #define MALLOC_INC 1.5 ! char *expand_target(char *, target_t *, int); ! static void checksize(int); int countdigits(int); ! int print_hostname(char *, target_t *); ! int print_ip(char *, target_t *); ! int print_port(char *, int); ! int print_portname(char *, int); #endif --- 22,54 ---- #include <stdlib.h> + #include <netdb.h> + #include <netinet/in.h> + #include <time.h> #include "mem.h" #include "plugin.h" ! /* this is the ratio the string is realloc'ed by to hold the expanded ! * text ! */ ! #define MALLOC_INC 1.5 ! #define TIMEBUF_SIZE 40 ! struct rb { ! char *res; ! char *resptr; ! int reslen; ! int curlen; ! }; ! ! typedef struct rb* resultBox; ! ! char *expand_target(char *, target_t *, uint16_t); ! void checksize(int, resultBox); int countdigits(int); ! int print_hostname(target_t *, resultBox); ! int print_ip(target_t *, resultBox); ! int print_portname(int, resultBox); ! int print_number(int, resultBox); ! int print_string(char *, resultBox); #endif Index: sonar.c =================================================================== RCS file: /cvsroot/autosec/sonar/src/sonar.c,v retrieving revision 1.46 retrieving revision 1.47 diff -C2 -d -r1.46 -r1.47 *** sonar.c 8 Jun 2004 23:11:50 -0000 1.46 --- sonar.c 10 Jun 2004 22:11:35 -0000 1.47 *************** *** 39,42 **** --- 39,43 ---- #include "log.h" #include "mem.h" + #include "expand.h" #ifdef HAVE_SYSLOG_H *************** *** 102,105 **** --- 103,107 ---- mthat->dropprivs = &sonar_dropprivs; mthat->find_target = &sonar_find_target; + mthat->expand_target = &expand_target; // no targets yet ;) mthat->vectors = NULL; Index: util.c =================================================================== RCS file: /cvsroot/autosec/sonar/src/util.c,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** util.c 9 Jun 2004 01:07:44 -0000 1.31 --- util.c 10 Jun 2004 22:11:34 -0000 1.32 *************** *** 31,35 **** #include "log.h" #include "mem.h" ! #include <pthread.h> #include <assert.h> #include <syslog.h> --- 31,35 ---- #include "log.h" #include "mem.h" ! //#include <pthread.h> #include <assert.h> #include <syslog.h> Index: plugin.h =================================================================== RCS file: /cvsroot/autosec/sonar/src/plugin.h,v retrieving revision 1.49 retrieving revision 1.50 diff -C2 -d -r1.49 -r1.50 *** plugin.h 21 May 2004 07:57:21 -0000 1.49 --- plugin.h 10 Jun 2004 22:11:35 -0000 1.50 *************** *** 321,324 **** --- 321,327 ---- char *my_name; + // target string expansion + char *(*expand_target)(char*,target_t*,int); + //! struct for error function pointers struct error_ptrs *err_ptrs; |
From: red0x <re...@us...> - 2004-06-09 01:08:22
|
Update of /cvsroot/autosec/sonar In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23968 Modified Files: CONTRIB Makefile.am Makefile.in configure configure.in Log Message: Various little twiddles. Also, fixed a massive segfault bug. Index: Makefile.in =================================================================== RCS file: /cvsroot/autosec/sonar/Makefile.in,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** Makefile.in 5 May 2004 08:01:27 -0000 1.32 --- Makefile.in 9 Jun 2004 01:07:41 -0000 1.33 *************** *** 97,101 **** AUTOMAKE_OPTIONS = 1.6 ! SUBDIRS = libltdl src plugins doc AUX_DIST = $(ac_aux_dir)/config.guess \ --- 97,101 ---- AUTOMAKE_OPTIONS = 1.6 ! SUBDIRS = libltdl src plugins AUX_DIST = $(ac_aux_dir)/config.guess \ Index: CONTRIB =================================================================== RCS file: /cvsroot/autosec/sonar/CONTRIB,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** CONTRIB 7 Nov 2003 08:39:27 -0000 1.3 --- CONTRIB 9 Jun 2004 01:07:41 -0000 1.4 *************** *** 3,4 **** --- 3,5 ---- Thanks go to: sVrmarty for helping with the gcc 2.95 compile problem. + CPLUG (www.cplug.org -- Cal Poly Linux Users Group Index: Makefile.am =================================================================== RCS file: /cvsroot/autosec/sonar/Makefile.am,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** Makefile.am 24 Apr 2004 03:19:02 -0000 1.17 --- Makefile.am 9 Jun 2004 01:07:41 -0000 1.18 *************** *** 5,9 **** AUTOMAKE_OPTIONS = 1.6 ! SUBDIRS = libltdl src plugins doc AUX_DIST = $(ac_aux_dir)/config.guess \ --- 5,9 ---- AUTOMAKE_OPTIONS = 1.6 ! SUBDIRS = libltdl src plugins AUX_DIST = $(ac_aux_dir)/config.guess \ Index: configure =================================================================== RCS file: /cvsroot/autosec/sonar/configure,v retrieving revision 1.37 retrieving revision 1.38 diff -C2 -d -r1.37 -r1.38 *** configure 20 May 2004 07:00:42 -0000 1.37 --- configure 9 Jun 2004 01:07:41 -0000 1.38 *************** *** 1,5 **** #! /bin/sh # Guess values for system-dependent variables and create Makefiles. ! # Generated by GNU Autoconf 2.58 for sonar 1.2.2-r1. # # Report bugs to <http://autosec.sourceforge.net/helpDesk>. --- 1,5 ---- #! /bin/sh # Guess values for system-dependent variables and create Makefiles. ! # Generated by GNU Autoconf 2.59 for sonar 1.2.3. # # Report bugs to <http://autosec.sourceforge.net/helpDesk>. *************** *** 429,434 **** PACKAGE_NAME='sonar' PACKAGE_TARNAME='sonar' ! PACKAGE_VERSION='1.2.2-r1' ! PACKAGE_STRING='sonar 1.2.2-r1' PACKAGE_BUGREPORT='http://autosec.sourceforge.net/helpDesk' --- 429,434 ---- PACKAGE_NAME='sonar' PACKAGE_TARNAME='sonar' ! PACKAGE_VERSION='1.2.3' ! PACKAGE_STRING='sonar 1.2.3' PACKAGE_BUGREPORT='http://autosec.sourceforge.net/helpDesk' *************** *** 942,946 **** # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF ! \`configure' configures sonar 1.2.2-r1 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... --- 942,946 ---- # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF ! \`configure' configures sonar 1.2.3 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... *************** *** 1009,1013 **** if test -n "$ac_init_help"; then case $ac_init_help in ! short | recursive ) echo "Configuration of sonar 1.2.2-r1:";; esac cat <<\_ACEOF --- 1009,1013 ---- if test -n "$ac_init_help"; then case $ac_init_help in ! short | recursive ) echo "Configuration of sonar 1.2.3:";; esac cat <<\_ACEOF *************** *** 1077,1114 **** ac_top_srcdir=$ac_top_builddir$srcdir ;; esac ! case "$ac_dir" in ! .) ac_abs_builddir=$ac_builddir;; *) ! case $ac_builddir in ! .) ac_abs_builddir="$ac_dir";; ! [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;; ! *) ac_abs_builddir="$ac_dir"/$ac_builddir;; esac;; esac ! case "$ac_dir" in .) ac_abs_top_builddir=${ac_top_builddir}.;; *) case ${ac_top_builddir}. in ! .) ac_abs_top_builddir="$ac_dir";; [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; ! *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;; esac;; esac ! case "$ac_dir" in .) ac_abs_srcdir=$ac_srcdir;; *) case $ac_srcdir in ! .) ac_abs_srcdir="$ac_dir";; [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; ! *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;; esac;; esac ! case "$ac_dir" in .) ac_abs_top_srcdir=$ac_top_srcdir;; *) case $ac_top_srcdir in ! .) ac_abs_top_srcdir="$ac_dir";; [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; ! *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;; esac;; esac --- 1077,1117 ---- ac_top_srcdir=$ac_top_builddir$srcdir ;; esac ! ! # Do not use `cd foo && pwd` to compute absolute paths, because ! # the directories may not exist. ! case `pwd` in ! .) ac_abs_builddir="$ac_dir";; *) ! case "$ac_dir" in ! .) ac_abs_builddir=`pwd`;; ! [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; ! *) ac_abs_builddir=`pwd`/"$ac_dir";; esac;; esac ! case $ac_abs_builddir in .) ac_abs_top_builddir=${ac_top_builddir}.;; *) case ${ac_top_builddir}. in ! .) ac_abs_top_builddir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; ! *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; esac;; esac ! case $ac_abs_builddir in .) ac_abs_srcdir=$ac_srcdir;; *) case $ac_srcdir in ! .) ac_abs_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; ! *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; esac;; esac ! case $ac_abs_builddir in .) ac_abs_top_srcdir=$ac_top_srcdir;; *) case $ac_top_srcdir in ! .) ac_abs_top_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; ! *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; esac;; esac *************** *** 1136,1141 **** if $ac_init_version; then cat <<\_ACEOF ! sonar configure 1.2.2-r1 ! generated by GNU Autoconf 2.58 Copyright (C) 2003 Free Software Foundation, Inc. --- 1139,1144 ---- if $ac_init_version; then cat <<\_ACEOF ! sonar configure 1.2.3 ! generated by GNU Autoconf 2.59 Copyright (C) 2003 Free Software Foundation, Inc. *************** *** 1150,1155 **** running configure, to aid debugging if configure makes a mistake. ! It was created by sonar $as_me 1.2.2-r1, which was ! generated by GNU Autoconf 2.58. Invocation command line was $ $0 $@ --- 1153,1158 ---- running configure, to aid debugging if configure makes a mistake. ! It was created by sonar $as_me 1.2.3, which was ! generated by GNU Autoconf 2.59. Invocation command line was $ $0 $@ *************** *** 1863,1867 **** # Define the identity of the package. PACKAGE=sonar ! VERSION=1.2.2-r1 --- 1866,1870 ---- # Define the identity of the package. PACKAGE=sonar ! VERSION=1.2.3 *************** *** 4902,4906 **** *-*-irix6*) # Find out which ABI we are using. ! echo '#line 4904 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 --- 4905,4909 ---- *-*-irix6*) # Find out which ABI we are using. ! echo '#line 4907 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 *************** *** 5478,5482 **** CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" compiler_c_o=no ! if { (eval echo configure:5480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings --- 5481,5485 ---- CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" compiler_c_o=no ! if { (eval echo configure:5483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings *************** *** 6711,6715 **** case "$host_cpu" in x86_64*) ! echo '#line 6713 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 --- 6714,6718 ---- case "$host_cpu" in x86_64*) ! echo '#line 6716 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 *************** *** 7459,7463 **** lt_status=$lt_dlunknown cat > conftest.$ac_ext <<EOF ! #line 7461 "configure" #include "confdefs.h" --- 7462,7466 ---- lt_status=$lt_dlunknown cat > conftest.$ac_ext <<EOF ! #line 7464 "configure" #include "confdefs.h" *************** *** 7557,7561 **** lt_status=$lt_dlunknown cat > conftest.$ac_ext <<EOF ! #line 7559 "configure" #include "confdefs.h" --- 7560,7564 ---- lt_status=$lt_dlunknown cat > conftest.$ac_ext <<EOF ! #line 7562 "configure" #include "confdefs.h" *************** *** 12368,12373 **** cat >&5 <<_CSEOF ! This file was extended by sonar $as_me 1.2.2-r1, which was ! generated by GNU Autoconf 2.58. Invocation command line was CONFIG_FILES = $CONFIG_FILES --- 12371,12376 ---- cat >&5 <<_CSEOF ! This file was extended by sonar $as_me 1.2.3, which was ! generated by GNU Autoconf 2.59. Invocation command line was CONFIG_FILES = $CONFIG_FILES *************** *** 12431,12436 **** cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ ! sonar config.status 1.2.2-r1 ! configured by $0, generated by GNU Autoconf 2.58, with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" --- 12434,12439 ---- cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ ! sonar config.status 1.2.3 ! configured by $0, generated by GNU Autoconf 2.59, with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" *************** *** 12815,12852 **** ac_top_srcdir=$ac_top_builddir$srcdir ;; esac ! case "$ac_dir" in ! .) ac_abs_builddir=$ac_builddir;; *) ! case $ac_builddir in ! .) ac_abs_builddir="$ac_dir";; ! [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;; ! *) ac_abs_builddir="$ac_dir"/$ac_builddir;; esac;; esac ! case "$ac_dir" in .) ac_abs_top_builddir=${ac_top_builddir}.;; *) case ${ac_top_builddir}. in ! .) ac_abs_top_builddir="$ac_dir";; [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; ! *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;; esac;; esac ! case "$ac_dir" in .) ac_abs_srcdir=$ac_srcdir;; *) case $ac_srcdir in ! .) ac_abs_srcdir="$ac_dir";; [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; ! *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;; esac;; esac ! case "$ac_dir" in .) ac_abs_top_srcdir=$ac_top_srcdir;; *) case $ac_top_srcdir in ! .) ac_abs_top_srcdir="$ac_dir";; [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; ! *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;; esac;; esac --- 12818,12858 ---- ac_top_srcdir=$ac_top_builddir$srcdir ;; esac ! ! # Do not use `cd foo && pwd` to compute absolute paths, because ! # the directories may not exist. ! case `pwd` in ! .) ac_abs_builddir="$ac_dir";; *) ! case "$ac_dir" in ! .) ac_abs_builddir=`pwd`;; ! [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; ! *) ac_abs_builddir=`pwd`/"$ac_dir";; esac;; esac ! case $ac_abs_builddir in .) ac_abs_top_builddir=${ac_top_builddir}.;; *) case ${ac_top_builddir}. in ! .) ac_abs_top_builddir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; ! *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; esac;; esac ! case $ac_abs_builddir in .) ac_abs_srcdir=$ac_srcdir;; *) case $ac_srcdir in ! .) ac_abs_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; ! *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; esac;; esac ! case $ac_abs_builddir in .) ac_abs_top_srcdir=$ac_top_srcdir;; *) case $ac_top_srcdir in ! .) ac_abs_top_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; ! *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; esac;; esac *************** *** 13229,13266 **** ac_top_srcdir=$ac_top_builddir$srcdir ;; esac ! case "$ac_dir" in ! .) ac_abs_builddir=$ac_builddir;; *) ! case $ac_builddir in ! .) ac_abs_builddir="$ac_dir";; ! [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;; ! *) ac_abs_builddir="$ac_dir"/$ac_builddir;; esac;; esac ! case "$ac_dir" in .) ac_abs_top_builddir=${ac_top_builddir}.;; *) case ${ac_top_builddir}. in ! .) ac_abs_top_builddir="$ac_dir";; [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; ! *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;; esac;; esac ! case "$ac_dir" in .) ac_abs_srcdir=$ac_srcdir;; *) case $ac_srcdir in ! .) ac_abs_srcdir="$ac_dir";; [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; ! *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;; esac;; esac ! case "$ac_dir" in .) ac_abs_top_srcdir=$ac_top_srcdir;; *) case $ac_top_srcdir in ! .) ac_abs_top_srcdir="$ac_dir";; [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; ! *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;; esac;; esac --- 13235,13275 ---- ac_top_srcdir=$ac_top_builddir$srcdir ;; esac ! ! # Do not use `cd foo && pwd` to compute absolute paths, because ! # the directories may not exist. ! case `pwd` in ! .) ac_abs_builddir="$ac_dir";; *) ! case "$ac_dir" in ! .) ac_abs_builddir=`pwd`;; ! [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; ! *) ac_abs_builddir=`pwd`/"$ac_dir";; esac;; esac ! case $ac_abs_builddir in .) ac_abs_top_builddir=${ac_top_builddir}.;; *) case ${ac_top_builddir}. in ! .) ac_abs_top_builddir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; ! *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; esac;; esac ! case $ac_abs_builddir in .) ac_abs_srcdir=$ac_srcdir;; *) case $ac_srcdir in ! .) ac_abs_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; ! *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; esac;; esac ! case $ac_abs_builddir in .) ac_abs_top_srcdir=$ac_top_srcdir;; *) case $ac_top_srcdir in ! .) ac_abs_top_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; ! *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; esac;; esac *************** *** 13492,13529 **** ac_top_srcdir=$ac_top_builddir$srcdir ;; esac ! case "$ac_dir" in ! .) ac_abs_builddir=$ac_builddir;; *) ! case $ac_builddir in ! .) ac_abs_builddir="$ac_dir";; ! [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;; ! *) ac_abs_builddir="$ac_dir"/$ac_builddir;; esac;; esac ! case "$ac_dir" in .) ac_abs_top_builddir=${ac_top_builddir}.;; *) case ${ac_top_builddir}. in ! .) ac_abs_top_builddir="$ac_dir";; [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; ! *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;; esac;; esac ! case "$ac_dir" in .) ac_abs_srcdir=$ac_srcdir;; *) case $ac_srcdir in ! .) ac_abs_srcdir="$ac_dir";; [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; ! *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;; esac;; esac ! case "$ac_dir" in .) ac_abs_top_srcdir=$ac_top_srcdir;; *) case $ac_top_srcdir in ! .) ac_abs_top_srcdir="$ac_dir";; [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; ! *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;; esac;; esac --- 13501,13541 ---- ac_top_srcdir=$ac_top_builddir$srcdir ;; esac ! ! # Do not use `cd foo && pwd` to compute absolute paths, because ! # the directories may not exist. ! case `pwd` in ! .) ac_abs_builddir="$ac_dir";; *) ! case "$ac_dir" in ! .) ac_abs_builddir=`pwd`;; ! [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; ! *) ac_abs_builddir=`pwd`/"$ac_dir";; esac;; esac ! case $ac_abs_builddir in .) ac_abs_top_builddir=${ac_top_builddir}.;; *) case ${ac_top_builddir}. in ! .) ac_abs_top_builddir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; ! *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; esac;; esac ! case $ac_abs_builddir in .) ac_abs_srcdir=$ac_srcdir;; *) case $ac_srcdir in ! .) ac_abs_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; ! *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; esac;; esac ! case $ac_abs_builddir in .) ac_abs_top_srcdir=$ac_top_srcdir;; *) case $ac_top_srcdir in ! .) ac_abs_top_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; ! *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; esac;; esac Index: configure.in =================================================================== RCS file: /cvsroot/autosec/sonar/configure.in,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -d -r1.34 -r1.35 *** configure.in 20 May 2004 07:00:44 -0000 1.34 --- configure.in 9 Jun 2004 01:07:41 -0000 1.35 *************** *** 1,5 **** # Process this file with autoconf to produce a configure script. AC_PREREQ(2.57) ! AC_INIT([sonar], [1.2.2-r1], [http://autosec.sourceforge.net/helpDesk]) AC_CONFIG_SRCDIR([src/sonar.c]) --- 1,5 ---- # Process this file with autoconf to produce a configure script. AC_PREREQ(2.57) ! AC_INIT([sonar], [1.2.3], [http://autosec.sourceforge.net/helpDesk]) AC_CONFIG_SRCDIR([src/sonar.c]) |
From: red0x <re...@us...> - 2004-06-09 01:07:54
|
Update of /cvsroot/autosec/sonar/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23968/doc Modified Files: Makefile.am Makefile.in Log Message: Various little twiddles. Also, fixed a massive segfault bug. Index: Makefile.in =================================================================== RCS file: /cvsroot/autosec/sonar/doc/Makefile.in,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** Makefile.in 5 May 2004 08:01:28 -0000 1.19 --- Makefile.in 9 Jun 2004 01:07:42 -0000 1.20 *************** *** 310,314 **** html: ! mkdir html touch html/dummy $(DOXYGEN) docConf --- 310,314 ---- html: ! mkdir -p html touch html/dummy $(DOXYGEN) docConf Index: Makefile.am =================================================================== RCS file: /cvsroot/autosec/sonar/doc/Makefile.am,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** Makefile.am 5 May 2004 08:01:27 -0000 1.8 --- Makefile.am 9 Jun 2004 01:07:42 -0000 1.9 *************** *** 43,47 **** html: ! mkdir html touch html/dummy $(DOXYGEN) docConf --- 43,47 ---- html: ! mkdir -p html touch html/dummy $(DOXYGEN) docConf |
From: red0x <re...@us...> - 2004-06-09 01:07:54
|
Update of /cvsroot/autosec/sonar/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23968/src Modified Files: util.c Log Message: Various little twiddles. Also, fixed a massive segfault bug. Index: util.c =================================================================== RCS file: /cvsroot/autosec/sonar/src/util.c,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** util.c 19 May 2004 08:17:25 -0000 1.30 --- util.c 9 Jun 2004 01:07:44 -0000 1.31 *************** *** 144,151 **** --- 144,154 ---- abort(); break; + default: + goto helives; } /* plugin_killall(); */ exit(0); + helives: } |
From: red0x <re...@us...> - 2004-06-09 01:07:54
|
Update of /cvsroot/autosec/sonar/plugins In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23968/plugins Modified Files: rfc793.c Log Message: Various little twiddles. Also, fixed a massive segfault bug. Index: rfc793.c =================================================================== RCS file: /cvsroot/autosec/sonar/plugins/rfc793.c,v retrieving revision 1.53 retrieving revision 1.54 diff -C2 -d -r1.53 -r1.54 *** rfc793.c 6 May 2004 20:11:09 -0000 1.53 --- rfc793.c 9 Jun 2004 01:07:43 -0000 1.54 *************** *** 380,384 **** return PLUGIN_ERROR; } ! timeout = mthis->opts.iTimeout; if(timeout <= 0) --- 380,384 ---- return PLUGIN_ERROR; } ! timeout = mthis->opts.iTimeout; if(timeout <= 0) *************** *** 500,504 **** // was my_ports meant for something? if not it's not doing anything // useful ! int my_ports[65547]; uint32_t addr, one = 1; --- 500,504 ---- // was my_ports meant for something? if not it's not doing anything // useful ! char my_ports[65547]; uint32_t addr, one = 1; *************** *** 514,521 **** gethostname(name, 255); ai = mthis->resolve(name, NULL, PF_INET, 0); ! memcpy(my_ports, target->ports, 65537 * sizeof(int)); for(j = 0; j <= target->extra_hosts; j++) { ! packet = (unsigned char *) Malloc(total_size); memset(packet, 0, total_size); memset(name, 0, 256); --- 514,523 ---- gethostname(name, 255); ai = mthis->resolve(name, NULL, PF_INET, 0); ! memcpy(my_ports, target->ports, 65537); for(j = 0; j <= target->extra_hosts; j++) { ! packet = (unsigned char *) malloc(total_size); ! if(!packet) ! mthis->err_ptrs->err_sys("fool! malloc died!\n"); memset(packet, 0, total_size); memset(name, 0, 256); *************** *** 583,587 **** } } ! add_tcphdr(packet, &nt, TH_ACK); // packet is ready to send --- 585,589 ---- } } ! add_tcphdr(packet, &nt, TH_ACK); // packet is ready to send *************** *** 603,607 **** target->stats.packets_sent++; free(packet); ! memcpy(target->ports, my_ports, 65537 * sizeof(int)); } --- 605,609 ---- target->stats.packets_sent++; free(packet); ! memcpy(target->ports, my_ports, 65537); } *************** *** 620,624 **** int bread, ret; double triptime; ! char buf[MAX_PACKET], *adr = NULL; int fromlen; struct sockaddr_in from; --- 622,626 ---- int bread, ret; double triptime; ! char buf[MAX_PACKET], *adr; int fromlen; struct sockaddr_in from; *************** *** 690,695 **** from.sin_addr.s_addr = iphdr->ip_src.s_addr; ! adr = Malloc(25); ! memset(adr, 0, 25); strncpy(adr, inet_ntoa(iphdr->ip_src), 24); if((ai = mthis->resolve(adr, NULL, 0, 0)) == NULL) --- 692,697 ---- from.sin_addr.s_addr = iphdr->ip_src.s_addr; ! adr = Malloc(sizeof(char) * 25); ! memset(adr, 0, sizeof(char) * 25); strncpy(adr, inet_ntoa(iphdr->ip_src), 24); if((ai = mthis->resolve(adr, NULL, 0, 0)) == NULL) *************** *** 768,772 **** { done = 1; ! pthread_exit(NULL); } } --- 770,774 ---- { done = 1; ! //pthread_exit(NULL); } } |
From: red0x <re...@us...> - 2004-06-08 23:12:35
|
Update of /cvsroot/autosec/sonar/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10159/src Modified Files: sonar.c Log Message: Fixed some broken version numbering code Index: sonar.c =================================================================== RCS file: /cvsroot/autosec/sonar/src/sonar.c,v retrieving revision 1.45 retrieving revision 1.46 diff -C2 -d -r1.45 -r1.46 *** sonar.c 19 May 2004 08:17:25 -0000 1.45 --- sonar.c 8 Jun 2004 23:11:50 -0000 1.46 *************** *** 73,93 **** pv = (char *) Malloc(strlen(PACKAGE_VERSION)); strncpy(pv, PACKAGE_VERSION, strlen(PACKAGE_VERSION)); ! temp = strpbrk(pv, "."); ! while(pv != NULL) { if(temp) *temp++ = 0x00; ! if(mthat->ver_major == 0) ! mthat->ver_major = atoi(pv); ! else if(mthat->ver_minor == 0) ! mthat->ver_minor = atoi(pv); ! else if(mthat->revision == 0) ! mthat->revision = atoi(pv); ! else ! pv = NULL; ! pv = temp; ! if(!pv) ! break; ! temp = strpbrk(pv, "."); } free(pv); --- 73,93 ---- pv = (char *) Malloc(strlen(PACKAGE_VERSION)); strncpy(pv, PACKAGE_VERSION, strlen(PACKAGE_VERSION)); ! mthat->ver_major = atoi(pv); ! temp = strchr(pv, '.'); ! if(temp) { + *temp++ = 0x00; + mthat->ver_minor = atoi(temp); + temp = strchr(temp, '.'); if(temp) + { *temp++ = 0x00; ! mthat->revision = atoi(temp); ! } ! } ! else ! { ! mthat->ver_minor = 0; ! mthat->revision = 0; } free(pv); |
From: red0x <re...@us...> - 2004-05-24 04:49:56
|
Update of /cvsroot/autosec/sonar/plugins In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14854/plugins Modified Files: network_banner.c Log Message: banner grab takes the name of a file to save banners to. Index: network_banner.c =================================================================== RCS file: /cvsroot/autosec/sonar/plugins/network_banner.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** network_banner.c 21 May 2004 07:56:21 -0000 1.1 --- network_banner.c 24 May 2004 04:49:47 -0000 1.2 *************** *** 161,165 **** banner_open(void *cmdline, int len) { - /* XXX: Take some options, like TTL, etc. */ if(cmdline && len > 0) process_opts(cmdline, len); --- 161,164 ---- |
From: red0x <re...@us...> - 2004-05-24 04:49:26
|
Update of /cvsroot/autosec/sonar/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14798/src Modified Files: popts.c Log Message: Changed license status to GPL-2 only. Index: popts.c =================================================================== RCS file: /cvsroot/autosec/sonar/src/popts.c,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** popts.c 23 Apr 2004 04:43:45 -0000 1.13 --- popts.c 24 May 2004 04:49:17 -0000 1.14 *************** *** 50,54 **** PACKAGE_STRING, PACKAGE_BUGREPORT); #endif ! fprintf(stderr, "FREE for NON-COMMERCIAL USE\n"); } --- 50,54 ---- PACKAGE_STRING, PACKAGE_BUGREPORT); #endif ! // fprintf(stderr, "FREE for NON-COMMERCIAL USE\n"); } |