Advertisement
InfinitySound

poopoo.ui

Jul 27th, 2019
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.08 KB | None | 0 0
  1.         private bool IsRobloxRunning(bool CloseRoblox = false)
  2.         {
  3.             Process[] processesByName = Process.GetProcessesByName("RobloxPlayerBeta");
  4.             if (CloseRoblox && processesByName.Length != 0)
  5.             {
  6.                 processesByName[0].Kill();
  7.                 return false;
  8.             }
  9.             return processesByName.Length != 0;
  10.         }
  11.  
  12.         // Token: 0x06000007 RID: 7 RVA: 0x00002090 File Offset: 0x00000290
  13.         private void CloseWindow_Click(object sender, EventArgs e)
  14.         {
  15.             Application.Exit();
  16.         }
  17.  
  18.         // Token: 0x06000008 RID: 8 RVA: 0x00002098 File Offset: 0x00000298
  19.         private void Execute_Click(object sender, EventArgs e)
  20.         {
  21.             if (this.IsRobloxRunning(false))
  22.             {
  23.                 if (this.SourceCode.Text.StartsWith("_EndRoblox()"))
  24.                 {
  25.                     this.IsRobloxRunning(true);
  26.                 }
  27.                 try
  28.                 {
  29.                     SoundInfinityForm.SendLimitedLuaScript(this.SourceCode.Text);
  30.                     return;
  31.                 }
  32.                 catch (Exception ex)
  33.                 {
  34.                     MessageBox.Show(ex.ToString());
  35.                     return;
  36.                 }
  37.             }
  38.             MessageBox.Show("Cannot execute if ROBLOX is not running.");
  39.         }
  40.  
  41.         // Token: 0x06000009 RID: 9 RVA: 0x0000210C File Offset: 0x0000030C
  42.         private void Clear_Click(object sender, EventArgs e)
  43.         {
  44.             this.SourceCode.Text = "";
  45.         }
  46.  
  47.         // Token: 0x0600000A RID: 10 RVA: 0x00002120 File Offset: 0x00000320
  48.         private void OpenFile_Click(object sender, EventArgs e)
  49.         {
  50.             using (OpenFileDialog openFileDialog = new OpenFileDialog())
  51.             {
  52.                 openFileDialog.InitialDirectory = "c:\\";
  53.                 openFileDialog.Filter = "Scripts|*.txt;*.lua";
  54.                 openFileDialog.FilterIndex = 2;
  55.                 openFileDialog.RestoreDirectory = true;
  56.                 if (openFileDialog.ShowDialog() == DialogResult.OK)
  57.                 {
  58.                     using (StreamReader streamReader = new StreamReader(openFileDialog.OpenFile()))
  59.                     {
  60.                         this.SourceCode.Text = streamReader.ReadToEnd();
  61.                     }
  62.                 }
  63.             }
  64.         }
  65.  
  66.         // Token: 0x0600000B RID: 11 RVA: 0x000021B4 File Offset: 0x000003B4
  67.         private void Inject_Click(object sender, EventArgs e)
  68.         {
  69.             if (this.IsRobloxRunning(false))
  70.             {
  71.                 SoundInfinityForm.LaunchExploit();
  72.                 return;
  73.             }
  74.             MessageBox.Show("Cannot Inject if ROBLOX is not running.");
  75.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement