Draggable:
public Point mouseLocation;
mouseLocation = new Point( -e.X, -e.Y);
if(e.Button == MouseButtons.Left)
{
Point mousePose = Control.MousePosition;
mousePose.Offset(mouseLocation.X, mouseLocation.Y);
Location = mousePose;
}
Injection:
switch (cloudyapi.ExploitApi.Inject(Application.StartupPath + "\\bin\\api\\
CeleryInject.exe", true, false))
{
}
Execution:
cloudyapi.ExploitApi.Execute(Editor.Text);
Clear:
Editor.Text = "";
Open File:
OpenFileDialog openFileDialog1 = new OpenFileDialog();
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
openFileDialog1.Title = "Open";
Editor.Text = File.ReadAllText(openFileDialog1.FileName);
}
Save File:
SaveFileDialog saveFileDialog1 = new SaveFileDialog();
if (saveFileDialog1.ShowDialog() == DialogResult.OK)
{
string textToSave = Editor.Text;
using (Stream s = File.Open(saveFileDialog1.FileName, FileMode.Create))
using (StreamWriter sw = new StreamWriter(s))
{
sw.Write(textToSave);
}
}
Kill Roblox/Quit Roblox:
cloudyapi.ExploitApi.QuitRoblox();
Status (Under Injection):
case cloudyapi.InjectionStatus.SUCCESS:
MessageBox.Show("Attached");
break;
case cloudyapi.InjectionStatus.ALREADY_INJECTED:
MessageBox.Show("Attached");
break;
case cloudyapi.InjectionStatus.ALREADY_INJECTING:
MessageBox.Show("Attaching");
break;
case cloudyapi.InjectionStatus.FAILED:
MessageBox.Show("Not Attached");
break;
Close:
Close();
Minimized:
this.WindowState = FormWindowState.Minimized;
Monaco:
static string LatestRecievedText;
public void SetText(string Text)
{
var currentBrowser =
visualStudioTabControl1.SelectedTab.Controls.OfType<ChromiumWebBrowser>().FirstOrDe
fault();
if (currentBrowser != null)
{
currentBrowser.ExecuteScriptAsync("SetText(\"" +
HttpUtility.JavaScriptStringEncode(Text) + "\")");
}
}
public async Task<string> GetText()
{
var currentBrowser =
visualStudioTabControl1.SelectedTab.Controls.OfType<ChromiumWebBrowser>().FirstOrDe
fault();
if (currentBrowser != null)
{
var scriptResponse = await
currentBrowser.EvaluateScriptAsync("GetText();");
if (scriptResponse.Success)
{
LatestRecievedText = scriptResponse.Result?.ToString();
}
}
return LatestRecievedText;
}
private void Form1_Load(object sender, EventArgs e)
{
Editor.Load(Application.StartupPath + "\\bin\\DebugMonaco\\monaco.html");
}
remove Tab:
if (visualStudioTabControl1.TabCount > 1)
{
int tabIndexToRemove = visualStudioTabControl1.SelectedIndex;
visualStudioTabControl1.TabPages.RemoveAt(tabIndexToRemove);
//btns
AddTabButton.Left -= 75;
RemoveTabButton.Left -= 77;
if (visualStudioTabControl1.TabCount <= 7)
{
AddTabButton.Show();
}
else
{
AddTabButton.Hide();
}
if (visualStudioTabControl1.TabCount == 1)
{
RemoveTabButton.Hide();
}
}
add Tab:
TabPage newTab = new TabPage();
ChromiumWebBrowser textBox = new ChromiumWebBrowser();
newTab.Name = "Script" + (visualStudioTabControl1.TabCount + 1);
newTab.Text = "New Tab ";
newTab.Parent = visualStudioTabControl1;
textBox.Dock = DockStyle.Fill;
textBox.Name = "Editor";
textBox.Parent = newTab;
textBox.Load(Application.StartupPath + "\\bin\\DebugMonaco\\monaco.html");
visualStudioTabControl1.SelectTab(newTab);
AddTabButton.Left = AddTabButton.Left + 75;
RemoveTabButton.Left = RemoveTabButton.Left + 77;
if (visualStudioTabControl1.TabCount == 7)
{
AddTabButton.Hide();
}
if (visualStudioTabControl1.TabCount > 1)
{
RemoveTabButton.Show();
}
ListBox:
SetText(File.ReadAllText($"./Scripts/{listBox1.SelectedItem}"));
functions:
class functions
{
public static void PopulateListBox(System.Windows.Forms.ListBox lsb, string
Folder, string FileType)
{
DirectoryInfo dinfo = new DirectoryInfo(Folder);
FileInfo[] Files = dinfo.GetFiles(FileType);
foreach (FileInfo file in Files)
{
lsb.Items.Add(file.Name);
}
}
}
refresh:
listBox1.Items.Clear();
functions.PopulateListBox(listBox1, "./Scripts", "*.lua");
functions.PopulateListBox(listBox1, "./Scripts", "*.txt");
Options:
Form2 Options = new Form2();
Options.Show();
Close Options:
this.Close();
Minimize Options:
this.WindowState = FormWindowState.Minimized;