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
CACHE_INFO | |
CF_CONNECTING_IP | |
CF-Connecting-IP | |
CLIENT_IP | |
Client-IP | |
COMING_FROM | |
CONNECT_VIA_IP | |
FORWARD_FOR | |
FORWARD-FOR | |
FORWARDED_FOR_IP |
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. |
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 | |
# This script acts as a pseudo-shell by executing shell commands on a remote MSSQL server instance | |
# using sqsh and xp_cmdshell. | |
import argparse | |
import os |
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 | |
SYMBOL_NAME="system"; find ./ -type f -exec printf "{}: " \; -exec sh -c "objdump -T \"{}\" 2>&1 | grep -e \" $SYMBOL_NAME\" ; echo \"\"" \; | grep -e " $SYMBOL_NAME" |
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 | |
from enum import EnumMeta, Enum | |
class EnumExMeta(EnumMeta): | |
def __contains__(self, val): | |
try: | |
self(val) | |
except ValueError: |
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 | |
""" | |
The classes in this file can be used to extract files from the *.archive files used by DXMD. | |
Extraction of files that span multiple archives is also supported. | |
""" | |
import logging | |
import os |
NewerOlder