资源简介
大名鼎鼎的网络瑞士军刀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
相关资源
- 基于树莓派的可视化可远程遥控网络
- 随机点名系统源码
- 栅栏桌面 fenceswindows xp亲测
- 基于opencv的数人头程序源代码
- 测试工程源码1(一种基于深度学习的
- 纪念册、照片书、台历、个性化印刷
- com技术内幕、com原理与应用、com本质
- NCTUns 6.0安装包及其说明(三)
- 基于单幅图像的快速去雾源码实现
- 机器学习实战(源码和数据样本)
- Qt写的Windows下屏幕录制程序源码
- spark streaming技术内幕与源码剖析
- Luence的与盘古分词的使用软件
- 贝叶斯应用案例测试集及源码
- 1000款 MT4指标合集 全部包含源码文件
- AS3 炸弹人flash游戏
- 心理测试源码
- 海思系列soc下sip可视电话源码
- 594社工库查询.zip
- 鼎付支付-信用卡-2方内嵌-适用于一键
- unity2D猛禽战机空战游戏完整源码
- GG2014版源码。仿QQ聊天软件
- ffmpeg 源码demo
- prince2 最新原版教材
- HNOI模拟 2016.3.31 百步穿杨
- 拼车+源码+小程序.zip
- ComsenzDiscuz-DiscuzX-master最新版本X3.4
- PRINC2成功的项目管理方法论中文版
- 2019西门子挑战杯初赛获奖程序+方案书
- 开单大师学习版3.1.2房产软件 源码 房
评论
共有 条评论