mirror of
https://silica.codes/BedrockReverse/PremiumPacksInstaller.git
synced 2025-08-03 12:11:47 +12:00
Upload v1.0
This commit is contained in:
parent
02a911de75
commit
b3a80a479a
46 changed files with 76594 additions and 0 deletions
6
PremiumPackInstaller/App.config
Normal file
6
PremiumPackInstaller/App.config
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
|
||||
</startup>
|
||||
</configuration>
|
147
PremiumPackInstaller/MainWindow.Designer.cs
generated
Normal file
147
PremiumPackInstaller/MainWindow.Designer.cs
generated
Normal file
|
@ -0,0 +1,147 @@
|
|||
namespace PremiumPackInstaller
|
||||
{
|
||||
partial class MainWindow
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainWindow));
|
||||
this.getMoreSkinsList = new System.Windows.Forms.ListBox();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.refreshButton = new System.Windows.Forms.Button();
|
||||
this.clientVersion = new System.Windows.Forms.TextBox();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.replacePack = new System.Windows.Forms.Button();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// getMoreSkinsList
|
||||
//
|
||||
this.getMoreSkinsList.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.getMoreSkinsList.FormattingEnabled = true;
|
||||
this.getMoreSkinsList.Location = new System.Drawing.Point(12, 61);
|
||||
this.getMoreSkinsList.Name = "getMoreSkinsList";
|
||||
this.getMoreSkinsList.Size = new System.Drawing.Size(776, 355);
|
||||
this.getMoreSkinsList.TabIndex = 0;
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(9, 41);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(109, 13);
|
||||
this.label1.TabIndex = 1;
|
||||
this.label1.Text = "\"Get More\" Skins List";
|
||||
//
|
||||
// refreshButton
|
||||
//
|
||||
this.refreshButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.refreshButton.Enabled = false;
|
||||
this.refreshButton.Location = new System.Drawing.Point(692, 34);
|
||||
this.refreshButton.Name = "refreshButton";
|
||||
this.refreshButton.Size = new System.Drawing.Size(96, 26);
|
||||
this.refreshButton.TabIndex = 2;
|
||||
this.refreshButton.Text = "Refresh List";
|
||||
this.refreshButton.UseVisualStyleBackColor = true;
|
||||
this.refreshButton.Click += new System.EventHandler(this.refreshButton_Click);
|
||||
//
|
||||
// clientVersion
|
||||
//
|
||||
this.clientVersion.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.clientVersion.Location = new System.Drawing.Point(728, 8);
|
||||
this.clientVersion.Name = "clientVersion";
|
||||
this.clientVersion.Size = new System.Drawing.Size(60, 20);
|
||||
this.clientVersion.TabIndex = 3;
|
||||
this.clientVersion.Text = "1.19.20";
|
||||
this.clientVersion.TextChanged += new System.EventHandler(this.clientVersion_TextChanged);
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(648, 9);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(74, 13);
|
||||
this.label2.TabIndex = 4;
|
||||
this.label2.Text = "Client Version:";
|
||||
//
|
||||
// replacePack
|
||||
//
|
||||
this.replacePack.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.replacePack.Enabled = false;
|
||||
this.replacePack.Location = new System.Drawing.Point(15, 422);
|
||||
this.replacePack.Name = "replacePack";
|
||||
this.replacePack.Size = new System.Drawing.Size(773, 28);
|
||||
this.replacePack.TabIndex = 5;
|
||||
this.replacePack.Text = "Replace with new pack";
|
||||
this.replacePack.UseVisualStyleBackColor = true;
|
||||
this.replacePack.Click += new System.EventHandler(this.replacePack_Click);
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(12, 8);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(191, 26);
|
||||
this.label3.TabIndex = 6;
|
||||
this.label3.Text = "Discovered by and programmed by Li - \r\nTrans rights are Human Rights";
|
||||
//
|
||||
// MainWindow
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(800, 465);
|
||||
this.Controls.Add(this.label3);
|
||||
this.Controls.Add(this.replacePack);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.clientVersion);
|
||||
this.Controls.Add(this.refreshButton);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.getMoreSkinsList);
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.Name = "MainWindow";
|
||||
this.Text = "Premium Packs Installer";
|
||||
this.Load += new System.EventHandler(this.MainWindow_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.ListBox getMoreSkinsList;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Button refreshButton;
|
||||
private System.Windows.Forms.TextBox clientVersion;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.Button replacePack;
|
||||
private System.Windows.Forms.Label label3;
|
||||
}
|
||||
}
|
||||
|
216
PremiumPackInstaller/MainWindow.cs
Normal file
216
PremiumPackInstaller/MainWindow.cs
Normal file
|
@ -0,0 +1,216 @@
|
|||
using McCrypt;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.IO.Compression;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace PremiumPackInstaller
|
||||
{
|
||||
public partial class MainWindow : Form
|
||||
{
|
||||
public Dictionary<String, String> SkinpacksList = new Dictionary<String, String>();
|
||||
public Random rng = new Random();
|
||||
|
||||
string LocalAppdata;
|
||||
string MinecraftFolder;
|
||||
string LocalState;
|
||||
string PremiumCache;
|
||||
string PremiumSkins;
|
||||
|
||||
public MainWindow()
|
||||
{
|
||||
LocalAppdata = Environment.GetEnvironmentVariable("LOCALAPPDATA");
|
||||
MinecraftFolder = Path.Combine(LocalAppdata, "Packages", "Microsoft.MinecraftUWP_8wekyb3d8bbwe");
|
||||
LocalState = Path.Combine(MinecraftFolder, "LocalState");
|
||||
PremiumCache = Path.Combine(LocalState, "premium_cache");
|
||||
PremiumSkins = Path.Combine(PremiumCache, "skin_packs");
|
||||
|
||||
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void LoginPlayfab()
|
||||
{
|
||||
Task.Run(() =>
|
||||
{
|
||||
try
|
||||
{
|
||||
PlayFab.PlayFab.PullEntityTokenOutOfMyAss();
|
||||
RefreshItemList();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
MessageBox.Show(e.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private string FindInPremiumCache(string uuid)
|
||||
{
|
||||
foreach(string premiumSkinFolder in Directory.GetDirectories(PremiumSkins, "*", SearchOption.TopDirectoryOnly))
|
||||
{
|
||||
try
|
||||
{
|
||||
string manifestJson = Path.Combine(premiumSkinFolder, "manifest.json");
|
||||
if (Manifest.ReadUUID(manifestJson) == uuid)
|
||||
return premiumSkinFolder;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
byte[] randomBytes = new byte[8];
|
||||
rng.NextBytes(randomBytes);
|
||||
string name = Convert.ToBase64String(randomBytes);
|
||||
|
||||
if (Directory.Exists(name))
|
||||
return FindInPremiumCache(uuid);
|
||||
|
||||
return Path.Combine(PremiumSkins, name);
|
||||
}
|
||||
|
||||
private void RefreshPlayfab()
|
||||
{
|
||||
SkinpacksList.Clear();
|
||||
|
||||
dynamic results = PlayFab.PlayFab.Search("", "((contentType eq 'MarketplaceDurableCatalog_V1.2' and contents/any(c: c/minClientVersion le '" + clientVersion.Text + "' and c/maxClientVersion gt '" + clientVersion.Text + "'))) and platforms/any(tp: tp eq 'uwp.store' and tp eq 'title.bedrockvanilla') and (tags/any(t: t eq 'skinpack' or t eq 'mashup' or t eq 'has_skinpack')) and not tags/any(t: t eq 'hidden_offer' or t eq 'realms_plus')", 0, "startDate desc");
|
||||
foreach (dynamic result in results.Items)
|
||||
{
|
||||
|
||||
JObject resultTitle = result.Title;
|
||||
if (resultTitle.First == null)
|
||||
continue;
|
||||
|
||||
if (resultTitle.First.First == null)
|
||||
continue;
|
||||
|
||||
string packTitle = resultTitle.First.First.ToString();
|
||||
|
||||
if (result.DisplayProperties != null)
|
||||
if (result.DisplayProperties.packIdentity != null)
|
||||
foreach (dynamic identity in result.DisplayProperties.packIdentity)
|
||||
{
|
||||
if (identity.type.ToString() == "skinpack" || identity.type.ToString() == "skin_pack")
|
||||
{
|
||||
string packUuid = identity.uuid.ToString();
|
||||
if(!SkinpacksList.ContainsKey(packUuid))
|
||||
SkinpacksList.Add(packUuid, packTitle);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void RefreshItemList()
|
||||
{
|
||||
Task.Run(() =>
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
this.Invoke((Action)delegate { replacePack.Enabled = false; });
|
||||
this.Invoke((Action)delegate { refreshButton.Enabled = false; });
|
||||
this.Invoke((Action)delegate { getMoreSkinsList.Items.Clear(); });
|
||||
RefreshPlayfab();
|
||||
foreach(KeyValuePair<String, String> SkinPack in SkinpacksList)
|
||||
{
|
||||
string skinsListEntry = SkinPack.Value;
|
||||
|
||||
string manifestFile = Path.Combine(FindInPremiumCache(SkinPack.Key), "manifest.json");
|
||||
if (File.Exists(manifestFile))
|
||||
{
|
||||
try
|
||||
{
|
||||
string installedName = Manifest.ReadName(manifestFile);
|
||||
if (installedName.Trim() != SkinPack.Value.Trim())
|
||||
skinsListEntry += " => " + installedName;
|
||||
}
|
||||
catch (Exception) { };
|
||||
}
|
||||
|
||||
this.Invoke((Action)delegate { getMoreSkinsList.Items.Add(skinsListEntry); });
|
||||
this.Invoke((Action)delegate { getMoreSkinsList.SelectedIndex = 0; });
|
||||
}
|
||||
this.Invoke((Action)delegate { refreshButton.Enabled = true; });
|
||||
this.Invoke((Action)delegate { replacePack.Enabled = true; });
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
MessageBox.Show(e.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
});
|
||||
}
|
||||
private void MainWindow_Load(object sender, EventArgs e)
|
||||
{
|
||||
string verStr = PlayFab.Config.GetConfValue("ClientVersion");
|
||||
if(verStr == null)
|
||||
{
|
||||
verStr = "1.19.20";
|
||||
PlayFab.Config.WriteConfValue("ClientVersion", verStr);
|
||||
}
|
||||
|
||||
clientVersion.Text = verStr;
|
||||
|
||||
LoginPlayfab();
|
||||
}
|
||||
|
||||
private void refreshButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
RefreshItemList();
|
||||
}
|
||||
|
||||
private void replacePack_Click(object sender, EventArgs e)
|
||||
{
|
||||
OpenFileDialog ofd = new OpenFileDialog();
|
||||
ofd.Filter = "Minecraft Skin Pack|*.mcpack";
|
||||
ofd.Title = "Select a MCPack File";
|
||||
if (ofd.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
try
|
||||
{
|
||||
string mcpack = ofd.FileName;
|
||||
string uuid = SkinpacksList.ElementAt(getMoreSkinsList.SelectedIndex).Key;
|
||||
string contentKey = "s5s5ejuDru4uchuF2drUFuthaspAbepE";
|
||||
|
||||
string skinPackPath = FindInPremiumCache(uuid);
|
||||
if (Directory.Exists(skinPackPath))
|
||||
Directory.Delete(skinPackPath, true);
|
||||
Directory.CreateDirectory(skinPackPath);
|
||||
|
||||
ZipFile.ExtractToDirectory(mcpack, skinPackPath);
|
||||
string manifestJson = Path.Combine(skinPackPath, "manifest.json");
|
||||
|
||||
Manifest.ChangeUUID(manifestJson, uuid);
|
||||
Manifest.SignManifest(skinPackPath);
|
||||
Marketplace.EncryptContents(skinPackPath, uuid, contentKey);
|
||||
RefreshItemList();
|
||||
MessageBox.Show("Pack replaced!", "Done", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
catch(Exception ex)
|
||||
{
|
||||
MessageBox.Show("Pack replace fail: "+ex.Message, "Fail", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
private void clientVersion_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
while (true)
|
||||
{
|
||||
try
|
||||
{
|
||||
PlayFab.Config.WriteConfValue("ClientVersion", clientVersion.Text);
|
||||
break;
|
||||
}
|
||||
catch (Exception) { };
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
197
PremiumPackInstaller/MainWindow.resx
Normal file
197
PremiumPackInstaller/MainWindow.resx
Normal file
|
@ -0,0 +1,197 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<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>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAAMMOAADDDgAAAAAAAAAA
|
||||
AAAfHh7/Hx4e/x8eHv8fHh7/Hx4e/x8eHv8fHh7/Hx4e/x8eHv8fHh7/Hx4e/x8eHv8fHh7/Hx4e/x8e
|
||||
Hv8fHh7/Hx4e/x8eHv8fHh7/Hx4e/x8eHv8fHh7/Hx4e/x8eHv8fHh7/Hx4e/x8eHv8fHh7/Hx4e/x8e
|
||||
Hv8fHh7/Hx4e/x8eHv8fHh7/Hx4e/x8dHf8fHR3/Hx0d/x8dHf8fHR3/Hx0d/x8dHf8fHR3/Hx0d/x8d
|
||||
Hf8fHR3/Hx0d/x8dHf8fHR3/Hx0d/x8dHf8fHR3/Hx0d/x8dHf8fHR3/Hx0d/x8eHv8fHh7/Hx4e/x8e
|
||||
Hv8fHh7/Hx4e/x8eHv8fHh7/Hx4e/x8eHv8fISD/Hy4o/x8vKP8fLyj/Hy8o/x8vKP8fLyj/Hy8o/x8v
|
||||
KP8fLyj/Hy8o/x8vKP8fLyj/Hy8o/x8vKP8fLyj/Hy8o/x8vKP8fLyj/Hy8o/x8vKP8fLif/ICMh/yAi
|
||||
IP8gIiD/ICIg/yAiIP8fHx7/Hx4e/x8eHv8fHh7/Hx0d/x8uJ/8eb0v/HnJN/x5yTf8eck3/HnJN/x5y
|
||||
Tf8eck3/HnJN/x5yTf8eck3/HnJN/x5yTf8eck3/HnJN/x5yTf8eck3/HnJN/x5yTf8eck3/HnJN/x5r
|
||||
Sf8iOi3/IjMp/yIzKf8iMyn/IjIp/yAiIP8fHh7/Hx4e/x8eHv8fHR3/Hy8o/x5yTf8edU//HnNO/x5z
|
||||
Tv8ec07/HnNO/x5zTv8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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
|
||||
</value>
|
||||
</data>
|
||||
</root>
|
65
PremiumPackInstaller/PlayFab/Config.cs
Normal file
65
PremiumPackInstaller/PlayFab/Config.cs
Normal file
|
@ -0,0 +1,65 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
|
||||
namespace PlayFab
|
||||
{
|
||||
internal class Config
|
||||
{
|
||||
public static string DataFolder = Path.Combine(Environment.GetEnvironmentVariable("APPDATA"), "PremiumPackInstaller");
|
||||
public static string ConfigFile = Path.Combine(DataFolder, "playfab.conf");
|
||||
|
||||
private static void initConfig()
|
||||
{
|
||||
Directory.CreateDirectory(DataFolder);
|
||||
File.WriteAllText(ConfigFile, "");
|
||||
}
|
||||
|
||||
private static void replaceConfValue(string key, string newval)
|
||||
{
|
||||
if (!File.Exists(ConfigFile))
|
||||
initConfig();
|
||||
|
||||
string[] keyValuePairs = File.ReadAllLines(ConfigFile);
|
||||
for (int i = 0; i < keyValuePairs.Length; i++)
|
||||
{
|
||||
string[] kvp = keyValuePairs[i].Split(':');
|
||||
if (kvp[0] == key)
|
||||
keyValuePairs[i] = key + ":" + newval;
|
||||
}
|
||||
|
||||
File.WriteAllLines(ConfigFile, keyValuePairs);
|
||||
}
|
||||
|
||||
public static string GetConfValue(string key)
|
||||
{
|
||||
if (!File.Exists(ConfigFile))
|
||||
initConfig();
|
||||
|
||||
string[] keyValuePairs = File.ReadAllLines(ConfigFile);
|
||||
foreach (string keyValuePair in keyValuePairs)
|
||||
{
|
||||
string[] kvp = keyValuePair.Split(':');
|
||||
if (kvp[0] == key)
|
||||
return String.Join(":", kvp.Skip(1).ToArray());
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
public static void WriteConfValue(string key, string value)
|
||||
{
|
||||
if (!File.Exists(ConfigFile))
|
||||
initConfig();
|
||||
string curConfValue = GetConfValue(key);
|
||||
|
||||
if (curConfValue == value)
|
||||
return;
|
||||
|
||||
if (curConfValue != null)
|
||||
replaceConfValue(key, value);
|
||||
else
|
||||
File.AppendAllLines(ConfigFile, new string[] { key + ":" + value });
|
||||
}
|
||||
|
||||
}
|
||||
}
|
18
PremiumPackInstaller/PlayFab/McClient.cs
Normal file
18
PremiumPackInstaller/PlayFab/McClient.cs
Normal file
|
@ -0,0 +1,18 @@
|
|||
|
||||
using System.Net;
|
||||
using System;
|
||||
namespace PlayFab
|
||||
{
|
||||
class McClient : WebClient
|
||||
{
|
||||
protected override WebRequest GetWebRequest(Uri address)
|
||||
{
|
||||
HttpWebRequest request = base.GetWebRequest(address) as HttpWebRequest;
|
||||
if (request == null)
|
||||
return null;
|
||||
request.AutomaticDecompression = DecompressionMethods.Deflate | DecompressionMethods.GZip;
|
||||
return request;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
234
PremiumPackInstaller/PlayFab/PlayFab.cs
Normal file
234
PremiumPackInstaller/PlayFab/PlayFab.cs
Normal file
|
@ -0,0 +1,234 @@
|
|||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Dynamic;
|
||||
using System.Net;
|
||||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
|
||||
namespace PlayFab
|
||||
{
|
||||
|
||||
public class PlayFab
|
||||
{
|
||||
|
||||
public static string PLAYFAB_VERSION = "XPlatCppSdk-3.6.190304";
|
||||
public static string CPP_REST_VERSION = "cpprestsdk/2.9.0";
|
||||
|
||||
public static string TITLE_ID = "20CA2";
|
||||
public static string TITLE_SECRET = "S8RS53ZEIGMYTYG856U3U19AORWXQXF41J7FT3X9YCWAC7I35X";
|
||||
public static byte[] PUBLIC_KEY = null;
|
||||
|
||||
|
||||
public static string ENTITY_TOKEN = null;
|
||||
public static string ENTITY_ID = null;
|
||||
public static string ENTITY_TYPE = null;
|
||||
|
||||
|
||||
|
||||
public static dynamic GetProductInformation(string uuid)
|
||||
{
|
||||
dynamic dyn = new ExpandoObject();
|
||||
dyn.ItemId = uuid;
|
||||
dyn.ETag = "";
|
||||
|
||||
return POST(dyn, "/Catalog/GetPublishedItem");
|
||||
}
|
||||
public static dynamic Search(string query, string filter = "", int skip = 0, string orderBy= "creationDate DESC")
|
||||
{
|
||||
dynamic dyn = new ExpandoObject();
|
||||
dyn.count = true;
|
||||
dyn.filter = filter;
|
||||
dyn.search = query;
|
||||
dyn.orderBy = orderBy;
|
||||
dyn.top = 300;
|
||||
dyn.skip = skip;
|
||||
|
||||
return POST(dyn, "/Catalog/Search");
|
||||
}
|
||||
|
||||
public static dynamic POST(dynamic data, string url, string clientsecret = null, bool incSDK = false)
|
||||
{
|
||||
McClient wc = new McClient();
|
||||
string body = JsonConvert.SerializeObject(data, (incSDK ? Formatting.Indented : Formatting.None));
|
||||
|
||||
// Pretend to be minecraft ...
|
||||
|
||||
wc.Headers.Set("Accept", "application/json");
|
||||
wc.Headers.Set("Accept-Language", "en-US");
|
||||
wc.Headers.Set("Accept-Encoding", "gzip, deflate, br");
|
||||
wc.Headers.Set("User-Agent", CPP_REST_VERSION);
|
||||
wc.Headers.Set("x-playfabsdk", PLAYFAB_VERSION);
|
||||
wc.Headers.Set("x-reporterrorassuccess", "true");
|
||||
wc.Headers.Set("content-type", "application/json; charset=utf-8");
|
||||
|
||||
if (clientsecret != null)
|
||||
{
|
||||
|
||||
string signature;
|
||||
string timestamp = DateTime.UtcNow.ToString("O");
|
||||
|
||||
using (SHA256 hash = SHA256.Create())
|
||||
{
|
||||
string msg = body + "." + timestamp + "." + clientsecret;
|
||||
byte[] bytesToHash = Encoding.UTF8.GetBytes(msg);
|
||||
signature = Convert.ToBase64String(hash.ComputeHash(bytesToHash));
|
||||
}
|
||||
|
||||
wc.Headers.Set("x-playfab-signature", signature);
|
||||
wc.Headers.Set("x-playfab-timestamp", timestamp);
|
||||
}
|
||||
if (ENTITY_TOKEN != null)
|
||||
wc.Headers.Set("x-entitytoken", ENTITY_TOKEN);
|
||||
string response = wc.UploadString(GetPlayfabApiUrl() + url + (incSDK ? SdkMsg() : ""), body);
|
||||
dynamic resp = JsonConvert.DeserializeObject(response);
|
||||
wc.Dispose();
|
||||
|
||||
return resp.data;
|
||||
|
||||
}
|
||||
public static string RefreshEntityTokenBullshit()
|
||||
{
|
||||
dynamic dyn = new ExpandoObject();
|
||||
dyn.Entity = new ExpandoObject();
|
||||
dyn.Entity.Id = ENTITY_ID;
|
||||
dyn.Entity.Type = ENTITY_TYPE;
|
||||
|
||||
dynamic resp = POST(dyn, "/Authentication/GetEntityToken", null, true);
|
||||
ENTITY_TOKEN = resp.EntityToken.ToString();
|
||||
return ENTITY_TOKEN;
|
||||
}
|
||||
public static string SdkMsg()
|
||||
{
|
||||
return "?sdk=" + PLAYFAB_VERSION;
|
||||
}
|
||||
public static string GenerateClientSecret()
|
||||
{
|
||||
Random r = new Random(Guid.NewGuid().GetHashCode());
|
||||
byte[] clientSecret = new byte[0x20];
|
||||
r.NextBytes(clientSecret);
|
||||
return Convert.ToBase64String(clientSecret);
|
||||
}
|
||||
public static string GenerateCustomId()
|
||||
{
|
||||
Random r = new Random(Guid.NewGuid().GetHashCode());
|
||||
byte[] customId = new byte[0x10];
|
||||
r.NextBytes(customId);
|
||||
return "MCPF" + BitConverter.ToString(customId).Replace("-", "").ToUpper();
|
||||
}
|
||||
|
||||
public static string GetPlayfabApiUrl()
|
||||
{
|
||||
return "https://" + TITLE_ID + ".playfabapi.com";
|
||||
}
|
||||
|
||||
// How 2 find TitleSharedSecret:
|
||||
// 1- delete all mc data
|
||||
// 2- open fiddler
|
||||
// 3- open minecraft
|
||||
// 4- check for https://20ca2.playfabapi.com/Client/GetTitlePublicKey...
|
||||
public static void GetPublicKeyAndMicrosoftTakesABigL()
|
||||
{
|
||||
dynamic dyn = new ExpandoObject();
|
||||
dyn.TitleId = TITLE_ID;
|
||||
dyn.TitleSharedSecret = TITLE_SECRET;
|
||||
|
||||
dynamic resp = POST(dyn, "/Client/GetTitlePublicKey", null, true);
|
||||
PUBLIC_KEY = Convert.FromBase64String(resp.RSAPublicKey.ToString());
|
||||
}
|
||||
|
||||
public static string EncryptCustomIdLoginToken(string customId, string clientSecret)
|
||||
{
|
||||
dynamic dyn = new ExpandoObject();
|
||||
dyn.CustomId = customId;
|
||||
dyn.PlayerSecret = clientSecret;
|
||||
|
||||
|
||||
return EncryptRequest(JsonConvert.SerializeObject(dyn));
|
||||
}
|
||||
|
||||
public static string LoginWithCustomId(bool newUser = true, string customId = null, string clientSecret = null)
|
||||
{
|
||||
dynamic dyn = new ExpandoObject();
|
||||
|
||||
if (newUser)
|
||||
dyn.CreateAccount = true;
|
||||
else
|
||||
dyn.CreateAccount = null;
|
||||
dyn.CustomId = customId;
|
||||
|
||||
if (clientSecret == null)
|
||||
clientSecret = GenerateClientSecret();
|
||||
|
||||
if (customId == null)
|
||||
customId = GenerateCustomId();
|
||||
|
||||
if (newUser)
|
||||
dyn.EncryptedRequest = EncryptCustomIdLoginToken(customId, clientSecret);
|
||||
else
|
||||
dyn.EncryptedRequest = null;
|
||||
|
||||
dyn.InfoRequestParameters = new ExpandoObject();
|
||||
dyn.InfoRequestParameters.GetCharacterInventories = false;
|
||||
dyn.InfoRequestParameters.GetCharacterList = false;
|
||||
dyn.InfoRequestParameters.GetPlayerProfile = true;
|
||||
dyn.InfoRequestParameters.GetPlayerStatistics = false;
|
||||
dyn.InfoRequestParameters.GetTitleData = false;
|
||||
dyn.InfoRequestParameters.GetUserAccountInfo = true;
|
||||
dyn.InfoRequestParameters.GetUserData = false;
|
||||
dyn.InfoRequestParameters.GetUserInventory = false;
|
||||
dyn.InfoRequestParameters.GetUserReadOnlyData = false;
|
||||
dyn.InfoRequestParameters.PlayerStatisticNames = null;
|
||||
dyn.InfoRequestParameters.ProfileConstraints = null;
|
||||
dyn.InfoRequestParameters.TitleDataKeys = null;
|
||||
dyn.InfoRequestParameters.UserDataKeys = null;
|
||||
dyn.InfoRequestParameters.UserReadOnlyDataKeys = null;
|
||||
|
||||
dyn.PlayerSecret = null;
|
||||
dyn.TitleId = TITLE_ID;
|
||||
|
||||
|
||||
dynamic resp = POST(dyn, "/Client/LoginWithCustomID", newUser ? null : clientSecret, true);
|
||||
|
||||
Config.WriteConfValue("CustomId", customId);
|
||||
Config.WriteConfValue("ClientSecret", clientSecret);
|
||||
|
||||
ENTITY_TOKEN = resp.EntityToken.EntityToken.ToString();
|
||||
ENTITY_ID = resp.PlayFabId.ToString();
|
||||
ENTITY_TYPE = "master_player_account";
|
||||
|
||||
return ENTITY_TOKEN;
|
||||
}
|
||||
|
||||
public static string EncryptRequest(string plaintext)
|
||||
{
|
||||
using (RSACryptoServiceProvider rsa = new RSACryptoServiceProvider())
|
||||
{
|
||||
rsa.ImportCspBlob(PUBLIC_KEY);
|
||||
byte[] bytesToEncrypt = Encoding.UTF8.GetBytes(plaintext);
|
||||
byte[] encryptedBytes = rsa.Encrypt(bytesToEncrypt, false);
|
||||
return Convert.ToBase64String(encryptedBytes);
|
||||
}
|
||||
}
|
||||
|
||||
public static string PullEntityTokenOutOfMyAss()
|
||||
{
|
||||
|
||||
if (Config.GetConfValue("CustomId") == null && Config.GetConfValue("ClientSecret") == null)
|
||||
{
|
||||
GetPublicKeyAndMicrosoftTakesABigL();
|
||||
LoginWithCustomId();
|
||||
return RefreshEntityTokenBullshit();
|
||||
}
|
||||
else
|
||||
{
|
||||
string customId = Config.GetConfValue("CustomId");
|
||||
string clientSecret = Config.GetConfValue("ClientSecret");
|
||||
|
||||
LoginWithCustomId(false, customId, clientSecret);
|
||||
return RefreshEntityTokenBullshit();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
147
PremiumPackInstaller/PremiumPackInstaller.csproj
Normal file
147
PremiumPackInstaller/PremiumPackInstaller.csproj
Normal file
|
@ -0,0 +1,147 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{6EDC5573-14BE-429A-B663-60E4AE604079}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<RootNamespace>PremiumPackInstaller</RootNamespace>
|
||||
<AssemblyName>PremiumPackInstaller</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<Deterministic>true</Deterministic>
|
||||
<IsWebBootstrapper>false</IsWebBootstrapper>
|
||||
<PublishUrl>publish\</PublishUrl>
|
||||
<Install>true</Install>
|
||||
<InstallFrom>Disk</InstallFrom>
|
||||
<UpdateEnabled>false</UpdateEnabled>
|
||||
<UpdateMode>Foreground</UpdateMode>
|
||||
<UpdateInterval>7</UpdateInterval>
|
||||
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
|
||||
<UpdatePeriodically>false</UpdatePeriodically>
|
||||
<UpdateRequired>false</UpdateRequired>
|
||||
<MapFileExtensions>true</MapFileExtensions>
|
||||
<ApplicationRevision>1</ApplicationRevision>
|
||||
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
|
||||
<UseApplicationTrust>false</UseApplicationTrust>
|
||||
<PublishWizardCompleted>true</PublishWizardCompleted>
|
||||
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<ApplicationIcon>skins.ico</ApplicationIcon>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<ManifestCertificateThumbprint>5D7635155E697A9AC53D2F49356F5D5FF9607505</ManifestCertificateThumbprint>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<ManifestKeyFile>PremiumPackInstaller_TemporaryKey.pfx</ManifestKeyFile>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<GenerateManifests>true</GenerateManifests>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<SignManifests>true</SignManifests>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Newtonsoft.Json.13.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.IO.Compression" />
|
||||
<Reference Include="System.IO.Compression.FileSystem" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Deployment" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="PlayFab\Config.cs" />
|
||||
<Compile Include="MainWindow.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="MainWindow.Designer.cs">
|
||||
<DependentUpon>MainWindow.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="PlayFab\McClient.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="PlayFab\PlayFab.cs" />
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<EmbeddedResource Include="MainWindow.resx">
|
||||
<DependentUpon>MainWindow.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<Compile Include="Properties\Resources.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
</Compile>
|
||||
<None Include="packages.config" />
|
||||
<None Include="PremiumPackInstaller_TemporaryKey.pfx" />
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\..\..\..\Li\Documents\git\McTools\McCrypt\LibMcCrypt.csproj">
|
||||
<Project>{4BEF6F52-6545-4BB9-8053-50335A1C6789}</Project>
|
||||
<Name>LibMcCrypt</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="skins.ico" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<BootstrapperPackage Include=".NETFramework,Version=v4.8">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>Microsoft .NET Framework 4.8 %28x86 and x64%29</ProductName>
|
||||
<Install>true</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.5 SP1</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
13
PremiumPackInstaller/PremiumPackInstaller.csproj.user
Normal file
13
PremiumPackInstaller/PremiumPackInstaller.csproj.user
Normal file
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<PublishUrlHistory />
|
||||
<InstallUrlHistory />
|
||||
<SupportUrlHistory />
|
||||
<UpdateUrlHistory />
|
||||
<BootstrapperUrlHistory />
|
||||
<ErrorReportUrlHistory />
|
||||
<FallbackCulture>en-US</FallbackCulture>
|
||||
<VerifyUploadedFiles>false</VerifyUploadedFiles>
|
||||
</PropertyGroup>
|
||||
</Project>
|
BIN
PremiumPackInstaller/PremiumPackInstaller_TemporaryKey.pfx
Normal file
BIN
PremiumPackInstaller/PremiumPackInstaller_TemporaryKey.pfx
Normal file
Binary file not shown.
19
PremiumPackInstaller/Program.cs
Normal file
19
PremiumPackInstaller/Program.cs
Normal file
|
@ -0,0 +1,19 @@
|
|||
using System;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace PremiumPackInstaller
|
||||
{
|
||||
internal static class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(new MainWindow());
|
||||
}
|
||||
}
|
||||
}
|
36
PremiumPackInstaller/Properties/AssemblyInfo.cs
Normal file
36
PremiumPackInstaller/Properties/AssemblyInfo.cs
Normal file
|
@ -0,0 +1,36 @@
|
|||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("Premium Packs Installer")]
|
||||
[assembly: AssemblyDescription("Allows you to replace ads in skin pack list with any skin pack you want.")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("Li")]
|
||||
[assembly: AssemblyProduct("Premium Packs Installer")]
|
||||
[assembly: AssemblyCopyright("Public Domain 2022")]
|
||||
[assembly: AssemblyTrademark("Trans Rights")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("6edc5573-14be-429a-b663-60e4ae604079")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
71
PremiumPackInstaller/Properties/Resources.Designer.cs
generated
Normal file
71
PremiumPackInstaller/Properties/Resources.Designer.cs
generated
Normal file
|
@ -0,0 +1,71 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace PremiumPackInstaller.Properties
|
||||
{
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// A strongly-typed resource class, for looking up localized strings, etc.
|
||||
/// </summary>
|
||||
// This class was auto-generated by the StronglyTypedResourceBuilder
|
||||
// class via a tool like ResGen or Visual Studio.
|
||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||
// with the /str option, or rebuild your VS project.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class Resources
|
||||
{
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal Resources()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the cached ResourceManager instance used by this class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Resources.ResourceManager ResourceManager
|
||||
{
|
||||
get
|
||||
{
|
||||
if ((resourceMan == null))
|
||||
{
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("PremiumPackInstaller.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Overrides the current thread's CurrentUICulture property for all
|
||||
/// resource lookups using this strongly typed resource class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture
|
||||
{
|
||||
get
|
||||
{
|
||||
return resourceCulture;
|
||||
}
|
||||
set
|
||||
{
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
117
PremiumPackInstaller/Properties/Resources.resx
Normal file
117
PremiumPackInstaller/Properties/Resources.resx
Normal file
|
@ -0,0 +1,117 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<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" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
</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" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
</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=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
30
PremiumPackInstaller/Properties/Settings.Designer.cs
generated
Normal file
30
PremiumPackInstaller/Properties/Settings.Designer.cs
generated
Normal file
|
@ -0,0 +1,30 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace PremiumPackInstaller.Properties
|
||||
{
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
|
||||
{
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
||||
public static Settings Default
|
||||
{
|
||||
get
|
||||
{
|
||||
return defaultInstance;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
7
PremiumPackInstaller/Properties/Settings.settings
Normal file
7
PremiumPackInstaller/Properties/Settings.settings
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
|
||||
<Profiles>
|
||||
<Profile Name="(Default)" />
|
||||
</Profiles>
|
||||
<Settings />
|
||||
</SettingsFile>
|
4
PremiumPackInstaller/packages.config
Normal file
4
PremiumPackInstaller/packages.config
Normal file
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="Newtonsoft.Json" version="13.0.1" targetFramework="net48" />
|
||||
</packages>
|
BIN
PremiumPackInstaller/skins.ico
Normal file
BIN
PremiumPackInstaller/skins.ico
Normal file
Binary file not shown.
After (image error) Size: 4.2 KiB |
Loading…
Add table
Add a link
Reference in a new issue