GithubHelp home page GithubHelp logo

jaymo1011 / fxserver-resource-scrambler Goto Github PK

View Code? Open in Web Editor NEW

This project forked from indilo53/fxserver-resource-scrambler

1.0 3.0 0.0 43.11 MB

FXServer Resource Scrambler

License: GNU General Public License v3.0

JavaScript 95.47% Lua 4.53%

fxserver-resource-scrambler's Introduction

fxserver-resource-scrambler

Replaces all your registered server and client events with random generated ones, to prevent script-kiddies from triggering sensitive events using lua injectors. The best advice in general is to never trust the client and make appropriate changes to your resources

Usage

  1. Do NOT forget to backup all your resources before using this script
  2. Download the latest zip and extract it releases
  3. Place all your resources in the resources directory
  4. Run the executable and let it do its work.
  5. Put back the generated; modified resources inside scrambled-resources back in your server resources directory, and enjoy!

I don't know if it will work for everyone, this is just an experiment. Please report issues you're having, and provide helpful information so that I can debug this - providing a copy of the script that is breaking the application is also helpful.

index-win was built using pkg, if you feel bad running a .exe just do an npm install and run node ..


Event tables can be found in scrambled-resources/scrambler-events.json

You can listen for the event scrambler:injectionDetected server-side to catch malicious users (don't forget to start scrambler-vac in server.cfg).

AddEventHandler('scrambler:injectionDetected', function(name, source, isServerEvent)

  local eventType = 'client'
  
  if isServerEvent then
    eventType = 'server'
  end

  print('Player id [' .. source .. '] attempted to use ' .. eventType .. ' event [' .. name .. ']')
 
end)

You need to keep a copy of the original source code, when you make any change to the source : re-scramble all your original resources at once

Do not forget to include fivem base resources and mysql-async if you use it

fxserver-resource-scrambler's People

Contributors

indilo53 avatar elpumpo avatar

Stargazers

 avatar

Watchers

James Cloos avatar Jaymo avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.