+ add patch to fix a few issues (from author/maintainer)

+ use MASTER_SITE_PACKETSTORM as a backup
+ add NO_REGRESS
ok pilot@monkey.org
This commit is contained in:
jsyn 2002-01-25 21:14:59 +00:00
parent a7fb43b0fc
commit b713bbbbdc
2 changed files with 45 additions and 3 deletions

View File

@ -1,13 +1,15 @@
# $OpenBSD: Makefile,v 1.3 2002/01/11 04:59:43 mark Exp $
# $OpenBSD: Makefile,v 1.4 2002/01/25 21:14:59 jsyn Exp $
COMMENT= "powerful webserver security scanner"
DISTNAME= arirang-1.6beta
CATEGORIES= security
NEED_VERSION= 1.414
NEED_VERSION= 1.504
MASTER_SITES= http://www.monkey.org/~pilot/arirang/ \
http://search.iland.co.kr/twwwscan/
http://search.iland.co.kr/twwwscan/ \
${MASTER_SITE_PACKETSTORM}
MASTER_SITE_SUBDIR= UNIX/cgi-scanners
HOMEPAGE= http://www.monkey.org/~pilot
@ -19,6 +21,8 @@ PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
NO_REGRESS= Yes
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/arirang ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/share/arirang

View File

@ -0,0 +1,38 @@
$OpenBSD: patch-osfinger_c,v 1.1 2002/01/25 21:14:59 jsyn Exp $
--- osfinger.c.orig Sat Aug 18 04:57:50 2001
+++ osfinger.c Sat Aug 18 05:09:30 2001
@@ -48,7 +48,7 @@
char osfinger[100];
-char headBuff[4000];
+char headBuff[5500];
char *ptr,*ptr2,*buffer_pointer,*cutbuf;
@@ -74,13 +74,12 @@
snprintf(osfinger,sizeof(osfinger),"GET %s%s HTTP/1.0\n\n",NETCRAFT_FINGER,scanhost);
send(sock,osfinger,strlen(osfinger),0);
- sleep(WAIT_TIME);
- recv(sock,headBuff,sizeof(headBuff),0);
+ recv(sock,headBuff,sizeof(headBuff),MSG_WAITALL);
- ptr = strstr(headBuff,"running <b>");
+ ptr = strstr(headBuff,"on <b>");
if (ptr == NULL) {
- fprintf(stderr,"fast status,retry please\n");
+ fprintf(stderr,"unable to retrieve OS type\n");
}
else{
ptr2 = strstr(ptr,"</b>.");
@@ -89,7 +88,7 @@
*ptr2 = '.';
cutbuf=strtok(buffer_pointer,HTML_FILTER);
- fprintf(stdout,"%s Operating System Guess:\n",scanhost);
+ fprintf(stdout,"Operating System Guess: %s ",scanhost);
while(cutbuf!=NULL){
fprintf(stdout,"%s",cutbuf);
cutbuf=strtok(NULL,HTML_FILTER );