Skip to content

Commit

Permalink
FREE HACKS DISABLED
Browse files Browse the repository at this point in the history
CTMT is OFFLINE. This was causing the program to break. For now the "FREE HACKS" section is DISABLED. Will either remove or hack someone elses program. Maybe GodHacks / NGH?
  • Loading branch information
Fluffer-Nutter committed Apr 5, 2019
1 parent f1e1175 commit a72e9c9
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,41 +6,40 @@

internal class FreeHacksDecrypt
{
public static string fukme = "";

public static string Decrypt(string cipherText)
{
MemoryStream ms = new MemoryStream();
string EncryptionKey = "ICamYEloBquEntR";
cipherText = cipherText.Replace(" ", "+");
byte[] cipherBytes = Convert.FromBase64String(cipherText);
using (Aes encryptor = Aes.Create())
{
Rfc2898DeriveBytes pdb = new Rfc2898DeriveBytes(EncryptionKey, new byte[] { 0x48, 0x39, 0x01, 0x19, 0x28, 0x4D, 0xE2, 0x94, 0xD2, 0x33, 0x84, 0x69, 0x0A });
Rfc2898DeriveBytes pdb = new Rfc2898DeriveBytes(EncryptionKey, new byte[] {
0x48, 0x39, 0x01, 0x19, 0x28, 0x4D, 0xE2, 0x94, 0xD2, 0x33, 0x84, 0x69, 0x0A
});

encryptor.Key = pdb.GetBytes(32);
encryptor.IV = pdb.GetBytes(16);
using (MemoryStream ms = new MemoryStream())
using (CryptoStream cs = new CryptoStream(ms, encryptor.CreateDecryptor(), CryptoStreamMode.Write))
{
using (CryptoStream cs = new CryptoStream(ms, encryptor.CreateDecryptor(), CryptoStreamMode.Write))
try
{
try
{
cs.Write(cipherBytes, 0, cipherBytes.Length);
cs.Close();
}
catch { }
cs.Write(cipherBytes, 0, cipherBytes.Length);
cs.Close();
}
cipherText = Encoding.Unicode.GetString(ms.ToArray());
catch { }
}
cipherText = Encoding.Unicode.GetString(ms.ToArray());
}
return cipherText;
}


public static string Stringthing(string lala, string date, string gamename)
public static string Stringthing(string game, string date, string gamename)
{
string final = "";
string[] strArrayOne = new string[] { "" };
strArrayOne = CharKey(lala).Split(',');
strArrayOne = CharKey(game).Split(',');
strArrayOne = strArrayOne.Skip(1).ToArray();
string[] strResult = strArrayOne.Select(y => string.Concat(y.Reverse())).ToArray();
string dateandstuff = gamename + " - " + date + Environment.NewLine + Environment.NewLine;
Expand All @@ -53,27 +52,21 @@ public static string Stringthing(string lala, string date, string gamename)

public static string DecryptStuff(string fluffy, string gamename)
{
if (fluffy == "@@" || fluffy == "") { }

string DecryptString = Decrypt(fluffy);
if (DecryptString.StartsWith("Y"))
{
string letsrockandroll = "N" + DecryptString.Substring(DecryptString.IndexOf('@') + 2);
string Date = letsrockandroll.Split('N', '@')[1];
string Decoded = letsrockandroll.Replace("@@", ",");
return Stringthing(Decoded, Date, gamename);
}
else
{
string DecryptString = Decrypt(fluffy);
if (DecryptString.StartsWith("Y"))
{
string letsrockandroll = "N" + DecryptString.Substring(DecryptString.IndexOf('@') + 2);
string Date = letsrockandroll.Split('N', '@')[1];
string Decoded = letsrockandroll.Replace("@@", ",");
return Stringthing(Decoded, Date, gamename);
}
else
{
string letsrockandroll = DecryptString.Substring(1);
string Date = letsrockandroll.Split('N', '@')[0];
string Decoded = DecryptString.Replace("@@", ",");
return Stringthing(Decoded, Date, gamename);
}
string letsrockandroll = DecryptString.Substring(1);
string Date = letsrockandroll.Split('N', '@')[0];
string Decoded = DecryptString.Replace("@@", ",");
return Stringthing(Decoded, Date, gamename);
}
return "";
}

public static string CharKey(string line)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ private void IdiotProof()
Compare_metroButton.Enabled = false;
FormatAOBs_metroButton.Enabled = true;
JakeFromStateFarm = 0;

}
}
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 16 additions & 1 deletion Cheat Engine Tools/Cheat Engine Tools/Forms/FreeHacks_UC.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,33 @@
using System.Text.RegularExpressions;
using System.Windows.Forms;
using System.Xml;
using System.Threading;
using System.IO;

namespace Cheat_Engine_Tools.Forms
{
public partial class FreeHacks_UC : UserControl
{

public FreeHacks_UC()
{
InitializeComponent();
//Thread IsWebsiteActive = new Thread(CheckWebAddress);
//IsWebsiteActive.Start();

//// CTMT is OFFLINE at the moment. This section REMOVED! ////
}

private void CheckWebAddress()
{
string TempText = null;
String DownloadString = "http://cyberterminators.co/details-v2.xml";
XmlDocument XDocument = new XmlDocument();
XDocument.Load(DownloadString);
try
{
XDocument.Load(DownloadString);
}
catch { return; }
XmlElement Root = XDocument.DocumentElement;
XmlNodeList Nodes = Root.SelectNodes("/megaT/HackList");

Expand Down

0 comments on commit a72e9c9

Please sign in to comment.