资源简介
很强悍的一款工具。
使用方法:nc -h
附源码。

代码片段和文件信息
// portions Copyright (C) 1994 Nathaniel W. Mishkin
// code taken from rlogind.exe
#include
#include
#include se.h>
#ifdef GAPING_SECURITY_HOLE
#define BUFFER_SIZE 200
extern char * pr00gie;
void holler(char * str char * p1 char * p2 char * p3 char * p4 char * p5 char * p6);
char smbuff[20];
//
// Structure used to describe each session
//
typedef struct {
//
// These fields are filled in at session creation time
//
HANDLE ReadPipeHandle; // Handle to shell stdout pipe
HANDLE WritePipeHandle; // Handle to shell stdin pipe
HANDLE ProcessHandle; // Handle to shell process
//
//
// These fields are filled in at session connect time and are only
// valid when the session is connected
//
SOCKET ClientSocket;
HANDLE ReadShellThreadHandle; // Handle to session shell-read thread
HANDLE WriteShellThreadHandle; // Handle to session shell-read thread
} SESSION_DATA *PSESSION_DATA;
//
// Private prototypes
//
static HANDLE
StartShell(
HANDLE StdinPipeHandle
HANDLE StdoutPipeHandle
);
static VOID
SessionReadShellThreadFn(
LPVOID Parameter
);
static VOID
SessionWriteShellThreadFn(
LPVOID Parameter
);
// **********************************************************************
//
// CreateSession
//
// Creates a new session. Involves creating the shell process and establishing
// pipes for communication with it.
//
// Returns a handle to the session or NULL on failure.
//
static PSESSION_DATA
CreateSession(
VOID
)
{
PSESSION_DATA Session = NULL;
BOOL Result;
SECURITY_ATTRIBUTES SecurityAttributes;
HANDLE ShellStdinPipe = NULL;
HANDLE ShellStdoutPipe = NULL;
//
// Allocate space for the session data
//
Session = (PSESSION_DATA) malloc(sizeof(SESSION_DATA));
if (Session == NULL) {
return(NULL);
}
//
// Reset fields in preparation for failure
//
Session->ReadPipeHandle = NULL;
Session->WritePipeHandle = NULL;
//
// Create the I/O pipes for the shell
//
SecurityAttributes.nLength = sizeof(SecurityAttributes);
SecurityAttributes.lpSecurityDescriptor = NULL; // Use default ACL
SecurityAttributes.bInheritHandle = TRUE; // Shell will inherit handles
Result = CreatePipe(&Session->ReadPipeHandle &ShellStdoutPipe
&SecurityAttributes 0);
if (!Result) {
holler(“Failed to create shell stdout pipe error = %s“
itoa(GetLastError() smbuff 10) NULL NULL NULL NULL NULL);
goto Failure;
}
Result = CreatePipe(&ShellStdinPipe &Session->WritePipeHandle
&SecurityAttributes 0);
if (!Result) {
holler(“Failed to create shell stdin pipe error = %s“
itoa(GetLastError() smbuff 10) NULL NULL NULL NULL NULL);
goto Failure;
}
//
// Start the shell
//
Sessi
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 4765 1994-11-03 19:07 getopt.h
文件 69081 1998-01-04 15:17 NETCAT.C
文件 59392 1998-01-03 14:37 nc.exe
文件 12039 1997-11-28 14:48 doexec.c
文件 544 1997-11-28 14:36 makefile
文件 22784 1996-11-06 22:40 getopt.c
文件 7283 1996-07-09 16:01 generic.h
文件 61780 1998-02-06 15:50 hobbit.txt
文件 6771 1998-02-06 17:53 readme.txt
- 上一篇:ULN2003驱动步进电机
- 下一篇:CAD自动标注
相关资源
- AsyncTask文件控制暂停和继续,在状态
- 用友NC开发API字典
- concept2.6无需安装1
- HAP_Advanced_PDF_Password_Recovery 5.05
- Uninstall_Cortana_WINCLIENT.CN.rar
- VNCX
- WinCE下CP210x的驱动程序
- DXperienceUniversal 10.1.6(2010年8月13日版
- WinCE中的Web Service调用
- 基于OpenCV的数字识别468815
- 使用opencv去掉二值化图像中黑色面积
- wincc 6.0 sp3授权
- vc URL编解码类
- bmp2c
- opencv环境配置
- xianshujiancheyi
- The Impact of ETC System on Safety Performance
- Furan-BDOPV Donor-Acceptor Polymers with Plana
- New fixed point theorems of e-concave-convex m
- Effects of the cultured Cordyceps exopolysacch
- Effect of dietary nitrate dosage on gas produc
- XSS Encode
- 西门子SCALANCE XC100/200交换机配置手册
- win10 64位下编译的opencv4.5.5库,opencv
- WINCC 7.4 SP1免狗工具
- pb9调用良田高拍仪例程scanctrl1.0
- WINCC报表(OLE-DB Tag and Alarm Export_V8.x
- NcL4模型在大Nc下具有同位旋和手性不
- WinCC 7.4 SP1 含授权有破解说明.
- 西门子授权工具Sim_EKB_Install_2016_05_0
评论
共有 条评论