Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Decompiled with JetBrains decompiler
- // Type: Tundra.MainUI
- // Assembly: Tundra, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
- // MVID: FFD9AC46-9F96-4437-AA52-5AD0FC45FFFF
- // Assembly location: Z:\Tundra\Tundra\Tundra-cleaned.exe
- using ExploitDLL;
- using FastColoredTextBoxNS;
- using System;
- using System.ComponentModel;
- using System.Diagnostics;
- using System.Drawing;
- using System.IO;
- using System.Windows.Forms;
- namespace Tundra
- {
- public class MainUI : Form
- {
- private Injector Exploit = new Injector();
- private IContainer components;
- private Button ExecuteButton;
- private Button ClearButton;
- private Button OpenFileButton;
- private Button SaveFileButton;
- private MenuStrip TopBar;
- private ToolStripMenuItem SettingsTab;
- private ToolStripMenuItem TopmostToggle;
- private ToolStripMenuItem KillROBLOXButton;
- private ToolStripMenuItem SupportTab;
- private ToolStripMenuItem JoinDiscordButton;
- private FastColoredTextBox ScriptBox;
- private ToolStripMenuItem AutoInjectToggle;
- private ListBox ScriptListBox;
- private Button AttachButton;
- private ContextMenuStrip ScriptsContextMenuStrip;
- private ToolStripMenuItem RefreshScriptsButton;
- public MainUI()
- {
- InitializeComponent();
- LoadScripts();
- }
- private void JoinDiscordButton_Click(object sender, EventArgs e) => Process.Start("https://discord.gg/q7N9ypmTWG");
- private void TopmostToggle_Click(object sender, EventArgs e) => TopMost = TopmostToggle.Checked;
- private void KillROBLOXButton_Click(object sender, EventArgs e)
- {
- foreach (Process process in Process.GetProcessesByName("RobloxPlayerBeta"))
- {
- if (process.ProcessName.Equals("RobloxPlayerBeta", StringComparison.OrdinalIgnoreCase))
- {
- process.Kill();
- break;
- }
- }
- }
- private void ClearButton_Click(object sender, EventArgs e)
- => ScriptBox.Clear();
- private async void ExecuteButton_Click(object sender, EventArgs e)
- {
- MainUI mainUi = this;
- string str = await mainUi.Exploit.Execute(mainUi.ScriptBox.Text);
- mainUi.Text = "Tundra [Status: " + str + "]";
- }
- private void OpenFileButton_Click(object sender, EventArgs e)
- {
- using (OpenFileDialog openFileDialog = new OpenFileDialog())
- {
- openFileDialog.Filter = "Lua Files (*.lua)|*.lua|Text Files (*.txt)|*.txt";
- openFileDialog.Title = "Load File as a Script";
- if (openFileDialog.ShowDialog() != DialogResult.OK)
- return;
- ScriptBox.Text = File.ReadAllText(openFileDialog.FileName);
- }
- }
- private void SaveFileButton_Click_1(object sender, EventArgs e)
- {
- using (SaveFileDialog saveFileDialog = new SaveFileDialog())
- {
- saveFileDialog.Filter = "Lua Files (*.lua)|*.lua|Text Files (*.txt)|*.txt";
- saveFileDialog.Title = "Save Script as a File";
- if (saveFileDialog.ShowDialog() != DialogResult.OK)
- return;
- File.WriteAllText(saveFileDialog.FileName, ScriptBox.Text);
- }
- }
- private void AttachButton_Click_1(object sender, EventArgs e)
- => Text = "Tundra [Status: " + Exploit.Attach() + "]";
- private void LoadScripts()
- {
- try
- {
- ScriptListBox.Items.Clear();
- string[] files1 = Directory.GetFiles("scripts", "*.txt");
- string[] files2 = Directory.GetFiles("scripts", "*.lua");
- string[] destinationArray = new string[files1.Length + files2.Length];
- Array.Copy((Array)files1, (Array)destinationArray, files1.Length);
- Array.Copy((Array)files2, 0, (Array)destinationArray, files1.Length, files2.Length);
- foreach (string path in destinationArray)
- ScriptListBox.Items.Add((object)Path.GetFileName(path));
- }
- catch
- {
- }
- }
- private void ScriptListBox_SelectedIndexChanged(object sender, EventArgs e)
- {
- try
- {
- string path2 = ScriptListBox.SelectedItem.ToString();
- if (path2 == null)
- return;
- ScriptBox.Text = File.ReadAllText(Path.Combine("scripts", path2));
- }
- catch
- {
- }
- }
- private void ScriptListBox_MouseDown(object sender, MouseEventArgs e)
- {
- if (e.Button != MouseButtons.Right)
- return;
- ScriptsContextMenuStrip.Show((Control)ScriptListBox, e.Location);
- }
- private void RefreshScriptsButton_Click(object sender, EventArgs e) => LoadScripts();
- protected override void Dispose(bool disposing)
- {
- if (disposing && components != null)
- components.Dispose();
- base.Dispose(disposing);
- }
- private void InitializeComponent()
- {
- components = (IContainer)new Container();
- ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(MainUI));
- ExecuteButton = new Button();
- ClearButton = new Button();
- OpenFileButton = new Button();
- SaveFileButton = new Button();
- TopBar = new MenuStrip();
- SettingsTab = new ToolStripMenuItem();
- TopmostToggle = new ToolStripMenuItem();
- AutoInjectToggle = new ToolStripMenuItem();
- KillROBLOXButton = new ToolStripMenuItem();
- SupportTab = new ToolStripMenuItem();
- JoinDiscordButton = new ToolStripMenuItem();
- ScriptBox = new FastColoredTextBox();
- ScriptListBox = new ListBox();
- AttachButton = new Button();
- ScriptsContextMenuStrip = new ContextMenuStrip(components);
- RefreshScriptsButton = new ToolStripMenuItem();
- TopBar.SuspendLayout();
- ((ISupportInitialize)ScriptBox).BeginInit();
- ScriptsContextMenuStrip.SuspendLayout();
- SuspendLayout();
- ExecuteButton.FlatAppearance.BorderColor = Color.White;
- ExecuteButton.FlatStyle = FlatStyle.System;
- ExecuteButton.Font = new Font("Segoe UI", 9.75f, FontStyle.Regular, GraphicsUnit.Point, (byte)0);
- ExecuteButton.Location = new Point(12, 424);
- ExecuteButton.Name = "ExecuteButton";
- ExecuteButton.Size = new Size(100, 30);
- ExecuteButton.TabIndex = 0;
- ExecuteButton.Text = "Execute";
- ExecuteButton.UseVisualStyleBackColor = true;
- ExecuteButton.Click += new EventHandler(ExecuteButton_Click);
- ClearButton.FlatAppearance.BorderColor = Color.White;
- ClearButton.FlatStyle = FlatStyle.System;
- ClearButton.Font = new Font("Segoe UI", 9.75f, FontStyle.Regular, GraphicsUnit.Point, (byte)0);
- ClearButton.Location = new Point(118, 424);
- ClearButton.Name = "ClearButton";
- ClearButton.Size = new Size(100, 30);
- ClearButton.TabIndex = 0;
- ClearButton.Text = "Clear";
- ClearButton.UseVisualStyleBackColor = true;
- ClearButton.Click += new EventHandler(ClearButton_Click);
- OpenFileButton.FlatAppearance.BorderColor = Color.White;
- OpenFileButton.FlatStyle = FlatStyle.System;
- OpenFileButton.Font = new Font("Segoe UI", 9.75f, FontStyle.Regular, GraphicsUnit.Point, (byte)0);
- OpenFileButton.Location = new Point(224, 424);
- OpenFileButton.Name = "OpenFileButton";
- OpenFileButton.Size = new Size(100, 30);
- OpenFileButton.TabIndex = 0;
- OpenFileButton.Text = "Open File";
- OpenFileButton.UseVisualStyleBackColor = true;
- OpenFileButton.Click += new EventHandler(OpenFileButton_Click);
- SaveFileButton.FlatAppearance.BorderColor = Color.White;
- SaveFileButton.FlatStyle = FlatStyle.System;
- SaveFileButton.Font = new Font("Segoe UI", 9.75f, FontStyle.Regular, GraphicsUnit.Point, (byte)0);
- SaveFileButton.Location = new Point(330, 424);
- SaveFileButton.Name = "SaveFileButton";
- SaveFileButton.Size = new Size(100, 30);
- SaveFileButton.TabIndex = 0;
- SaveFileButton.Text = "Save File";
- SaveFileButton.UseVisualStyleBackColor = true;
- SaveFileButton.Click += new EventHandler(SaveFileButton_Click_1);
- TopBar.BackColor = Color.Transparent;
- TopBar.Items.AddRange(new ToolStripItem[2]
- {
- (ToolStripItem) SettingsTab,
- (ToolStripItem) SupportTab
- });
- TopBar.Location = new Point(0, 0);
- TopBar.Name = "TopBar";
- TopBar.Size = new Size(850, 24);
- TopBar.TabIndex = 1;
- TopBar.Text = "menuStrip1";
- SettingsTab.DropDownItems.AddRange(new ToolStripItem[3]
- {
- (ToolStripItem) TopmostToggle,
- (ToolStripItem) AutoInjectToggle,
- (ToolStripItem) KillROBLOXButton
- });
- SettingsTab.Name = "SettingsTab";
- SettingsTab.Size = new Size(61, 20);
- SettingsTab.Text = "Settings";
- TopmostToggle.CheckOnClick = true;
- TopmostToggle.Name = "TopmostToggle";
- TopmostToggle.Size = new Size(180, 22);
- TopmostToggle.Text = "Toggle Topmost";
- TopmostToggle.Click += new EventHandler(TopmostToggle_Click);
- AutoInjectToggle.CheckOnClick = true;
- AutoInjectToggle.Name = "AutoInjectToggle";
- AutoInjectToggle.Size = new Size(180, 22);
- AutoInjectToggle.Text = "Auto-Inject";
- KillROBLOXButton.Name = "KillROBLOXButton";
- KillROBLOXButton.Size = new Size(180, 22);
- KillROBLOXButton.Text = "Kill ROBLOX";
- KillROBLOXButton.Click += new EventHandler(KillROBLOXButton_Click);
- SupportTab.DropDownItems.AddRange(new ToolStripItem[1]
- {
- (ToolStripItem) JoinDiscordButton
- });
- SupportTab.Name = "SupportTab";
- SupportTab.Size = new Size(61, 20);
- SupportTab.Text = "Support";
- JoinDiscordButton.Name = "JoinDiscordButton";
- JoinDiscordButton.Size = new Size(180, 22);
- JoinDiscordButton.Text = "Join Discord";
- JoinDiscordButton.Click += new EventHandler(JoinDiscordButton_Click);
- ScriptBox.AutoCompleteBrackets = true;
- ScriptBox.AutoCompleteBracketsList = new char[10]
- {
- '(',
- ')',
- '{',
- '}',
- '[',
- ']',
- '"',
- '"',
- '\'',
- '\''
- };
- ScriptBox.AutoIndentCharsPatterns = "\r\n^\\s*[\\w\\.]+(\\s\\w+)?\\s*(?<range>=)\\s*(?<range>.+)\r\n";
- ScriptBox.AutoScrollMinSize = new Size(27, 14);
- ScriptBox.BackBrush = (Brush)null;
- ScriptBox.BracketsHighlightStrategy = BracketsHighlightStrategy.Strategy2;
- ScriptBox.CharHeight = 14;
- ScriptBox.CharWidth = 8;
- ScriptBox.CommentPrefix = "--";
- ScriptBox.Cursor = Cursors.IBeam;
- ScriptBox.DisabledColor = Color.FromArgb(100, 180, 180, 180);
- ScriptBox.Font = new Font("Courier New", 9.75f);
- ScriptBox.IsReplaceMode = false;
- ScriptBox.Language = Language.Lua;
- ScriptBox.LeftBracket = '(';
- ScriptBox.LeftBracket2 = '{';
- ScriptBox.Location = new Point(12, 27);
- ScriptBox.Name = "ScriptBox";
- ScriptBox.Paddings = new Padding(0);
- ScriptBox.RightBracket = ')';
- ScriptBox.RightBracket2 = '}';
- ScriptBox.SelectionColor = Color.FromArgb(60, 0, 0, (int)byte.MaxValue);
- ScriptBox.ServiceColors = (ServiceColors)componentResourceManager.GetObject("ScriptBox.ServiceColors");
- ScriptBox.Size = new Size(678, 391);
- ScriptBox.TabIndex = 2;
- ScriptBox.Zoom = 100;
- ScriptListBox.Font = new Font("Segoe UI", 9.75f, FontStyle.Regular, GraphicsUnit.Point, (byte)0);
- ScriptListBox.FormattingEnabled = true;
- ScriptListBox.HorizontalScrollbar = true;
- ScriptListBox.ItemHeight = 17;
- ScriptListBox.Location = new Point(696, 25);
- ScriptListBox.Name = "ScriptListBox";
- ScriptListBox.Size = new Size(142, 429);
- ScriptListBox.Sorted = true;
- ScriptListBox.TabIndex = 3;
- ScriptListBox.SelectedIndexChanged += new EventHandler(ScriptListBox_SelectedIndexChanged);
- ScriptListBox.MouseDown += new MouseEventHandler(ScriptListBox_MouseDown);
- AttachButton.FlatAppearance.BorderColor = Color.White;
- AttachButton.FlatStyle = FlatStyle.System;
- AttachButton.Font = new Font("Segoe UI", 9.75f, FontStyle.Regular, GraphicsUnit.Point, (byte)0);
- AttachButton.Location = new Point(590, 424);
- AttachButton.Name = "AttachButton";
- AttachButton.Size = new Size(100, 30);
- AttachButton.TabIndex = 0;
- AttachButton.Text = "Attach";
- AttachButton.UseVisualStyleBackColor = true;
- AttachButton.Click += new EventHandler(AttachButton_Click_1);
- ScriptsContextMenuStrip.Items.AddRange(new ToolStripItem[1]
- {
- (ToolStripItem) RefreshScriptsButton
- });
- ScriptsContextMenuStrip.Name = "ScriptsContextMenuStrip";
- ScriptsContextMenuStrip.Size = new Size(114, 26);
- RefreshScriptsButton.Name = "RefreshScriptsButton";
- RefreshScriptsButton.Size = new Size(113, 22);
- RefreshScriptsButton.Text = "Refresh";
- RefreshScriptsButton.Click += new EventHandler(RefreshScriptsButton_Click);
- AutoScaleDimensions = new SizeF(6f, 13f);
- AutoScaleMode = AutoScaleMode.Font;
- ClientSize = new Size(850, 461);
- Controls.Add((Control)ScriptListBox);
- Controls.Add((Control)ScriptBox);
- Controls.Add((Control)AttachButton);
- Controls.Add((Control)SaveFileButton);
- Controls.Add((Control)OpenFileButton);
- Controls.Add((Control)ClearButton);
- Controls.Add((Control)ExecuteButton);
- Controls.Add((Control)TopBar);
- FormBorderStyle = FormBorderStyle.FixedSingle;
- Icon = (Icon)componentResourceManager.GetObject("$this.Icon");
- MainMenuStrip = TopBar;
- MaximizeBox = false;
- Name = nameof(MainUI);
- Text = "Tundra [Status: Waiting]";
- TopBar.ResumeLayout(false);
- TopBar.PerformLayout();
- ((ISupportInitialize)ScriptBox).EndInit();
- ScriptsContextMenuStrip.ResumeLayout(false);
- ResumeLayout(false);
- PerformLayout();
- }
- }
- }
Add Comment
Please, Sign In to add comment