Garry's Mod

Backdoor?

Submitted by 6243, , Thread ID: 141551

Thread Closed
27-08-2019, 05:21 AM
#1
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

RE: Backdoor?

#2
I cant say 100% that this is a backdoor, but it is suspicious of this script, I do not recommend taking risks.

RE: Backdoor?

OP
#3
27-08-2019, 04:24 PM
0bserver2212 Wrote:
I cant say 100% that this is a backdoor, but it is suspicious of this script, I do not recommend taking risks.
Thanks I will wait to some more people try and confrirm that its a backdoor or not The Plugin is SH Scoreboreds i Can Provide Download links if anyone want to take alook at them

RE: Backdoor?

#4
This is not a backdoor. It just checks what country the player is from.

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

RE: Backdoor?

#6
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
http.Fetch("http://freegeoip.net/json/"..ip,function(body) <-- Backdoor
The Fafnir Official
LIKE YOU!

RE: Backdoor?

#7
08-09-2019, 12:37 PM
Pufik Wrote:
http.Fetch("http://freegeoip.net/json/"..ip,function(body) <-- Backdoor
Dude, it's not a backdoor. The fact that it uses http.Fetch doesn't make thisthing a backdoor. If you look at the code below, you can see that it's not doing any RunString bullshit. It's just trying to get a country flag, that's it.

Users browsing this thread: 1 Guest(s)