일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- 채팅환전사기
- 척추관협착증
- CryptoJS
- 취약점
- 안전결제
- CJ대한통운 #쿠팡 #통관번호오류 #통관고유번호오류 #안주원팀장 #모건인베스트
- 모의해킹
- 변태는
- 허리디스크
- self-signed
- MongoDB #NoSQL #CreateUser #DropUser #mongod #mognod.conf
- speed-measure-webpack-plugin
- 중고나라
- shell_gpt
- 네이버카페
- XSS
- 많다..
- NUGU
- 거래사기
- ssrf
- react
- Frida
- 로맨스스캠
- Malware Sample
- 보이스피싱 #대검찰청 #명의도용 #비밀번호 #계좌번호 #공공기관 #가짜검찰청
- esbuild
- open redirect
- Sequoia
- intelmac
- ue4dumper
- Today
- Total
annyoung
[AutoHotKey Header] MD5.ahk 본문
|
HashFromAddr(pData, len, algid, key=0) { hProv := size := hHash := hash := "" ptr := (A_PtrSize) ? "ptr" : "uint" aw := (A_IsUnicode) ? "W" : "A" if (DllCall("advapi32\CryptAcquireContext" aw, ptr "*", hProv, ptr, 0, ptr, 0, "uint", 1, "uint", 0xF0000000)) { if (DllCall("advapi32\CryptCreateHash", ptr, hProv, "uint", algid, "uint", key, "uint", 0, ptr "*", hHash)) { if (DllCall("advapi32\CryptHashData", ptr, hHash, ptr, pData, "uint", len, "uint", 0)) { if (DllCall("advapi32\CryptGetHashParam", ptr, hHash, "uint", 2, ptr, 0, "uint*", size, "uint", 0)) { VarSetCapacity(bhash, size, 0) DllCall("advapi32\CryptGetHashParam", ptr, hHash, "uint", 2, ptr, &bhash, "uint*", size, "uint", 0) } } DllCall("advapi32\CryptDestroyHash", ptr, hHash) } DllCall("advapi32\CryptReleaseContext", ptr, hProv, "uint", 0) } int := A_FormatInteger SetFormat, Integer, h Loop, % size { v := substr(NumGet(bhash, A_Index-1, "uchar") "", 3) while (strlen(v)<2) v := "0" v hash .= v } SetFormat, Integer, % int return hash }
HashFromString(string, algid, key=0) { len := strlen(string) if (A_IsUnicode) { VarSetCapacity(data, len) StrPut := "StrPut" %StrPut%(string, &data, len, "cp0") return HashFromAddr(&data, len, algid, key) } data := string return HashFromAddr(&data, len, algid, key) }
MD5(string) { return HashFromString(string, 0x8003) } |
Description : MD5 암호화를 하기위한 AHK 헤더 스크립트 입니다. |
'프로그래밍' 카테고리의 다른 글
Microsoft-IIS/6.0 webdav remote authentication bypass scanner v0.1 (0) | 2014.03.28 |
---|---|
[AutoHotKey Header] EUC-KR Encode, Decode.ahk (15) | 2014.03.14 |
[AutoHotKey Header] UTF8Encode, UTF8Decode.ahk (1) | 2014.03.14 |
[AutoHotKey Header] COM.ahk (0) | 2014.03.14 |
[AutoHotKey Header] SendH.ahk (0) | 2014.03.14 |