資源簡介
大名鼎鼎的網(wǎng)絡(luò)瑞士軍刀nc源碼,里面有兩份,一份是unix版本的,一個是windowsNT版本的。

代碼片段和文件信息
/*?Netcat?1.10?RELEASE?960320
???A?damn?useful?little?“backend“?utility?begun?950915?or?thereabouts
???as?*Hobbit*‘s?first?real?stab?at?some?sockets?programming.??Something?that
???should?have?and?indeed?may?have?existed?ten?years?ago?but?never?became?a
???standard?Unix?utility.??IMHO?“nc“?could?take?its?place?right?next?to?cat
???cp?rm?mv?dd?ls?and?all?those?other?cryptic?and?Unix-like?things.
???Read?the?README?for?the?whole?story?doc?applications?etc.
???Layout:
conditional?includes:
includes:
handy?defines:
globals:
malloced?globals:
cmd-flag?globals:
support?routines:
readwrite?select?loop:
main:
??bluesky:
parse?ranges?of?IP?address?as?well?as?ports?perhaps
RAW?mode!
backend?progs?to?grab?a?pty?and?look?like?a?real?telnetd?!
backend?progs?to?do?various?encryption?modes??!?!
*/
#include?“generic.h“ /*?same?as?with?L5?skey?etc?*/
/*?conditional?includes?--?a?very?messy?section?which?you?may?have?to?dink
???for?your?own?architecture?[and?please?send?diffs...]:?*/
/*?#undef?_POSIX_SOURCE /*?might?need?this?for?something??*/
#define?HAVE_BIND /*?ASSUMPTION?--?seems?to?work?everywhere!?*/
#define?HAVE_HELP /*?undefine?if?you?dont?want?the?help?text?*/
/*?#define?ANAL /*?if?you?want?case-sensitive?DNS?matching?*/
#ifdef?HAVE_STDLIB_H
#include?
#else
#include?
#endif
#ifdef?HAVE_SELECT_H /*?random?SV?variants?need?this?*/
#include?
#endif
/*?have?to?do?this?*before*?including?types.h.?xxx:?Linux?still?has?it?wrong?*/
#ifdef?FD_SETSIZE /*?should?be?in?types.h?butcha?never?know.?*/
#undef?FD_SETSIZE /*?if?we?ever?need?more?than?16?active?*/
#endif /*?fd‘s?something?is?horribly?wrong!?*/
#define?FD_SETSIZE?16 /*?<--?this‘ll?give?us?a?long?anyways?wtf?*/
#include? /*?*now*?do?it.??Sigh?this?is?broken?*/
#ifdef?HAVE_RANDOM /*?aficionados?of??rand48()?should?realize?*/
#define?SRAND?srandom /*?that?this?doesn‘t?need?*strong*?random?*/
#define?RAND?random /*?numbers?just?to?mix?up?port?numbers!!?*/
#else
#define?SRAND?srand
#define?RAND?rand
#endif?/*?HAVE_RANDOM?*/
/*?includes:?*/
#include? /*?timeval?time_t?*/
#include? /*?jmp_buf?et?al?*/
#include? /*?basics?SO_?and?AF_?defs?sockaddr?...?*/
#include? /*?sockaddr_in?htons?in_addr?*/
#include? /*?misc?crud?that?netinet/ip.h?references?*/
#include? /*?IPOPT_LSRR?header?stuff?*/
#include? /*?hostent?gethostby*?getservby*?*/
#include? /*?inet_ntoa?*/
#include?
#include? /*?strcpy?strchr?yadda?yadda?*/
#include?
#include?
#include? /*?O_WRONLY?et?al?*/
/*?handy?stuff:?*/
#define?SA?struct?sockaddr /*?socket?overgeneralization?braindeath?*/
#define?SAI?struct?sockaddr_in /*?...?whoever?came?up?with?this?model?*/
#define?IA?struct?in_addr /*?...?should?be?taken?out?and?shot?*/
/*?...?not?that?TLI?is?any?better.??sigh..?*/
#define?
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????3840??1996-03-21?02:38??NetCat_Unix&NT_Version\nc110\Changelog
?????文件???????6722??1996-02-27?21:43??NetCat_Unix&NT_Version\nc110\data\data.c
?????文件????????450??1996-02-02?02:13??NetCat_Unix&NT_Version\nc110\data\dns-any.d
?????文件????????186??1996-03-21?04:14??NetCat_Unix&NT_Version\nc110\data\Makefile
?????文件????????520??1996-02-02?03:30??NetCat_Unix&NT_Version\nc110\data\nfs-0.d
?????文件????????353??1996-02-24?04:42??NetCat_Unix&NT_Version\nc110\data\pm.d
?????文件???????1361??1996-02-06?12:33??NetCat_Unix&NT_Version\nc110\data\pmap-dump.d
?????文件???????1570??1996-02-02?03:31??NetCat_Unix&NT_Version\nc110\data\pmap-mnt.d
?????文件????????440??1996-03-21?04:10??NetCat_Unix&NT_Version\nc110\data\README
?????文件???????1096??1996-02-02?03:33??NetCat_Unix&NT_Version\nc110\data\rip.d
?????文件???????1224??1996-02-01?02:45??NetCat_Unix&NT_Version\nc110\data\rservice.c
?????文件????????921??1996-02-02?03:37??NetCat_Unix&NT_Version\nc110\data\showmount.d
?????文件???????2002??1996-02-18?11:18??NetCat_Unix&NT_Version\nc110\data\xor.c
?????文件??????11629??1996-02-18?09:36??NetCat_Unix&NT_Version\nc110\generic.h
?????文件???????3805??1996-03-20?11:16??NetCat_Unix&NT_Version\nc110\Makefile
?????文件???????2645??1996-03-20?12:43??NetCat_Unix&NT_Version\nc110\netcat.blurb
?????文件??????58553??1996-03-21?08:38??NetCat_Unix&NT_Version\nc110\netcat.c
?????文件??????60834??1996-03-21?04:55??NetCat_Unix&NT_Version\nc110\README
?????文件???????1140??1996-02-24?03:48??NetCat_Unix&NT_Version\nc110\sc
?????文件????????487??1996-02-24?01:03??NetCat_Unix&NT_Version\nc110\sc
?????文件????????883??1996-03-21?04:13??NetCat_Unix&NT_Version\nc110\sc
?????文件???????1892??1996-02-24?04:06??NetCat_Unix&NT_Version\nc110\sc
?????文件???????1005??1996-02-24?01:17??NetCat_Unix&NT_Version\nc110\sc
?????文件???????1467??1996-02-24?01:00??NetCat_Unix&NT_Version\nc110\sc
?????文件???????2116??1996-03-21?03:41??NetCat_Unix&NT_Version\nc110\sc
?????文件????????239??1996-02-24?01:01??NetCat_Unix&NT_Version\nc110\sc
?????文件???????5070??1996-02-24?00:59??NetCat_Unix&NT_Version\nc110\sc
?????文件???????5499??1996-02-24?02:26??NetCat_Unix&NT_Version\nc110\sc
?????文件???????1559??1996-02-24?02:18??NetCat_Unix&NT_Version\nc110\sc
?????文件???????2989??1996-02-24?03:20??NetCat_Unix&NT_Version\nc110\sc
............此處省略20個文件信息
評論
共有 條評論