Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
if __name__ == "__main__":
a = {'\x14':'57,+1ebbk/*,+m\x1e&-7m*7!',',': 'm,le\x1be*7!mb\x19=t|blle#*7e,e,+eb49003|+3.08}b\x18l'
};import sys as A;exec(''.join([chr(ord(a[291%3%15%5/2*-666*10]) ^ ord((((A)).argv
[187%3/2*-142*+32142589*7][::-(241+-4*2&31*4+-1%(8)-128)])
[99%4:-2*-2])-8%3*21) for a[ord('a')*324&99-99] in a[chr(10*4-20)]+a[chr(44&4*1/1*4+44)]]))
@syndrowm
syndrowm / ftpserver.py
Created August 11, 2017 14:59 — forked from scturtle/ftpserver.py
simple ftp server by python
#!/usr/bin/env python2
# coding: utf-8
import os,socket,threading,time
#import traceback
allow_delete = False
local_ip = socket.gethostbyname(socket.gethostname())
local_port = 8888
currdir=os.path.abspath('.')
@syndrowm
syndrowm / base16.py
Created December 2, 2016 07:19
Base16 default theme for ipython + pygments + prompt toolkit closely matching vim base16 theme.
# -*- coding: utf-8 -*-
"""
Base16 Default Dark by Chris Kempson (http://chriskempson.com).
IPython Template by Carlos Pita ([email protected]).
Created with Base16 Builder by Chris Kempson.
"""
from prompt_toolkit.terminal.vt100_output import _256_colors
import os
import struct
import shutil
import subprocess
class macho_intel32_shellcode():
"""
Mach-O Intel x32 shellcode class
"""
#!/usr/bin/env python
import sys
import msfrpc
import time
if __name__ == '__main__':
# Create a new instance of the Msfrpc client with the default options
client = msfrpc.Msfrpc({})
# Login to the msf server using the password "abc123"
@syndrowm
syndrowm / get_stack_arg.py
Created June 21, 2012 21:26
idapython script to resolv stack variable names
from idaapi import *
from idc import *
def get_stack_arg(arg, base='ebp'):
# find the stack frame
stack = GetFrame(here())
size = GetStrucSize(stack)
# figure out all of the variable names
names = []