Skip to content

조회 수 7050 추천 수 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
번호 제목 글쓴이 날짜 조회 수
88 /etc/passwd 구조 l2zeo 2010.03.31 34917
87 64bit 시스템에 ssl 설치 후 실행 시 X509_free 오류 ADMINPLAY 2009.07.19 9701
86 Apache 에 ModSecurity 모듈 설치하기 ADMINPLAY 2009.08.03 10539
85 apache 웹방화벽 modsecurity용 웹설정 툴, Remo file ADMINPLAY 2009.09.09 9446
84 apache 웹방화벽 모듈 modsecurity용 웹설정 툴, Remo file ADMINPLAY 2009.03.17 10033
83 CentOS 5.2 32bit 에 2.6.27.4 커널 + iptables 1.4.2 + c... ADMIN 2008.11.10 7818
» CentOS Portsentry 1.2 소스설치 오류 ADMINPLAY 2014.01.19 7050
81 Cisco/Tip/라우터,스위치에서 패킷 캡쳐하기 file l2zeo 2010.03.23 16119
80 DDOS - iptables 방화벽 초간단 문서 ADMINPLAY 2009.05.28 12302
79 denyhosts (ssh, ftp 등의 접근 차단) ADMINPLAY 2010.05.03 21356
78 DOS Attack을 막기 위한 간단한 방법 ADMINPLAY 2009.05.22 9568
77 fcheck - 리눅스 시스템 무결성 검사 툴 ADMIN 2008.12.14 11026
76 find 명령어 활용(보안관련) ADMINPLAY 2009.08.08 9599
75 iframe 이용한 악성코드 삽입, 홈페이지 변조 사고 대비 ... ADMINPLAY 2009.10.15 10806
74 iptables 기본 ADMINPLAY 2009.05.22 8386
73 iptables 리눅스? NETFILTER관련 1 l2zeo 2010.03.08 10122
72 iptables 명령어로 ip 차단 법. ADMINPLAY 2009.05.28 9283
71 iptables 설정, centos64 설치 간단셋팅 ADMINPLAY 2009.05.28 8854
70 iptables 옵션 및 상태 추적 테이블 및 rule ADMINPLAY 2009.11.30 8851
69 iptables 포트 포워딩 ADMINPLAY 2009.06.04 12037
Board Pagination Prev 1 2 3 4 5 Next
/ 5

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234