Skip to content

Instantly share code, notes, and snippets.

View passthehashbrowns's full-sized avatar

passthehashbrowns

View GitHub Profile
@passthehashbrowns
passthehashbrowns / custom_pack.cna
Created September 9, 2022 17:28
This is a reimplementation of the bof_pack function in Aggressor.
#Custom function to pack our arguments for BOFs
#Usage: Call it the same way you would call bof_pack
sub custom_pack {
local('$beaconId $formatString $formatStringFixed @argsFixed $totalSize $shiftCounter $index $binarySize $packedData')
#We don't really need this but keeping it so the calling convention is the same
$beaconId = $1;
#Our original format string
$formatString = $2;
using System;
using System.IO;
using System.Text;
namespace convertfile
{
public static class Program
{
static void Main(string[] args)
{