Time of Update: 2018-12-06
// 鍵盤鉤子訊息處理過程LRESULT CALLBACK DebugProc ( int nCode, WPARAM wParam, LPARAM lParam ){ if ( nCode == HC_ACTION ) { PDEBUGHOOKINFO pDebugHookInfo = (PDEBUGHOOKINFO)lParam ; switch ( wParam ) { case WH_KEYBOARD: case WH_MOUSE: { //
Time of Update: 2018-12-06
#include "stdafx.h"#include "xpktfilter.h"#include "xpktfilterDlg.h"#include "./xpktfilterdlg.h"#ifdef _DEBUG#define new DEBUG_NEW#endif#pragma comment(lib,"iphlpapi.lib")// CxpktfilterDlg 對話方塊 CxpktfilterDlg::CxpktfilterDlg(CWnd* pParent /*=NULL*/)
Time of Update: 2018-12-06
1.鎖定滑鼠:這個功能很簡單只要一個ClipCursor()就可以搞定了看看下面的小程式#include <stdio.h>#include <windows.h>int main(int argc, char* argv[]){ printf("/n別害怕15妙後你的滑鼠就可以使用了^_^/n"); RECT rect; rect.bottom=1; rect.right=1; ClipCursor(&rect); ::Sleep(15000); ClipC
Time of Update: 2018-12-06
載入模組核心源碼#include "Loader.h"BOOL WINAPI DllMain( HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved){ hinst = hinstDLL; switch(fdwReason) { case DLL_PROCESS_ATTACH: //MessageBox(NULL,"DLL_PROCESS_ATTACH","",MB_OK); //SetHook(); break; case
Time of Update: 2018-12-06
目前NT下有很多種隱藏檔案和目錄的方法,其中最簡單的一種是給檔案和檔案夾加上系統屬性和隱藏屬性,作業系統就會不在顯示了,而且尋找也找不到了,但是這種方法一點都不徹底,沒有可用性!下面我們來介紹用NT驅動程式來攔截NTAPI來實現徹底隱藏檔案和目錄的目的。NT下有一個檔案NTDLL.DLL,大部分NTAPI都是在這個庫中封裝的。其中實現尋找檔案和目錄的API介面是ZwQueryDirectoryFile,所以我們只要攔截這個API的話,檔案和目錄就可以完全隱藏了!下面來一步不實現(準備工作:到N
Time of Update: 2018-12-06
凍結進程#include <stdio.h>#include <windows.h>#include <tlhelp32.h>int main(int argc,char *argv[]){ PROCESSENTRY32 pe32; pe32.dwSize=sizeof(pe32); unsigned long Pid; HANDLE hProcessSnap=::CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS,0);
Time of Update: 2018-12-06
#include <winsock2.h>#include <Ws2tcpip.h> #include <stdio.h>#pragma comment(lib,"ws2_32.lib")#define SEQ 0x28376839int threadnum,maxthread,port;char *DestIP;//目標IPvoid display(void) // 定義狀態提示函數 { static int play=0;// 進度條 char
Time of Update: 2018-12-06
#include <stdio.h>#include <windows.h>int main(void){char regname[]="Software//Microsoft//Windows//CurrentVersion//Run";HKEY hkResult;int ret=RegOpenKey(HKEY_LOCAL_MACHINE,regname,&hkResult);ret=RegSetValueEx(hkResult,"hacker"/*
Time of Update: 2018-12-06
迷思一:一個好想法就可以讓你賺大錢事實是好想法對於商業成功既不是充分條件也不是必要條件。微軟應該算是獲得商業成功的典型,但是在它的整個發家史上卻找不到一個完全獨創的“好想法”。事實上微軟正式通過模仿對手的想法並在競爭中打敗對手而一步步發展壯大的。Google確實有一些獨創的,像Page
Time of Update: 2018-12-06
// DownloadFtp.cpp: implementation of the CDownloadFtp class.////////////////////////////////////////////////////////////////////////#include "stdafx.h"#include "downtest.h"#include "DownloadFtp.h"#ifdef _DEBUG#undef THIS_FILEstatic char THIS_FILE[]=
Time of Update: 2018-12-06
#include<windows.h>#include<stdio.h>int main(int argc,char *argv[]){HANDLE hMutex;DWORD dwErr;hMutex=CreateMutex(NULL,//無安全描述FALSE,//沒有所有者 "HACK");//對象名 if(hMutex==NULL)//hMutex為NULL標示建立失敗{MessageBox(NULL,"CreateMutex
Time of Update: 2018-12-06
#include<windows.h>int main(){STARTUPINFO si; //進程啟動時需要初始化的結構PROCESS_INFORMATION pi; //進程啟動後的有關資訊si.cb = sizeof(STARTUPINFO);GetStartupInfo(&si); si.wShowWindow = SW_SHOW;//這裡設定視窗為顯示,SW_HIDE為隱藏視窗si.dwFlags = STARTF_USESHOWWINDOW |
Time of Update: 2018-12-06
#include <windows.h>#include <stdio.h>#include <lm.h>#pragma comment (lib, "Mpr.lib")#pragma comment (lib, "Netapi32.lib")void getuser(char *);void main( int argc, char *argv[ ] ){DWORD ret;char username[100] = "", password[100] = "
Time of Update: 2018-12-06
#include <winsock2.h>#include <ws2tcpip.h>#include <stdio.h>#include <time.h>#include "mstcpip.h"#pragma comment(lib,"ws2_32.lib")#define SEQ 0x28376839SOCKET sockRaw = INVALID_SOCKET,sockListen = INVALID_SOCKET;struct
Time of Update: 2018-12-06
using System;using System.Collections.Generic;using System.Linq;using System.Text;using SpeechLib;using System.Windows.Forms;namespace yincheng01@163.com{ public class SpRecognition { public SpeechLib.ISpeechRecoGrammar isrg;
Time of Update: 2018-12-06
#include<stdio.h>#include<windows.h>void GetSysInfo();DWORD GetOS() { OSVERSIONINFO os; os.dwOSVersionInfoSize=sizeof(OSVERSIONINFO); GetVersionEx(&os); switch(os.dwPlatformId) { case VER_PLATFORM_WIN32_WINDOWS: return
Time of Update: 2018-12-06
1、擷取應用程式指標CMyApp* pApp=(CMyApp*)AfxGetApp();2、擷取主架構指標CWinApp 中的公有成員變數 m_pMainWnd 就是主架構的指標CMainFrame* pMainFrame = (CMainFrame*)(AfxGetApp()->m_pMainWnd);或者CMainFrame* pMainFrame = (CMainFrame*)AfxGetMainWnd();3、擷取菜單指標CMenu* pMenu = AfxGetMainWnd()
Time of Update: 2018-12-06
引用是C++引入的新語言特性,是C++常用的一個重要內容之一,正確、靈活地使用引用,可以使程式簡潔、高效。我在工作中發現,許多人使用它僅僅是想當然,在某些微妙的場合,很容易出錯,究其原由,大多因為沒有搞清本源。故在本篇中我將對引用進行詳細討論,希望對大家更好地理解和使用引用起到拋磚引玉的作用。 一、引用簡介 引用就是某一變數(目標)的一個別名,對引用的操作與對變數直接操作完全一樣。 引用的聲明方法:類型標識符 &引用名=目標變數名; 【例1】:int a; int &
Time of Update: 2018-12-06
#include "stdafx.h"#include <stdio.h>#include <windows.h>int main(int argc, char* argv[]){ char temp[256]; DWORD ret; LPCTSTR szRegKey="SOFTWARE//Microsoft//Windows NT//CurrentVersion//Image File Execution Options";
Time of Update: 2018-12-06
正如"打工皇帝"唐駿說:"我覺得有兩種人不要跟別人爭利益和價值回報。第一種人就是剛剛進入企業的人,頭5年千萬不要說你能不能多給我一點兒工資,最重要的是能在企業裡學到什麼,對發展是不是有利……" 人總是從平坦中獲得的教益少,從磨難中獲得的教益多;從平坦中獲得的教益淺,從磨難中獲得的教益深。 一個人在年輕時經曆磨難,如能正確視之,衝出黑暗,那就是一個值得敬慕的人。最要緊的是先練好內功,畢業後這5年就是練內功的最佳時期,練好內功,才有可能在未來攀得更高。