SMAC (Sourcemod Anti-Cheat) For CSSv34

SMAC (Sourcemod Anti-Cheat) For CSSv34 v34.R1f

No permission to download

Vertigo

⍥????
Staff member
Administrator
Vertigo submitted a new resource:

SMAC (Sourcemod Anti-Cheat) For CSSv34 - Sourcemod anti-cheat for server.

SourceMod Anti-Cheat often known as SMAC, is a server-side plugin with many different modules to help protect your gameserver against common threats, hacks, scripts, exploits, commands, cvars, etc.

Requirements :
  • Sourcemod v1.8 or Higher
Installation :
  • Download SMAC_v34_R1f.zip file from this post.
  • Extract the contents of zip file and put it...
Read more about this resource...
 
Last edited:

Vertigo

⍥????
Staff member
Administrator
SourceMod Anti-Cheat
[Core] - smac.smx

This is the core module of SMAC. Without it (smac.smx), the other modules won't load or function.

ConVars :
Code:
// The duration in minutes to ban if smac detects a cheater and auto bans. (0 - Permanent)
// Default: "1440"
smac_ban_duration "43200"

// Should smac include extra information about the clients in the logs ?
// Default: "0"
smac_log_verbose "1"
Admin Commands :
Code:
smac_status                     -                   Shows player's information. Equivalent to the in-built command 'status'
 
Last edited:

Vertigo

⍥????
Staff member
Administrator
[SMAC] Aimbot Detector
[Module] - smac_aimbot.smx

This module monitors players and clients on the server for any suspicious camera angles and snaps on the players camera. This module ignores melee weapons, teleportation, and usually ignores the first detection as it's most likely a false positive.

Keep in mind that that while the first detection is ignored (ie: not logged or posted to admins in-game), it is still counted for all further detections. The reason for ignoring the first detection is due to the chance that it is a false positive which would spam logs and possibly confuse/alarm admins. However, after the first detection, subsequent detections are more than likely to be someone who is hacking and it will be logged in the cstrike/addons/sourcemod/logs/SMAC.log file starting with Detection #2 as the first logged detection.

ConVars :
Code:
// Number of aimbot detections before a player is banned. Minimum allowed is 3. (0 = Never ban)
// Default: "3"
smac_aimbot_ban "3"
Detection Sample (In Game) :
Code:
Hacker1 (ID: STEAM_0:0:1234567890 | IP: 123.123.123.123) is suspected of using an aimbot. (Detection X | Deviation: X | Weapon: X)
Hacker2 (ID: STEAM_0:0:1234567890 | IP: 123.123.123.123) is suspected of using an aimbot. (Detection X | Deviation: X | Weapon: X)
Hacker3 (ID: STEAM_0:1:1234567890 | IP: 123.123.123.123) is suspected of using an aimbot. (Detection X | Deviation: X | Weapon: X)
Detection Sample (Log) :
Code:
Hacker1 is suspected of using an aimbot. (Detection X | Deviation: X | Weapon: X)
Hacker2 is suspected of using an aimbot. (Detection X | Deviation: X | Weapon: X)
Hacker3 is suspected of using an aimbot. (Detection X | Deviation: X | Weapon: X)
 

Vertigo

⍥????
Staff member
Administrator
[SMAC] AutoTrigger Detector
[Module] smac_autotrigger.smx

This module detects cheats that automatically press buttons for players. Mainly these 2 types of cheats :
  • BunnyHop - Auto press +jump or player holds down +jump to jump repeatedly.
  • AutoFire - Player holds down +attack and fires semi-auto weapons as if they were full-auto.
Many cheats come with these features enabled by default which could make them quite common to catch. The detections should be immune to natural human behavior, but may be triggered by players using advanced scripts and aliases. A player binding their mousewheel to buttons should not trigger a detection.

It is recommended that you leave the auto-ban cvar disabled until you are confident that there are no false detections. While this may sound obvious, do not run this module on your server if you are running conflicting plugins. An example would be a plugin that allows a player to bunnyhop or auto-fire pistols.

ConVars :
Code:
// Action to perform on auto trigger detection
// 0 - Notify Admin, 1 - Kick Player, 2 - Ban Player
// Default: "1"
smac_autotrigger_action "2"

// Number of autotrigger detections before a smac performs action on player
// Default: "7"
smac_autotrigger_detections "7"
Detection Sample (Log) :
Code:
Hacker1 (ID: STEAM_0:0:1234567890 | IP: 123.123.123.123) is suspected of using auto-trigger cheat: BunnyHop
Hacker2 (ID: STEAM_0:0:1234567890 | IP: 123.123.123.123) is suspected of using auto-trigger cheat: Auto-Fire
 

Vertigo

⍥????
Staff member
Administrator
[SMAC] Client Protection
[Module] - smac_client.smx

This module protects the server from general client exploits such as connection spam, name change spam, and invalid name or chat characters.

Detection Sample (Log) :
Code:
Hacker1 (ID: Unknown | IP: 123.123.123.123) was temporarily banned for connection spam.
Hacker2 (ID: STEAM_0:0:1234567890 | IP: 123.123.123.123) was kicked for name change spam.
Connect Support :

This module also has support for the Connect extension to block advanced spam attacks on newer source games. The Connect extension cannot run alongside the CBaseServer extension. Uninstall CBaseServer Extension if you want to run Connect Extension.
Code:
Hacker1 (ID: STEAM_0:0:1234567890 | IP: 123.123.123.123) was temporarily banned for connection spam.
 

Vertigo

⍥????
Staff member
Administrator
[SMAC] Commands Monitor
[Module] - smac_commands.smx

This module manages, monitors, checks for commands being used by players on the server. It manages commands that can be used to lag, crash, or freeze the server and manages them accordingly by either blocking them, kicking the player, banning the player, etc.

Admin Commands :
Code:
// Adds a command to be blocked by SMAC.
!smac_addcmd <command> <0=block-only; 1=ban; 2=kick>
Example: !smac_addcmd kill 0

// Removes the command from block list
!smac_removecmd <command>
Example: !smac_removecmd kill

// Adds a command to ignore on command spam.
!smac_addignorecmd <command>
Example: !smac_addignorecmd buy

// Remove a command to ignore
!smac_removeignorecmd <command>
Example: !smac_removeignorecmd buy
ConVars :
Code:
// Amount of commands allowed per second. (0 = Disabled)
// Default: "35"
smac_antispam_cmds "35"

// Log command usage. Use only for debugging purposes.
// Default: "0"
smac_commands_log "0"
Detection Sample (Log) :
Code:
Hacker1 (ID: STEAM_0:0:1234567890 | IP: 123.123.123.123) was banned for command usage violation of command: sm_command
Hacker2 (ID: STEAM_0:0:1234567890 | IP: 123.123.123.123) was banned for command usage violation of command: sm_command
More Details :

To see what commands are considered as cheat commands : Visit Here
For blocking commands from plugins : Use this plugin instead

This plugin (as well as the one linked above) DOES NOT BLOCK "sm plugins list" or commands similar to this. It is hardcoded into Sourcemod itself and cannot be blocked by plugin.

If you want to block commands from plugins, you may want to consider either editing the plugin and/or set the command to only be usable by admins. Using this plugin to block another plugin's commands is not advised as most plugins are open source and can been recompiled without use of the command.

Finally, please be aware that not all commands can be blocked/prevented, including some client-side commands that players can use. While you can sometimes detect when they are being used, and sometimes take actions like kick/ban against them for doing so, it does not mean that you can always successfully block the command itself from working.
 

Vertigo

⍥????
Staff member
Administrator
[SMAC] Anti Flash
[Module] - smac_css_antiflash.smx

This module manages and takes care of players using anti-flash cheats on the server it's installed on. It will manually blind/flash players when they are blinded in a way clients cannot prevent.
 

Vertigo

⍥????
Staff member
Administrator
[SMAC] Anti Smoke
[Module] - smac_css_antismoke.smx

This module handles and manages smoke in-game for players. It will render out and set the players camera if he/she stands inside the smoke and blinds them accordingly.
 

Vertigo

⍥????
Staff member
Administrator
[SMAC] Exploit Fixes CSS
[Module] - smac_css_fixes.smx

This module blocks general exploits in Counter-Strike: Source :

Illegal Defuse :

An illegal defuse is when a player is able to defuse the bomb outside of their line of sight, and through objects in the map such as wall or containers. Players will be notified when their illegal defuse attempt was blocked.

Extra Respawn :

A player rejoining the server fast enough after dying can give themselves an additional spawn in the same round. This module fixes this bug.

ConVars :
Code:
// Blocks illegal defuses.
// Default: "1"
smac_css_defusefix "1"

// Blocks players from respawning through rejoins.
// Default: "1"
smac_css_respawnfix "1"
 

Vertigo

⍥????
Staff member
Administrator
[SMAC] ConVar Checker
[Module] - smac_cvars.smx

This module allows you to check if clients are trying to force their own cvars. This module will check if any client has a predefined cvar that differs from the server. Server admins can add their own cvars they would like to enforce or use the ones SMAC has predefined.

ConVar Checker will lock your server's sv_cheats value to 0. If you are running a server that requires sv_cheats, do not run this module. Please be aware that this plugin DOES NOT BLOCK commands from being used as it simply monitors cvar values. If you want to block commands, please look at the Command Monitor page for further details.

Admin Commands :

1. Add a CVAR to be checked on the CVAR List.


!smac_addcvar <cvar> <comparison type> <action> <value> <value2 if bound>
Example : !smac_addcvar cl_cmdrate greater 30
This will kick clients if they use cl_cmdrate below 30.

Available Comparison Types for above command :
Code:
equal                       -               ConVar must equal the specified value
strequal                    -               ConVar must equal the specified string
replicated                  -               ConVar must match the server's value
greater                     -               ConVar must be greater than the specified value
less                        -               ConVar must be less than the specified value
between                     -               ConVar must be between the specified values
outside                     -               ConVar must be outside the specified values
nonexist                    -               ConVar must not exist on the client
Available Actions for above command :
Code:
warn                        -               Warns admins
mute                        -               Mutes the client
kick                        -               Kicks the client, informing them of what ConVar was at fault
ban                         -               Bans the client
2. Remove a cvar from the list of cvars that get checked.

!smac_removecvar <cvar>
Example : !smac_removecvar cl_cmdrate
This will remove cvar cl_cmdrate from cvar check list.

ConVars :
Code:
// Automatically mute players on HLDJ/HLSS detections.
// Default: "1"
smac_hldj_mute "1"
 
Last edited:

Vertigo

⍥????
Staff member
Administrator
[SMAC] Eye Angle Test
[Module] - smac_eyetest.smx

This module checks if a player's eye angles (field of view) has been altered past the point of a normal player. It also checks if a player has been tampering with movement commands before they're sent to the server. The type of cheats that do this are usually Anti-Recoil, No-Spread and some Aimbots. When spectating these players they usually have a “shaky screen” when firing.

ConVars :
Code:
// Automatically ban players on eye test detections.
// Default: "1"
smac_eyetest_ban "1"
Detection Sample (Log) :
Code:
Hacker1 (ID: STEAM_0:0:1234567890 | IP: 123.123.123.123) was banned for cheating with their eye angles. Eye Angles: 180 -356 0
Hacker2 (ID: STEAM_0:0:1234567890 | IP: 123.123.123.123) was banned for cheating with their eye angles. Eye Angles: -22 270 -8
Hacker3 (ID: STEAM_0:1:1234567890 | IP: 123.123.123.123) was banned for cheating with their eye angles. Eye Angles: 180 95 5
Hacker4 (ID: STEAM_0:0:1234567890 | IP: 123.123.123.123) was banned for reusing old movement commands. CmdNum: 2087 PrevCmdNum: 16914 | [72219:75011:75028]
Hacker5 (ID: STEAM_0:0:1234567890 | IP: 123.123.123.123) was banned for tampering with an old movement command (tickcount). CmdNum: 2087 | [38294:38280:38310]
Hacker6 (ID: STEAM_0:0:1234567890 | IP: 123.123.123.123) was banned for tampering with an old movement command (buttons). CmdNum: 2087 | [0:131072]
 

Vertigo

⍥????
Staff member
Administrator
[SMAC] Rcon Locker
[Module] - smac_rcon.smx

This module will protect your server from general rcon exploits and crashes. It will lock your rcon password after your server has started to prevent it from being changed unintentionally.

This module can also utilize an additional third-party extension known as SM RCon to log IP information of rcon usage attempts and enables the rcon whitelisting feature in this plugin. This extension is only required for IP Logging and RCon whitelisting.

Detection Sample (Log) :
Code:
Rcon password changed to "LETMEIN". Reverting back to original config value.
 

Vertigo

⍥????
Staff member
Administrator
[SMAC] Speedhack
[Module] - smac_speedhack.smx

This module checks for abnormal speeds on clients and attempts to block them. It runs passively in the background to prevent speedhacks from working, as well as notifying admins if a player is suspected of using such a cheat.

Be aware that a client lagging severely can mimic the effects of a speedhack, and as a result, this module will not take action on clients other than slowing them down.

Detection Sample (Log) :
Code:
Hacker1 (ID: STEAM_0:0:1234567890 | IP: 123.123.123.123) is suspected of using a speedhack.
Detection Sample (In Game) :
Code:
Hacker1 is suspected of using a speedhack.
 

Vertigo

⍥????
Staff member
Administrator
[SMAC] Spinhack Detector
[Module] - smac_spinhack.smx

This module checks if the client is spinning in certain directions to ensure other players cannot shoot the client easily. It detects the amount times the client spins in the same directions and warns admins if detected multiple times.

Detection Sample (Log) :
Code:
Hacker1 (ID: STEAM_0:0:1234567890 | IP: 123.123.123.123) is suspected of using a spinhack.
Hacker2 (ID: STEAM_0:0:1234567890 | IP: 123.123.123.123) is suspected of using a spinhack.
 
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock