This repository has been archived by the owner on Jul 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Form1.cs
275 lines (233 loc) · 8.24 KB
/
Form1.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Net;
using System.Reflection;
using System.Diagnostics;
using System.IO;
using WeAreDevs_API;
namespace _0x
{
public partial class Form1 : Form
{
ExploitAPI api = new ExploitAPI();
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
fastColoredTextBox1.Language = FastColoredTextBoxNS.Language.Lua;
listBox1.Refresh();
listBox1.Items.Clear();
Functions.PopulateListBox(listBox1, "./scripts", "*.txt");
Functions.PopulateListBox(listBox1, "./scripts", "*.lua");
Directory.CreateDirectory("scripts");
checkinjected();
panel2.Hide();
timer1.Start();
fastColoredTextBox1.Refresh();
api.IsUpdated();
WebClient webclientupdate = new WebClient();
WebClient WebClient = new WebClient();
if (!webclientupdate.DownloadString("https://pastebin.com/raw/2qWU0HQv").Contains("0.3"))
if (MessageBox.Show("New Upate\nyou want to download it?", "New update", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
{
WebClient auto = new WebClient();
string file = WebClient.DownloadString("https://pastebin.com/raw/Fktjh448");
WebClient.DownloadFile(file, "0x.zip");
Application.Exit();
string batchCommands = string.Empty;
string exeFileName = Assembly.GetExecutingAssembly().CodeBase.Replace("file:///", string.Empty).Replace("/", "\\");
batchCommands += "@ECHO OFF\n";
batchCommands += "title Updating do not close or touch!!!\n";
batchCommands += "timeout /T 3 /NOBREAK > nul\n";
batchCommands += "echo j | del /F ";
batchCommands += exeFileName + "\n";
batchCommands += "tar -xf 0x.zip > nul\n";
batchCommands += "del 0x.zip > nul\n";
batchCommands += "echo j | del updater.bat > nul\n";
File.WriteAllText("updater.bat", batchCommands);
Process.Start("updater.bat");
}
else
{
Application.Exit();
}
try
{
this.BackgroundImage = Image.FromFile("bg.png");
this.Refresh();
}
catch (Exception)
{
try
{
this.BackgroundImage = Image.FromFile("bg.jpg");
this.Refresh();
}
catch (Exception)
{
}
try
{
System.Media.SoundPlayer player3 = new System.Media.SoundPlayer();
player3.SoundLocation = "bg.wav";
player3.PlayLooping();
}
catch (Exception)
{
}
}
}
private void button1_Click(object sender, EventArgs e)
{
this.Close();
}
private void button2_Click(object sender, EventArgs e)
{
this.WindowState = FormWindowState.Minimized;
}
private void button3_Click(object sender, EventArgs e)
{
fastColoredTextBox1.Clear();
}
private void button5_Click(object sender, EventArgs e)
{
OpenFileDialog openFileDialog = new OpenFileDialog();
if (openFileDialog.ShowDialog() == DialogResult.OK)
{
string text = File.ReadAllText(openFileDialog.FileName);
this.fastColoredTextBox1.Text = text;
}
}
private void button7_Click(object sender, EventArgs e)
{
timer2.Start();
label5.Refresh();
api.IsUpdated();
api.LaunchExploit();
}
private void button10_Click(object sender, EventArgs e)
{
listBox1.Items.Clear();
Functions.PopulateListBox(listBox1, "./scripts", "*.txt");
Functions.PopulateListBox(listBox1, "./scripts", "*.lua");
}
private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
{
fastColoredTextBox1.Text = File.ReadAllText($"./scripts/{listBox1.SelectedItem}");
}
private void button6_Click(object sender, EventArgs e)
{
SaveFileDialog saveFileDialog1 = new SaveFileDialog();
saveFileDialog1.DefaultExt = "txt";
saveFileDialog1.AddExtension = true;
if (saveFileDialog1.ShowDialog() == DialogResult.OK)
{
using (Stream s = File.Open(saveFileDialog1.FileName, FileMode.CreateNew))
using (StreamWriter sw = new StreamWriter(s))
{
sw.Write(fastColoredTextBox1.Text);
}
}
}
private void button4_Click(object sender, EventArgs e)
{
string script = fastColoredTextBox1.Text;
api.SendLuaScript(script);
}
private void label2_Click(object sender, EventArgs e)
{
}
private void timer1_Tick(object sender, EventArgs e)
{
label5.Refresh();
label2.Text = DateTime.Now.ToString();
}
private void panel2_Paint(object sender, PaintEventArgs e)
{
}
private void button12_Click(object sender, EventArgs e)
{
panel2.Hide();
}
private void button8_Click(object sender, EventArgs e)
{
panel2.Show();
}
private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
if (checkBox1.Checked == true)
{
this.TopMost = true;
}
else
if (checkBox1.Checked == false)
{
this.TopMost = false;
}
}
private void button14_Click(object sender, EventArgs e)
{
Process.Start("https://discord.gg/MSHCS8u7eJ");
}
private void button15_Click(object sender, EventArgs e)
{
Process.Start("https://github.com/Pieeees/0x");
}
private void button9_Click(object sender, EventArgs e)
{
api.DoBTools();
}
private void button16_Click(object sender, EventArgs e)
{
api.ToggleClickTeleport();
}
private void button17_Click(object sender, EventArgs e)
{
api.ToggleFloat();
}
private void checkinjected()
{
if (api.isAPIAttached())
{
label5.Text = "Injected";
}
else
{
label5.Text = "Uninjected";
}
}
private void label5_Click(object sender, EventArgs e)
{
api.isAPIAttached();
}
private void panel1_Paint(object sender, PaintEventArgs e)
{
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
}
private void button18_Click(object sender, EventArgs e)
{
string username = textBox1.Text;
api.TeleportToPlayer(username);
}
private void button19_Click(object sender, EventArgs e)
{
api.SendLuaScript(new WebClient().DownloadString("https://pastebin.com/raw/kHe8NhT6"));
}
private void timer2_Tick(object sender, EventArgs e)
{
label5.Update();
label5.Refresh();
}
}
}