Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private bool IsRobloxRunning(bool CloseRoblox = false)
- {
- Process[] processesByName = Process.GetProcessesByName("RobloxPlayerBeta");
- if (CloseRoblox && processesByName.Length != 0)
- {
- processesByName[0].Kill();
- return false;
- }
- return processesByName.Length != 0;
- }
- // Token: 0x06000007 RID: 7 RVA: 0x00002090 File Offset: 0x00000290
- private void CloseWindow_Click(object sender, EventArgs e)
- {
- Application.Exit();
- }
- // Token: 0x06000008 RID: 8 RVA: 0x00002098 File Offset: 0x00000298
- private void Execute_Click(object sender, EventArgs e)
- {
- if (this.IsRobloxRunning(false))
- {
- if (this.SourceCode.Text.StartsWith("_EndRoblox()"))
- {
- this.IsRobloxRunning(true);
- }
- try
- {
- SoundInfinityForm.SendLimitedLuaScript(this.SourceCode.Text);
- return;
- }
- catch (Exception ex)
- {
- MessageBox.Show(ex.ToString());
- return;
- }
- }
- MessageBox.Show("Cannot execute if ROBLOX is not running.");
- }
- // Token: 0x06000009 RID: 9 RVA: 0x0000210C File Offset: 0x0000030C
- private void Clear_Click(object sender, EventArgs e)
- {
- this.SourceCode.Text = "";
- }
- // Token: 0x0600000A RID: 10 RVA: 0x00002120 File Offset: 0x00000320
- private void OpenFile_Click(object sender, EventArgs e)
- {
- using (OpenFileDialog openFileDialog = new OpenFileDialog())
- {
- openFileDialog.InitialDirectory = "c:\\";
- openFileDialog.Filter = "Scripts|*.txt;*.lua";
- openFileDialog.FilterIndex = 2;
- openFileDialog.RestoreDirectory = true;
- if (openFileDialog.ShowDialog() == DialogResult.OK)
- {
- using (StreamReader streamReader = new StreamReader(openFileDialog.OpenFile()))
- {
- this.SourceCode.Text = streamReader.ReadToEnd();
- }
- }
- }
- }
- // Token: 0x0600000B RID: 11 RVA: 0x000021B4 File Offset: 0x000003B4
- private void Inject_Click(object sender, EventArgs e)
- {
- if (this.IsRobloxRunning(false))
- {
- SoundInfinityForm.LaunchExploit();
- return;
- }
- MessageBox.Show("Cannot Inject if ROBLOX is not running.");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement