Skip to content

조회 수 7052 추천 수 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. No Image 19Jan
    by ADMINPLAY
    2014/01/19 by ADMINPLAY
    Views 7052 

    CentOS Portsentry 1.2 소스설치 오류

  2. No Image 02Jan
    by ADMINPLAY
    2014/01/02 by ADMINPLAY
    Views 7520 

    PHP 보안의 약방의 감초 open_basedir

  3. Portsentry 1.1 설치하기

  4. No Image 18Nov
    by ADMINPLAY
    2010/11/18 by ADMINPLAY
    Views 16122 

    [그누보드관련] $_POST 는 이미 오염된(?) 변수다.

  5. No Image 15Sep
    by ADMINPLAY
    2010/09/15 by ADMINPLAY
    Views 19763 

    iptables와 mod_security 연동을 통한 ip 차단

  6. Modsecurity 무료 웹방화벽 설치

  7. No Image 12Sep
    by ADMINPLAY
    2010/09/12 by ADMINPLAY
    Views 21285 

    Modsecurity-apache 2.5.X 설치중 에러 server: /usr/lib/libxml2.so: wrong ELF class: ELFCLASS32

  8. No Image 12Sep
    by ADMINPLAY
    2010/09/12 by ADMINPLAY
    Views 18707 

    Modsecurity-apache 2.5.12

  9. No Image 12Sep
    by ADMINPLAY
    2010/09/12 by ADMINPLAY
    Views 21131 

    modsecurity-2.5 configure: *** apr library not found.

  10. iptables를 이용한 SSH brute force 공격방어

  11. No Image 19May
    by ADMINPLAY
    2010/05/19 by ADMINPLAY
    Views 20208 

    PHP 보안관련 설정 권고사항

  12. No Image 03May
    by ADMINPLAY
    2010/05/03 by ADMINPLAY
    Views 20824 

    php 수호신 설치

  13. No Image 03May
    by ADMINPLAY
    2010/05/03 by ADMINPLAY
    Views 21358 

    denyhosts (ssh, ftp 등의 접근 차단)

  14. 웹어플리케이션 보안

  15. No Image 03May
    by ADMINPLAY
    2010/05/03 by ADMINPLAY
    Views 20373 

    php.ini 보안 설정

  16. 해킹 당했는지 알아보는 방법

  17. No Image 03May
    by ADMINPLAY
    2010/05/03 by ADMINPLAY
    Views 25617 

    [적용] iptables 접속 차단 스크립트

  18. No Image 27Apr
    by ADMINPLAY
    2010/04/27 by ADMINPLAY
    Views 16166 

    보안 체킹 프로그램 - portsentry

  19. No Image 31Mar
    by l2zeo
    2010/03/31 by l2zeo
    Views 34919 

    /etc/passwd 구조

  20. No Image 31Mar
    by l2zeo
    2010/03/31 by l2zeo
    Views 32083 

    매직키를 이용한 응급복구법

Board Pagination Prev 1 2 3 4 5 Next
/ 5

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234