Skip to content

Instantly share code, notes, and snippets.

@shemerey
shemerey / SimpleHTTPServerWithUpload.py
Created January 27, 2023 12:43 — forked from smidgedy/SimpleHTTPServerWithUpload.py
Simple Python Http Server with Upload
#!/usr/env python3
########################################################################
#
# Simple HTTP server that supports file upload for moving data around
# between boxen on HTB. Based on a gist by bones7456, but mangled by me
# as I've tried (badly) to port it to Python 3, code golf it, and make
# It a little more robust. I was also able to strip out a lot of the
# code trivially because Python3 SimpleHTTPServer is a thing, and the
# cgi module handles multipart data nicely.
#

Keybase proof

I hereby claim:

  • I am shemerey on github.
  • I am shemerey (https://keybase.io/shemerey) on keybase.
  • I have a public key ASCTcvz6x6GXaGIrr3egglynKGt_fj4N1JxqbV2PSY8hcAo

To claim this, I am signing this object: