Skip to content

Instantly share code, notes, and snippets.

size_t CDKeyDecoder::calculateHash(uint32_t clientToken,
uint32_t serverToken)
{
struct CDKEYHASH kh;
SHA1Context sha;
if (!initialized || !keyOK) return 0;
hashLen = 0;
kh.clientToken = clientToken;
[07:54:39 PM] BNCS SENT PACKET 0x36 (55 BYTES):
00000000: FF 36 37 00 00 00 00 00 10 00 00 00 04 00 00 00 ÿ67..... ........
00000010: 63 3C 08 00 56 33 4A 03 EE A0 7F 35 64 F9 60 0F c<..V3J. î 5dù`.
00000020: 63 D4 3C 6F 98 D4 7D 42 A8 33 C0 F5 46 A5 74 C4 cÔ<o˜Ô}B ¨3ÀõF¥tÄ
00000030: 64 65 76 6F 70 73 00 devops.
spawn: 00 00 00 00
length: 10 00 00 00
product: 04 00 00 00
value1: 63 3C 08 00
@Davnit
Davnit / systeminfo.txt
Created April 3, 2016 15:54
System Info Script
'System Information
' Appears to be incomplete.
Sub Data()
Script("Name") = "SystemInfo"
Script("Author") = "PyroManiac"
Script("Major") = 1
Script("Minor") = 0
Script("Revision") = 0
int CDKeyDecoder::processStarCraftKey() {
int accum, pos, i;
char temp;
int hashKey = 0x13AC9741;
char cdkey[14];
std::strcpy(cdkey, this->cdkey);
// Verification
accum = 3;
@Davnit
Davnit / deadcode.txt
Created March 22, 2016 18:57
StealthBot Dead Code
StealthBot
Class Modules
clsBotVars.cls
clsBotVars
m_bUseGameConventions
[Dead Code Review] The field 'm_bUseGameConventions' is not used
m_bUseD2GameConventions
[Dead Code Review] The field 'm_bUseD2GameConventions' is not used
m_bUseW3GameConventions
[Dead Code Review] The field 'm_bUseW3GameConventions' is not used
@Davnit
Davnit / output.txt
Last active March 20, 2016 08:45
SBLogAnalyzer v1 Output with logs from Clan BoT, 2008-2010
Files: 624
Total Lines: 1108017
Total Size: 74.81 MB
Largest file: 2009-05-24.txt @ 5,104 KB
Average size: 119 KB
Messages: 1082282
Time Span: 945 days
Processing complete. Press enter to begin analysis.