Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- // Configuration: \\ --
- local proxyurl = 'https://redphoenix.xyz/api/proxy.php';
- local methods = {
- game.HttpGet,
- game.HttpPost,
- htgetf
- }
- local output = {
- file = "out.txt";
- save = true;
- }
- -- // Source-code: \\ --
- local save = function(url)
- if output.save == true then
- local old;
- pcall(function()
- old = readfile(output.file);
- end)
- old = old or '';
- writefile(output.file, old..'\n'..url.. ' was spoofed at '..os.time())
- end
- end
- for iter, method in pairs(methods) do
- spawn(function()
- local hooked;
- hooked = hookfunction(method, newcclosure(function(...)
- local new = {};
- for i, v in pairs({...}) do
- if typeof(v) == 'string' then
- warn(v,'was proxied');
- new[i] = proxyurl..'?link='..v;
- save(v)
- else
- new[i] = v;
- end
- end
- return hooked(new[1], new[2]);
- end))
- end)
- end
- if syn and syn.request then
- local old = syn.request;
- setreadonly(syn, false);
- syn.request = function(a)
- if a.Url then
- warn(a.Url, 'was proxied')
- a.Url = proxyurl..'?link='..a.Url;
- save(a.Url);
- end
- return old(a)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement