-
Notifications
You must be signed in to change notification settings - Fork 3
/
Util.cs
215 lines (200 loc) · 6.34 KB
/
Util.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
// Made By SdkSerenity (2014-2018) Util
#region Usings
using JRPC_Client;
using System;
using System.Windows.Forms;
using XDevkit;
#endregion
#region Namespace
namespace Utility
{
#region Utility
class Util
{
#region Shot Callers
public static IXboxConsole Serenity;
public const int patch = 0x60000000;
public static bool connected = false;
public static byte[] lvl = null;
String a = new string(new char[] { });
public static string TitleChecker;
public static void X360Text(string a)
{
object[] arguments = new object[] { Type(), 0xff, 2, (a).ToWCHAR(), 1 };
Serenity.CallVoid(JRPC.ThreadType.Title, "xam.xex", 0x290, arguments);
}
#endregion
#region Connection
public static void Connect()
{
try
{
if (Serenity.Connect(out Serenity))
{
X360Text("Connected! "+ Application.ProductVersion);
connected = true;
}
else
{
MessageBox.Show("Error 101 (Xbox 360 Not Found)");
}
}
catch (Exception ex)
{
}
}
#endregion
#region Features
public static byte[] X99()
{
return new byte[] { 0x00, 0x00, 0x00, 0x63 };
}
private static int Type()
{
return 0x14;
}
public static void SetMemory(uint v1, byte[] v2)
{
try
{
if (connected == true)
{
Serenity.SetMemory(v1, v2);
}
else
{
MessageBox.Show("Not Connected");
}
}
catch (Exception ex)
{
}
}
#endregion
#region Console Information
public static string TitleID()
{
return JRPC.XamGetCurrentTitleId(Serenity).ToString("X");
}
public static void GetTitleID()
{
TitleChecker = TitleID();
}
internal static string Kernal()
{
return JRPC.GetKernalVersion(Serenity).ToString();
}
internal static string XboxIP()
{
return JRPC.XboxIP(Serenity).ToString();
}
internal static string ConsoleType()
{
return JRPC.ConsoleType(Serenity).ToString();
}
#endregion
#region Console Tempatures
internal static string CPUTEMP()
{
return JRPC.GetTemperature(Serenity, JRPC.TemperatureType.CPU).ToString() + "%";
}
internal static string GPUTEMP()
{
return JRPC.GetTemperature(Serenity, JRPC.TemperatureType.GPU).ToString() + "%";
}
internal static string RamTEMP()
{
return JRPC.GetTemperature(Serenity, JRPC.TemperatureType.EDRAM).ToString() + "%";
}
internal static string MOBOTEMP()
{
return JRPC.GetTemperature(Serenity, JRPC.TemperatureType.MotherBoard).ToString() + "%";
}
#endregion
#region Value Editors
public static byte[] _4bit_set_to_0()
{
return new byte[] { 0x00, 0x00, 0x00, 0x00 };
}
public static byte[] NOP()
{
return new byte[] { 0x60, 0x00, 0x00, 0x00 };
}
#endregion
#region Misc
public enum XNotiyLogo
{
ACHIEVEMENT_UNLOCKED = 0x1b,
ACHIEVEMENTS_UNLOCKED = 0x27,
AVATAR_AWARD_UNLOCKED = 0x60,
BLANK = 0x2a,
CANT_CONNECT_XBL_PARTY = 0x38,
CANT_DOWNLOAD_X = 0x20,
CANT_SIGN_IN_MESSENGER = 0x2b,
DEVICE_FULL = 0x63,
DISCONNECTED_FROM_XBOX_LIVE = 11,
DISCONNECTED_XBOX_LIVE_11_MINUTES_REMAINING = 0x2e,
DISCONNECTED_XBOX_LIVE_PARTY = 0x36,
DOWNLOAD = 12,
DOWNLOAD_STOPPED_FOR_X = 0x21,
DOWNLOADED = 0x37,
FAMILY_TIMER_X_TIME_REMAINING = 0x2d,
FLASH_LOGO = 0x17,
FLASHING_CHAT_ICON = 0x26,
FLASHING_CHAT_SYMBOL = 0x41,
FLASHING_DOUBLE_SIDED_HAMMER = 0x10,
FLASHING_FROWNING_FACE = 0x15,
FLASHING_HAPPY_FACE = 0x14,
FLASHING_MUSIC_SYMBOL = 13,
FLASHING_XBOX_CONSOLE = 0x22,
FLASHING_XBOX_LOGO = 0x04,
FOUR_2 = 0x19,
FOUR_3 = 0x1a,
FOUR_5 = 0x30,
FOUR_7 = 0x25,
FOUR_9 = 0x1c,
FRIEND_REQUEST_LOGO = 2,
GAME_INVITE_SENT = 0x16,
GAME_INVITE_SENT_TO_XBOX_LIVE_PARTY = 0x33,
GAMER_PICTURE_UNLOCKED = 0x3b,
GAMERTAG_HAS_JOINED_CHAT = 20,
GAMERTAG_HAS_JOINED_XBL_PARTY = 0x39,
GAMERTAG_HAS_LEFT_CHAT = 0x15,
GAMERTAG_HAS_LEFT_XBL_PARTY = 0x3a,
GAMERTAG_SENT_YOU_A_MESSAGE = 5,
GAMERTAG_SIGNED_IN_OFFLINE = 9,
GAMERTAG_SIGNED_INTO_XBOX_LIVE = 8,
GAMERTAG_SIGNED_IN = 7,
GAMERTAG_SINGED_OUT = 6,
GAMERTAG_WANTS_TO_CHAT = 10,
GAMERTAG_WANTS_TO_CHAT_2 = 0x11,
GAMERTAG_WANTS_TO_TALK_IN_VIDEO_KINECT = 0x1d,
GAMERTAG_WANTS_YOU_TO_JOIN_AN_XBOX_LIVE_PARTY = 0x31,
JOINED_XBL_PARTY = 0x3d,
KICKED_FROM_XBOX_LIVE_PARTY = 0x34,
KINECT_HEALTH_EFFECTS = 0x2f,
MESSENGER_DISCONNECTED = 0x29,
MISSED_MESSENGER_CONVERSATION = 0x2c,
NEW_MESSAGE = 3,
NEW_MESSAGE_LOGO = 1,
NULLED = 0x35,
PAGE_SENT_TO = 0x18,
PARTY_INVITE_SENT = 50,
PLAYER_MUTED = 0x3f,
PLAYER_UNMUTED = 0x40,
PLEASE_RECONNECT_CONTROLLERM = 0x13,
PLEASE_REINSERT_MEMORY_UNIT = 0x12,
PLEASE_REINSERT_USB_STORAGE_DEVICE = 0x3e,
READY_TO_PLAY = 0x1f,
UPDATING = 0x4c,
VIDEO_CHAT_INVITE_SENT = 30,
X_HAS_SENT_YOU_A_NUDGE = 40,
X_SENT_YOU_A_GAME_MESSAGE = 0x23,
XBOX_LOGO = 0
}
#endregion
}
#endregion
}
#endregion
// Made By SdkSerenity (2014-2018) Util