Coder Social home page Coder Social logo

safety's Introduction

Safety License github/Vurv78

This is a plugin for Autorun-rs to make your experience safer by preventing crashes and disallowing common malicious behaviors like file spam and deletion.

☑️ Features

  • ⚙️ Easy to configure (See plugin.toml)
  • 📈 Blacklisting net messages, concommands
    • +voicerecord, etc
  • 📁 Restricting access to filesystem
  • 💣 Patches >15 easy ways to crash your game
  • 🔍 Being mostly undetectable
    • Haven't tested against specific anticheats (Make an issue!).
  • 📋 HTTP Whitelist
    • Avoid leaking your IP thanks to shitty addons like PAC and Streamcore.

🤔 Usage

This is meant to be used with Autorun's plugin system.
Drag this repo (as a folder) into your C:/Users/<NAME>/autorun/plugins folder!

Minimum Supported Garry's Mod Version

Current minimum supported version is whichever removed debug.getregistry(), as the detours for that have now been removed. If you keep up to date, you shouldn't have to worry about this.

safety's People

Contributors

vurv78 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ziragog

safety's Issues

jit safety

Need to make sure the jit library can't be used to detect our detours.

Fixed issues

Hall of Fame of issues patched here that Facepunch finally fixed
Checkmark is if they've been removed from the repo (Won't be removed for a while til the updates are common and rolled out)

  • (crash) tostring on invalid CSoundPatch
  • (security) +voicerecord is blocked

Add an option to disable executing on a specifc gamemode or ip.

Latest works fine in sandbox, tried to hop in a zombie survival server and COMPLETELY busted the game as result as this blocked the base gamemode.

I wouldn't doubt this may happen for other gamemodes, too? I also trust some servers so this should probably be a neccessary option.

Make this modular

Autorun-rs 1.2.0-beta finally made Autorun.require able to include files local to the currently running one. So this can be split up into several files rather than a single one.

Hashing Detours

crc, sha256, sha1 & md5 get laggy after ~10 million chars input.

DHTML Detours

DHTML can be used for websockets, to lag your game, etc..

Implement checktype

A lot of functions use LUA->Check<Type> / luaL_check<type> which raise errors when you give the incorrect type to a function. Our detours don't do that.

Need to make sure it doesn't mess up the stack trace as well

(debug.)setmetatable detours aren't 1:1 with vanilla

They don't return the first arg in case of it being a protected metatable. Could be detected by just trying to set _G's metatable to something and comparing the result to nil

Just make the function not return log (nil) and instead return the first arg.

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.