Author Topic: how to protect my server from hacking when i put it online  (Read 3198 times)

Ahmed Abouelnas

  • Newbie
  • *
  • Posts: 39
  • Karma: +2/-11
  • Ahmed Abouelnas
    • View Profile
how to protect my server from hacking when i put it online
« on: July 16, 2013, 01:09:23 am »
how to protect my server from hacking when i put it online

like no one took my scripts

Thijn

  • Tester
  • Sr. Member
  • ****
  • Posts: 531
  • Karma: +27/-16
    • View Profile
Re: how to protect my server from hacking when i put it online
« Reply #1 on: July 16, 2013, 02:33:47 pm »
You can't steal server side scripts. You can however copy client side scripts. There is currently no way to avoid that. Yes, you could compile them but I've experienced that this will only break scripts.

So either lock your server and give the password to people you trust, or dont use client side scripts.

Ahmed Abouelnas

  • Newbie
  • *
  • Posts: 39
  • Karma: +2/-11
  • Ahmed Abouelnas
    • View Profile
Re: how to protect my server from hacking when i put it online
« Reply #2 on: July 16, 2013, 05:10:40 pm »
You can't steal server side scripts. You can however copy client side scripts. There is currently no way to avoid that. Yes, you could compile them but I've experienced that this will only break scripts.

So either lock your server and give the password to people you trust, or dont use client side scripts.
thnx for help

Vortrex

  • Full Member
  • ***
  • Posts: 267
  • Karma: +54/-73
    • View Profile
Re: how to protect my server from hacking when i put it online
« Reply #3 on: July 16, 2013, 06:03:27 pm »
I haven't had any problems using compiled client scripts.

Shadow.

  • Tester
  • Full Member
  • ****
  • Posts: 144
  • Karma: +16/-35
    • View Profile
Re: how to protect my server from hacking when i put it online
« Reply #4 on: July 17, 2013, 12:32:44 am »
Trust me, Vortrex, there are problems with client scripts.

SugarD

  • Argonath RPG Dev/Manager
  • Tester
  • Sr. Member
  • ****
  • Posts: 820
  • Karma: +37/-75
  • STOP IN THE NAME OF THE COLESLAW!
    • View Profile
    • Clan Xperience
Re: how to protect my server from hacking when i put it online
« Reply #5 on: July 17, 2013, 06:44:08 pm »
I've already told people a way to fix this that VRocker came up with. :P

Set your client scripts to read a custom-made function in your server scripts upon load. Make it so they won't load until they read from it. That way no one can run them when compiled, even if they upload them to their server.

Thijn

  • Tester
  • Sr. Member
  • ****
  • Posts: 531
  • Karma: +27/-16
    • View Profile
Re: how to protect my server from hacking when i put it online
« Reply #6 on: July 17, 2013, 06:57:46 pm »
I've already told people a way to fix this that VRocker came up with. :P

Set your client scripts to read a custom-made function in your server scripts upon load. Make it so they won't load until they read from it. That way no one can run them when compiled, even if they upload them to their server.
This requires the compile scripts to work first. Something that's been broken for ages.

SugarD

  • Argonath RPG Dev/Manager
  • Tester
  • Sr. Member
  • ****
  • Posts: 820
  • Karma: +37/-75
  • STOP IN THE NAME OF THE COLESLAW!
    • View Profile
    • Clan Xperience
Re: how to protect my server from hacking when i put it online
« Reply #7 on: July 17, 2013, 07:12:49 pm »
I've already told people a way to fix this that VRocker came up with. :P

Set your client scripts to read a custom-made function in your server scripts upon load. Make it so they won't load until they read from it. That way no one can run them when compiled, even if they upload them to their server.
This requires the compile scripts to work first. Something that's been broken for ages.
According to VRocker, compiling scripts has always worked. :P

Shadow.

  • Tester
  • Full Member
  • ****
  • Posts: 144
  • Karma: +16/-35
    • View Profile
Re: how to protect my server from hacking when i put it online
« Reply #8 on: July 18, 2013, 02:33:38 am »
I've already told people a way to fix this that VRocker came up with. :P

Set your client scripts to read a custom-made function in your server scripts upon load. Make it so they won't load until they read from it. That way no one can run them when compiled, even if they upload them to their server.
This requires the compile scripts to work first. Something that's been broken for ages.
According to VRocker, compiling scripts has always worked. :P

Well since both me and Thijn are scripters and Thijn is a beta-tester, moreover we are in-charge of projects which include doing more than /spawncar /wep, I think you should believe us.

Also, Thijn talked to VRocker about bugged compiled scripts a long time ago.

SugarD

  • Argonath RPG Dev/Manager
  • Tester
  • Sr. Member
  • ****
  • Posts: 820
  • Karma: +37/-75
  • STOP IN THE NAME OF THE COLESLAW!
    • View Profile
    • Clan Xperience
Re: how to protect my server from hacking when i put it online
« Reply #9 on: July 18, 2013, 03:27:57 am »
I've already told people a way to fix this that VRocker came up with. :P

Set your client scripts to read a custom-made function in your server scripts upon load. Make it so they won't load until they read from it. That way no one can run them when compiled, even if they upload them to their server.
This requires the compile scripts to work first. Something that's been broken for ages.
According to VRocker, compiling scripts has always worked. :P

Well since both me and Thijn are scripters and Thijn is a beta-tester, moreover we are in-charge of projects which include doing more than /spawncar /wep, I think you should believe us.

Also, Thijn talked to VRocker about bugged compiled scripts a long time ago.
Thijn being a beta tester doesn't exactly out-rank the guy who made the mod...

Vortrex

  • Full Member
  • ***
  • Posts: 267
  • Karma: +54/-73
    • View Profile
Re: how to protect my server from hacking when i put it online
« Reply #10 on: July 18, 2013, 06:59:31 am »
Like I said before, I have never experienced any problems with compiled client scripts. For me, they always work like non compiled ones do.

This goes for both my VPS (Linux) and my PC (Windows).

EDIT: I guess I'll explain my process of this:
- For onScriptLoad, compile the client script (it just allows a fresh copy in case something was edited or something).

- In Script.xml, use the compiled files for client scripts, and not the uncompiled ones.

- When calling client functions, use the compiled script path, not the uncompiled.

I guess I should mention that I used GUI and it works too. It's a little buggy because of my scripting errors (lack of testing), so back when I showed you my script Shadow, that's why.

I'm not saying that it's perfect right now, but I haven't had any issues. I can (probably) rule out platform and/or architecture incompatibilities, because my Linux VPS is 32 bit and my Windows PC is 64 bit.

Shadow/Thijn, what is it you have problems with when using the compiled scripts?
« Last Edit: July 18, 2013, 07:08:28 am by Vortrex »

Thijn

  • Tester
  • Sr. Member
  • ****
  • Posts: 531
  • Karma: +27/-16
    • View Profile
Re: how to protect my server from hacking when i put it online
« Reply #11 on: July 18, 2013, 06:21:21 pm »
Shadow/Thijn, what is it you have problems with when using the compiled scripts?
I can't talk for Shadow. But when I was testing GameSparks with compiled scripts everything (yes, everything) was either not working, or wrong. GUIs were either not appearing or in wrong positions or having wrong labels.
Going back to uncompiled scripts and everything worked like it should.
I've also compiled the scripts on the server, so it isn't compatibility issues.

Shadow.

  • Tester
  • Full Member
  • ****
  • Posts: 144
  • Karma: +16/-35
    • View Profile
Re: how to protect my server from hacking when i put it online
« Reply #12 on: July 19, 2013, 12:57:07 am »
Shadow/Thijn, what is it you have problems with when using the compiled scripts?
I can't talk for Shadow. But when I was testing GameSparks with compiled scripts everything (yes, everything) was either not working, or wrong. GUIs were either not appearing or in wrong positions or having wrong labels.
Going back to uncompiled scripts and everything worked like it should.
I've also compiled the scripts on the server, so it isn't compatibility issues.

Exactly.same.issue.
Nothing worked.

Nexus

  • Newbie
  • *
  • Posts: 45
  • Karma: +3/-0
    • View Profile
Re: how to protect my server from hacking when i put it online
« Reply #13 on: July 20, 2013, 12:11:27 am »
Shadow/Thijn, what is it you have problems with when using the compiled scripts?
I can't talk for Shadow. But when I was testing GameSparks with compiled scripts everything (yes, everything) was either not working, or wrong. GUIs were either not appearing or in wrong positions or having wrong labels.
Going back to uncompiled scripts and everything worked like it should.
I've also compiled the scripts on the server, so it isn't compatibility issues.

Exactly.same.issue.
Nothing worked.

Exactly the same happened with Liberty RPG



<X_94> messi suckz!!
<~Baldachyn> yes x94 finally some sane words from you

 

© Liberty Unleashed Team.