01 2015 档案
摘要:#include "stdafx.h"#include #include #include #include #include #include #pragma comment(lib,"winhttp.lib")void banner() //显示banner{ printf("[-]:Websh...
阅读全文
摘要:// chopper.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include #include #include #include int redpwd(char* pwd){ F...
阅读全文
摘要:第一种方式#include "stdafx.h"#include #include #include #include #include int main(int argc,char** argv){ wchar_t temp[MAX_PATH] = L"Hello:words,what is yo...
阅读全文
摘要:#include "stdafx.h"#include #include int Pid;int EnableDebugPriv(const char * name){ HANDLE hToken; TOKEN_PRIVILEGES tp; LUID luid; //打开进程...
阅读全文
摘要:SERVER:// send_server.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include #include #pragma comment(lib,"ws2_32.lib...
阅读全文
摘要:不同编码格式下的字符串处理及相互转化:◆ 大家在编程时经常遇到的数据类型:● Ansi:char、char * 、const char *CHAR、(PCHAR、PSTR、LPSTR)、LPCSTR● Unicode:wchar_t、wchar_t * 、const wchar_t *WCHAR、(...
阅读全文
摘要:字符串占用字节数:● Ansi:char szStr[] = "abc";占用字节数求法:sizeof(szStr);char *psz = "defgh";占用字节数求法:strlen(psz)*sizeof(char);● Unicode:wchar_t szwStr[] = L"abc";占用...
阅读全文
摘要:WideCharToMultiByte 实现宽字节转换到窄字节MultiByteToWideChar 实现窄字节转换到宽字节WideCharToMultiByte 的代码页用来标记与新转换的字符串相关的代码页;MultiByteToWideChar 的代码页用来标记与一个多字节字符串相关的代码页,[...
阅读全文