ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Wed May 22, 2019 11:07 pm

All times are UTC




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Sun Dec 16, 2018 10:16 am 

Joined: Sat Dec 15, 2018 2:32 pm
Posts: 6
Hello I have a simple encrypted text with DES



this is the text : https://jpst.it/1wbZa
this the decryption script : https://www.dropbox.com/s/wsnc5ke10c3k2 ... t.rar?dl=0




this text is from a unity word game : https://apkpure.com/word-crossy-a-cross ... ordmind.en

I searched and I found the encryption and decryption c# script with the KEY I attached the c# script

I tried online decryption tools but no success I'm new to this

please show me how to decrypt the text and encrypted again maybe a bms script

I will pay 15 usd PAYPAL for this help

thank you my friends


Attachments:
encrypt.rar [1.02 KiB]
Downloaded 22 times
Top
   
PostPosted: Mon Dec 17, 2018 9:05 am 
User avatar

Joined: Sat Dec 27, 2014 8:49 pm
Posts: 119
Go to this site:
https://dotnetfiddle.net/

Then enter this as the code:
Code:
using System;
using System.IO;
using System.Security.Cryptography;
using System.Text;

public class Program
{
   private static string key = "Fotoable";
   public static string DesDecrypt(string decryptString)
   {
      string result;
      try
      {
         byte[] bytes = Encoding.UTF8.GetBytes(key.Substring(0, 8));
         byte[] rgbIV = bytes;
         byte[] array = Convert.FromBase64String(decryptString);
         DESCryptoServiceProvider descryptoServiceProvider = new DESCryptoServiceProvider();
         MemoryStream memoryStream = new MemoryStream();
         CryptoStream cryptoStream = new CryptoStream(memoryStream, descryptoServiceProvider.CreateDecryptor(bytes, rgbIV), CryptoStreamMode.Write);
         cryptoStream.Write(array, 0, array.Length);
         cryptoStream.FlushFinalBlock();
         string @string = Encoding.UTF8.GetString(memoryStream.ToArray());
         cryptoStream.Close();
         memoryStream.Close();
         result = @string;
      }
      catch (Exception exception)
      {
         result = decryptString;
      }
      return result;
   }

   public static void Main()
   {
      Console.WriteLine(DesDecrypt("wFgNPfz6/jj12yFcMm/ds3wrWBrmxeqnp5uN18Bn09Pt3fbo+X7JCmtAc34pfDkdeRxTOo49G1sKXy9xKAi+pFsAdwR/wx9IN6RYWsrV6wo7ROoNgcex441LaUhSKndJaKZgF7HsgaQuSCBvsB4nLICZEimRXVBfLxfsi9rt1BO1DXolp35oBi1KJInOKvfMRqxXP8PXei2HiWu6gdFSmSJgwGZFuKKbeXrpMAFWOJ6nEQIh06uYBg=="));
   }
}


This uses the C# code you posted and will decrypt the strings you linked to. Edit the string inside of the call in this line:
Code:
Console.WriteLine(DesDecrypt("wFgNPfz6/jj12yFcMm/ds3wrWBrmxeqnp5uN18Bn09Pt3fbo+X7JCmtAc34pfDkdeRxTOo49G1sKXy9xKAi+pFsAdwR/wx9IN6RYWsrV6wo7ROoNgcex441LaUhSKndJaKZgF7HsgaQuSCBvsB4nLICZEimRXVBfLxfsi9rt1BO1DXolp35oBi1KJInOKvfMRqxXP8PXei2HiWu6gdFSmSJgwGZFuKKbeXrpMAFWOJ6nEQIh06uYBg=="));


The run the code with the big Run button and it will decrypt the string and print it out.

_________________
My personal site: http://atom0s.com
Donations can be made via Paypal: Click Here


Top
   
PostPosted: Wed Dec 19, 2018 1:31 am 

Joined: Sat Dec 15, 2018 2:32 pm
Posts: 6
atom0s wrote:
Go to this site:
https://dotnetfiddle.net/

Then enter this as the code:
Code:
using System;
using System.IO;
using System.Security.Cryptography;
using System.Text;

public class Program
{
   private static string key = "Fotoable";
   public static string DesDecrypt(string decryptString)
   {
      string result;
      try
      {
         byte[] bytes = Encoding.UTF8.GetBytes(key.Substring(0, 8));
         byte[] rgbIV = bytes;
         byte[] array = Convert.FromBase64String(decryptString);
         DESCryptoServiceProvider descryptoServiceProvider = new DESCryptoServiceProvider();
         MemoryStream memoryStream = new MemoryStream();
         CryptoStream cryptoStream = new CryptoStream(memoryStream, descryptoServiceProvider.CreateDecryptor(bytes, rgbIV), CryptoStreamMode.Write);
         cryptoStream.Write(array, 0, array.Length);
         cryptoStream.FlushFinalBlock();
         string @string = Encoding.UTF8.GetString(memoryStream.ToArray());
         cryptoStream.Close();
         memoryStream.Close();
         result = @string;
      }
      catch (Exception exception)
      {
         result = decryptString;
      }
      return result;
   }

   public static void Main()
   {
      Console.WriteLine(DesDecrypt("wFgNPfz6/jj12yFcMm/ds3wrWBrmxeqnp5uN18Bn09Pt3fbo+X7JCmtAc34pfDkdeRxTOo49G1sKXy9xKAi+pFsAdwR/wx9IN6RYWsrV6wo7ROoNgcex441LaUhSKndJaKZgF7HsgaQuSCBvsB4nLICZEimRXVBfLxfsi9rt1BO1DXolp35oBi1KJInOKvfMRqxXP8PXei2HiWu6gdFSmSJgwGZFuKKbeXrpMAFWOJ6nEQIh06uYBg=="));
   }
}


This uses the C# code you posted and will decrypt the strings you linked to. Edit the string inside of the call in this line:
Code:
Console.WriteLine(DesDecrypt("wFgNPfz6/jj12yFcMm/ds3wrWBrmxeqnp5uN18Bn09Pt3fbo+X7JCmtAc34pfDkdeRxTOo49G1sKXy9xKAi+pFsAdwR/wx9IN6RYWsrV6wo7ROoNgcex441LaUhSKndJaKZgF7HsgaQuSCBvsB4nLICZEimRXVBfLxfsi9rt1BO1DXolp35oBi1KJInOKvfMRqxXP8PXei2HiWu6gdFSmSJgwGZFuKKbeXrpMAFWOJ6nEQIh06uYBg=="));


The run the code with the big Run button and it will decrypt the string and print it out.



thank you so much my friend , this works like charm :) , send me your paypal ?


Top
   
PostPosted: Wed Dec 19, 2018 5:15 am 

Joined: Sat Dec 15, 2018 2:32 pm
Posts: 6
and how to encrypt the json again, it give me error i can't put json directly to the code ?

the problem been solved :D :

before you put json directly to c# code you have to escape json with this tool ; https://www.browserling.com/tools/json-escape


this my code :

Code:
using System;
using System.IO;
using System.Security.Cryptography;
using System.Text;


public class Program
{
   private static string key = "Fotoable";
  public static string DesEncrypt(string encryptString)
   {
      string result;
      try
      {
         byte[] bytes = Encoding.UTF8.GetBytes(key.Substring(0, 8));
         byte[] rgbIV = bytes;
         byte[] bytes2 = Encoding.UTF8.GetBytes(encryptString);
         DESCryptoServiceProvider descryptoServiceProvider = new DESCryptoServiceProvider();
         MemoryStream memoryStream = new MemoryStream();
         CryptoStream cryptoStream = new CryptoStream(memoryStream, descryptoServiceProvider.CreateEncryptor(bytes, rgbIV), CryptoStreamMode.Write);
         cryptoStream.Write(bytes2, 0, bytes2.Length);
         cryptoStream.FlushFinalBlock();
         string text = Convert.ToBase64String(memoryStream.ToArray());
         cryptoStream.Close();
         memoryStream.Close();
         result = text;
      }
      catch (Exception exception)
      {
         result = encryptString;
      }
      return result;
   }

   public static void Main()
   {
      Console.WriteLine(DesEncrypt("{\"data\": [{\"answer\": \"ten\", \"isHorizontal\": 1, \"firstLetterRow\": 2, \"firstLetterCol\": 1}, {\"answer\": \"net\", \"isHorizontal\": 0, \"firstLetterRow\": 1, \"firstLetterCol\": 2}], \"size\": 5}"));
   }
}


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited