forked from zzerexx/scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhttpspy.lua
More file actions
86 lines (79 loc) · 2.5 KB
/
httpspy.lua
File metadata and controls
86 lines (79 loc) · 2.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
assert(rconsoleprint ~= nil,"your exploit doesnt have rconsoleprint")
rconsolename("Http Spy")
rconsoleprint("@@LIGHT_CYAN@@")
rconsoleprint(" http spy made by zzerexx#3970\n")
rconsoleprint("@@LIGHT_GRAY@@")
get = hookfunction(game.HttpGet,function(self,url,...)
rconsoleprint("@@LIGHT_GRAY@@")
rconsoleprint("[")
rconsoleprint("@@LIGHT_BLUE@@")
rconsoleprint("GET")
rconsoleprint("@@LIGHT_GRAY@@")
rconsoleprint("]")
rconsoleprint(" game:HttpGet | "..url.."\n")
return get(self,url,...)
end)
getasync = hookfunction(game.HttpGetAsync,function(self,url,...)
rconsoleprint("@@LIGHT_GRAY@@")
rconsoleprint("[")
rconsoleprint("@@LIGHT_BLUE@@")
rconsoleprint("GET")
rconsoleprint("@@LIGHT_GRAY@@")
rconsoleprint("]")
rconsoleprint(" game:HttpGetAsync | "..url.."\n")
return getasync(self,url,...)
end)
post = hookfunction(game.HttpPost,function(self,url,...)
rconsoleprint("@@LIGHT_GRAY@@")
rconsoleprint("[")
rconsoleprint("@@LIGHT_GREEN@@")
rconsoleprint("POST")
rconsoleprint("@@LIGHT_GRAY@@")
rconsoleprint("]")
rconsoleprint(" game:HttpPost | "..url.."\n")
return post(self,url,...)
end)
postasync = hookfunction(game.HttpPostAsync,function(self,url,...)
rconsoleprint("@@LIGHT_GRAY@@")
rconsoleprint("[")
rconsoleprint("@@LIGHT_GREEN@@")
rconsoleprint("POST")
rconsoleprint("@@LIGHT_GRAY@@")
rconsoleprint("]")
rconsoleprint(" game:HttpPostAsync | "..url.."\n")
return postasync(self,url,...)
end)
if syn then
synreq = hookfunction(request,function(data)
rconsoleprint("@@LIGHT_GRAY@@")
rconsoleprint("[")
rconsoleprint(
(data.Method == "GET" and "@@LIGHT_BLUE@@") or
(data.Method == "POST" and "@@LIGHT_GREEN@@") or
(data.Method == "PATCH" and "@@ORANGE@@") or
"@@LIGHT_BLUE@@"
)
rconsoleprint(data.Method or "GET")
rconsoleprint("@@LIGHT_GRAY@@")
rconsoleprint(((data.Method == nil or #data.Method == 3) and "] ") or (#data.Method > 3 and "]"))
rconsoleprint(" syn.request | "..data.Url.."\n")
return synreq(data)
end)
end
if request then
req = hookfunction(request,function(data)
rconsoleprint("@@LIGHT_GRAY@@")
rconsoleprint("[")
rconsoleprint(
(data.Method == "GET" and "@@LIGHT_BLUE@@") or
(data.Method == "POST" and "@@LIGHT_GREEN@@") or
(data.Method == "PATCH" and "@@MAGENTA@@") or
"@@LIGHT_BLUE@@"
)
rconsoleprint(data.Method or "GET")
rconsoleprint("@@LIGHT_GRAY@@")
rconsoleprint(((data.Method == nil or #data.Method == 3) and "] ") or (#data.Method > 3 and "]"))
rconsoleprint(" request | "..data.Url.."\n")
return req(data)
end)
end