Skip to content

Instantly share code, notes, and snippets.

View mouseroot's full-sized avatar
⚙️
Developing

Mouseroot mouseroot

⚙️
Developing
View GitHub Profile
@mouseroot
mouseroot / multiserver.py
Created August 23, 2012 02:52
multithreaded echo server
from threading import Thread
import socket
class clientThread(Thread):
def __init__(self,sock):
Thread.__init__(self)
self.socket = sock
self.running = 1
def run(self):
while self.running == 1:
@mouseroot
mouseroot / ctypes.py
Created August 23, 2012 02:36
ctypes demo
from ctypes import *
class Win32api():
def __init__(self):
#msdn for what dll to use
self.SetWindowText = windll.user32.SetWindowTextA
self.FindWindow = windll.user32.FindWindowA
def String(self,s):
return c_char_p(s)
@mouseroot
mouseroot / game.py
Created August 23, 2012 02:30
pygame class
import pygame
from pygame.locals import *
class Game:
def __init__(self):
pygame.init()
self.screen = pygame.display.set_mode((640,480))
self.running = 1
self.clock = pygame.time.Clock()
@mouseroot
mouseroot / requests.java
Created August 23, 2012 02:11
Post requests in java
import java.io.*;
import java.net.*;
import javax.swing.*;
public class Requests {
static String domain;
static URL myurl;
static URLConnection myurlc;
@mouseroot
mouseroot / sniff_popups.py
Created August 23, 2012 01:39
sniff popups
import socket
import os
def copyfile():
host_path = "C:\Windows\System32\drivers\etc\hosts"
host_repl = "myhosts"
os.system("copy %s %s" % (host_repl,host_path))
@mouseroot
mouseroot / LICENSE.txt
Created February 11, 2012 22:55 — forked from 140bytes/LICENSE.txt
140byt.es -- Click ↑↑ fork ↑↑ to play!
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE