SHARE
TWEET

Gmod cc_getcommandtable.lua (After)

Zero03 Jan 28th, 2019 (edited) 197 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --------------------------------
  2. --  ConCommand Table Checker  --
  3. --------------------------------
  4.  
  5. local hideGoodCommands = true
  6. //Default: true
  7. //make this false if you want to see confirmed OK commands
  8. //not sure what this means? visit https://gyazo.com/8ae677649655590593368204e8e7e488 for a visual example.
  9. local enableAdminlogging = false
  10. //Default: false
  11. //make this true if you want to log the use of this command
  12. //not sure what this means? visit https://gyazo.com/9c44282a2efda79226dfbe54d11b0fa9 for a visual example.
  13. local enableChatLogging = true
  14. //Default: true
  15. //make this false to disable "No cheats found on player %name%", "Unknown command(s) found on player %name%", and "cheat(s) found on player %name%"
  16. //not sure what this means? visit https://gyazo.com/84e694ee849e5709502da7da16b69300 for a visual example.
  17. local enableSounds = true
  18. //Default: true
  19. //make this false if you don't want to play sounds when a cheat is found
  20. //while true, the sound ambient/alarms/klaxon1.wav will be played when confirmed cheats are found, and physics/cardboard/cardboard_box_break3.wav will play when unknown cmds are found
  21. local CheatSoundtoUse = "ambient/alarms/klaxon1.wav"
  22. //change this if you know what you're doing. Will change the sound that plays when any cheats are found.
  23. //Default: "ambient/alarms/klaxon1.wav"
  24. local unknownSoundtouse = "physics/cardboard/cardboard_box_break3.wav"
  25. //change this if you know what you're doing. Will change the sound that plays when any unknown commands are found.
  26. //Default: "physics/cardboard/cardboard_box_break3.wav"
  27.  
  28. //if you encounter any errors with this command, please contact me (Zero: steamID STEAM_0:0:1363780)
  29. local cc_goodcmds = {
  30. "+menu", "lua_findhooks_cl", "lua_find_cl", "xgui", "-menu_context", "pp_superdof", "+menu_context", "gm_demo", "myhands_reset", "utime_reset", "snapper", "cl_ec_togglevehicle", "derma_controls", "-menu", "menu_disc", "thirdperson_toggle", "tags_debug", "cl_ec_toggle", "lua_cookieclear", "mu_adminpanel", "ulx", "cl_ec_refresh", "menu_sounds", "hatschat_settings", "acrashscreen_debug", "hatschat_updatefilter", "hatschat_reset", "hatschat_advsettings", "hatschat_refresh", "ads_settings", "fprofiler", "hatschat_clearcache", "spraymon", "ttt_print_playercount", "ttt_cl_idlepopup", "ttt_cl_traitorpopup_close", "ttt_cl_traitorpopup", "ttt_radio", "ttt_cl_startpopup", "ttt_equipswitch", "ttt_quickslot", "ttt_helpscreen", "ttt_toggle_disguise", "ttt_reloadlang", "ttt_tips_hide", "ttt_save_events", "cl_togglelegs", "cl_refreshlegs", "cl_togglevlegs", "unmapvote", "mapvote", "advancedsprays_clearsprays", "crosshairs", "ph_enhanced_show_help", "ph_showtaunts", "ph_check_update", "aaaaaaargghhhhhh", "phe_refresh_taunt_list"}
  31. //aaaaaaargghhhhhh is a prophunt easteregg command, not a cheat.
  32. local cc_badcmds = {"ib_menu","nigger_menu","smeghack_menu","openmurdermenu","focus","unfocus","lenny_menu","******ff","******fl","******i","******mxsh","******npc","******on","******sd","******shd","******shit","******sz","******w","****_admins","+ATMenu","+Aim","+AimAssist","+AimBHOP","+Ares_Aim","+Ares_Nikes","+Ares_Pointer","+Ares_PropKill","+Ares_SlowNikes","+BMaimbot","+BUTT****","+BUTTFUCK","+BaconToggle","+Bacon_Menu","+Bacon_Trigger_Bot","+Bacon_triggerbot_toggle","+CBon_menu","+DragonBot_Aim","+Hax_Menu","+Hax_Zoom","+Hax_aimbot","+Helix_Menu","+Ink_Aim","+Isis_Aim","+Isis_Menu","+Isis_Speed","+MAim","+MPause","+MSpeed","+Mawpos","+Neon_Aim","+Neon_PropKill","+Neon_SpeedHack","+Nis_Menu","+Propkill","+SethHackToggle","+SethHack_Menu","+SethHack_Speed","+Sethhacks_Aim","+Sethhacks_Menu","+Sethhacks_Speed","+TB_Aim","+TB_Bhop","+TB_Menu","+TB_RapidFire","+TB_Speed","+aa", "-aa", "+ah_menu","+aim","+aimbot","+aimbot_scan","+anthrax_floodserver","+asb","+asb_bot","+autofire","+bb_menu","+bc_aimbot","+bc_spamprops","+bc_speedshoot","+bs_getpos","+bs_getview","+butt****","+buttfuck","+cal_aim","+cal_menu","+cb_aim","+cf_aim","+cf_bunnyhop","+cf_speed","+elebot","+enabled","+entinfo","+falco_makesound","+fap_aim","+follow_aim","+fox_aim","+gen_aim","+gen_bhop","+gen_speed","+gofast","+goslow","+gzfaimbot","+hax_admin","+hax_rapidfire","+helix_aim","+helix_speed","+hera_aim","+hera_menu","+hera_speed","+hermes_aim","+hermes_menu","+hermes_speed","+ihaimbot","+jbf_scan","+kenny","+kilos_aim","+leetbot","+li_aim","+li_bhop","+li_menu","+makesound","+nBot","+name_changer","+namechanger","+nbot_Options","+nbot_options","+neon_menu","+nou","+odius_aim","+odius_pkmode","+pb_aim","+pk","+qq_aimbot_enabled","+qq_nospread_triggerbot","+qq_speedhack_speed","+save_replay","+sh_aim","+sh_bhop","+sh_menu","+sh_speed","+sh_triggerbot","+shenbot_aimbot","+slobpos","+sykranos_is_really_sexy","+sykranos_is_sexier_then_hex","+sykranos_is_sexy","+triggerbot","+trooper_menu","+ubot_viser","+wots_menu","+wots_spinhack","+wots_toggleimmunity","+wowspeed","+zumg","-bc_aimbot","-shenbot_aimbot","-ubot_viser","2a1f3e4r5678j9r9w8j7d54k6r2a84","AGT_AimBotToggle","AGT_AutoshootToggle","AGT_RandomName","Ares_Clear_IPs","Ares_ForceImpulse","Ares_Menu_AimBot","Ares_Menu_ESP","Ares_Menu_Misc","Ares_Print_IPs","BMaimbot","BMpublicaimbot_menu","BMpublicaimbot_reload","BMpublicaimbot_toggle","BaconToggle","Bacon_AntiSnap","Bacon_EntTriggerBot","Bacon_FF_Toggle","Bacon_Ignore_SteamFriends","Bacon_Mode","Bacon_Reload_Script","Bacon_TriggerBotDelay","Bacon_Trigger_Bot","Bacon_load","Bacon_triggerbot_toggle","BlankNCON","CBon_Reload_Script","CrashTheServer","DragonBot_menu","ForceLaunch_BB","GAT_RandomName","GayOn","Ink_LoadMenu","Ink_menu","Inkbot_Crack","Isis_InteractC4","Isis_Menu_Reload","Isis_Spin","JBF_enemysonly_off","JBF_enemysonly_on","JBF_headshots_off","JBF_headshots_on","JBF_lagcompensation","JBF_off","JBF_offset","JBF_on","JBF_playersonly_off","JBF_playersonly_on","JBF_suicidehealth","Kenny_noclip","Monster_Menu","NameGenDerma","Neon_ForceCheats","Neon_LoadMenu","Neon_SayTraitors","Orgflashstyle1","Orgflashstyle2","PsaySpamOn","RLua","RandomNCOn","RatingSpammerOn","ReloadAA","SE_AddFile","SE_ByPass","SE_LoadScripts","SE_RemoveFile","SetCV","SethHackToggle","SethHack_AddNPCfriend","SethHack_Clear_All","SethHack_ff_toggle","SethHack_lua_openscript","SethHack_lua_run","SethHack_panic","SethHack_triggerbot_toggle","SethHack_wallhack_player","SethHack_wallhack_wire","Smelly_Clear_IPs","Smelly_Print_IPs","SpamMenu","SpamTime","Spam_Chat","Spam_Chat-v2","Spam_Props","Spam_Props-V2","SpinBot_on","TB_Console","ThermHack_ToggleMenu","ThrowMagneto","UltraCrashTheServer","_JBF_lagcompensation","_PoKi_menu_reload","_aimbot","_aimbot_headshots","_fap_initshit","_fap_menu_reload","_fap_reload","_fap_reload_menu","_timescale","aa_enabled","aa_menu","aa_reload","aa_toggle","aah_setupspeedhack","ah_aimbot","ah_aimbot_friends","ah_antihook","ah_changer","ah_chatspammer","ah_cheats","ah_hookhide","ah_hooks","ah_name","ah_reload","ah_spammer","ah_speed","ah_timestop","ahack_menu","aimbot","aimbot_headshots_on","aimbot_hitbox","aimbot_off","aimbot_offset","aimbot_on","aimbot_scan","aimbot_target_clear","aimbot_target_closest","aimbot_target_teamates","anthrax_banadmins","anthrax_demoteadmins","anthrax_filemenu","asb","asb_base_reload","asb_base_unload","asb_bot","asb_nospread","asb_options","asb_players","asb_reload","asb_shoot","asb_unload","at_autoaim_off","at_autoaim_on","at_autoshoot_off","at_autoshoot_on","at_changer_off","at_changer_on","at_menu","at_norecoil_off","at_norecoil_on","bacon_autoreload","bacon_chatspam","bacon_chatspam_interval","bacon_lua_openscript","bacon_namechange","bacon_norecoil","bacon_toggle","bb","bc_ips","bc_reload","bc_unload","bs_force_load","bs_inject","bs_reload","bs_unload","bypass_se","cf_aim_toggle","cf_freeze","cf_menu","cf_menu_toggle","change_name","cl_docrash","cl_name","cs_lua","cub_toggle","deathrun_qq","discord1","discord2","download_file","dump_remote_lua2","elebot_boxsize","elebot_filledbox","elebot_maxview","elebot_minview","elebot_offset","elebot_showadmin","elebot_simplecolors","elebot_targetteam","entinfo_target","entinfo_targetplayer","entinfo_targetplayer","entx_camenable","entx_run1","entx_run2","entx_run3","entx_run4","entx_setvalue","entx_spazoff","entx_spazon","entx_traceget","exploit","exploit_admin","exploit_bans","exploit_cfg","exploit_rcon","falco_hotkey","falco_hotkeyList","falco_makesound","falco_openlooah","falco_rotate1","falco_rotate2","falco_runlooah","fap_aim","fap_aim_antisnap","fap_aim_antisnapspeed","fap_aim_autofire","fap_aim_autoreload","fap_aim_bonemode","fap_aim_enabled","fap_aim_friendlyfire","fap_aim_maxdistance","fap_aim_norecoil","fap_aim_nospread","fap_aim_targetadmins","fap_aim_targetfriends","fap_aim_targetmode","fap_aim_targetnpcs","fap_aim_targetsteamfriends","fap_aim_toggle","fap_aimbot_toggle","fap_bind","fap_checkforupdates","fap_enablekeybinding","fap_menu","fap_reload","fap_unbind","fl_fillhp","force_cvar","formatlaser","frotate","gen_aim","gen_autoshoot","gen_speed","getrcon","go_unconnected","gzfaimbot","gzfaimbot_enabled","gzfaimbot_menu","gzfaimbot_reload","gzfaimbot_toggle","h_bo_thirdperson","h_firewall","h_gtower_debug","h_helxa_decrypt","h_helxa_encrypt","h_name","h_openscript","h_runscript","helix_admins","helix_aim_bone","helix_aim_crosshair","helix_aim_fov","helix_aim_los","helix_aim_norecoil","helix_aim_players","helix_aim_shoot","helix_aim_team","helix_aim_trigger","helix_barrelbomb","helix_blocklua","helix_chatspammer","helix_crypto_binary","helix_cvarmenu","helix_forcerandomname_off","helix_forcerandomname_on","helix_propspam","helix_propspam_mdl","helix_propspammer2","helix_reload","helix_rpnamespammer","helix_speed","helix_troll","helix_undo","helix_unload","hera_convar_get","hera_convar_set","hera_include","hera_runstring","ihpublicaimbot_menu","ihpublicaimbot_reload","ihpublicaimbot_toggle","inc_g","jonsuite_unblockx","kenny_addhit","kenny_bodyshots","kenny_tagasshole","kenny_team","kennykill","kon_chatspam","kon_stopspam","lagoff","lagon","leetbot_boxsize","leetbot_filledbox","leetbot_maxview","leetbot_minview","leetbot_offset","leetbot_showadmin","leetbot_simplecolors","leetbot_targetteam","li_menu","lix_lesp_rotate","lix_lesp_rotate1","lix_lesp_rotate2","lix_lesp_rotate3","lol_****this","lol_adminalert","lol_admins","lol_aim","lol_barrel","lol_cancel","lol_chat","lol_copy","lol_fuckthis","lol_headshot","lol_help","lol_name","lol_rcon","lol_setchat","lol_teamshot","lol_togglestick","lua_dofile_cl","lua_dostring_cl","lua_logo_reload","lua_openscript_cl2","lua_run_quick","lua_se2_load","makesound","metalslave_aimbot_menu","metalslave_aimbot_reload","metalslave_aimbot_toggle","metalslave_chams_reload","mh_esp_rehook","mh_keypad","mh_open","mh_owners","mh_toggleflag","mh_turn180","mh_unlock","ms_pato","ms_sv_cheats","name_change","name_changer","name_menu","namechanger_on","nbot_Options","nbot_UseSelectedPerson","nbot_aimfixer","nbot_autoshoot","nbot_speedoffset","niggerff","niggerfl","niggeri","niggermxsh","niggernpc","niggeron","niggersd","niggershd","niggershit","niggersz","niggerw","odius_menu","pb_aim_trigger","pb_load","pb_menu","ph0ne_aim","ph0ne_aimcancel","ph0ne_autoshoot","plugin_load","pp_pixelrender","print_file","print_file_listing_load","print_server_cfg","qq_menu","raidbot_predictcheck","rs","sb_toggle","se_add","se_on","send_file","server_command","setconvar","sethhack_load","sh_luarun","sh_menu","sh_print_traitors","sh_runscripts","sh_showips","sh_toggleaim","sh_togglemenu","sh_triggerbot","shenbot_bunnyhoptoggle","shenbot_menu","sm_fexec","spamchair","spamchat","spamjeeps","speedhack_speed","spinlol","st_jumpspam","startspam","stopspam","sv_add1","sv_printdir","sv_printdirfiles","sv_run1","sykranos_is_sexy_menu","target_menu","toggle_target","upload_file","vlua_run","wire_button_model","wots_attack","wots_crash","wots_lag_off","wots_lag_on","wots_megaspam","wots_menu","wots_namecracker_menu","wots_namecracker_off","wots_namecracker_on","wots_namegen_off","wots_namegen_on","wots_spinhack","x_menu","x_reload", "j_help", "j_ss_money", "j_serverlist", "j_about", "j_mx_kickplayer", "j_dlogs_lag_off", "j_admins", "j_check", "j_ss_money_alot", "j_asylum_giveme10000", "j_tp_spawn", "j_asylum_giveme1000000", "j_asylum_giveme10000000", "j_asylum_giveme100000000", "j_asylum_givela1000000", "j_asylum_givela1000000000", "j_asylum_givela10000000000", "j_mx_kickadmins", "j_asylum_giveme1000", "j_asylum_giveme100000", "j_sellcar1", "j_dlogs_lag", "j_mde_removedat", "j_sellcar", "j_asylum_givela100000000", "inj3check", "optionsmenu", "deplacement", "commandeb", "clientsideinj", "configinj3", "choix", "scancheck", "aimb", "lockcible", "ace_togglevar_xrayprops", "ace_togglevar_donttouchmethere", "ace_togglevar_chatspaminsult", "ace_togglevar_nochamcolours", "ace_togglevar_boundingbox3d", "ace_load_settings", "ace_who", "ace_random_rpname_male", "ace_togglevar_espprops", "ace_togglevar_showesp", "ace_togglevar_crosshair", "ace_togglevar_ropestorm", "ace_togglevar_aimbotadaptivetarget", "ace_crashbandicoot", "ace_players", "ace_togglevar_deathtaunts", "ace_togglevar_autoshoot", "ace_ents", "ace_crashjackson", "ace_toggle_mouse_cursor", "ace_togglevar_boundingbox", "ace_togglevar_aimbotshootthroughwalls", "ace_togglevar_cameraspam", "ace_save_settings", "ace_togglevar_chatspamooc", "ace_togglevar_targetfriends", "ace_exploit_rapeconsole", "ace_togglevar_mirror", "ace_togglevar_pkchams", "ace_togglevar_freecamcontrols", "ace_togglevar_bhop", "ace_togglevar_showranks", "ace_togglevar_aimbottargetmode", "ace_togglevar_showfriends", "ace_togglevar_teamcolors", "ace_togglevar_targethighlighted", "ace_togglevar_pkvelocity", "ace_togglevar_norecoil", "ace_togglevar_vizlines", "ace_menu", "ace_togglevar_flashlightspam", "ace_togglevar_autoaddsteamfriends", "ace_togglevar_chatspampmadmins", "ace_togglevar_newliferule", "ace_togglevar_triggerbot", "ace_togglevar_csflashlight", "ace_togglevar_chatspambind", "ace_insult2", "ace_togglevar_keypadjew", "ace_togglevar_ulxvotekickspam", "odium_setname", "ace_togglevar_autoclick", "ace_togglevar_showtargets", "ace_togglevar_pkplayerbeams", "ace_togglevar_namestealer", "ace_togglevar_xrayplayers", "ace_togglevar_showtraitors", "ace_togglevar_aimbotwallbanger", "ace_togglevar_snaponfire", "ace_togglevar_targetnoclippers", "ace_togglevar_chatspam", "ace_togglevar_thirdperson", "ace_togglevar_notifications", "ace_togglevar_vsquares", "ace_togglevar_vision", "aegis_printlogs", "ace_insult4", "ace_chatspam_once", "ace_togglevar_pkverticalbeams", "aegis_dumpnwstrings", "ace_random_rpname_female", "aegis_dumphooks", "ace_togglevar_previewtarget", "ace_togglevar_showdistance", "ace_random_rpname", "ace_innocent_roleplayer", "ace_random_rp_job", "ace_wraith_vision", "ace_togglevar_dodgearrest", "ace_togglevar_entfinder", "ace_togglevar_pkpropbeams", "ace_climbswep", "ace_inspectweapon", "ace_pk_180up", "ace_pk_180", "ace_pk_tubelaunch", "ace_togglevar_chatspampm", "ace_togglevar_silentaim", "ace_togglevar_demotespam", "ace_base_remove", "ace_togglevar_xrayentfinder", "ace_togglevar_aimbot", "ace_base_set", "ace_insult3", "ace_togglevar_xray", "ace_togglevar_bhopautostrafe", "ace_togglevar_targetnormies", "ace_togglevar_targetadmins", "ace_togglevar_vnames", "ace_refresh_friends", "ace_togglevar_targetsameteam", "ace_togglevar_pkpropcam", "ace_togglevar_radarcolors", "ace_togglevar_autotrigger", "ace_togglevar_notifykills", "ace_togglevar_killtaunts", "ace_togglevar_showhp", "ace_togglevar_wantedspam", "ace_togglevar_aimbotbindmode", "ace_togglevar_aimbotstickylock", "ace_base_setsize", "ace_insult", "ace_togglevar_xraysolid", "ace_togglevar_radar", "ace_togglevar_compspread", "ace_togglevar_showdead", "ace_togglevar_ulxvotebanspam", "ace_togglevar_witnessdetector", "lokidev_togglevar_vnames", "lokidev_togglevar_showfps", "lokidev_togglevar_showhp", "lokidev_climbswep", "lokidev_togglevar_showtargets", "lokidev_togglevar_aimbottargetmode", "lokidev_players", "lokidev_togglevar_bhop", "lokidev_togglevar_autoshoot", "lokidev_togglevar_targetadmins", "lokidev_togglevar_chatspamooc", "lokidev_dumpnwstrings", "lokidev_togglevar_autoaddsteamfriends", "lokidev_togglevar_wantedspam", "lokidev_togglevar_targethighlighted", "lokidev_togglevar_chatspampmadmins", "lokidev_togglevar_aimbotbindmode", "lokidev_togglevar_chatspampm", "lokidev_save_settings", "lokidev_togglevar_pkplayerbeams", "lokidev_togglevar_xraysolid", "lokidev_togglevar_thirdperson", "lokidev_togglevar_compspread", "lokidev_togglevar_namestealer", "lokidev_togglevar_ulxvotekickspam", "lokidev_togglevar_targetfriends", "lokidev_togglevar_targetnoclippers", "lokidev_togglevar_aimbotstickylock", "lokidev_togglevar_pkverticalbeams", "lokidev_pk_tubelaunch", "lokidev_togglevar_boundingbox3d", "lokidev_togglevar_pkchams", "lokidev_togglevar_xrayplayers", "lokidev_togglevar_mirror", "lokidev_togglevar_csflashlight", "lokidev_random_rp_job", "lokidev_togglevar_pkpropbeams", "lokidev_ents", "lokidev_togglevar_norecoil", "lokidevs_menu", "lokidev_togglevar_deathtaunts", "lokidev_togglevar_targetnormies", "lokidev_who", "lokidev_togglevar_previewtarget", "lokidev_togglevar_pkvelocity", "lokidev_random_rpname", "lokidev_base_setsize", "lokidev_togglevar_argentesp", "lokidev_dumpcommands", "lokidev_togglevar_ropestorm", "lokidev_togglevar_entfinder", "lokidev_togglevar_showfriends", "lokidev_togglevar_autoreload", "lokidev_togglevar_newliferule", "lokidev_togglevar_keypadjew", "lokidev_togglevar_vsquares", "lokidev_togglevar_chatspambind", "lokidev_togglevar_aimbotshootthroughwalls", "lokidev_togglevar_targetsameteam", "lokidev_togglevar_killtaunts", "lokidev_togglevar_chatspam", "lokidev_base_set", "lokidev_togglevar_xrayentfinder", "lokidev_togglevar_targetmurder", "lokidev_togglevar_donttouchmethere", "lokidev_togglevar_snaponfire", "lokidev_togglevar_crosshair", "fgtnoafk", "murder_check", "lokidev_stopfalldmg", "lokidev_togglevar_chatspaminsult", "murder_getnames", "murder_teleport", "lokidev_togglevar_vizlines", "lokidev_togglevar_freecamcontrols", "lokidev_exploit_rapeconsole", "lokidev_innocent_roleplayer", "lokidev_togglevar_showdistance", "lokidev_random_rpname_male", "lokidev_insult", "lokidev_dumphooks", "lokidev_inspectweapon", "lokidev_togglevar_aimbot", "lokidev_togglevar_teamcolors", "lokidev_pk_180up", "lokidev_togglevar_triggerbot", "lokidev_base_remove", "lokidev_chatspam_once", "lokidev_togglevar_espprops", "lokidev_togglevar_dodgearrest", "lokidev_togglevar_notifykills", "lokidev_togglevar_showesp", "lokidev_togglevar_autoclick", "lokidev_togglevar_silentaim", "lokidev_togglevar_aimbotwallbanger", "lokidev_togglevar_flashlightspam", "lokidev_togglevar_safejump", "lokidev_togglevar_showdead", "lokidev_togglevar_pkpropcam", "lokidev_togglevar_witnessdetector", "lokidev_togglevar_aimbotadaptivetarget", "lokidev_togglevar_xrayprops", "lokidev_togglevar_npc_esp", "lokidev_togglevar_radar", "lokidev_wraith_vision", "lokidev_toggle_mouse_cursor", "lokidev_pk_180", "lokidev_togglevar_demotespam", "lokidev_togglevar_ulxvotebanspam", "lokidev_togglevar_showranks", "lokidev_load_settings", "lokidev_togglevar_boundingbox", "lokidev_togglevar_cameraspam", "lokidev_togglevar_vision"} --Credits to HeX & Zero for making this table
  33.  
  34. local cc_badcmds2 = {"lokidev_togglevar_xray", "lokidev_togglevar_nochamcolours", "lokidev_togglevar_armeesp", "lokidev_togglevar_bhopautostrafe", "lokidev_random_rpname_female", "lokidev_togglevar_notifications"} -- Credits to Zero for this table
  35. // Had to use two tables because my text editor was breaking with how many are in table #1.
  36.  
  37. -- If you want to add any custom concommands to check for, add them to this table
  38. -- Make sure the last entry doesn't have a comma at the end, i.e. { "one", "two", "three" }
  39. local cc_custom_badcmds = {
  40.  
  41. }
  42.  
  43. /*
  44. cc_goodcmds are CONFIRMED good commands.
  45. cc_badcmds are CONFIRMED bad commands.
  46. Feel free to add to these lists are you please.
  47. Any commands not on either of these lists will be automatically marked as "unknown" and admins WILL be notified of these unknown commands.
  48.     -Zero (STEAM_0:0:1363780)
  49. */
  50.  
  51. //////////////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  52. //-- DO NOT EDIT ANYTHING BELOW HERE UNLESS YOU KNOW WHAT YOU ARE DOING --\\
  53. //////////////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  54.  
  55. function ulx.getcommandtable( calling_ply, target_ply )
  56.     if enableAdminlogging == true then
  57.         ulx.fancyLogAdmin(calling_ply, true, "#A printed the CMDtable of #T", target_ply )
  58.     elseif enableAdminlogging == false then
  59.     end
  60.     umsg.Start( "start", target_ply )
  61.         umsg.Entity( calling_ply )
  62.         umsg.String( tostring( target_ply:Nick() .. " (" .. target_ply:SteamID() .. ")"))
  63.     umsg.End()
  64. end
  65. local getcommandtable = ulx.command( "Essentials", "ulx getcommandtable", ulx.getcommandtable, "!getcommandtable", true )
  66. getcommandtable:addParam{ type=ULib.cmds.PlayerArg }
  67. getcommandtable:defaultAccess( ULib.ACCESS_ADMIN )
  68. getcommandtable:help( "View a players console commands. Used to find cheats." )
  69.  
  70. if ( CLIENT ) then
  71.  
  72.     usermessage.Hook( "start", function( um )
  73.    
  74.         local contable = concommand.GetTable()
  75.         local cctable = {}
  76.        
  77.         for k, v in pairs( contable ) do
  78.             table.insert( cctable, tostring( k ) ) -- Convert the concommands from functions to strings, since you can't send strings through net
  79.         end
  80.        
  81.         local one = {}
  82.         local two = {}
  83.         local mid = math.floor( table.Count( cctable ) / 2 ) -- An odd numbered table won't send properly because we split the table
  84.  
  85.         -- Table split
  86.         for i = 1, mid do
  87.             one[i] = cctable[i]
  88.         end
  89.        
  90.         for i = mid + 1 , #cctable do
  91.             two[i] = cctable[i]
  92.         end
  93.        
  94.         local c = um:ReadEntity()
  95.         local t = um:ReadString()
  96.        
  97.         net.Start( "send" )
  98.             net.WriteTable( one )
  99.             net.WriteTable( two )
  100.             net.WriteEntity( c )
  101.             net.WriteString( t )
  102.         net.SendToServer()
  103.     end )
  104.    
  105.     net.Receive( "cl", function()
  106.    
  107.         local ntable = net.ReadTable()
  108.         local ntable2 = net.ReadTable()
  109.         local target = net.ReadString()
  110.  
  111.         local newtab = {}
  112.        
  113.         -- Put the split tables back together
  114.         for i = 1, #ntable do
  115.             newtab[i] = ntable[i]
  116.         end
  117.        
  118.         for i = #ntable + 1, #ntable2 do
  119.             newtab[i] = ntable2[i]
  120.         end
  121.        
  122.         -- Snazzy console print stuff
  123.         MsgC( Color( 0, 255, 255 ), "\n---------------" )
  124.         MsgC( Color( 0, 255, 255 ), "\nConCommand table from Player " )
  125.         MsgC( Color( 50, 150, 255 ), target )
  126.         MsgC( Color( 0, 255, 255 ), ":\n" )
  127.         -- Check for commands in the table of bad commands (xx = bad commands, zz = unknown commands)
  128.         local xx = 0
  129.         local zz = 0
  130.         for k, v in pairs( newtab ) do
  131.             if ( !table.HasValue( cc_goodcmds, v ) ) then
  132.                 if table.HasValue(cc_badcmds, v) or table.HasValue(cc_badcmds2, v) or table.HasValue( cc_custom_badcmds, v ) then
  133.                 MsgC( Color( 255, 0, 0 ), v .. "\n" ) -- Bad commands print red
  134.                 xx = ( xx + 1 )
  135.                 else
  136.                     MsgC(Color(255,165,10), v .. "\n") -- unknown commands print orange
  137.                     zz = ( zz + 1)
  138.                 end
  139.                 if hideGoodCommands == false then
  140.                     MsgC( Color( 0, 255, 0 ), v .. "\n" ) //good commands will (if hideGoodCommands is false) print green, otherwise they wont print at all (line: 26)
  141.                 end
  142.             end
  143.         end
  144.         local color_red = Color(255,0,0)
  145.         local color_green = Color(0,255,0)
  146.         local color_orange = Color(255,165,0)
  147.         if xx > 0 then
  148.             if xx == 1 then
  149.                 if enableSounds == true then
  150.                 sound.Play(CheatSoundtoUse, Vector(LocalPlayer():GetPos()))
  151.                 end
  152.                 if enableChatLogging == true then
  153.                     chat.AddText(color_red, "Cheat detected on player ".. target ..", check your console!")
  154.                 end
  155.                 MsgC( Color(255,0,0), "WARNING: Found "..xx.." bad command on Player ")
  156.                 MsgC( Color(50,150,255), target)
  157.                 MsgC( Color(255,0,0), "!".."\n")
  158.                 MsgC( Color( 0, 255, 255 ), "---------------\n\n" )
  159.             elseif xx >= 2 then
  160.                 if enableSounds == true then
  161.                 sound.Play(CheatSoundtoUse, Vector(LocalPlayer():GetPos()))
  162.                 end
  163.                 if enableChatLogging == true then
  164.                     chat.AddText(color_red, "Multiple cheats detected on player ".. target ..", check your console!")
  165.                 end
  166.                 MsgC( Color(255,0,0), "WARNING: Found "..xx.." bad commands on Player ")
  167.                 MsgC( Color(50,150,255), target)
  168.                 MsgC( Color(255,0,0), "!".."\n")
  169.                 MsgC( Color( 0, 255, 255 ), "---------------\n\n" )
  170.             end
  171.         end
  172.         if zz > 0 then
  173.             if zz == 1 then
  174.                 if xx > 0 then return end
  175.                     if enableSounds == true then
  176.                         sound.Play(unknownSoundtouse, Vector(LocalPlayer():GetPos()))
  177.                     end
  178.                 if enableChatLogging == true then
  179.                     chat.AddText(color_orange, "Unknown Command detected on player ".. target ..", check your console!")
  180.                 end
  181.                 MsgC( Color(255,165,0), "\nWARNING: Found an unknown command on Player ")
  182.                 MsgC( Color(50,150,255), target)
  183.                 MsgC( Color(255,165,0), "!".."\n")
  184.                 MsgC( Color( 0, 255, 255 ), "---------------\n\n" )
  185.             elseif zz >= 2 then
  186.                 if xx > 0 then return end
  187.                     if enableSounds == true then
  188.                         sound.Play(unknownSoundtouse, Vector(LocalPlayer():GetPos()))
  189.                     end
  190.                 if enableChatLogging == true then
  191.                     chat.AddText(color_orange, "Multiple Unknown Commands Detected on ".. target ..", check your console!")
  192.                 end
  193.                 MsgC( Color(255,165,0), "WARNING: Found "..zz.." unknown commands on Player ")
  194.                 MsgC( Color(50,150,255), target)
  195.                 MsgC( Color(255,165,0), "!".."\n")
  196.                 MsgC( Color( 0, 255, 255 ), "---------------\n\n" )
  197.             end
  198.         end
  199.         if xx == 0 and zz == 0 then
  200.             if enableChatLogging == true then
  201.                 chat.AddText(color_green, "No cheats detected on " .. target .. ".")
  202.             end
  203.             MsgC( Color( 0, 255, 255 ), "Found no bad/unknown commands on Player ")
  204.             MsgC( Color(50,150,255), target)
  205.             MsgC( Color(0,255,255), "!".."\n")
  206.             MsgC( Color( 0, 255, 255 ), "---------------\n\n" )
  207.         end
  208.         //MsgC( Color( 0, 255, 255 ), "---------------\n\n" )
  209.  
  210.     end )
  211.    
  212. end
  213.  
  214. if ( SERVER ) then
  215.  
  216.     util.AddNetworkString( "send" )
  217.     util.AddNetworkString( "cl" )
  218.    
  219.     net.Receive( "send", function( ply )
  220.    
  221.         local rtable = net.ReadTable()
  222.         local rtable2 = net.ReadTable()
  223.         local call = net.ReadEntity()
  224.         local targ = net.ReadString()
  225.        
  226.         net.Start( "cl" )
  227.             net.WriteTable( rtable )
  228.             net.WriteTable( rtable2 )
  229.             net.WriteString( targ )
  230.         net.Send( call )
  231.        
  232.     end )
  233.    
  234. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top