May 24, 2018

Tag Archives: base64

Using PowerSploit to inject MSFVenom shellcode

This article will discuss how we can use the rather brilliant PowerSploit project, coupled with MSFVenom, to inject a staged Meterpreter reverse HTTPS shell into a running process.  This script can then be Base64 encoded and used in a USB HID attack or a macro malware document and I will write the relevant guides for […]

PowerShell :: Base64 to string

Completing the numerous something to Base64 and back again scripts is this little one liner to get a string back from a Base64 encoded string.  This is useful a lot when doing offensive security as it allows you to store a script in Base64 then iex the decoded string.  ieex being an awesome PowerShell command […]

PowerShell :: Split a long string

Hi, When I was writing some VBA for a macro malware project, I soon realised that there was a limit on the length of a string declaration in VBA which meant I had to break up a large Base64 string into multiple concatenations.  This PowerShell scripts automates that process and could be easily modified for […]

PowerShell :: Convert text file to Base64

Hi, So this script will read the text from a plain text file and then encode it as Base64. It is useful for Base64 encoding PowerShell scripts if you are looking to pass the script as an encoded command line argument. You will need to set the $inputFilePath and $outputFilePath and then execute. You could […]

PowerShell :: Convert Base64 to a binary file

Hi, The script takes an input text file containing a Base64 string and then writes the decoded file back to disk.  You can also use the $PEBytes variable with the PowerSploit project to run the executable in memory without writing it to disk. This script is designed in tandem with PowerShell :: Convert a binary file […]

PowerShell :: Convert a binary file to Base64

Hi, So occasionally I have need to encode files to Base64 and if those files are not simple text then it needs to be done at a binary level. This simple script in PowerShell does that for you, you simply set the $inputFilePath and $ouputFilePath then execute. It outputs to a file as the output […]

An Intro to Macro Malware

Hi, So, with macro malware the flavour of the year I thought I’d do a number of articles covering what it is, how simple it can be and how you can try and mitigate some of the risks. So what is macro malware and why is it so common? Macros add powerful functionality to Office […]

Subscribe to SYNACK via Email