Skip to content

Instantly share code, notes, and snippets.

@glinares
glinares / VBA-CmdShapes.bas
Last active July 6, 2020 15:42
VBA Code to Insert a MsoShape Object Into A Document to Store Arbitrary Commands to Evade Reverse Engineering and Detection
Attribute VB_Name = "VBA-CmdShape"
' VBA-CmdShape v1.0.0 by @Laughing_Mantis - 7/4/2020
' Demonstration of how to embed VBA interpreted code in a MsoShape object and then later extract that info and delete the Shape
' This sample will embed a command to create a Shell.Application object to execute Calc.exe
' Minimal obfuscation was added and no string encryption - that is up to you.
@glinares
glinares / VAC_Parasite.BAS
Created July 4, 2020 16:50
Visual Basic For Applications Air Gap Communication Module (VAC-Parasite)
Attribute VB_Name = "VAC_Parasite"
' VBA AIRGAP COMMUNICATION (VAC-Parasite) MODULE - Color Shapes
' Created By: Laughing_Mantis 7.4.2020
' Version 1.0
' This will create a square in the top left of the document that will change colors
' in order to communicate via morse code via airgapped machines
' BLUE = .
' RED = -