Author Topic: I believe I found how to bypass FCVAR_SERVER_CAN_EXECUTE  (Read 259 times)

0 Members and 1 Guest are viewing this topic.

Offline Cybernite

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
I believe I found how to bypass FCVAR_SERVER_CAN_EXECUTE
« on: September 25, 2016, 05:41:29 AM »
I thought you may want to implement this into the cexec command. I thought, you would create a console command clientside, that runs another console command, which is set as a variable. Like this:

Code: Lua
  1. AddCSLuaFile()
  2.  
  3. concommand.Add("cexec", function()
  4.         RunConsoleCommand( curcexec )
  5. end)

then, serverside, set the command to be run, then run it, like this:


Code: Lua
  1. function ulx.cexec( calling_ply, target_plys, command )
  2.         curcexec = command
  3.         for _, v in ipairs( target_plys ) do
  4.                 v:ConCommand( "cexec" )
  5.         end
  6.  
  7.         ulx.fancyLogAdmin( calling_ply, "#A ran #s on #T", command, target_plys )
  8. end

Of course, this could be dangerous, so you may not want to implement it. But, there will still be some commands that can only be run by the player typing them in console, like "quit" and "bind". Not even lua scripts can run them.

Offline EmperorOfTheMankind

  • Newbie
  • *
  • Posts: 4
  • Karma: -1
    • View Profile
Re: I believe I found how to bypass FCVAR_SERVER_CAN_EXECUTE
« Reply #1 on: September 29, 2016, 06:06:30 AM »
Does kill work?  ;D ;D ;D

Offline Cybernite

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: I believe I found how to bypass FCVAR_SERVER_CAN_EXECUTE
« Reply #2 on: October 19, 2016, 07:18:09 AM »
It didn't really work, I need to do more work on it another time.