Skip to content

Instantly share code, notes, and snippets.

@adriensaladin
adriensaladin / pickle-payload.py
Created November 13, 2019 14:29 — forked from mgeeky/pickle-payload.py
Python's Pickle Remote Code Execution payload template.
#!/usr/bin/python
#
# Pickle deserialization RCE payload.
# To be invoked with command to execute at it's first parameter.
# Otherwise, the default one will be used.
#
import cPickle
import sys
import base64

Keybase proof

I hereby claim:

  • I am adriensaladin on github.
  • I am adriens (https://keybase.io/adriens) on keybase.
  • I have a public key ASDclYrmw8squlOe0Pv97j2fXcKmkL6SlEo7YFiLKem6XAo

To claim this, I am signing this object:

@adriensaladin
adriensaladin / reflect.py
Created November 17, 2017 15:52 — forked from 1kastner/reflect.py
A simple echo server to inspect http web requests
#!/usr/bin/env python
# Reflects the requests from HTTP methods GET, POST, PUT, and DELETE
# Written by Nathan Hamiel (2010)
from http.server import HTTPServer, BaseHTTPRequestHandler
from optparse import OptionParser
class RequestHandler(BaseHTTPRequestHandler):
def do_GET(self):