loldezpasteas2

Untitled

May 13th, 2018
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.34 KB | None | 0 0
  1. // Token: 0x0200000A RID: 10
  2. [ComVisible(true)]
  3. public class ToolBox : Form
  4. {
  5. // Token: 0x06000026 RID: 38 RVA: 0x000028BA File Offset: 0x00000ABA
  6. public ToolBox()
  7. {
  8. this.EditIE();
  9. this.InitializeComponent();
  10. }
  11.  
  12. // Token: 0x06000027 RID: 39 RVA: 0x000028D0 File Offset: 0x00000AD0
  13. [ComVisible(true)]
  14. public void Insert(string id)
  15. {
  16. string text = "insert " + id;
  17. try
  18. {
  19. File.WriteAllText(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\rbx_hook", text);
  20. }
  21. catch
  22. {
  23. this.Insert(text);
  24. }
  25. }
  26.  
  27. // Token: 0x06000028 RID: 40 RVA: 0x0000291C File Offset: 0x00000B1C
  28. private void EditIE()
  29. {
  30. try
  31. {
  32. RegistryKey registryKey = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Internet Explorer\\Main\\FeatureControl\\FEATURE_BROWSER_EMULATION", true);
  33. string friendlyName = AppDomain.CurrentDomain.FriendlyName;
  34. if (registryKey.GetValue(friendlyName) == null)
  35. {
  36. registryKey.SetValue(friendlyName, 11001, RegistryValueKind.DWord);
  37. }
  38. }
  39. catch (Exception ex)
  40. {
  41. MessageBox.Show("Access denied" + ex.ToString());
  42. }
  43. }
  44.  
  45. // Token: 0x06000029 RID: 41 RVA: 0x0000298C File Offset: 0x00000B8C
  46. public void ToolBox_Load(object sender, EventArgs e)
  47. {
  48. this.webBrowser1.ScriptErrorsSuppressed = true;
  49. this.webBrowser1.ObjectForScripting = this;
  50. try
  51. {
  52. this.webBrowser1.GotFocus += this.focus;
  53. }
  54. catch (Exception)
  55. {
  56. }
  57. try
  58. {
  59. this.webBrowser1.LostFocus += this.focus;
  60. }
  61. catch (Exception)
  62. {
  63. }
  64. try
  65. {
  66. this.webBrowser1.Document.MouseOver += new HtmlElementEventHandler(this.focus);
  67. }
  68. catch (Exception)
  69. {
  70. }
  71. }
  72.  
  73. // Token: 0x0600002A RID: 42 RVA: 0x00002A34 File Offset: 0x00000C34
  74. public void focus(object x, EventArgs y)
  75. {
  76. if (this.webBrowser1 != null && this.webBrowser1.Document != null)
  77. {
  78. try
  79. {
  80. HtmlElementCollection elementsByTagName = this.webBrowser1.Document.GetElementsByTagName("div");
  81. if (elementsByTagName != null)
  82. {
  83. foreach (object obj in elementsByTagName)
  84. {
  85. HtmlElement htmlElement = (HtmlElement)obj;
  86. if (htmlElement != null && elementsByTagName != null)
  87. {
  88. string attribute = htmlElement.GetAttribute("className");
  89. if (attribute != null && attribute == "client-toolbox-inner")
  90. {
  91. try
  92. {
  93. htmlElement.MouseDown -= this.clicky;
  94. }
  95. catch (Exception)
  96. {
  97. }
  98. htmlElement.MouseDown += this.clicky;
  99. }
  100. }
  101. }
  102. }
  103. }
  104. catch (Exception)
  105. {
  106. }
  107. }
  108. }
  109.  
  110. // Token: 0x0600002B RID: 43 RVA: 0x00002B30 File Offset: 0x00000D30
  111. public void clicky(object s, HtmlElementEventArgs blah)
  112. {
  113. try
  114. {
  115. JavaScriptSerializer javaScriptSerializer = new JavaScriptSerializer();
  116. javaScriptSerializer.RegisterConverters(new DynamicJsonConverter[]
  117. {
  118. new DynamicJsonConverter()
  119. });
  120. object arg = javaScriptSerializer.Deserialize(((HtmlElement)s).GetAttribute("data-asset"), typeof(object));
  121. if (!this.EmbedMode)
  122. {
  123. if (ToolBox.<>o__9.<>p__3 == null)
  124. {
  125. ToolBox.<>o__9.<>p__3 = CallSite<Action<CallSite, ToolBox, object>>.Create(Binder.InvokeMember(CSharpBinderFlags.InvokeSimpleName | CSharpBinderFlags.ResultDiscarded, "Insert", null, typeof(ToolBox), new CSharpArgumentInfo[]
  126. {
  127. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
  128. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null)
  129. }));
  130. }
  131. Action<CallSite, ToolBox, object> target = ToolBox.<>o__9.<>p__3.Target;
  132. CallSite <>p__ = ToolBox.<>o__9.<>p__3;
  133. if (ToolBox.<>o__9.<>p__2 == null)
  134. {
  135. ToolBox.<>o__9.<>p__2 = CallSite<Func<CallSite, object, object>>.Create(Binder.InvokeMember(CSharpBinderFlags.None, "ToString", null, typeof(ToolBox), new CSharpArgumentInfo[]
  136. {
  137. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null)
  138. }));
  139. }
  140. Func<CallSite, object, object> target2 = ToolBox.<>o__9.<>p__2.Target;
  141. CallSite <>p__2 = ToolBox.<>o__9.<>p__2;
  142. if (ToolBox.<>o__9.<>p__1 == null)
  143. {
  144. ToolBox.<>o__9.<>p__1 = CallSite<Func<CallSite, object, object>>.Create(Binder.GetMember(CSharpBinderFlags.None, "Id", typeof(ToolBox), new CSharpArgumentInfo[]
  145. {
  146. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null)
  147. }));
  148. }
  149. Func<CallSite, object, object> target3 = ToolBox.<>o__9.<>p__1.Target;
  150. CallSite <>p__3 = ToolBox.<>o__9.<>p__1;
  151. if (ToolBox.<>o__9.<>p__0 == null)
  152. {
  153. ToolBox.<>o__9.<>p__0 = CallSite<Func<CallSite, object, object>>.Create(Binder.GetMember(CSharpBinderFlags.None, "Asset", typeof(ToolBox), new CSharpArgumentInfo[]
  154. {
  155. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null)
  156. }));
  157. }
  158. target(<>p__, this, target2(<>p__2, target3(<>p__3, ToolBox.<>o__9.<>p__0.Target(ToolBox.<>o__9.<>p__0, arg))));
  159. }
  160. else
  161. {
  162. if (ToolBox.<>o__9.<>p__7 == null)
  163. {
  164. ToolBox.<>o__9.<>p__7 = CallSite<Func<CallSite, object, string>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(string), typeof(ToolBox)));
  165. }
  166. Func<CallSite, object, string> target4 = ToolBox.<>o__9.<>p__7.Target;
  167. CallSite <>p__4 = ToolBox.<>o__9.<>p__7;
  168. if (ToolBox.<>o__9.<>p__6 == null)
  169. {
  170. ToolBox.<>o__9.<>p__6 = CallSite<Func<CallSite, object, object>>.Create(Binder.InvokeMember(CSharpBinderFlags.None, "ToString", null, typeof(ToolBox), new CSharpArgumentInfo[]
  171. {
  172. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null)
  173. }));
  174. }
  175. Func<CallSite, object, object> target5 = ToolBox.<>o__9.<>p__6.Target;
  176. CallSite <>p__5 = ToolBox.<>o__9.<>p__6;
  177. if (ToolBox.<>o__9.<>p__5 == null)
  178. {
  179. ToolBox.<>o__9.<>p__5 = CallSite<Func<CallSite, object, object>>.Create(Binder.GetMember(CSharpBinderFlags.None, "Id", typeof(ToolBox), new CSharpArgumentInfo[]
  180. {
  181. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null)
  182. }));
  183. }
  184. Func<CallSite, object, object> target6 = ToolBox.<>o__9.<>p__5.Target;
  185. CallSite <>p__6 = ToolBox.<>o__9.<>p__5;
  186. if (ToolBox.<>o__9.<>p__4 == null)
  187. {
  188. ToolBox.<>o__9.<>p__4 = CallSite<Func<CallSite, object, object>>.Create(Binder.GetMember(CSharpBinderFlags.None, "Asset", typeof(ToolBox), new CSharpArgumentInfo[]
  189. {
  190. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null)
  191. }));
  192. }
  193. this.whatid = target4(<>p__4, target5(<>p__5, target6(<>p__6, ToolBox.<>o__9.<>p__4.Target(ToolBox.<>o__9.<>p__4, arg))));
  194. }
  195. }
  196. catch (Exception)
  197. {
  198. }
  199. }
  200.  
  201. // Token: 0x0600002C RID: 44 RVA: 0x00002E08 File Offset: 0x00001008
  202. public void fuckload(object send, DragEventArgs wtfwhoneedsthese)
  203. {
  204. this.form.execute("\r\nlocal bla=game:GetObjects('rbxassetid://" + this.whatid + "')[1]\r\nbla.Parent=workspace\r\nif bla:IsA'Model' then\r\nbla:MoveTo(game.Players.LocalPlayer:GetMouse().Hit.p)\r\nend\r\n");
  205. this.whatid = string.Empty;
  206. MessageBox.Show("drop");
  207. }
  208.  
  209. // Token: 0x0600002D RID: 45 RVA: 0x00002E40 File Offset: 0x00001040
  210. private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
  211. {
  212. }
Advertisement
Add Comment
Please, Sign In to add comment