Skip to content

Instantly share code, notes, and snippets.

mattifestation / drop_binary.bat
Created Jul 12, 2015
Drop binary data from the command line w/o needing PowerShell
View drop_binary.bat
echo -----BEGIN CERTIFICATE----- > encoded.txt
echo Just Base64 encode your binary data
echo TVoAAA== >> encoded.txt
echo -----END CERTIFICATE----- >> encoded.txt
certutil -decode encoded.txt decoded.bin
View Volume Shadow Copy
# Start the Volume Shadow Service
C:\bak>cscript vssown.vbs /start
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.
[*] Signal sent to start the VSS service.
# Create a Volument Shadow Copy, C is the drive where the files reside, this may not always be C
darkoperator /
Created Dec 8, 2013
sends using gmail an email to the ATT SMS gateway.
import subprocess
import smtplib
import socket
from email.mime.text import MIMEText
import datetime
# Change to your own account information
to = '<your number> '
gmail_user = ''
gmail_password = ''
smtpserver = smtplib.SMTP('', 587)
aaronott /
Created Oct 17, 2012
Fix D7 file permissions
if [ $# -ne 1 ] ; then
echo "USAGE $0 <d7 root dir>"