
You are viewing a potentially older version of this package. View Latest Version
AntiHacker
Protect your lobby with ban evasion protection, RPC guards, exploit autobans, ship recovery, and QoL tools.AntiHacker v2.0.0
A comprehensive host-side security and Quality-of-Life mod for Lethal Company. AntiHacker protects your lobbies from malicious players, prevents ban evasion, blocks game-breaking server RPC exploits, provides instant ship recovery tools, and adds convenient ship management commands.
🛡️ Anti-Cheat & Lobby Security
- Ban Evasion Prevention: When you kick a player from your lobby, they are immediately added to the ban list and blocked from reconnecting.
- Lobby-Verified Steam ID Check (Anti-Spoofing): Many cheat clients forge their Steam ID during the connection handshake. AntiHacker cross-references connection requests against actual Steam lobby events. Anyone attempting to join with a spoofed ID is rejected and autobanned.
- Duplicate & Impersonation Protection: Blocks clients attempting to connect using a Steam ID that is already active in the session.
- Persistent Blocklist: Kicked/banned Steam IDs are automatically saved to
AntiHacker_KickList.txtso repeat offenders stay blocked across game restarts. - Built-in & Custom Blacklists: Includes a built-in blacklist of known griefers, plus a configurable
ExtraBlacklistsetting to add your own comma-separated Steam IDs. - Dynamic Vanilla Lobby Detection: If AntiHacker is the only mod installed, your lobby can appear in the vanilla server list. If other mods are present, it marks the lobby as modded (can also be forced to vanilla via
ForceVanillaLobby).
🔒 Server RPC Guards (Host-Side Exploit Prevention)
Cheaters often send unauthorized Server RPCs to crash or ruin the lobby. AntiHacker inspects incoming network calls from remote clients:
- ChangeLevel Exploit Protection: Prevents malicious clients from sending invalid moon/level IDs (a common exploit used to freeze the ship in permanent hyperspace). Attackers are immediately autobanned and disconnected.
- Credit & Economy Safeguards: Validates all client-initiated credit changes (
SyncGroupCreditsServerRpc,BuyItemsServerRpc,BuyVehicleServerRpc,BuyShipUnlockableServerRpc). Drops illegitimate balance increases and autobans negative or wildly manipulated credit amounts. - Unlockable & Storage Validation: Prevents remote clients from requesting invalid unlockable IDs.
- Ship Lever Protection (
AllowClientStartEnd): Host-configurable option to prevent clients from pulling the start/landing lever or manually ejecting the crew. When disabled, client lever attempts are safely ignored. - Hidden Debug RPC Blocking: Instantly blocks and autobans clients attempting to invoke internal debug RPCs (
Debug_EnableTestRoomServerRpc,Debug_ToggleAllowDeathServerRpc,Debug_ReviveAllPlayersServerRpc). - Ship Furniture Yeeting Protection: Validates all object placement RPCs (
PlaceShipObjectServerRpc). Drops and bans placements with NaN/infinite coordinates or positions outside ship bounds. - Spam & Flooding Rate Limiting: Limits object placement and storage RPCs to 10 actions/second per client to stop lag machines and physics desyncs.
💻 Terminal Commands
Type these directly into the ship terminal:
| Command | Who | Description |
|---|---|---|
fixship |
Host only | Clears a stuck travel lock left behind by an exploited or interrupted ChangeLevel, re-enabling the start lever and terminal. |
money <amount> |
Host only | Disabled by default; recovery tool only (enable with EnableMoneyCommand). Intended solely for repairing credits a hacker has tampered with. Sets group credits (e.g. money 500). Can also adjust relatively (e.g. money +250 or money -100). |
clean all |
Anyone | Automatically sends all eligible ship furniture/decor to storage (skips items containing scrap and the terminal). |
clean <name> |
Anyone | Sends specific furniture matching the name to storage (e.g. clean bunk, clean table). |
🛠️ Quality of Life & Build Controls
- Ship Recovery Hotkey (
F9): Host can press F9 at any time to clear a stuck ship travel lock (travellingToNewLevel), restore lever interaction, and reset terminal cooldowns. - Move / Store Terminal (
F8): Allows the ship terminal to be stored away or un-stored! Pressing F8 toggles the terminal into storage, or unstores it straight into placement mode with rotation restored. - Unstore Item Hotkey (
F6): Grabs the first item from storage and immediately enters placement mode. - Ship Lights Hotkey (
F7): Toggles the ship light switch from anywhere. - Advanced Furniture Rotation:
- While placing an object in build mode, use the Arrow Keys to rotate it in 90° increments along the X and Z axes (Up/Down for pitch, Left/Right for roll).
- Press End to reset rotation back to standard default orientation (fixes upside-down items!).
- Contextual Teleport (
F5, Optional):- Disabled by default and intended only for getting out of trouble caused by hackers (e.g. being stranded or teleported away). When enabled via
EnableTeleport, pressing F5 inside the ship uses the inverse teleporter; pressing it outside beams you back to the ship.
- Disabled by default and intended only for getting out of trouble caused by hackers (e.g. being stranded or teleported away). When enabled via
⚙️ Configuration
Configuration is located at BepInEx/config/com.invertigo.antihacker.cfg:
[AntiHacker]
PersistKickList(default:true): Whether kicked players remain blocked across game restarts.ForceVanillaLobby(default:false): Forces your server to appear in the vanilla server list regardless of other mods.ExtraBlacklist(default:""): Comma-separated list of Steam IDs to ban on startup.AllowClientStartEnd(default:true): Iffalse, only the host can pull the start/stop lever. Remote client attempts are ignored.EnableMoneyCommand(default:false): Enables the host-onlymoneyterminal command. Off by default; only for fixing credits tampered with by hackers.RecoveryKey(default:F9): Key to un-freeze a stuck ship travel state.
[Hotkeys]
MoveTerminalKey(default:F8): Hotkey to store or unstore the terminal.UnstoreKey(default:F6): Hotkey to unstore the first item in storage and enter build mode.LightSwitchKey(default:F7): Hotkey to toggle ship lights.RotationTipEveryTime(default:false): If true, displays the rotation hint popup every time you place an object.EnableTeleport(default:false): Enable contextual F5 teleportation. Off by default; only for resolving issues caused by hackers.TeleportKey(default:F5): Hotkey for contextual teleportation.
📦 Installation
- Mod Manager (Recommended): Install via r2modman or the Thunderstore Mod Manager.
- Manual Installation: Place
AntiHacker.dllinside yourBepInEx/plugins/directory.