Skip to content

Instantly share code, notes, and snippets.

from smb.SMBConnection import SMBConnection
import random, string
from smb import smb_structs
smb_structs.SUPPORT_SMB2 = False
import sys
# Just a python version of a very simple Samba exploit.
# It doesn't have to be pretty because the shellcode is executed
zevlag / be.quiet.job.plist
Created March 5, 2019 16:07
Mac OS Volume Limit Script
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
zevlag /
Created August 23, 2017 18:22
Count Files in directories recursively
for f in *; do [ -d ./"$f" ] && find ./"$f" -maxdepth 1 -exec echo \; | wc -l && echo $f; done
zevlag /
Last active August 26, 2016 14:23
Get dd To Show Progress Statistics

To show progress statistics for dd in OS X:
dd if=Downloads/ISOs/kali-linux-1.1.0a-amd64.iso of=/dev/rdisk2 bs=1m

Now hit CTRL+t
From another terminal
sudo killall -INFO dd

On Linux, you have to sind a USR1 instead of INFO signal.
pkill -USR1 -x dd

Keybase proof

I hereby claim:

  • I am zevlag on github.
  • I am zevlag ( on keybase.
  • I have a public key whose fingerprint is 12C5 E861 9F36 B0BB 86B5 BE9A EA1F 03E2 0CF2 FDBD

To claim this, I am signing this object: