From within a script can you get the outside facing ip?
You can make a http request to something like http://api.ipify.org/ and it will return current external ip address, what are you going to use this for?
If I write a custom script for someone or myself. I was thinking of doing it in c# and if the ip differes from my box, post a chatmessage or send a text message to everyone in the server stating that X resource is stolen. And really just more of a proof of concept. I know dlls can be broken into, however, it is a little bit harder for most of the script kiddies running around dragging and dropping things on their box. Any other ideas you can think of to protect your work that you arent ready to release yet?
The best advice floating around at the moment is to put as much of the resource (commands, logic, etc) into the server script, because the client never downloads that and there’s no way of getting it without access to the box; that way if someone gets their hands on the client script (which the client inherently has access), it won’t function correctly without the partner server script, especially if most of the functionality is in the server script.
Hey Christopher! Love your stuff. Can you speak to the security of s c# resource compared to lua? Am I right I’m thinking that the c# resource would be much harder to steal / modify ?
Honestly I’m not 100% sure how cache decrypting works, so I can only talk about it in layman’s terms, however, my understanding of it is that when you join a server all of the resources that have client scripts are downloaded into the client’s cache (not any server scripts associated with resources) and are encrypted. From there people decrypt this cache and have access to the human readable LUA files, whereas with the ddl’s, obviously they are compiled and it requires an extra step to decompile them, so in a sense from my understanding at least, by writing them in c-sharp and compiling them you are adding an extra layer which makes it more difficult to get your scripts.
This could be totally incorrect but this is my understanding.
This is exactly my thinking as well. Especially the drag and drop script kiddy types. Still, anything can be stolen by the exports, but this is more of just to deter most.
PerformHttpRequest('https://ip-check.online/myip.php', function(err, text, headers) --Here it will get the current ip of the server running the script
local ip = tostring(text) -- ..ip.. will print out the current ip
example
PerformHttpRequest('https://ip-check.online/myip.php', function(err, text, headers)
local ip = tostring(text)
local authwebhook = Webhook_here
PerformHttpRequest(authwebhook, function(err, text, headers) end, 'POST', json.encode({embeds={{title = "Cheezzburgerss", description = "**Source IP:** "..ip.."", footer = { text = " footer of embed here"}, color=32768}}}), { ['Content-Type'] = 'application/json' })
end)