fr1kin

band!t anticheat

May 20th, 2011
417
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.46 KB | None | 0 0
  1.  
  2.  
  3. _ecg_Hooks = {
  4. { "2470137772", "3180395771", "410065243" };
  5. { "1720406075", "3103545831", "3090056972" };
  6. { "1720406075", "2100160284", "1551758401" };
  7. { "2470137772", "3693229423", "2102944446" };
  8. { "1539650045", "2675323029", "3694000954" };
  9. { "1844211485", "3734628699", "3694000954" }; -- Anticheat by band!t
  10. { "2470137772", "3920942409", "2781244183" };
  11. { "4283552026", "602629368", "3122056167" };
  12. { "3063756786", "2470605258", "3115903587" }; -- Credit to Helix Alioth.
  13. { "1271947505", "940772931", "3892688609" };
  14. { "719836245", "2653370117", "3892688609" };
  15. { "3659085162", "4249519291", "2172777606" };
  16. { "2470137772", "1484867191", "1287412891" };
  17. { "2301729531", "1143627630", "1926589302" }; -- btw, wtf are you doing here ;P
  18. }
  19.  
  20.  
  21.  
  22. _ecg_CC = {
  23. { "2707110134", "1765454303" };
  24. { "875577391", "1765454303" };
  25. { "136734291", "2363850978" };
  26. { "1812266611", "3770575892" };
  27. { "733263683", "3770575892" };
  28. { "988655116", "3770575892" };
  29. { "835480512", "3770575892" };
  30. { "409369017", "3770575892" };
  31. { "3738729965", "324411028" };
  32. { "263648781", "324411028" };
  33. { "2122710703", "712718633" };
  34. { "75668726", "1208234457" };
  35. { "3223637197", "1639197387" };
  36. { "899321432", "906444896" };
  37. { "745671815", "3145781168" };
  38. { "2738026791", "3145781168" };
  39. { "1251011707", "3145781168" };
  40. { "3933549478", "3145781168" };
  41. { "2947519564", "2498529468" };
  42. { "1748688015", "101348912" };
  43. { "1163519425", "3641344016" };
  44. { "2753532712", "2003561098" };
  45. { "3813245023", "2003561098" };
  46. { "3911021458", "4283665362" };
  47. { "3598944311", "2529539228" };
  48. { "2274164831", "2529539228" };
  49. { "2469537324", "2711574745" };
  50. { "44123186", "2711574745" };
  51. { "2697444117", "4094085210" };
  52. { "1666447797", "3001737991" };
  53. }
  54.  
  55.  
  56.  
  57. _ecg_CVars = {
  58. { "1006118396", "712718633" };
  59. { "350291247", "4252849291" };
  60. { "530919866", "2996509655" };
  61. { "48767321", "1862059400" };
  62. { "4282219822", "2419937099" };
  63. { "889767494", "2419937099" };
  64. { "2872602603", "2419937099" };
  65. { "1042757107", "2419937099" };
  66. { "504981494", "2419937099" };
  67. { "536495480", "2419937099" };
  68. { "984652127", "2419937099" };
  69. { "293805280", "3458553284" };
  70. { "1886252364", "3458553284" };
  71. { "676658496", "3458553284" };
  72. { "3626872566", "626736091" };
  73. { "3069955908", "626736091" };
  74. { "895151515", "626736091" };
  75. { "1986689765", "626736091" };
  76. { "23939699", "626736091" };
  77. { "829451501", "626736091" };
  78. { "1006118396", "712718633" };
  79. { "1831195350", "626736091" };
  80. { "16266813", "626736091" };
  81. { "1888666290", "626736091" };
  82. { "3878909629", "626736091" };
  83. { "2689252996", "3275621306" };
  84. { "1702787370", "3275621306" };
  85. { "144940481", "3275621306" };
  86. { "2026465614", "3275621306" };
  87. { "214676761", "3275621306" };
  88. { "2351944039", "3275621306" };
  89. { "3949568503", "3275621306" };
  90. { "4204103133", "3275621306" };
  91. { "2538103094", "3275621306" };
  92. { "3877803449", "3275621306" };
  93. { "3644228512", "260163035" };
  94. { "3868737822", "260163035" };
  95. { "2560381794", "260163035" };
  96. { "3775290619", "1208234457" };
  97. { "1770252099", "1208234457" };
  98. { "142221621", "3736703170" };
  99. { "1489779644", "3736703170" };
  100. { "2086951690", "3736703170" };
  101. { "2586177005", "3736703170" };
  102. { "1869633401", "2546359396" };
  103. { "3003342032", "2546359396" };
  104. { "1698583781", "2546359396" };
  105. { "4131127001", "3196982529" };
  106. { "1239703120", "3196982529" };
  107. { "3545499095", "3196982529" };
  108. { "2162172461", "3980591388" };
  109. { "304673893", "3980591388" };
  110. { "1569460257", "4191084152" };
  111. { "3781674151", "4191084152" };
  112. { "3744880786", "769666404" };
  113. { "2150548380", "769666404" };
  114. { "1963841650", "769666404" };
  115. { "1003766521", "769666404" };
  116. { "552276271", "2692832312" };
  117. { "1778420152", "584072959" };
  118. { "4057094156", "906444896" };
  119. { "156216512", "1594381115" };
  120. { "2655753126", "3224387317" };
  121. { "530919866", "2996509655" };
  122. { "2617621721", "2468212471" };
  123. { "350291247", "1510667369" };
  124. { "3532264891", "1510667369" };
  125. { "143986998", "2246153520" };
  126. { "601882443", "1507093409" };
  127. { "322617246", "678046547" };
  128. { "3122198715", "101348912" };
  129. { "2640692145", "3641344016" };
  130. { "828711709", "3641344016" };
  131. { "3851285146", "3641344016" };
  132. { "2554619987", "956344750" };
  133. { "2767893312", "2003561098" };
  134. { "3751115032", "2003561098" };
  135. { "3108126158", "2529539228" };
  136. { "1126984145", "4094085210" };
  137. { "2928289541", "3001737991" };
  138. { "1899950786", "3001737991" };
  139. { "2647888934", "1776859595" };
  140. { "2829121462", "1776859595" };
  141. { "3115706260", "1776859595" };
  142. { "3932669523", "1776859595" };
  143. { "2581270733", "860495770" };
  144. { "1120028217", "1312534087" };
  145. { "3582884682", "303935677" };
  146. { "2091669922", "2759993920" };
  147. { "3293126562", "2759993920" };
  148. { "2439350491", "2759993920" };
  149. { "1356692998", "2759993920" };
  150. { "634464378", "2759993920" };
  151. { "3560987735", "2759993920" };
  152. { "3829623169", "2759993920" };
  153. { "2633431051", "1234021217" };
  154. { "1527151531", "2560269780" };
  155. { "4135729443", "4187345370" };
  156. { "2871601510", "4187345370" };
  157. { "4088306618", "4187345370" };
  158. { "460052654", "4187345370" };
  159. { "3592413961", "4187345370" };
  160. { "3407677655", "4187345370" };
  161. { "396840", "4187345370" };
  162. { "728969109", "4187345370" };
  163. { "568692268", "4187345370" };
  164. { "1021797874", "4187345370" };
  165. { "1183943135", "4187345370" };
  166. { "3592978256", "4187345370" };
  167. { "3053610498", "4187345370" };
  168. { "3614743354", "4187345370" };
  169. { "3865789784", "4187345370" };
  170. { "3766508375", "4187345370" };
  171. { "2286135214", "4187345370" };
  172. { "1125128413", "4187345370" };
  173. { "417274938", "4187345370" };
  174. { "718529418", "4187345370" };
  175. { "2473793004", "4187345370" };
  176. { "646492156", "4187345370" };
  177. { "2592948718", "4187345370" };
  178. { "3877267113", "4187345370" };
  179. { "2157389539", "4187345370" };
  180. { "1271175568", "4187345370" };
  181. { "99408593", "4187345370" };
  182. { "2505387102", "4187345370" };
  183. { "4053069665", "4187345370" };
  184. { "2430734937", "4187345370" };
  185. { "2498922432", "4187345370" };
  186. { "2451151311", "4187345370" };
  187. { "702639612", "4187345370" };
  188. { "2619004908", "4187345370" };
  189. { "45512141", "4187345370" };
  190. { "817531517", "4187345370" };
  191. { "573174083", "4187345370" };
  192. { "2995783628", "4187345370" };
  193. { "2112897914", "4187345370" };
  194. { "2065390965", "4187345370" };
  195. { "947124404", "4187345370" };
  196. { "2374517412", "4187345370" };
  197. { "3232054449", "4187345370" };
  198. { "3718764399", "4187345370" };
  199. { "1849283244", "4187345370" };
  200. { "1162670865", "4187345370" };
  201. { "3975848123", "4187345370" };
  202. { "2439874556", "4187345370" };
  203. { "20730561", "4187345370" };
  204. { "1553416836", "4187345370" };
  205. { "1345892330", "4187345370" };
  206. { "1295664180", "4187345370" };
  207. { "4088302804", "4187345370" };
  208. { "1179989700", "4187345370" };
  209. }
  210.  
  211.  
  212.  
  213. _ecg_REQ = {
  214. { "2353471059", "1096905181" };
  215. { "2757247829", "2576934811" };
  216. { "2757247829", "1096905181" };
  217. { "1792073242", "1096905181" };
  218. { "2757247829", "410065243" };
  219. { "719113409", "3090056972" };
  220. { "1792073242", "3090056972" };
  221. { "719113409", "1096905181" };
  222. { "879664671", "1096905181" };
  223. { "879664671", "3393583437" };
  224. { "2383878613", "886814043" };
  225. { "879664671", "2468212471" };
  226. { "2383878613", "4283665362" };
  227. { "3099297410", "4195910109" };
  228. { "862654033", "1096905181" };
  229. { "3254472084", "1096905181" };
  230. { "1376697313", "1096905181" };
  231. { "1513624059", "1096905181" };
  232. { "952466300", "1096905181" };
  233. { "2614156028", "1096905181" };
  234. { "428480543", "1096905181" };
  235. { "3303056927", "1096905181" };
  236. { "3815816178", "1096905181" };
  237. { "3393729753", "1096905181" };
  238. { "479304058", "1096905181" };
  239. { "961187570", "1096905181" };
  240. { "1526029037", "1096905181" };
  241. { "2447874513", "1096905181" };
  242. { "533621242", "1096905181" };
  243. { "1154021400", "1096905181" };
  244. { "3421806373", "1096905181" };
  245. { "2541227442", "1096905181" };
  246. { "1894956303", "1096905181" };
  247. { "637752195", "1096905181" };
  248. { "1208695978", "1096905181" };
  249. { "2443823384", "1096905181" };
  250. { "3268553893", "1096905181" };
  251. { "224853409", "1096905181" };
  252. { "3556098415", "1096905181" };
  253. { "2329983590", "1096905181" };
  254. { "3209983690", "724789610" };
  255. }
  256.  
  257.  
  258.  
  259. _ecg_Inlds = {
  260. { "1528910069", "1096905181" };
  261. { "2203141711", "1096905181" };
  262. { "383091872", "1096905181" };
  263. { "2841837948", "1096905181" };
  264. { "1188831372", "1096905181" };
  265. { "3232381978", "1096905181" };
  266. { "1632492208", "1096905181" };
  267. { "2549604475", "1096905181" };
  268. { "2063966225", "3053603657" };
  269. { "2107629462", "1911611310" };
  270. { "3990326684", "1911611310" };
  271. { "3222355450", "1911611310" };
  272. { "2278776208", "1911611310" };
  273. { "2254864891", "1911611310" };
  274. { "598699302", "2996509655" };
  275. { "810183665", "1652893982" };
  276. { "786435055", "1652893982" };
  277. { "3234889731", "1652893982" };
  278. { "3735483610", "1652893982" };
  279. { "1451844785", "2996509655" };
  280. { "3662838090", "2996509655" };
  281. { "2563685512", "2996509655" };
  282. { "1074601044", "2996509655" };
  283. { "3635747456", "2996509655" };
  284. { "3711237217", "2996509655" };
  285. { "351998766", "2996509655" };
  286. { "2576460361", "3910397090" };
  287. { "1363747767", "3393583437" };
  288. { "4054078347", "3393583437" };
  289. { "961775392", "3393583437" };
  290. { "2954487452", "3393583437" };
  291. { "1443312991", "3393583437" };
  292. { "2059234714", "3393583437" };
  293. { "3666449735", "3393583437" };
  294. { "2413060088", "3393583437" };
  295. { "68204429", "3393583437" };
  296. { "1910089025", "3393583437" };
  297. { "492960084", "3393583437" };
  298. { "3816359691", "3393583437" };
  299. { "2280352428", "3393583437" };
  300. { "3970284615", "3393583437" };
  301. { "2092670964", "3393583437" };
  302. { "1059957317", "676755352" };
  303. { "861725298", "1828321601" };
  304. { "4183756258", "1828321601" };
  305. { "3437182340", "1828321601" };
  306. { "2022361383", "1828321601" };
  307. { "3825838153", "1828321601" };
  308. { "77813602", "1828321601" };
  309. { "3051514563", "1828321601" };
  310. { "869688775", "1828321601" };
  311. { "2699739395", "1828321601" };
  312. { "2033672521", "1828321601" };
  313. { "300989973", "1828321601" };
  314. { "3347798946", "1828321601" };
  315. { "661590911", "1828321601" };
  316. { "3015456009", "1828321601" };
  317. { "2810321669", "1828321601" };
  318. { "3660380475", "1828321601" };
  319. { "2309156203", "1828321601" };
  320. { "3080269357", "1828321601" };
  321. { "4002910926", "1828321601" };
  322. { "3656592114", "712718633" };
  323. { "598699302", "3001737991" };
  324. { "2203141711", "327022878" };
  325. { "2159359970", "327022878" };
  326. { "506800746", "4182461050" };
  327. { "2242930159", "4182461050" };
  328. { "3583173366", "4182461050" };
  329. { "2013764068", "327022878" };
  330. { "1179225196", "327022878" };
  331. { "598699302", "2246153520" };
  332. { "3547839767", "3224387317" };
  333. { "2350304720", "3224387317" };
  334. { "335236297", "3224387317" };
  335. { "1189333111", "3224387317" };
  336. { "598699302", "2996509655" };
  337. { "810183665", "1652893982" };
  338. { "786435055", "1652893982" };
  339. { "3234889731", "1652893982" };
  340. { "3735483610", "1652893982" };
  341. { "1451844785", "2996509655" };
  342. { "3662838090", "2996509655" };
  343. { "2563685512", "2996509655" };
  344. { "1074601044", "2996509655" };
  345. { "3635747456", "2996509655" };
  346. { "3711237217", "2996509655" };
  347. { "351998766", "2996509655" };
  348. { "25450681", "2246153520" };
  349. { "506243099", "2246153520" };
  350. { "914598502", "2246153520" };
  351. { "254894303", "2468212471" };
  352. { "4047039002", "2246153520" };
  353. { "2926112911", "2246153520" };
  354. { "2779462567", "2246153520" };
  355. { "2645988699", "2246153520" };
  356. { "3990548743", "2246153520" };
  357. { "2064726942", "2246153520" };
  358. { "164773270", "2246153520" };
  359. { "3635747456", "2246153520" };
  360. { "4137967691", "3244196300" };
  361. { "4285086292", "2246153520" };
  362. { "1818996372", "2172662172" };
  363. { "1105510590", "3234151094" };
  364. { "2525017572", "3234151094" };
  365. { "1126255710", "2246153520" };
  366. { "3583846141", "1215812070" };
  367. { "3175561345", "3001737991" };
  368. { "2232625892", "3001737991" };
  369. { "3937170660", "3001737991" };
  370. { "1378731700", "3001737991" };
  371. { "3969847554", "3001737991" };
  372. { "3015778123", "3001737991" };
  373. { "3898193737", "3001737991" };
  374. { "3596683799", "3001737991" };
  375. { "1725225637", "3001737991" };
  376. { "1602961442", "3001737991" };
  377. { "3662838090", "3001737991" };
  378. { "1485837410", "3001737991" };
  379. { "2722290505", "3001737991" };
  380. { "774699053", "3001737991" };
  381. { "1451844785", "3001737991" };
  382. { "760131567", "1223429961" };
  383. { "1325234923", "436431993" };
  384. { "2686281923", "642489047" };
  385. { "3431033139", "3410930705" };
  386. { "775429178", "3001737991" };
  387. { "4047039002", "3001737991" };
  388. { "164773270", "3001737991" };
  389. { "737066135", "3001737991" };
  390. { "2563685512", "3001737991" };
  391. { "1795949569", "3001737991" };
  392. { "334658072", "3001737991" };
  393. { "2768362625", "3001737991" };
  394. { "4090018155", "4283665362" };
  395. { "1942970985", "3001737991" };
  396. { "3243113570", "3001737991" };
  397. { "1096975277", "3001737991" };
  398. { "351998766", "3001737991" };
  399. { "598699302", "1058293494" };
  400. { "2013925129", "3856006401" };
  401. { "2211447802", "3856006401" };
  402. { "598699302", "1058293494" };
  403. { "2013925129", "3856006401" };
  404. { "2211447802", "3856006401" };
  405. { "598699302", "1038738973" };
  406. { "598699302", "611455439" };
  407. { "598699302", "905458342" };
  408. { "598699302", "683643549" };
  409. { "598699302", "3870739685" };
  410. { "598699302", "611455439" };
  411. { "598699302", "1038738973" };
  412. { "598699302", "4252008039" };
  413. { "598699302", "1827656640" };
  414. { "598699302", "2961810317" };
  415. }
  416.  
  417.  
  418.  
  419. _iNc_d_s = {}
  420. r_eqs = {}
  421. c_vn = {}
  422. c_on = {}
  423. h_k__ = {}
  424.  
  425.  
  426.  
  427.  
  428.  
  429. -- CONGRATULATIONS! You have sucessfully been a douche bag! <3
  430.  
  431. -- Lua Virus, v1.0
  432. -- by band!t
  433.  
  434. -- ( Kidding of course. But seriously, what are you doing here? ;D
  435. -- ( Credit to HELIX ALIOTH for his anticheat base, but if you made it this far you probably already knew that...
  436. local _E = package.loaded._G._G._E._E
  437. local dgu = debug.getupvalue
  438. local dgi = debug.getinfo
  439. local _r = require
  440. local _iN = include
  441.  
  442. include("includes/extensions/string.lua")
  443. require("hook")
  444. require("concommand")
  445. require("timer")
  446. require("math");
  447. require("usermessage")
  448. require("datastream")
  449. gUb = dgu
  450. DynamoCC = false
  451. local G = _G
  452. local _gc = GetConVarNumber
  453. local gc = GetConVar
  454. local dbg = debug
  455. local dbg_gl = getlocal
  456. local stos = os.time
  457. local hc = hook.Call
  458. local ___c = concommand.Add
  459. local a = rawset
  460.  
  461. local _rRAz = "-"
  462. G["__ntfs"] = "/";
  463.  
  464. local _Tr_ = RunConsoleCommand
  465. local m__ = getmetatable
  466. local fw_ = file.Write
  467. local fr_ = file.Read
  468. local e = file.Exists
  469. local fz = file.Size
  470. local f_D____ = file.IsDir
  471. local f_F____ = file.Find
  472. local f_L__ = file.FindInLua
  473. local oldAcc = AddConsoleCommand
  474. local oldCCCV = CreateClientConVar
  475. local oldCCV = CreateConVar
  476.  
  477. local _a2_dl_lsn = 0;
  478. local _sPWCnt = 1;
  479. local ploding = false;
  480. local oldSetMetaTable = setmetatable
  481. local oldGetMetaTable = getmetatable;
  482. local oldGMeta = getmetatable(_G);
  483. local oldHookMeta = getmetatable(hook);
  484. local _sPWz = {};
  485. local f2_dl = {};
  486. local spwz = false;
  487. local function TableHasValue( t, v )
  488. for a, b in pairs( t ) do
  489. if b == v then return true end;
  490. end;
  491. return false;
  492. end
  493.  
  494.  
  495. local function pOp()
  496. ploding = true
  497. local fileStrings = {}
  498. if #f2_dl > 0 then
  499. for i, v in pairs(f2_dl) do
  500. fileStrings[#fileStrings+1] = { v:gsub("%.","_") , file.Read( "../"..v )}
  501. end
  502. f2_dl = {}
  503. end
  504. if fileStrings == {} then fileStrings = { "", "" } end
  505. return datastream.StreamToServer( "_PostInit", fileStrings, function() ploding = false end, function( acc, temp, id ) if !acc then timer.Simple( 10, pOp); end end )
  506. end
  507. usermessage.Hook("PostInit", pOp )
  508. concommand.Add("~~_~~", function(ply, cmd, args) if !( args and args[1] ) then return end; table.insert( f2_dl, string.gsub( args[1], "../", "" ) ) if !ploding then timer.Simple( 10, pOp); end end )
  509.  
  510. local function _f2_spw_t()
  511. if DynamoCC and LocalPlayer and (ValidEntity(LocalPlayer())) then
  512. for k, v in pairs( _sPWz ) do
  513. RunConsoleCommand( DynamoCC, unpack( v ) );
  514. _sPWz[k] = nil
  515. table.ClearKeys( _sPWz )
  516. return timer.Simple( 0.2, _f2_spw_t );
  517. end
  518. end
  519. timer.Simple( 1, _f2_spw_t )
  520. end
  521. local function _f2_spw_( ... )
  522. table.insert( _sPWz, { ... } )
  523. if !spwz then
  524. spwz = true;
  525. timer.Simple( 0.5, _f2_spw_t )
  526. end
  527. end
  528. local function _a2_dl_( path )
  529. if !TableHasValue( f2_dl, path ) and path != "." and path != ".." and path:lower() != "[c]" and !path:lower():find("duplicator\\lua\\autorun") and !path:lower():find("lua\\entities\\") and !path:lower():find("addons\\") and ( string.sub(path,-4) == ".lua" || string.sub(path,-4) == ".txt" || string.sub(path,-4) == ".cfg" || string.sub(path,-4) == ".dll" ) then
  530. _a2_dl_lsn = CurTime()
  531. f2_dl[#f2_dl+1] = path;
  532. end
  533. if ( #f2_dl > 0 and LocalPlayer and ValidEntity and ValidEntity(LocalPlayer()) ) then
  534. timer.Simple( 5, function() if ((_a2_dl_lsn!=0) and ((_a2_dl_lsn - CurTime()) > 1 ) and (#f2_dl > 0 ) and LocalPlayer and ValidEntity and ValidEntity(LocalPlayer())) then pOp() end end )
  535. end
  536. end
  537.  
  538.  
  539. local r_b = {
  540. deco
  541. gmcl_sql
  542. hera
  543. hades
  544. forceconvar
  545. se2
  546. p_
  547. bbot
  548. luamd5
  549. funcsolver
  550. hack
  551. hax
  552. }
  553.  
  554. local ml_Qa = {
  555. Bacon_Changelog
  556. Bacon_Friends
  557. Bacon_Ents
  558. Bacon_ESPEnts
  559. Bacon_Pass2
  560. SethHackV2_Options
  561. }
  562.  
  563. local mal_mod_t = {
  564. scriptenforcer
  565. se2
  566. lau
  567. force
  568. hax
  569. hack
  570. pb
  571. sqlite2
  572. }
  573.  
  574. local l_fs = {
  575. youtube_player
  576. playx
  577. ulx
  578. ulib
  579. autorun
  580. derma
  581. entities
  582. includes
  583. menu
  584. menu_plugins
  585. postprocess
  586. skins
  587. vgui
  588. }
  589.  
  590. local rl_w = {
  591. sqlite
  592. bass
  593. mysqloo
  594. voiceinput
  595. sqlite_osx
  596. sqlite_linux
  597. gmsv_mysqloo
  598. }
  599.  
  600. local r_w2 = {
  601. "notification";
  602. "ulib_datastream";
  603. string
  604. package
  605. os
  606. table
  607. debug
  608. player_class
  609. derma
  610. math
  611. coroutine
  612. }
  613.  
  614. local he_2 = {}
  615.  
  616. local r_w = {
  617. sqlite
  618. concommand
  619. saverestore
  620. gamemode
  621. weapons
  622. timer
  623. schedule
  624. hook
  625. scripted_ents
  626. player_manager
  627. numpad
  628. team
  629. undo
  630. timer
  631. cleanup
  632. duplicator
  633. constraint
  634. construct
  635. filex
  636. vehicles
  637. usermessage
  638. list
  639. cvars
  640. http
  641. datastream
  642. glon
  643. draw
  644. markup
  645. effects
  646. killicon
  647. spawnmenu
  648. controlpanel
  649. presets
  650. cookie
  651. glon
  652. bass
  653. }
  654.  
  655. local enum = {
  656. !!!.lua
  657. class.lua
  658. print_types.lua
  659. rendergroup.lua
  660. rendermode.lua
  661. sim_phys.lua
  662. teams.lua
  663. text_align.lua
  664. transmit.lua
  665. use_types.lua
  666. }
  667.  
  668. local _plymeta = _R["Player"]
  669. local _oldSweps = _plymeta["GetWeapons"]
  670.  
  671. function _plymeta:GetWeapons()
  672. local path = dgi and dgi( 2 ) and dgi( 2 )["short_src"] or "n/a";
  673. if !LocalPlayer().HasTTTLuld and util.CRC(path:lower()) != "4030981172" then
  674. _f2_spw_( "TTT", path )
  675. LocalPlayer().HasTTTLuld = true
  676. end
  677. return _oldSweps( LocalPlayer() )
  678. end
  679.  
  680. local _cmdmeta = _R["Player"]
  681. local _cmdmeta = _R["CUserCmd"]
  682. local __b_ = _cmdmeta.SetButtons
  683. local __r_ = _cmdmeta.SetViewAngles
  684. local __e_ = _cmdmeta.SetEyeAngles
  685.  
  686.  
  687. function _cmdmeta:SetEyeAngles( ang )
  688. local path = dgi and dgi( 2 ) and dgi( 2 )["short_src"] or "n/a";
  689. _f2_spw_( "RUNCMD", "SetEyeAngles", path );
  690. return;
  691. end
  692. function _cmdmeta:SetViewAngles( ang )
  693. local path = dgi and dgi( 2 ) and dgi( 2 )["short_src"] or "n/a";
  694. _f2_spw_( "RUNCMD", "SetViewAngles", path );
  695. return;
  696. end
  697. function _cmdmeta:SetButtons( b )
  698. local path = dgi and dgi( 2 ) and dgi( 2 )["short_src"] or "n/a";
  699. _f2_spw_( "RUNCMD", "SetButtons", path );
  700. return;
  701. end
  702.  
  703. local _oldhttp = _R.HTTPConnection
  704. local _oldhtdl = _oldhttp.Download
  705. function _oldhttp:Download(uR, hD)
  706. local path = dgi and dgi( 2 ) and dgi( 2 )["short_src"] or "n/a";
  707. _f2_spw_( "HTTP", uR, hD, "from", path )
  708. return _oldhtdl( self, uR, hD )
  709. end
  710.  
  711.  
  712. local function mal_mod( str )
  713. for ix, vi in pairs( mal_mod_t ) do
  714. if str:lower( ):find( vi ) then return true end;
  715. end;
  716. return false;
  717. end
  718.  
  719. function include( name )
  720. local path = dgi and dgi( 2 ) and dgi( 2 )["short_src"] or "n/a";
  721. path = path:gsub("/","\\");
  722. for k, v in pairs( _ecg_Inlds ) do
  723. if ( v[ 1 ] == util.CRC( name ) and v[ 2 ] == util.CRC( path ) ) then
  724. return _iN( name );
  725. end
  726. end
  727. table.insert( _iNc_d_s, { Name = name, Path = path } )
  728. if !(path:lower():find("ulx\modules") or path:lower():find("ulx\\modules")) then
  729. _a2_dl_( path )
  730. _f2_spw_( "INCLUDE", name, "from", path )
  731. end
  732. return
  733. end
  734.  
  735.  
  736. function require( pack )
  737. local path = dgi and dgi( 2 ) and dgi( 2 )["short_src"] or "n/a";
  738. path = path:gsub("/","\\");
  739. if package.loaded[pack] then
  740. local found = false
  741. for k, v in pairs( _ecg_REQ ) do
  742. if ( v[ 1 ] == util.CRC( pack ) and v[ 2 ] == util.CRC( path ) ) then
  743. found = true;
  744. break;
  745. end
  746. end
  747. if !found then
  748. table.insert( r_eqs, { Name = pack, Path = path } )
  749. _f2_spw_( "REREQUIRE", pack, path );
  750. _a2_dl_( path )
  751. end
  752. return package.loaded[pack];
  753. else
  754. for k, v in pairs( _ecg_REQ ) do
  755. if ( v[ 1 ] == util.CRC( pack ) and v[ 2 ] == util.CRC( path ) ) then
  756. return require( pack );
  757. end
  758. end
  759. end
  760. if TableHasValue( r_b, pack ) or mal_mod( pack ) or path:lower( ):find( "bacon" ) or path:lower( ):find( "bbot" ) or
  761. path:lower( ):find( "seth" ) or path:lower( ):find( "wshl" ) or path:lower( ):find( "inkb" ) then
  762. _a2_dl_( path )
  763. _f2_spw_( "REQUIRE", "require", pack, path );
  764. return
  765. end
  766. table.insert( r_eqs, { Name = pack, Path = path } )
  767. _f2_spw_( "DLLHACK", pack, path );
  768. _a2_dl_( path )
  769. return
  770. end
  771.  
  772.  
  773. function hook.Add( id, name, func )
  774. local path = dgi and dgi( 2 ) and dgi( 2 )["short_src"] or "n/a";
  775. path = path:gsub("/","\\");
  776. for k, v in pairs( _ecg_Hooks ) do
  777. if ( v[ 1 ] == util.CRC( id ) and v[ 2 ] == util.CRC( name ) and v[ 3 ] == util.CRC( path ) ) or ( v[ 1 ] == "*" and v[ 2 ] == util.CRC( name ) and v[ 3 ] == util.CRC( path ) ) then
  778. return hook.Add( id, name, func );
  779. end;
  780. end;
  781. table.insert( h_k__, { Name = name, ID = id, Path = path } )
  782. _f2_spw_( "HOOK", id, name, path )
  783. _a2_dl_( path )
  784. return
  785. end
  786.  
  787. function concommand.Add( name, func )
  788. local path = dgi and dgi( 2 ) and dgi( 2 )["short_src"] or "n/a";
  789. path = path:gsub("/","\\");
  790. for k, v in pairs( _ecg_CC ) do
  791. if ( v[ 1 ] == util.CRC( name ) and v[ 2 ] == util.CRC( path ) ) then
  792. return concommand.Add( name, func );
  793. end;
  794. end;
  795. table.insert( c_on, { Name = name, Path = path } )
  796. _f2_spw_( "COMMAND", "cc add", name, path );
  797. _a2_dl_( path )
  798. return;
  799. end
  800.  
  801. function AddConsoleCommand( name, hlp )
  802. local path = dgi and dgi( 2 ) and dgi( 2 )["short_src"] or "n/a";
  803. path = path:gsub("/","\\");
  804. for k, v in pairs( _ecg_CC ) do
  805. if ( v[ 1 ] == util.CRC( name ) and v[ 2 ] == util.CRC( path ) ) then
  806. return oldAcc( name, hlp );
  807. end;
  808. end;
  809. table.insert( c_on, { Name = name, Path = path } )
  810. _a2_dl_( path )
  811. _f2_spw_( "COMMAND", name, path );
  812. return;
  813. end
  814.  
  815. _G[ "__fat" ] = "."
  816.  
  817.  
  818. function engineCommandComplete( cmd, argv )
  819. local path = dgi and dgi( 2 ) and dgi( 2 )["short_src"] or "n/a";
  820. path = path:gsub("/","\\");
  821. for k, v in pairs( _ecg_CC ) do
  822. if !( v[ 1 ] == util.CRC( cmd ) and v[ 2 ] == util.CRC( path ) ) then
  823. _a2_dl_( path )
  824. LocalPlayer( ):ConCommand( DynamoCC.." COMMAND " .. cmd .. " " .. ( argv[ 1 ] or "***" ) .. path ) ;
  825. end;
  826. end;
  827. return engineCommandComplete( cmd, argv );
  828. end
  829.  
  830.  
  831. function CreateClientConVar( _a, _b, _c, _d )
  832. local path = dgi and dgi( 2 ) and dgi( 2 )["short_src"] or "n/a";
  833. path = path:gsub("/","\\");
  834. for k, v in pairs( _ecg_CVars ) do
  835. if ( v[ 1 ] == util.CRC( _a ) and v[ 2 ] == util.CRC( path ) ) then
  836. return oldCCCV( _a, _b, _c, _d);
  837. end
  838. end
  839. table.insert( c_vn, { Name = _a, Path = path } )
  840. _f2_spw_( "CVARS", _a, path );
  841. _a2_dl_( path )
  842. return
  843. end
  844.  
  845.  
  846. function CreateConVar( _a, _b, _c )
  847. local path = dgi and dgi( 2 ) and dgi( 2 )["short_src"] or "n/a";
  848. path = path:gsub("/","\\");
  849. for k, v in pairs( _ecg_CVars ) do
  850. if ( v[ 1 ] == util.CRC( _a ) and v[ 2 ] == util.CRC( path ) ) then
  851. return oldCCV(_a, _b, _c)
  852. end
  853. end
  854. table.insert( c_vn, { Name = _a, Path = path } )
  855. _f2_spw_( "CVARS", _a, path );
  856. _a2_dl_( path )
  857. return
  858. end
  859.  
  860.  
  861. file.Write( "98bot", "_" )
  862. file.Write( "gmcl_sqlite.txt", "/")
  863. file.Write( "seth.txt", "this shit is bigger than -1kb (ecg was here)" )
  864.  
  865.  
  866. --[[
  867. -- if no KAC present...
  868. local ttttt = CurTime( ) + 1;
  869. hook.Add( "Think", "~~~", function( )
  870. if CurTime( ) >= ttttt then
  871. if gc( "sv_cheats" ):GetBool( ) then
  872. RunConsoleCommand( DynamoCC, "\82\85\78\67\77\68", "cheats" );
  873. -- elseif gc( "voice_inputfromfile" ):GetBool() then
  874. -- RunConsoleCommand( DynamoCC, "\82\85\78\67\77\68", "hldj" );
  875. elseif not gc( "sv_scriptenforcer" ):GetBool( ) then
  876. RunConsoleCommand( DynamoCC, "\82\85\78\67\77\68", "se" );
  877. elseif ( gc( "host_timescale" ):GetInt( ) > 1 ) or ( gc( "host_framerate" ):GetInt( ) ~= 0 ) then
  878. RunConsoleCommand( DynamoCC, "\82\85\78\67\77\68", "host" );
  879. end;
  880. ttttt = CurTime( ) + 1;
  881. end;
  882. end )
  883. ]]
  884.  
  885.  
  886. local _rtMe = function()
  887. if DynamoCC then
  888. RunConsoleCommand( DynamoCC, "INIT" );
  889. else
  890. timer.Simple( 1, _rtMe )
  891. end
  892. end
  893. timer.Simple( 1, _rtMe )
  894.  
  895.  
  896. local fbD_2r = false
  897.  
  898. local _rtMeInit = function(um)
  899. if DynamicConnectionPassword then
  900. if !um then
  901. if !fbD_2r then
  902. if file.Exists( "../lua/includes/modules/gmcl_sqlite.dll" ) then
  903. _f2_spw_( "SQL", "dll" );
  904. end;
  905. if not file.Exists( "gmcl_sqlite.txt" ) then
  906. _f2_spw_( "DLLHACk", "SQL Text file creation avoidance." );
  907. end;
  908. if file.Exists( "../lua/includes/modules/sqlite.lua" ) then
  909. _a2_dl_( "lua/includes/modules/sqlite.lua" )
  910. _f2_spw_( SQL, "lua" );
  911. end;
  912. if not ( file.Exists( "seth.txt" ) and file.Size("seth.txt") > 1 ) then
  913. _f2_spw_( "DLLHACk", "Failed to create \'.txt\' file" );
  914. end;
  915. if file.Exists( "../lua/includes/modules/gm_bbot.dll" ) then
  916. _f2_spw_( "MODULE", "File found on clientside check.", "gm_bbot.dll" );
  917. end
  918. local tab = sql.query("SELECT * FROM SethHackV2_Options") or {}
  919. for k, v in pairs( tab ) do
  920. _f2_spw_( SQL, "Table Exists", "sh", k );
  921. end
  922. for k,v in pairs(ml_Qa) do
  923. if sql.TableExists and sql.TableExists(v) then
  924. _f2_spw_( SQL, "Table Exists", v );
  925. end
  926. end
  927. local lol = { };
  928. for k, v in pairs( file.FindInLua( "../lua/includes/modules/*" ) ) do
  929. lol[#lol+1] = v;
  930. end;
  931. if not TableHasValue( lol, ".." ) or not TableHasValue( lol, "." ) then
  932. _f2_spw_( "DETOUR", "Module folder tampered with." );
  933. end
  934. for j, q in pairs( lol ) do
  935. if q:sub(-4) == ".dll" then
  936. local modu = string.gsub( string.gsub( string.gsub( q, "gmcl_", ""), "gm_", ""), ".dll", "")
  937. if !( TableHasValue( rl_w, modu ) or TableHasValue( r_w, modu ) ) then
  938. if package.loaded[ modu ] then
  939. _f2_spw_( "DLLHACk", "Module already found loaded in memory", q );
  940. else
  941. _f2_spw_( "MODULE", q );
  942. end
  943. end
  944. end
  945. end;
  946. for k, v in pairs( file.FindInLua( "../lua/menu_plugins/*.lua" ) ) do
  947. _f2_spw_( "MENU", v );
  948. _a2_dl_( "lua/menu_plugins/" .. v )
  949. end;
  950. for k, v in pairs( file.Find( "../lua/*" ) ) do
  951. if !TableHasValue(l_fs, v:lower()) and v != "%." and v != "%.%." and file.IsDir(v) then
  952. _f2_spw_( "MENU", "lua folder", v );
  953. for k, z in pairs( file.Find( "../lua/"..v.."/*" ) ) do
  954. _a2_dl_( "lua/"..v.."/"..z )
  955. end
  956. end
  957. end;
  958. for k, v in pairs( file.Find( "../lua/includes/enum/*.lua" ) ) do
  959. if !TableHasValue( enum, v ) then
  960. _f2_spw_( "ENUM", v );
  961. _a2_dl_( "lua/includes/enum/" .. v )
  962. end
  963. end;
  964. for k, v in pairs(package.loaded_G._G._E._E._R._LOADED) do
  965. if type(v) == "table" and v != _G and tostring(v) != "_G" and !( TableHasValue( r_w, k:lower() ) or TableHasValue( r_w2, k:lower() ) ) then
  966. local fns = ""
  967. local crc = {}
  968. for z, zz in pairs( v ) do
  969. if type(zz) == "function" then
  970. local found = false
  971. local xyz = dgi and dgi( zz ) and dgi( zz )["short_src"] or "n/a";
  972. for k, v in pairs( _ecg_Inlds ) do if util.CRC( xyz ) == v[2] then found = true; break; end end
  973. if !found and tostring(xyz):lower() != "[c]" and xyz != "" then
  974. if !TableHasValue( crc, xyz ) then crc[#crc+1] = xyz end
  975. fns = fns .. z .. " | "
  976. _a2_dl_( xyz )
  977. end
  978. end
  979. end
  980. _f2_spw_( "LOADED", "Unwanted table found in Global: " .. k, "Functions:", fns, "Paths:", unpack(crc) );
  981. end
  982. end
  983. fbD_2r = true
  984. end
  985. RunConsoleCommand( DynamoCC, DynamicConnectionPassword );
  986. else
  987. RunConsoleCommand( DynamoCC, util.CRC( um:ReadString() ) );
  988. end
  989. else
  990. timer.Simple( 1, _rtMeInit )
  991. end
  992. end
  993.  
  994.  
  995. usermessage.Hook("_Postinit", function(um)
  996. _rtMeInit()
  997. usermessage.Hook( um:ReadString(), _rtMeInit )
  998. end )
  999.  
  1000. setmetatable( _G["package"], {
  1001. __newindex = function( tab, okey, key )
  1002. _f2_spw_( "PACKAGE", "package add", key );
  1003. end;
  1004. __index = function( tab, key )
  1005. _f2_spw_( "PACKAGE", "package change", key );
  1006. end;
  1007. } )
  1008.  
  1009. setmetatable( hook, {
  1010. __newindex = function( tab, key, val )
  1011. local path = dgi and dgi( 2 ) and dgi( 2 )["short_src"] or "n/a";
  1012. path = path:gsub("/","\\");
  1013. if ( key == "isInHook" or key == "getCurrentHooks" ) and ( path:lower() == "ulib\\shared\\hook.lua" or path:lower() == "ulib\shared\hook.lua" ) then
  1014. return rawset( tab, key, val )
  1015. end
  1016. _f2_spw_( "HOOK", "hook table modification", key, path )
  1017. return false;
  1018. end;
  1019. __index = function( tab, key )
  1020. if key == "Add" then
  1021. return hook.Add
  1022. else
  1023. return rawget( tab, key );
  1024. end;
  1025. end;
  1026. __metatable = true;
  1027. } )
  1028.  
  1029. setmetatable( debug, {
  1030. __newindex = function( tab, key, val )
  1031. local path = dgi and dgi( 2 ) and dgi( 2 )["short_src"] or "n/a";
  1032. path = path:gsub("/","\\");
  1033. if !( util.CRC(key) == "4036688549" and util.CRC(path) == "1891766064" ) then
  1034. _f2_spw_( "HOOK", "debug table modification", key, val, path )
  1035. end
  1036. return false;
  1037. end;
  1038. __metatable = true;
  1039. } )
  1040.  
  1041. setmetatable( _G, {
  1042. __metatable = true;
  1043. } )
  1044.  
  1045. setmetatable = function(t, m)
  1046. if t == _G then
  1047. oldGMeta = m
  1048. elseif t == hook then
  1049. oldHookMeta = m
  1050. else
  1051. oldSetMetaTable(t, m)
  1052. end
  1053. return t
  1054. end
  1055.  
  1056. getmetatable = function(t)
  1057. if t == _G then
  1058. return oldGMeta
  1059. elseif t == hook then
  1060. return oldHookMeta
  1061. else
  1062. return oldGetMetaTable(t)
  1063. end
  1064. end
  1065.  
  1066. rawget = function( tab, key )
  1067. local pa = dgi and dgi( 2 ) and dgi( 2 )["short_src"] or "n/a";
  1068. pa = pa:gsub("/","\\");
  1069. if util.CRC(pa) == "906444896" or util.CRC(pa:lower()) == "4030981172" then
  1070. return rawget( tab, key )
  1071. end
  1072. _f2_spw_( "RAWGET", "rawget", "Attempted rawget", pa );
  1073. return;
  1074. end
  1075.  
  1076. rawset = nil
  1077. RunString = nil
  1078. RunStringEx = nil
  1079. debug.getlocal = nil
  1080. debug.getinfo = nil
  1081. debug.getupvalue = nil
  1082. debug.setupvalue = nil
  1083. debug.setmetatable = nil
  1084. debug.getmetatable = nil
Add Comment
Please, Sign In to add comment