Skip to content

Instantly share code, notes, and snippets.

@mouseroot
mouseroot / motherless.lua
Created December 10, 2013 22:19
Motherless playlist script Install by: placing this file in C:\Program Files (x86)\VideoLAN\VLC\lua\playlist
--[[
Script: Handles motherless.com
By: Mouseroot
--]]
function probe()
return vlc.access == "http" and string.match(vlc.path,"motherless.com")
@mouseroot
mouseroot / snes_list
Last active December 27, 2015 21:29
SNES Gamelist
Chrono Trigger
Earthbound
Final Fantasy III
Kirbys Dream Land 3
Secret of Mana
Shadowrun
Super Mario RPG
Super Mario World
Zelda - A Link to the Past
@mouseroot
mouseroot / toriptables.sh
Created October 13, 2013 03:30
iptables
#!/bin/sh
#toriptables.sh
# I learned this from https://wiki.torproject.org/noreply/TheOnionRouter/TransparentProxy
#Reject all ICMP packets because they have no owner which creates a leak
iptables -A OUTPUT -p icmp -j REJECT
#All traffic for the user root will go through tor
iptables -t nat -A OUTPUT ! -o lo -p tcp -m owner --uid-owner root -m tcp -j REDIRECT --to-ports 9040
iptables -t nat -A OUTPUT ! -o lo -p udp -m owner --uid-owner root -m udp --dport 53 -j REDIRECT --to-ports 53
@mouseroot
mouseroot / 4chandl.py
Created October 3, 2013 21:49
4chan image downloader
from BeautifulSoup import BeautifulSoup
import urllib
import urllib2
import os
from optparse import OptionParser
from time import sleep
def fetchImages(url):
downloaded_images = []
@mouseroot
mouseroot / soup_test.py
Created October 3, 2013 21:49
Beautiful soup test
#BeautifulSoup Test
from BeautifulSoup import BeautifulSoup
import urllib
import urllib2
def main():
#Setup Headers
user_agent = "Mozilla/6 (Windows 7 64bit) Gecko"
headers = {"user-agent" : user_agent}
@mouseroot
mouseroot / blank.tmp
Created October 3, 2013 21:47
Project manager
from optparse import OptionParser
def main():
pass
if __name__ == "__main__":
usage = "Usage: %prog [Options] <params>"
desc = "Template"
parser = OptionParser(usage=usage,description=desc)
@mouseroot
mouseroot / build.sh
Created August 13, 2013 23:40
Asm stuffs
#!/bin/bash
app="load"
rm *.o
nasm -f elf $app.asm
gcc -o $app $app.o
@mouseroot
mouseroot / winapp.py
Created August 1, 2013 05:40
Win32 CreateWindow example in python
from ctypes import *
from ctypes.wintypes import *
WNDPROCTYPE = WINFUNCTYPE(c_int, HWND, c_uint, WPARAM, LPARAM)
WS_EX_APPWINDOW = 0x40000
WS_OVERLAPPEDWINDOW = 0xcf0000
WS_CAPTION = 0xc00000
@mouseroot
mouseroot / ip_routing_win7.txt
Created April 30, 2013 16:41
Enable IP Routing in Windows 7
1. Open regedit
2. Navigate to "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\"
3. Change IPEnableRouter to 1
4. Run services->Routing and Remote->start
(reboot may be nessesary)
@mouseroot
mouseroot / zipfs.py
Created April 30, 2013 16:39
Zip based filesystem
#ZipFS
import zipfile
import os
class FileSystem:
def __init__(self,name="fs.zip"):
self.drive = name
self.apps = []