Skip to content

Instantly share code, notes, and snippets.

@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.
@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
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 / 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
[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
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;
@Davnit
Davnit / gist:27141d2fafb65a4f24fae9d382164661
Created April 25, 2016 10:55
Oldest clans seen on USEast
[06:55:09 AM] [Clan-Meta] Oldest clans seen:
[06:55:09 AM] - #1: FALLEN ANGELS (Clan FA1), founded: July 23, 2005, members: 100
[06:55:09 AM] - #2: GoDs oF DarKNesS (Clan GoD), founded: March 19, 2008, members: 88
[06:55:09 AM] - #3: Zombie Defense Corps (Clan ZDC), founded: May 17, 2009, members: 99
[06:55:09 AM] - #4: Maps 'n' Mechanics (Clan MnM), founded: July 14, 2009, members: 83
[06:55:09 AM] - #5: BoT (Clan BoT), founded: August 20, 2009, members: 35
[06:55:09 AM] - #6: Toke© (Clan Toke), founded: December 8, 2009, members: 95
[06:55:09 AM] - #7: Wrath Inc. (Clan Wi), founded: May 24, 2010, members: 52
[06:55:09 AM] - #8: Fear the g0dLy Kitties (Clan F0LK), founded: July 6, 2010, members: 100
[06:55:09 AM] - #9: DotA Elite (Clan EL3), founded: May 30, 2011, members: 77
@Davnit
Davnit / torrent.py
Created July 25, 2016 14:53
Reads torrent files
def is_number(s):
try:
int(s)
return True
except ValueError:
return False
class TorrentReader():
@Davnit
Davnit / gist:49eb4aa7157ca3410fc095760d86731a
Created February 15, 2018 23:35
botnet discord hook for stats updates
' Packet 0x06 S>C INFO
' (UINT32) Bot ID
' (UINT32) Database access flags [v4 c1]: 1 = read; 2 = write; 4 = restricted access
' (UINT32) Administrative capabilities [v4 c1]: ZTFF
' (UINT32) IP address of the bot being described [v4 c1 A]
' (NTSTRING) Bot name [MAX 20]
' (NTSTRING) Bot channel
' (UINT32) Bot server IP
' (NTSTRING) account name [v2 MAX 16]
' (NTSTRING) database [v3]
@Davnit
Davnit / 2018-04-17-PACKETLOG.txt
Created April 18, 2018 00:05
Packet log of the void when encountered error #6 overflow in sckBNet_DataArrival
[07:54:23 PM] BNCS C -> S -- ID 0x0E -- Length 19 b
0000: FF 0E 13 00 2F 6A 6F 69 6E 20 54 68 65 20 56 6F |..../joi n The Vo|
0010: 69 64 00 |id. |
[07:54:23 PM] BNCS S -> C -- ID 0x0F -- Length 49 b
0000: FF 0F 31 00 07 00 00 00 09 00 00 00 4F 00 00 00 |..1..... ....O...|
0010: 00 00 00 00 0D F0 AD BA 0D F0 AD BA 77 23 43 6C |........ ....w#Cl|
0020: 61 6E 47 6E 6F 6D 65 00 54 68 65 20 56 6F 69 64 |anGnome. The Void|
0030: 00 |. |