Skip to content

Instantly share code, notes, and snippets.

@zwned
zwned / ctf.stri.pe
Created February 27, 2012 15:06
ctf.stri.pe
<?php
function random_string($max = 20){
$chars = "abcdefghijklmnopqrstuvwxwz0123456789";
for($i = 0; $i < $max; $i++){
$rand_key = mt_rand(0, strlen($chars));
$string .= substr($chars, $rand_key, 1);
}
return str_shuffle($string);
}
@zwned
zwned / GITS-constructicon
Created January 30, 2012 13:00
Shmoocon
IHDR
bKGD
pHYs
IDATx
vZq7
5k~h
... cut for brevity.
w{u7
@zwned
zwned / CuckooMon.py
Created January 3, 2012 01:23
Monitor folder for malware, submit to cuckoobox
#!/usr/bin/env python
import sys, time, os, shelve, hashlib
from cuckoo.core.db import CuckooDatabase
MALWARE_DIR = "/Users/zwned/Dropbox/malware/"
SLEEP_TIME = 60
HISTORY_FILE = "cuckooMon_hist"
@zwned
zwned / ESX_NTP_Config
Created December 22, 2011 13:08
ESX NTP configuration in a nutshell
cat << EOF | tee /etc/sysconfig/clock
ZONE="US/Eastern"
UTC=false
ARC=false
EOF
rm -f /etc/localtime
ln -s /usr/share/zoneinfo/US/Eastern /etc/localtime
cat << EOF | tee /etc/ntp.conf
@zwned
zwned / OSX_Lion_NTFS_support
Created December 17, 2011 03:04
NTFS Support Mac OSX Lion
brew install fuse4x
brew install ntfs-3g
sudo brew link ntfs-3g
sudo cp -rfX /usr/local/Cellar/fuse4x-kext/0.8.13/Library/Extensions/fuse4x.kext /System/Library/Extensions
sudo chmod +s /System/Library/Extensions/fuse4x.kext/Support/load_fuse4x
sudo mv /sbin/mount_ntfs /sbin/mount_ntfs.orig
sudo touch /sbin/mount_ntfs