2013-03-12 103 views
0

愚蠢的問題,但我不是很擅長從shell配置。我想在啓用-DGAPING_SECURITY_HOLE選項的情況下重新編譯我的netcat版本(請參閱section 0x1)。我的源代碼在我的電腦上下載,我可以通過運行正常安裝:如何用選項重新編譯netcat?

$ ./configure 
$ make 

,但我怎麼能在Unix系統上這個選項?謝謝。 (也是一個類項目,實際上並沒有試圖破解...哈哈)

+0

只需使用socat。它可以完成所有這些工作,而沒有古怪的歷史編譯選項。 – 2013-03-12 11:26:51

回答

0

閱讀manual你鏈接到?它sayeth:

- = *編譯Netcat的* = -

[ Enable -DGAPING_SECURITY_HOLE ] 
    While this option makes netcat very powerfull, it is also a huge risk in the wrong hands.. 
    Damn hackers. 

[ Enable -DTELNET ] 
    Without this option netcat will be unable to connect to a telnet server. Telnet servers & 
    there clients auto negotiate there options before the login prompt is displayed. Enabling 
    this option allows netcat to support this functionality. 

    # DFLAGS = -DTEST -DDEBUG 
    DFLAGS = -DGAPING_SECURITY_HOLE -DTELNET 
    CFLAGS = -O 

所以,編輯Makefile和調整DFLAGS的設置。這也意味着這可能是默認設置。

0

嘗試這樣做:

./configure -DGAPING_SECURITY_HOLE 
make Linux 
1
./configure --enable-DGAPING_SECURITY_HOLE 
./make 
cd src 
./netcat --help