Skip to content

조회 수 7053 추천 수 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  설치 완료


 


  1. /etc/passwd 구조

    Date2010.03.31 Byl2zeo Views34919
    Read More
  2. 64bit 시스템에 ssl 설치 후 실행 시 X509_free 오류

    Date2009.07.19 ByADMINPLAY Views9702
    Read More
  3. Apache 에 ModSecurity 모듈 설치하기

    Date2009.08.03 ByADMINPLAY Views10539
    Read More
  4. apache 웹방화벽 modsecurity용 웹설정 툴, Remo

    Date2009.09.09 ByADMINPLAY Views9446
    Read More
  5. apache 웹방화벽 모듈 modsecurity용 웹설정 툴, Remo

    Date2009.03.17 ByADMINPLAY Views10033
    Read More
  6. CentOS 5.2 32bit 에 2.6.27.4 커널 + iptables 1.4.2 + c...

    Date2008.11.10 ByADMIN Views7819
    Read More
  7. CentOS Portsentry 1.2 소스설치 오류

    Date2014.01.19 ByADMINPLAY Views7053
    Read More
  8. Cisco/Tip/라우터,스위치에서 패킷 캡쳐하기

    Date2010.03.23 Byl2zeo Views16126
    Read More
  9. DDOS - iptables 방화벽 초간단 문서

    Date2009.05.28 ByADMINPLAY Views12302
    Read More
  10. denyhosts (ssh, ftp 등의 접근 차단)

    Date2010.05.03 ByADMINPLAY Views21359
    Read More
  11. DOS Attack을 막기 위한 간단한 방법

    Date2009.05.22 ByADMINPLAY Views9568
    Read More
  12. fcheck - 리눅스 시스템 무결성 검사 툴

    Date2008.12.14 ByADMIN Views11026
    Read More
  13. find 명령어 활용(보안관련)

    Date2009.08.08 ByADMINPLAY Views9599
    Read More
  14. iframe 이용한 악성코드 삽입, 홈페이지 변조 사고 대비 ...

    Date2009.10.15 ByADMINPLAY Views10806
    Read More
  15. iptables 기본

    Date2009.05.22 ByADMINPLAY Views8386
    Read More
  16. iptables 리눅스? NETFILTER관련

    Date2010.03.08 Byl2zeo Views10122
    Read More
  17. iptables 명령어로 ip 차단 법.

    Date2009.05.28 ByADMINPLAY Views9283
    Read More
  18. iptables 설정, centos64 설치 간단셋팅

    Date2009.05.28 ByADMINPLAY Views8854
    Read More
  19. iptables 옵션 및 상태 추적 테이블 및 rule

    Date2009.11.30 ByADMINPLAY Views8851
    Read More
  20. iptables 포트 포워딩

    Date2009.06.04 ByADMINPLAY Views12037
    Read More
Board Pagination Prev 1 2 3 4 5 Next
/ 5

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234