Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Token: 0x0200000A RID: 10
- [ComVisible(true)]
- public class ToolBox : Form
- {
- // Token: 0x06000026 RID: 38 RVA: 0x000028BA File Offset: 0x00000ABA
- public ToolBox()
- {
- this.EditIE();
- this.InitializeComponent();
- }
- // Token: 0x06000027 RID: 39 RVA: 0x000028D0 File Offset: 0x00000AD0
- [ComVisible(true)]
- public void Insert(string id)
- {
- string text = "insert " + id;
- try
- {
- File.WriteAllText(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\rbx_hook", text);
- }
- catch
- {
- this.Insert(text);
- }
- }
- // Token: 0x06000028 RID: 40 RVA: 0x0000291C File Offset: 0x00000B1C
- private void EditIE()
- {
- try
- {
- RegistryKey registryKey = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Internet Explorer\\Main\\FeatureControl\\FEATURE_BROWSER_EMULATION", true);
- string friendlyName = AppDomain.CurrentDomain.FriendlyName;
- if (registryKey.GetValue(friendlyName) == null)
- {
- registryKey.SetValue(friendlyName, 11001, RegistryValueKind.DWord);
- }
- }
- catch (Exception ex)
- {
- MessageBox.Show("Access denied" + ex.ToString());
- }
- }
- // Token: 0x06000029 RID: 41 RVA: 0x0000298C File Offset: 0x00000B8C
- public void ToolBox_Load(object sender, EventArgs e)
- {
- this.webBrowser1.ScriptErrorsSuppressed = true;
- this.webBrowser1.ObjectForScripting = this;
- try
- {
- this.webBrowser1.GotFocus += this.focus;
- }
- catch (Exception)
- {
- }
- try
- {
- this.webBrowser1.LostFocus += this.focus;
- }
- catch (Exception)
- {
- }
- try
- {
- this.webBrowser1.Document.MouseOver += new HtmlElementEventHandler(this.focus);
- }
- catch (Exception)
- {
- }
- }
- // Token: 0x0600002A RID: 42 RVA: 0x00002A34 File Offset: 0x00000C34
- public void focus(object x, EventArgs y)
- {
- if (this.webBrowser1 != null && this.webBrowser1.Document != null)
- {
- try
- {
- HtmlElementCollection elementsByTagName = this.webBrowser1.Document.GetElementsByTagName("div");
- if (elementsByTagName != null)
- {
- foreach (object obj in elementsByTagName)
- {
- HtmlElement htmlElement = (HtmlElement)obj;
- if (htmlElement != null && elementsByTagName != null)
- {
- string attribute = htmlElement.GetAttribute("className");
- if (attribute != null && attribute == "client-toolbox-inner")
- {
- try
- {
- htmlElement.MouseDown -= this.clicky;
- }
- catch (Exception)
- {
- }
- htmlElement.MouseDown += this.clicky;
- }
- }
- }
- }
- }
- catch (Exception)
- {
- }
- }
- }
- // Token: 0x0600002B RID: 43 RVA: 0x00002B30 File Offset: 0x00000D30
- public void clicky(object s, HtmlElementEventArgs blah)
- {
- try
- {
- JavaScriptSerializer javaScriptSerializer = new JavaScriptSerializer();
- javaScriptSerializer.RegisterConverters(new DynamicJsonConverter[]
- {
- new DynamicJsonConverter()
- });
- object arg = javaScriptSerializer.Deserialize(((HtmlElement)s).GetAttribute("data-asset"), typeof(object));
- if (!this.EmbedMode)
- {
- if (ToolBox.<>o__9.<>p__3 == null)
- {
- ToolBox.<>o__9.<>p__3 = CallSite<Action<CallSite, ToolBox, object>>.Create(Binder.InvokeMember(CSharpBinderFlags.InvokeSimpleName | CSharpBinderFlags.ResultDiscarded, "Insert", null, typeof(ToolBox), new CSharpArgumentInfo[]
- {
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null),
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null)
- }));
- }
- Action<CallSite, ToolBox, object> target = ToolBox.<>o__9.<>p__3.Target;
- CallSite <>p__ = ToolBox.<>o__9.<>p__3;
- if (ToolBox.<>o__9.<>p__2 == null)
- {
- ToolBox.<>o__9.<>p__2 = CallSite<Func<CallSite, object, object>>.Create(Binder.InvokeMember(CSharpBinderFlags.None, "ToString", null, typeof(ToolBox), new CSharpArgumentInfo[]
- {
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null)
- }));
- }
- Func<CallSite, object, object> target2 = ToolBox.<>o__9.<>p__2.Target;
- CallSite <>p__2 = ToolBox.<>o__9.<>p__2;
- if (ToolBox.<>o__9.<>p__1 == null)
- {
- ToolBox.<>o__9.<>p__1 = CallSite<Func<CallSite, object, object>>.Create(Binder.GetMember(CSharpBinderFlags.None, "Id", typeof(ToolBox), new CSharpArgumentInfo[]
- {
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null)
- }));
- }
- Func<CallSite, object, object> target3 = ToolBox.<>o__9.<>p__1.Target;
- CallSite <>p__3 = ToolBox.<>o__9.<>p__1;
- if (ToolBox.<>o__9.<>p__0 == null)
- {
- ToolBox.<>o__9.<>p__0 = CallSite<Func<CallSite, object, object>>.Create(Binder.GetMember(CSharpBinderFlags.None, "Asset", typeof(ToolBox), new CSharpArgumentInfo[]
- {
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null)
- }));
- }
- target(<>p__, this, target2(<>p__2, target3(<>p__3, ToolBox.<>o__9.<>p__0.Target(ToolBox.<>o__9.<>p__0, arg))));
- }
- else
- {
- if (ToolBox.<>o__9.<>p__7 == null)
- {
- ToolBox.<>o__9.<>p__7 = CallSite<Func<CallSite, object, string>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof(string), typeof(ToolBox)));
- }
- Func<CallSite, object, string> target4 = ToolBox.<>o__9.<>p__7.Target;
- CallSite <>p__4 = ToolBox.<>o__9.<>p__7;
- if (ToolBox.<>o__9.<>p__6 == null)
- {
- ToolBox.<>o__9.<>p__6 = CallSite<Func<CallSite, object, object>>.Create(Binder.InvokeMember(CSharpBinderFlags.None, "ToString", null, typeof(ToolBox), new CSharpArgumentInfo[]
- {
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null)
- }));
- }
- Func<CallSite, object, object> target5 = ToolBox.<>o__9.<>p__6.Target;
- CallSite <>p__5 = ToolBox.<>o__9.<>p__6;
- if (ToolBox.<>o__9.<>p__5 == null)
- {
- ToolBox.<>o__9.<>p__5 = CallSite<Func<CallSite, object, object>>.Create(Binder.GetMember(CSharpBinderFlags.None, "Id", typeof(ToolBox), new CSharpArgumentInfo[]
- {
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null)
- }));
- }
- Func<CallSite, object, object> target6 = ToolBox.<>o__9.<>p__5.Target;
- CallSite <>p__6 = ToolBox.<>o__9.<>p__5;
- if (ToolBox.<>o__9.<>p__4 == null)
- {
- ToolBox.<>o__9.<>p__4 = CallSite<Func<CallSite, object, object>>.Create(Binder.GetMember(CSharpBinderFlags.None, "Asset", typeof(ToolBox), new CSharpArgumentInfo[]
- {
- CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null)
- }));
- }
- this.whatid = target4(<>p__4, target5(<>p__5, target6(<>p__6, ToolBox.<>o__9.<>p__4.Target(ToolBox.<>o__9.<>p__4, arg))));
- }
- }
- catch (Exception)
- {
- }
- }
- // Token: 0x0600002C RID: 44 RVA: 0x00002E08 File Offset: 0x00001008
- public void fuckload(object send, DragEventArgs wtfwhoneedsthese)
- {
- 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");
- this.whatid = string.Empty;
- MessageBox.Show("drop");
- }
- // Token: 0x0600002D RID: 45 RVA: 0x00002E40 File Offset: 0x00001040
- private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
- {
- }
Advertisement
Add Comment
Please, Sign In to add comment