Skip to content

Instantly share code, notes, and snippets.

View thngkaiyuan's full-sized avatar

Kai Yuan Thng thngkaiyuan

View GitHub Profile
@thngkaiyuan
thngkaiyuan / dl_man.py
Created November 23, 2016 18:24
A simple download accelerator written in Python
import os
import sys
import time
import shutil
import threading
import requests
from urllib2 import urlparse
url = sys.argv[1]
conns = 8
import idaapi
idaapi.CompileLine('static run() { RunPythonStatement("run()"); }')
AddHotkey("Alt-L", "run")
def print_fn_calls(fn_names):
for name in fn_names:
print name
@thngkaiyuan
thngkaiyuan / deobfuscation.py
Last active May 13, 2018 13:52
IDA script for deobfuscation of Nymaim malware
import idaapi
idaapi.CompileLine('static deobfuscate() { RunPythonStatement("deobfuscate()"); }')
AddHotkey("Alt-N", "deobfuscate")
repl_pairs = {
"e8 3a 00 00 00" : "b8 01 00 00 00", # mov eax, 1
}
def chunk(string, length):