-
Notifications
You must be signed in to change notification settings - Fork 0
/
Form1.cs
300 lines (230 loc) · 9.69 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
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
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 XboxCore.Xbox.Connection;
using XDevkit;
using XRPCLib;
namespace JTAGTool
{
public partial class Form1 : Form
{
XRPC console = new XRPC();
IXboxConsole xboxConsole;
string cpuTemp, gpuTemp, edramTemp, moboTemp;
public bool connected = false;
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
if (connected == false)
button5.Enabled = false;
label1.Text = "IP: Waiting";
label2.Text = "CPU: waiting";
label3.Text = "GPU: waiting";
label4.Text = "EDRAM: waiting";
label5.Text = "MOBO: waiting";
label1.ForeColor = Color.Red;
label2.ForeColor = Color.Red;
label3.ForeColor = Color.Red;
label4.ForeColor = Color.Red;
label5.ForeColor = Color.Red;
label6.ForeColor = Color.Red;
}
private void button1_Click(object sender, EventArgs e)
{
console.Connect();
xboxConsole.Connect(out xboxConsole);
label1.Text = "Status: connected to ";
string consoleIP = xboxConsole.XboxIP();
label1.Text += consoleIP;
label1.ForeColor = Color.Green;
if (backgroundWorker1.IsBusy == false)
backgroundWorker1.RunWorkerAsync();
if (console.activeConnection == true)
{
MessageBox.Show("Connected!");
connected = true;
button5.Enabled = true;
cpuTemp = xboxConsole.GetTemperature(JRPC.TemperatureType.CPU).ToString();
gpuTemp = xboxConsole.GetTemperature(JRPC.TemperatureType.GPU).ToString();
edramTemp = xboxConsole.GetTemperature(JRPC.TemperatureType.EDRAM).ToString();
moboTemp = xboxConsole.GetTemperature(JRPC.TemperatureType.MotherBoard).ToString();
label2.Text = "CPU: " +cpuTemp + "°C";
label3.Text = "GPU: "+ gpuTemp + "°C";
label4.Text = "EDRAM: " +edramTemp + "°C";
label5.Text = "MOBO: " +moboTemp + "°C";
label2.ForeColor = Color.Green;
label3.ForeColor = Color.Green;
label4.ForeColor = Color.Green;
label5.ForeColor = Color.Green;
string[] subs = xboxConsole.RunningProcessInfo.ProgramName.ToString().Split('\\');
if(subs.Length == 6)
{
label6.Text = "Current process: Xbox 360 Dashboard";
label6.ForeColor = Color.Green;
}
else
{
label6.Text = "Current process: " + subs[5] + " " + subs[6];
label6.ForeColor = Color.Green;
}
}
}
private void button4_Click(object sender, EventArgs e)
{
console.SetMemory(0x82259BC8, new byte[] { 0x60, 0x00, 0x00, 0x00 });
xboxConsole.CallVoid(0x8242FB70, new object[] { -1, 0, "; \"no recoil given\"" });
}
private void button6_Click(object sender, EventArgs e)
{
console.SetMemory(0xC3786FD8, new byte[] { 0x00, 0x0F, 0x42, 0x40});
xboxConsole.CallVoid(0x8242FB70, new object[] { -1, 0, "; \"max money given\"" });
}
private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
{
while (true)
{
if (checkBox1.Checked) // BO II
{
uint[] addresses = { 0xC3781E3C,0xC3781E44,0xC3781E40 };
for (int i = 0; i < addresses.Length; i++)
{
console.SetMemory(addresses[i], new byte[] { 0x27, 0x0F });
}
}
if (checkBox2.Checked) // BO I
{
console.SetMemory(0xC35126DC, new byte[] { 0x64 });
}
if (checkBox3.Checked) // BO I
{
//uint[] addresses = { 0xC3381BE8, 0xC3381BF8, 0xC3381C00 };
uint firstWeapon = 0xC3381BE8;
uint akimboAmmo = 0xC3381C08;
uint secondWeapon = 0xC3381BF8;
uint thirdWeapon = 0xC3381C00; // mule kick
console.SetMemory(firstWeapon, new byte[] { 0x64 });
console.SetMemory(secondWeapon, new byte[] { 0x64 });
console.SetMemory(thirdWeapon, new byte[] { 0x64});
console.SetMemory(akimboAmmo, new byte[] { 0x64 });
//tried to do a for loop for this one but didnt work xD
}
if (checkBox4.Checked)
{
console.SetMemory(0xC458B28C, new byte[] { 0x64 });
console.SetMemory(0xC458B270, new byte[] { 0x64 });
console.SetMemory(0xC458B238, new byte[] { 0x64 });
//uint[] adresses = { 0xC458B28C, 0xC458B270, 0xC458B238 };
/*for(int i =0; i < adresses.Length; i++)
{
console.SetMemory(adresses[i], new byte[] { 0x00,0xFF,0xFF, 0xFF });
}*/
}
if (checkBox5.Checked) // god mode WaW
{
console.SetMemory(0xC470A44C, new byte[] { 0x00, 0xFF,0xFF, 0xFF });
}
}
}
private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
xboxConsole.CallVoid(0x8242FB70, new object[] { -1, 0, "; \"infinite ammo ON\"" });
}
private void button2_Click(object sender, EventArgs e)
{
console.SetMemory(0xC33833B4, new byte[] { 0x00, 0x0F, 0x42, 0x40 });
}
private void tabPage2_Click(object sender, EventArgs e)
{
}
private void button3_Click_1(object sender, EventArgs e)
{
console.SetMemory(0xC458CCBC, BitConverter.GetBytes(999999));
//console.Notify(XRPC.XNotiyLogo.NEW_MESSAGE_LOGO, "Shoot a zombie for the score to change");
}
private void button9_Click(object sender, EventArgs e)
{
console.SetMemory(0x821154A4, new byte[] { 0x60, 0x00, 0x00, 0x00 });
}
private void button5_Click(object sender, EventArgs e)
{
cpuTemp = xboxConsole.GetTemperature(JRPC.TemperatureType.CPU).ToString();
gpuTemp = xboxConsole.GetTemperature(JRPC.TemperatureType.GPU).ToString();
edramTemp = xboxConsole.GetTemperature(JRPC.TemperatureType.EDRAM).ToString();
moboTemp = xboxConsole.GetTemperature(JRPC.TemperatureType.MotherBoard).ToString();
label2.Text = "CPU: " + cpuTemp + "°C";
label3.Text = "GPU: " + gpuTemp + "°C";
label4.Text = "EDRAM: " + edramTemp + "°C";
label5.Text = "MOBO: " + moboTemp + "°C";
label2.ForeColor = Color.Green;
label3.ForeColor = Color.Green;
label4.ForeColor = Color.Green;
label5.ForeColor = Color.Green;
string[] subs = xboxConsole.RunningProcessInfo.ProgramName.ToString().Split('\\');
if (subs.Length == 6)
{
label6.Text = "Current process: Xbox 360 Dashboard";
}
else
{
label6.Text = "Current process: " + subs[5] + " " + subs[6];
}
}
private void checkBox2_CheckedChanged(object sender, EventArgs e)
{
}
private void button7_Click(object sender, EventArgs e)
{
uint points = 0xC9D50948;
console.SetMemory(points, BitConverter.GetBytes(999999));
}
private void button7_Click_1(object sender, EventArgs e)
{
uint godMode = 0x1786406;
console.SetMemory(godMode, new byte[] {0xff, 0xff,0xff });
}
private void button7_Click_2(object sender, EventArgs e)
{
uint laser = 0x82255E1C;
console.SetMemory(laser, new byte[] { 0x43, 0x11, 0x00, 0x01 });
}
public void sendText(string text)
{
}
private void checkBox6_CheckedChanged(object sender, EventArgs e)
{
xboxConsole.WriteBool(0x823229D0, true);
}
private void button8_Click(object sender, EventArgs e)
{
xboxConsole.WriteFloat(0x82085654, 500);
xboxConsole.WriteFloat(0x82003FD4, 0);
}
private void checkBox3_CheckedChanged(object sender, EventArgs e)
{
}
private void button12_Click_1(object sender, EventArgs e)
{
xboxConsole.WriteFloat(0x82002B60, 1000);
}
private void button10_Click(object sender, EventArgs e)
{
console.SetMemory(0x821614D4, new byte[] { 0x60, 0x00, 0x00, 0x00 });
}
private void button11_Click(object sender, EventArgs e)
{
console.SetMemory(0x8210E58C, new byte[] { 0x3B, 0x80, 0x00, 0x01 });
}
private void button12_Click(object sender, EventArgs e)
{
}
}
}