讓BCB的工程具有XP主題風格

建立兩個檔案,一個設定檔themed.manifest:<?xml version="1.0" encoding="utf-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"><assemblyIdentity    name="Pazee@21cn.com"    processorArchitecture="x86"    v

ANSI 和 Unicode 字串函數補充

操作ANSI串函數Unicode串函數LengthstrlenwcslenConcatenatestrcat, strncatwcscat, wcsncat, RtlAppendUnicodeStringToString, RtlAppendUnicodeToStringCopystrcpy, strncpy, RtlCopyStringwcscpy, wcsncpy, RtlCopyUnicodeStringReverse_strrev_wcsrevComparestrcmp,

類比WSockExpert,攔截API來截獲封包

轉載自 zwell 的專欄:不知道大家用過WSockExpert沒有, 它可以用來截獲指定進程網路資料的傳輸.前面我還以為它是通過即時遠程注入DLL來更改IAT. 不過後來發現在程式一運行時,它就已經將DLL插入所有進程了,這個跟冰哥寫的那個類比SOCKCAP的程式很相似.似乎是將DLL注入所有進程, 不過再想一下, 如果是這樣的話,那麼後來啟動的程式應該不會被注入DLL(除非用定時^_^,這樣就太麻煩了), 考慮到這些,

利用WMI擷取和更新網路設定(VBS指令碼)

On Error Resume NextSet objWMIService = GetObject("winmgmts://./root/cimv2")Set colNetAdapters = objWMIService.ExecQuery ("Select * from Win32_NetworkAdapterConfiguration where IPEnabled=TRUE")For Each objNetAdapter in colNetAdapters    WScript.Echo

MS的detours庫 API hook

#include "stdafx.h"#include "detours.h"#include <stdio.h>#pragma comment(lib, "detours.lib")WCHAR    s_wzDllPath[256];char    s_szDllPath[256];    extern "C"...{DETOUR_TRAMPOLINE(BOOL WINAPI Real_CreateProcessW(    LPCWSTR lpApplicationName,   

API HOOK架構

採用微軟的 detours1.5 為核心, detours.h和detours.lib自己到網上下。代碼如下: MsHookApi.h/****************************************************************************API HOOK

通過原始通訊端發送UDP資料(IKEEPER換機)

#include <winsock2.h>#include <Ws2tcpip.h>#include <stdio.h>#pragma pack (push ,1)typedef struct _iphdr //定義IP首部{  unsigned char   h_lenver; //4位首部長度+4位IP版本號碼 unsigned char   tos; //8位服務類型TOS unsigned short  total_len; //16位總長度(位元組)

攔截API(修改函數地址方法)

#include <windows.h>#include <stdio.h>#include <stddef.h>#include <atlbase.h>#include <ImageHlp.h>#pragma comment(lib, "ImageHlp.lib")#define HookExceptionNo 5BOOL Init();BOOL SysVer = true;HMODULE g_hModule;DWORD

和路徑相關的API

需要標頭檔:shlwapi.hBOOL PathFileExists(LPCTSTR lpszPath)功能:檢查檔案/路徑是否存在LPTSTR PathFindFileName(LPCTSTR pPath)功能:獲得路徑中的檔案名稱例如: PathFileFileName( “c://Program Files//File.txt” ) = “File.txt”。如果路徑中不包含檔案名稱,則傳回值是最下面的目錄名。LPTSTR PathFindExtension(LPCTSTR

將Google Paly 上apk下載至PC本地

一、 由於某些原因,訪問Google Paly (https://play.google.com/store)總是失敗,建議先翻一下牆,我用的是自由門二、 在chrome上安裝外掛程式1. 下載APK Downloader (http://codekiem.com/apk-downloader/crx/1.2.1.crx)2.

男人的友誼與女人的友誼

>^_^男人的友誼與女人的友誼>  >>  >Friendship Between Women:Friendship Between Women: A woman didn't come home one night. 一個女人有一晚沒回家睡The next day she told her husband that she had slept over at a  girlfriend's house. 隔天她跟老公說他睡在一個女性朋友那邊The man

SPI攔截網路封包(EXE安裝篇)

//以下是安裝類/*InsPkgCls.h*/#include <tchar.h>#include <stdio.h>#include <winsock2.h>#define MY_DLL_NAME _T("spidll.dll")#define MY_DLL_PATH _T("//spidll.dll")#define MY_VAR_PATH _T("//myvar.dat")#define

管理工作中的50點感悟

 ※ 管理認知    1.經常自我反省,檢視一下,在管轄範圍內的人、時、地、物、有沒有浪費資源,或無效運用的狀況。    2.不要在下屬面前抱怨工作,數落上司及公司的不對。    3.接受上司交待任務時,在沒有嘗試執行之前,絕不說“不可能”、“辦不到”。    4.每天找出一件需要突破,創新的事物,並動腦筋想一想,有無改善創新的方法。    5.當工作未能順利完成時,對上司要能一肩承擔所有責任,不在上司面前數落部屬的不是。    6.做任何事物以前,先花些時間思考一下目標與方向是否正確。    

Ubuntu 定時執行任務

Ubuntu 使用crontab定時任務1. 使用crontab -e命令這個命令的使用比較簡單。直接輸入~# crontab -e就會開啟一個編輯視窗,第一行會有內容格式的提示:m h dom mon dow command具體意義表示:分鐘 小時 日期 月份 星期 命令,在某月(mon)的某天(dom)或者星期幾(dow)的幾點(h,24小時制)幾分(m)執行某個命令(command),*表示任意時間。例如:3 * * * * /home/meng/hello.sh就是:每小時的03時執行/

通過CreateProcess插入DLL的方法 (DLL篇)

#include <stdio.h>#include <stddef.h>#include <windows.h>#pragma comment(lib, "ImageHlp.lib")#pragma pack (push ,1)   //以下結構位元組對齊typedef struct{ BYTE int_PUSHAD;  BYTE int_PUSH; DWORD push_Value;  BYTE int_MOVEAX; DWORD eax_Value;  

Use Robotium when only having apk

IntroductionThe .apk file has to have the same signature as your test project. If you do not have the signature key of the .apk file then you need to remove the signature and resign it with you own key, android debug key can be used. A drag and drop

CreateProcess插入DLL的方法 (EXE篇)

#include <windows.h>#include <stdio.h>#pragma comment(lib, "ImageHlp.lib")#pragma pack (push ,1)typedef struct{ BYTE int_PUSHAD; BYTE int_PUSH; DWORD push_Value; BYTE int_MOVEAX; DWORD eax_Value; WORD call_eax; BYTE jmp_MOVEAX;    

ANSI 和 Unicode 字元函數對照表

寬字元處理函數函數與普通函數對照表    字元分類: 寬字元函數普通C函數描述 iswalnum() isalnum() 測試字元是否為數字或字母 iswalpha() isalpha() 測試字元是否是字母 iswcntrl() iscntrl() 測試字元是否是控制符 iswdigit() isdigit() 測試字元是否為數字 iswgraph() isgraph() 測試字元是否是可見字元 iswlower() islower() 測試字元是否是小寫字元 iswprint()

SPI攔截網路封包(DLL篇)

#include <ws2spi.h>#include <windows.h>#include <stdio.h>#pragma comment(lib, "ws2_32.lib")//// 用來儲存系統服務提供者路徑資訊的自訂註冊表索引值//#define REG_INSTALL_KEY "SYSTEM//CurrentControlSet//Services//WinSock2//MySPI"//// 全域變數,用來儲存系統服務提供者30個服務函數指標//

用 VC+socket 傳輸大檔案

在這個程式中,用戶端讀取案頭的一個 1.48 GB (1,597,701,030 位元組) 的RAR檔案發送給伺服器。因為這裡僅用於學習,所以用戶端要串連的目標地址使用127.0.0.1。伺服器端接將收的檔案檔案儲存在C盤根目錄下。為保證程式的可靠發送,程式採用TCP協議。經過反覆實驗得出結論,程式中的重中之重是雙方的 ReadFile 和 WriteFile。相反 recv 和 send 不是重要的。為了使代碼盡量簡化,程式去掉所有錯誤檢查,只讓伺服器端的accept函數提示一下有人發起串連。

總頁數: 61357 1 .... 15539 15540 15541 15542 15543 .... 61357 Go to: 前往

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.