/PentestUtils

random scripts and utilities used for pentesting or R&D purposes

Primary LanguageC#

PentestUtils

random scripts and utilities used for pentesting or R&D purposes

DisplayArray - converts specifie file to a byte array and cleanly indented and formatted for easy copy pasting into files. Defaults to unsigned char array for C/C++ but can easily be modified to fit syntax of any language

juiceshopsetup - automates installation of OWASP juice shop locally on kali. run as root and in dir you want juice shop installed

dotnet_setup - installed dotnet5 on kali

Defang - quicky defangs links passed either space seperated or as a file

Str2Arr - methods to convert a string in c# byte array format to an actual string data type and vice versa

// https://codereview.stackexchange.com/a/275039
public static string toHexStr(byte[] bytes) => bytes != null ? string.Join(",", bytes.Select(x => $"0x{x:X2}")) : null;

public static byte[] fromHexStr(string hexadecimal) {
    if (string.IsNullOrWhiteSpace(hexadecimal)) return null;
    return hexadecimal.Split(',').Select(x => Convert.ToByte(x, 16)).ToArray();
}

PS_OneLiners - Suite of PS One Liners for various purposes

exports.py - writes out exports of a target DLL

pyfnptrs.py - extremely simple PoC demoing the usage of function pointers to build out a robust system replacing switch case to call various functions