Garry's Mod

Backdoor?

Submitted by 6243, , Thread ID: 141551

Thread Closed

RE: Backdoor?

#5
27-08-2019, 05:21 AM
6243 Wrote:
i Recently downloaded a cracked addone i need to know if this code is backdoored or not Thanks


hook.Add("PlayerInitialSpawn", "TAB_LOUNGE_PlayerInitialSpawn", function(ply)
local raw = ply:IPAddress()
local ip = string.Explode(":", raw)[1]
if (ip and ip ~= "") then
http.Fetch("http://freegeoip.net/json/" .. ip, function(body)
if (!body or body == "") then
return end

local tbl = util.JSONToTable(body)
if (!tbl or !tbl.country_code) then
return end

local country = tbl.country_code
cachedIPs[raw] = country:lower()
end)
end
end)

net.Receive("TAB_LOUNGE_CountryFlag", function(_, ply)
local target = net.ReadEntity()
if (IsValid(target) and cachedIPs[target:IPAddress()]) then
net.Start("TAB_LOUNGE_CountryFlag")
net.WriteEntity(target)
net.WriteString(cachedIPs[target:IPAddress()])
net.Send(ply)
end
end)
else
Not backdore, see wiki.garrysmod.com

Users browsing this thread: 6 Guest(s)