Skip to content

Instantly share code, notes, and snippets.

@mouseroot
mouseroot / TreeNode.java
Created September 21, 2012 03:50
TreeNode class
private static class TreeNode
{
//Customer information
int id;
String name;
TreeNode left;
TreeNode right;
//Our constructor takes the id and first and last name
@mouseroot
mouseroot / Overview
Created December 21, 2012 17:41
Cracking WPA/WPA2
apt-get install aircrack-ng
apt-get install macchanger
ifconfig <interface> down
macchanger -s 00:00:13:37:00:00 <interface>
airmon-ng start <interface>
ifconfig <interface> up
airodump-ng <interface>
...let it populate
^c
@mouseroot
mouseroot / run_pip.bat
Last active December 14, 2015 08:39
Batch script to run PIP for python on windows Because for some odd reason i must CD into C:\Python27\Lib\site-packages\pip and run python __init__.py <args> in order to use PIP and yes it is in my path...don't know why it doesn't work but this batch file was created to fix it
@echo off
cls
echo Python PIP
echo ----------
cd C:\Python27\Lib\site-packages\pip\
python __init__.py %1
echo ----------
@mouseroot
mouseroot / 4chan_downloader.sh
Last active December 16, 2015 03:19
Mousetech.org Shell
#!/bin/bash
#Get number of parameters
#if its 2 then continue
if [ "$#" -eq 2 ]; then
url="$1"
dir="$2"
mkdir -p $dir
domain="images.4chan.org"
user_agent="Mozilla"
@mouseroot
mouseroot / unix_links.txt
Created April 30, 2013 16:38
Unix related links
@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 = []
@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 / 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 / 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 / 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)