Skip to content

Instantly share code, notes, and snippets.

View sysopfb's full-sized avatar

sysopfb

View GitHub Profile
@sysopfb
sysopfb / devicemanager.md
Last active July 8, 2026 15:30
DeviceManager - Python RAT/Backdoor

b2aa52f6a09022524c8bd2b8411e3b5d7eab8f190300f84ff6ec11464568c96c

Has an onboard python project that is obfuscated

after deobfuscating it appears to be some kind of a backdoor/loader type bot that has an onboard config and retrieves the next hop from the ethereum blockchain,

Config:

    _cfg = AgentConfig(server_url="http://127.0.0.1:8000", token="320473d40b7b18dc9fd3820bd48a55bf15806f835cb79b87f751a3b167534011", transport_mode="dns", dns_server_ip="127.0.0.1", dns_port=53, contract_address="0x5d04ed162c548fc4508cbb59266b02afbaf3ebc1", rpc_endpoints="https://eth.llamarpc.com,https://ethereum-rpc.publicnode.com,https://eth.drpc.org,https://rpc.eth.gateway.fm,https://eth-mainnet.public.blastapi.io,https://gateway.tenderly.co/public/mainnet,https://ethereum.rpc.subquery.network/public,https://eth.api.onfinality.io/public,https://rpc.sentio.xyz/mainnet,https://eth.merkle.io", blockchain_key="320473d40b7b18dc9fd3820bd48a55bf15806f835cb79b87f751a3b167534011", hardcoded_ip="", get_data_selector="1dcf296b")

#Malware related RMMSystem that uses Metastealer C2 traffic, tracker traffic: /pmxs/logs

"""
Full DGA (Domain Generation Algorithm) replication of sub_14000BF00 and friends.

Calling generate_domains() replicates the exact output of the binary with the
hardcoded seed, count, width, and word list found in sub_14000BF00.
"""
@sysopfb
sysopfb / gist:b67cc9e649bd0c765801d536a3dab164
Last active May 21, 2026 20:16
Decoded strings from nx vscode index.js

Decoded base64 with the 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=' alphabet

noPax
latest
listNamespaces
packages
setupGitHubSender
html_url
state
addTarEntry
@sysopfb
sysopfb / gist:2c21f05a554fa570e4f73863381ead79
Created April 23, 2025 22:48
Amos standalone decoder for new variant
#Saw RussianPandas ida script after I got it to the custom base64 - was easy to verify my work after finding their IDA script
# Prior work ref: https://github.com/RussianPanda95/IDAPython/blob/main/Atomic%20Stealer/amos_config_extract_idapython-3-2025.py
# created a standalone decoder based on the x64 opcodes
import re
import sys
import yara
import struct
import binascii
import base64
rule_source = '''
@sysopfb
sysopfb / gist:8c71915b065a54e458b188fec8333c22
Created February 10, 2023 21:32
qbot sxor_3 double decode
#stager 1 versions (sxor_3)
def decode_data4(data):
key = hashlib.sha1(b'bUdiuy81gYguty@4frdRdpfko(eKmudeuMncueaN').digest()
rc4 = ARC4.new(key)
t = rc4.decrypt(data)
tt = qbot_helpers.qbot_decode(t[20:])
return(tt)
#qbot_decode is just the oldschool decode of qbots:
def qbot_decode(data):
@sysopfb
sysopfb / sharpext.md
Created July 29, 2022 17:01
kimusky sharpext data

Not sure if this is victim related data or what

   "NewTabPage": {
        "PrevNavigationTime": "13292560510726665"
    }, 
    "gaia_cookie": {
        "hash": "2gW6ZW+guv8Us/fjpeX7conzXoo=", 
        "last_list_accounts_data": "[\"gaia.l.a.r\",[[\"gaia.l.a\",1,\"Sang Hyun Lee\",\"leesh65@gmail.com\",\"https://lh3.googleusercontent.com/-daipoVZf-r8/AAAAAAAAAAI/AAAAAAAAAAA/TagFXSnGLoE/s48-c/photo.jpg\",1,1,0,null,1,\"100934410837439495113\",null,null,null,null,1]]]", 
        "changed_time": 1640301806.63822
@sysopfb
sysopfb / decode.md
Created July 8, 2022 20:29
lockbit black blob decoding POC

Blobs in lockbit black are decoded similar to BlackMatter but with a new LCG based on 64 bit

The init seed for the sample I REd was at the start of .pdata

POC decoding, pretty quick and dirty due to time constraints

def mul64(a1, a2):
    return(a1 * a2)
@sysopfb
sysopfb / UpdateAgent Golang
Created June 2, 2022 19:17
UpdateAgent - GolangVersion
2aaebf0282463c60aa8866e733799eee97f41af1e3ac8ae7855279595217aa2f
SnapITool.zip
```
https://vzhqu.snapitool.com/SnapITool.zip
```
```
@sysopfb
sysopfb / lznt1_no_error_checking.py
Created October 23, 2021 16:10
pure python LZNT1 wrapped in try block to allow for partial decompression or decompression of data that doesn't error out on extra data at the end
# Rekall Memory Forensics
# Copyright 2014 Google Inc. All Rights Reserved.
#
# Author: Michael Cohen scudette@google.com.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or (at
# your option) any later version.
#
@sysopfb
sysopfb / s.md
Created October 19, 2021 20:31
FlawedGrace partial strings