Skip to content

조회 수 7049 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
다운로드 및 설치

http://sourceforge.net/projects/sentrytools/

메뉴얼 대로 설치 진행 하는데..아래처럼 오류가 발생한다

make linux
SYSTYPE=linux
Making
cc -O -Wall -DLINUX -DSUPPORT_STEALTH -o ./portsentry ./portsentry.c \
                ./portsentry_io.c ./portsentry_util.c
./portsentry.c: In function 'PortSentryModeTCP':
./portsentry.c:1187: warning: pointer targets in passing argument 3 of 'accept' differ in signedness
./portsentry.c: In function 'PortSentryModeUDP':
./portsentry.c:1384: warning: pointer targets in passing argument 6 of 'recvfrom' differ in signedness
./portsentry.c: In function 'Usage':
./portsentry.c:1584: error: missing terminating " character
./portsentry.c:1585: error: 'sourceforget' undeclared (first use in this function)
./portsentry.c:1585: error: (Each undeclared identifier is reported only once
./portsentry.c:1585: error: for each function it appears in.)
./portsentry.c:1585: error: expected ')' before 'dot'
./portsentry.c:1585: error: stray '\' in program
./portsentry.c:1585: error: missing terminating " character
./portsentry.c:1595: error: expected ';' before '}' token
make: *** [linux] 오류 1

 

해결 방법을 찾던중 구글검색중 발견...

http://www.howtoforge.com/forums/showthread.php?t=25114

 

해결법 portsentry.c 파일의 1584, 1585 행을 보면 아래처럼 바꾸란다 ^^;

The problem was in lines 1584-1585 from portsentry.c
the original look like this:
1583 printf ("PortSentry - Port Scan Detector.\n");
1584 printf ("Copyright 1997-2003 Craig H. Rowland <craigrowland at users dot
1585 sourceforget dot net>\n");
1586 printf ("Licensing restrictions apply. Please see documentation\n");
1587 printf ("Version: %s\n\n", VERSION);

to work this script shopuld be:

1583 printf ("PortSentry - Port Scan Detector.\n");
1584 printf ("Copyright 1997-2003 Craig H. Rowland <craigrowland at users dot sourceforget dot net>\n");
1585 printf ("Licensing restrictions apply. Please see documentation\n");
1586 printf ("Version: %s\n\n", VERSION);

 

다시 make linux 진행 하면 아래 처럼 경고 문이 나오지만 무시해도 상관 없다.

 

make linux
SYSTYPE=linux
Making
cc -O -Wall -DLINUX -DSUPPORT_STEALTH -o ./portsentry ./portsentry.c \
                ./portsentry_io.c ./portsentry_util.c
./portsentry.c: In function 'PortSentryModeTCP':
./portsentry.c:1187: warning: pointer targets in passing argument 3 of 'accept' differ in signedness
./portsentry.c: In function 'PortSentryModeUDP':
./portsentry.c:1384: warning: pointer targets in passing argument 6 of 'recvfrom' differ in signedness

 

make install  설치 완료


 


List of Articles
번호 제목 글쓴이 날짜 조회 수
» CentOS Portsentry 1.2 소스설치 오류 ADMINPLAY 2014.01.19 7049
87 PHP 보안의 약방의 감초 open_basedir ADMINPLAY 2014.01.02 7517
86 Portsentry 1.1 설치하기 2 file ADMINPLAY 2012.01.16 15091
85 [그누보드관련] $_POST 는 이미 오염된(?) 변수다. ADMINPLAY 2010.11.18 16118
84 iptables와 mod_security 연동을 통한 ip 차단 file ADMINPLAY 2010.09.15 19760
83 Modsecurity 무료 웹방화벽 설치 file ADMINPLAY 2010.09.12 24045
82 Modsecurity-apache 2.5.X 설치중 에러 server: /usr/lib/... ADMINPLAY 2010.09.12 21282
81 Modsecurity-apache 2.5.12 file ADMINPLAY 2010.09.12 18704
80 modsecurity-2.5 configure: *** apr library not found. ADMINPLAY 2010.09.12 21128
79 iptables를 이용한 SSH brute force 공격방어 l2zeo 2010.05.29 19683
78 PHP 보안관련 설정 권고사항 ADMINPLAY 2010.05.19 20205
77 php 수호신 설치 ADMINPLAY 2010.05.03 20819
76 denyhosts (ssh, ftp 등의 접근 차단) ADMINPLAY 2010.05.03 21355
75 웹어플리케이션 보안 ADMINPLAY 2010.05.03 17145
74 php.ini 보안 설정 ADMINPLAY 2010.05.03 20370
73 해킹 당했는지 알아보는 방법 ADMINPLAY 2010.05.03 19974
72 [적용] iptables 접속 차단 스크립트 ADMINPLAY 2010.05.03 25581
71 보안 체킹 프로그램 - portsentry file ADMINPLAY 2010.04.27 16163
70 /etc/passwd 구조 l2zeo 2010.03.31 34916
69 매직키를 이용한 응급복구법 l2zeo 2010.03.31 32080
Board Pagination Prev 1 2 3 4 5 Next
/ 5

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234