资源简介
大名鼎鼎的网络瑞士军刀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个文件信息
- 上一篇:中国天气网城市名称+代码个人整理好的xm
l数据 - 下一篇:2020区划数据.zip
相关资源
- Scratch源码
- AsyncTask文件控制暂停和继续,在状态
- E4A无障碍跨程序操作类库(带源码、
- 用友NC开发API字典
- 设备管理系统源码
- 安卓wifi直连app源码
- 我的世界源码(易语言版)
- labview编程软件滤波器以及编写程序设
- 我的界面(visual foxpro)源码
- 易语言:一键cf基址源码
- The Secret Path 3D 3D魔方迷宫[源码][scra
- scratch垃圾分类源码(最终版本).sb
- concept2.6无需安装1
- HAP_Advanced_PDF_Password_Recovery 5.05
- Uninstall_Cortana_WINCLIENT.CN.rar
- 安卓QQ6.71协议源码易语言,qq协议源码
- 编译原理实验工具及参考源码(lex&
- E盾偷后台工具源码
- VNCX
- UNIX/LINUX编程实践教程的源码
- 十以内加减法练习 powerbuilder源码
- 农场开发项目
- OCR源码
- PLC上位机编程软件
- 用foobar2000听google音乐[更新一下]
- 学生信息管理系统源码
- WinCE下CP210x的驱动程序
- DXperienceUniversal 10.1.6(2010年8月13日版
- 用VC 编写的仿QQ聊天室程序源代码
- 毕业论文之温度传感器DS18B20(源码
评论
共有 条评论