Skip to content

Instantly share code, notes, and snippets.

View CakeLancelot's full-sized avatar

CakeLancelot

View GitHub Profile
// A quick and dirty DLL injector
// This method relies on static linkage and the fact that kernel32 doesn't move
// Compile with the same bitness as the target and the dll.
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <Psapi.h>
#include <stdio.h>
int GetPid(char *modName)
{
@ialex32x
ialex32x / SocketSecurityServer
Created July 9, 2013 07:20
python implementation of unity socket policy server
#!/usr/bin/python
#description:python implementation of sockpol.cs for Unity corss domain socket security policy.
#last-modified:2012/4/9 14:03
#author:huliangjie
import socket
import select
import threading
import time