-
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Game spoofer
- Loading branch information
Showing
5 changed files
with
350 additions
and
32 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
using Newtonsoft.Json.Linq; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
using System.Data; | ||
using System.Drawing; | ||
using System.Linq; | ||
using System.Net.Http; | ||
using System.Net.Http.Json; | ||
using System.Reflection.Metadata; | ||
using System.Text; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
using System.Windows.Forms; | ||
using static System.Windows.Forms.AxHost; | ||
using System.Diagnostics; | ||
|
||
namespace Xbox_Achievement_Unlocker | ||
{ | ||
public partial class Game_Spoofer : Form | ||
{ | ||
private Stopwatch stopwatch; | ||
public Game_Spoofer() | ||
{ | ||
InitializeComponent(); | ||
} | ||
static HttpClientHandler handler = new HttpClientHandler() | ||
{ | ||
AutomaticDecompression = System.Net.DecompressionMethods.GZip | System.Net.DecompressionMethods.Deflate | ||
}; | ||
HttpClient client = new HttpClient(handler); | ||
|
||
bool active; | ||
async void BTN_Spoof_Click(object sender, EventArgs e) | ||
{ | ||
BTN_Spoof.Enabled = false; | ||
client.DefaultRequestHeaders.Clear(); | ||
client.DefaultRequestHeaders.Add("x-xbl-contract-version", "2"); | ||
client.DefaultRequestHeaders.Add("Accept-Encoding", "gzip, deflate"); | ||
client.DefaultRequestHeaders.Add("accept", "application/json"); | ||
client.DefaultRequestHeaders.Add("Authorization", MainWindow.xauthtoken); | ||
client.DefaultRequestHeaders.Add("accept-language", "en-GB"); | ||
|
||
// | ||
StringContent requestbody = new StringContent("{\"pfns\":null,\"titleIds\":[\"" + TXT_TID.Text + "\"]}"); | ||
var jsonresponse = (dynamic)JObject.Parse(await client.PostAsync("https://titlehub.xboxlive.com/users/xuid(" + MainWindow.xuid + ")/titles/batch/decoration/GamePass,Achievement,Stats", requestbody).Result.Content.ReadAsStringAsync()); | ||
|
||
TXT_SpoofedGame.Text = "Currently Spoofing: " + jsonresponse.titles[0].name.ToString(); | ||
BTN_SpoofStop.Enabled = true; | ||
Task.Run(() => Spoofing()); | ||
} | ||
|
||
public async Task Spoofing() | ||
{ | ||
client.DefaultRequestHeaders.Clear(); | ||
client.DefaultRequestHeaders.Add("x-xbl-contract-version", "3"); | ||
client.DefaultRequestHeaders.Add("accept", "application/json"); | ||
client.DefaultRequestHeaders.Add("Authorization", MainWindow.xauthtoken); | ||
|
||
var requestbody = new StringContent("{\"titles\":[{\"expiration\":600,\"id\":" + TXT_TID.Text + ",\"state\":\"active\",\"sandbox\":\"RETAIL\"}]}", encoding: Encoding.UTF8, "application/json"); | ||
stopwatch.Start(); | ||
await client.PostAsync("https://presence-heartbeat.xboxlive.com/users/xuid(" + MainWindow.xuid + ")/devices/current", requestbody); | ||
var i = 0; | ||
active = true; | ||
while (active) | ||
{ | ||
if (i == 60) | ||
{ | ||
await client.PostAsync("https://presence-heartbeat.xboxlive.com/users/xuid(" + MainWindow.xuid + ")/devices/current", requestbody); | ||
i = 0; | ||
} | ||
else | ||
{ | ||
if (!active) | ||
{ | ||
break; | ||
} | ||
i++; | ||
} | ||
Thread.Sleep(1000); | ||
|
||
} | ||
BTN_Spoof.Invoke(new Action(() => BTN_Spoof.Enabled = true)); | ||
BTN_SpoofStop.Invoke(new Action(() => BTN_SpoofStop.Enabled = false)); | ||
} | ||
|
||
private void BTN_SpoofStop_Click(object sender, EventArgs e) | ||
{ | ||
active = false; | ||
stopwatch.Stop(); | ||
stopwatch.Reset(); | ||
LBL_Timer.Text = "For: N/A"; | ||
TXT_SpoofedGame.Text = "Currently Spoofing: N/A"; | ||
} | ||
|
||
private void Game_Spoofer_Load(object sender, EventArgs e) | ||
{ | ||
stopwatch = new Stopwatch(); | ||
} | ||
|
||
private void SpoofingTime_Tick(object sender, EventArgs e) | ||
{ | ||
LBL_Timer.Text = "For: " + string.Format("{0:hh\\:mm\\:ss}", stopwatch.Elapsed); | ||
|
||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<root> | ||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | ||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | ||
<xsd:element name="root" msdata:IsDataSet="true"> | ||
<xsd:complexType> | ||
<xsd:choice maxOccurs="unbounded"> | ||
<xsd:element name="metadata"> | ||
<xsd:complexType> | ||
<xsd:sequence> | ||
<xsd:element name="value" type="xsd:string" minOccurs="0" /> | ||
</xsd:sequence> | ||
<xsd:attribute name="name" use="required" type="xsd:string" /> | ||
<xsd:attribute name="type" type="xsd:string" /> | ||
<xsd:attribute name="mimetype" type="xsd:string" /> | ||
<xsd:attribute ref="xml:space" /> | ||
</xsd:complexType> | ||
</xsd:element> | ||
<xsd:element name="assembly"> | ||
<xsd:complexType> | ||
<xsd:attribute name="alias" type="xsd:string" /> | ||
<xsd:attribute name="name" type="xsd:string" /> | ||
</xsd:complexType> | ||
</xsd:element> | ||
<xsd:element name="data"> | ||
<xsd:complexType> | ||
<xsd:sequence> | ||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | ||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | ||
</xsd:sequence> | ||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | ||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | ||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | ||
<xsd:attribute ref="xml:space" /> | ||
</xsd:complexType> | ||
</xsd:element> | ||
<xsd:element name="resheader"> | ||
<xsd:complexType> | ||
<xsd:sequence> | ||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | ||
</xsd:sequence> | ||
<xsd:attribute name="name" type="xsd:string" use="required" /> | ||
</xsd:complexType> | ||
</xsd:element> | ||
</xsd:choice> | ||
</xsd:complexType> | ||
</xsd:element> | ||
</xsd:schema> | ||
<resheader name="resmimetype"> | ||
<value>text/microsoft-resx</value> | ||
</resheader> | ||
<resheader name="version"> | ||
<value>2.0</value> | ||
</resheader> | ||
<resheader name="reader"> | ||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | ||
</resheader> | ||
<resheader name="writer"> | ||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | ||
</resheader> | ||
<metadata name="SpoofingTime.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | ||
<value>17, 17</value> | ||
</metadata> | ||
</root> |
Oops, something went wrong.