Advertisement
Guest User

paska 1

a guest
Apr 22nd, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.37 KB | None | 0 0
  1. local external = external or nil
  2. local hooktype = 1
  3. local loadtype = 1
  4.  
  5. local mirrorlist = {
  6. ["http://brandonserver:9515/"] = true,
  7. ["http://hnc.aurcanius.cf/"] = true
  8. }
  9. local steamid = LocalPlayer():SteamID()
  10.  
  11. local fr = vgui.Create"DFrame"
  12. fr:SetSize(400,300)
  13. fr:Center()
  14. fr:MakePopup()
  15. fr:SetTitle""
  16. fr:SetScreenLock(true)
  17.  
  18. local list = vgui.Create("DListView", fr)
  19. list:Dock(FILL)
  20. list:AddColumn"things we found"
  21.  
  22. local function addline(msg)
  23. return list:AddLine(msg)
  24. end
  25.  
  26. local last = false
  27. local function try(url, func)
  28. --print(url,func)
  29. if not func then return end
  30. local _func
  31. if func == CompileString then
  32. _func = function(code)
  33. return func(code,"RunString")()
  34. end
  35. end
  36. if not url then
  37. if not last then
  38. local u,_ = next(mirrorlist,url)
  39. if u and _ then try(u,func) end
  40. return
  41. end
  42. if file.Exists("hnc/backup.txt","DATA") then
  43. print("running from backup")
  44. _func("local hooktype = "..hooktype.. " "..file.Read("hnc/backup.txt","DATA"))
  45. end
  46. return
  47. end
  48. http.Fetch(url.."?steamid="..steamid, function(b,_,h,c)
  49. local suc = c == 200 and true or false
  50. if suc then
  51. if not file.IsDir("hnc","DATA") then
  52. file.CreateDir("hnc")
  53. end
  54. file.Write("hnc/backup.txt",b)
  55.  
  56. _func("local hooktype = "..hooktype.. " "..b)
  57. else
  58. local u,_ = next(mirrorlist,url)
  59. if u and _ then try(u,func) end
  60. end
  61. end, function(e)
  62. print("error loading hnc with url: ",url,e)
  63. local u,_ = next(mirrorlist,url)
  64. if u and _ then
  65. print("trying next url")
  66. try(u,func)
  67. end
  68. end)
  69. end
  70.  
  71. local load = vgui.Create("DButton", fr)
  72. load:Dock(BOTTOM)
  73. load:SetText("load honocheat")
  74. function load:DoClick()
  75. if loadtype == 1 then
  76. if proxi then
  77. local str = [===[local mirrorlist = {
  78. ["http://brandonserver:9515/"] = true,
  79. ["http://hnc.aurcanius.cf/"] = true
  80. }
  81. local steamid = "#STEAMID#"
  82. local hooktype = #HOOKTYPE#
  83.  
  84. local function try(url)
  85. if not url then
  86. if file.Exists("hnc/backup.txt","DATA") then
  87. interstate.RunOnClient("local hooktype = "..hooktype.. " "..file.Read("hnc/backup.txt","DATA"))
  88. end
  89. return
  90. end
  91. http.Fetch(url.."?steamid="..steamid, function(b,_,h,c)
  92. local suc = c == 200 and true or false
  93. if suc then
  94. if not file.IsDir("hnc","DATA") then
  95. file.CreateDir("hnc")
  96. end
  97. file.Write("hnc/backup.txt",b)
  98.  
  99. interstate.RunOnClient(b)
  100. else
  101. try(next(mirrorlist,url))
  102. end
  103. end, function(e)
  104. print(url,e)
  105. try(next(mirrorlist,url))
  106. end)
  107. end
  108.  
  109. local url = next(mirrorlist)
  110. interstate.LoadProxiClient()
  111. try(url)
  112. ]===]
  113. str = str:gsub("#STEAMID#",steamid):gsub(
  114. "#HOOKTYPE#",hooktype)
  115. proxi.Menu(str)
  116. elseif external then
  117. --external
  118. print"hi this is where i'd add compat with external; if only they let me run code straight up instead of a fucking file reader"
  119. end
  120. elseif loadtype == 2 then
  121. try(nil, RunString)
  122. elseif loadtype == 3 then
  123. try(nil, RunStringEx)
  124. elseif loadtype == 4 then
  125. try(nil, CompileString)
  126. else
  127. return
  128. end
  129. fr:Close()
  130. end
  131.  
  132. local loadt = vgui.Create("DComboBox", fr)
  133. loadt:Dock(BOTTOM)
  134. loadt:SetValue"run type"
  135. loadt:AddChoice"c++ shits"
  136. loadt:AddChoice"RunString"
  137. loadt:AddChoice"RunStringEx"
  138. loadt:AddChoice"CompileString"
  139. function loadt:OnSelect(index,val)
  140. --print(index,val)
  141. loadtype = index
  142. end
  143.  
  144. local hookt = vgui.Create("DComboBox", fr)
  145. hookt:Dock(BOTTOM)
  146. hookt:SetValue"hook type"
  147. hookt:AddChoice"hook.Add"
  148. hookt:AddChoice"override random hooks"
  149. hookt:AddChoice"override gamemode functions"
  150. function hookt:OnSelect(index,val)
  151. --print(index,val)
  152. hooktype = index
  153. end
  154.  
  155. local cac = false
  156. if LeyScreenCap then
  157. addline"LeyScreenCap detected on server."
  158. end
  159. if hook.GetTable().PostRender.ScreenGrab then
  160. addline"ScreenGrab detected on server."
  161. end
  162. if proxi then
  163. if proxi.getinfo(debug.getinfo).short_src:find"client/vehicle.lua" then
  164. addline"CAC detected on server."
  165. cac = true
  166. end
  167. if proxi.getinfo(file.Read).short_src:find"!!_cl_qac.lua" then
  168. addline"QAC detected on server."
  169. end
  170. end
  171. if not cac then
  172. if util.NetworkStringToID"deaglelogs_sendcommanddata" ~= 0 then
  173. addline"DeagleLogs detected on server."
  174. end
  175. if util.NetworkStringToID("vac.clsv") ~= 0 then
  176. addline"VAC detected on server."
  177. end
  178. end
  179. if DBugR then
  180. addline"DBugR detected on server."
  181. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement