Skip to content

Instantly share code, notes, and snippets.

@Davnit
Davnit / provisioner.py
Created March 25, 2022 15:51
Web server for intercepting provisioning requests and unlocking Cisco SPA504G IP phone
from http.server import HTTPServer, BaseHTTPRequestHandler
class GlobalResponseHandler(BaseHTTPRequestHandler):
def do_GET(self):
self.send_response(200)
self.send_header("Content-Type", "application/xml")
self.end_headers()
@Davnit
Davnit / BEGEMOT-PF-MIB.txt
Created May 8, 2020 16:27
pfSense SNMP MIB with interface and label names properly decoded from hex string to human-readable text
--
-- ----------------------------------------------------------------------------
-- "THE BEER-WARE LICENSE" (Revision 42):
-- <philip@FreeBSD.org> wrote this file. As long as you retain this notice you
-- can do whatever you want with this stuff. If we meet some day, and you think
-- this stuff is worth it, you can buy me a beer in return. -Philip Paeps
-- ----------------------------------------------------------------------------
--
-- $FreeBSD$
--
@Davnit
Davnit / pulse.py
Created May 1, 2020 09:07
Python parser for PulsePoint
import base64
from datetime import datetime
import hashlib
import json
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
from cryptography.hazmat.backends import default_backend
import base64
import json
import zlib
directions = {
0: "N",
1: "NE",
2: "E",
@Davnit
Davnit / pulse.py
Created July 22, 2019 16:54
Decrypts and prints incident information from PulsePoint
import base64
import hashlib
import json
from urllib import request
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
from cryptography.hazmat.backends import default_backend
@Davnit
Davnit / ClanHotfix.txt
Last active May 5, 2018 23:54
Hotfix for StealthBot clan support after the update on May 1, 2018
Script("Name") = "Clan Hotfix"
Script("Author") = "Davnit"
Script("Major") = 1
Script("Minor") = 0
Sub Event_Load()
If IsOnline And Len(Clan.Tag) > 0 And Clan.Self.Name = vbNullString Then
Clan.RequestMemberList
End If
End Sub
@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 |. |
@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 / 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: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