Forum > Coding >

FREE KEY SYSTEM (CHANGE EVERY 24H)

Posts: 2

Threads: 1

Joined: May, 2022

Reputation: 0

Posted

maybe its a bad keysystem but i think it will help some people that dont wanna pay for one.

 

How does it work:

We need a string thats different every 24hr. how do we do that? Thats what i did:

 

We get today's date of a specific country (ex. Turkey) and then we encrypt it.

 

We create a timer that sends the key (using a webhook on your discord server / upload it on pastebin / linkver using the apis) every 24 hours (using a timer).

 

To check if the key is correct we just decrypt the encrypted string and check if its same as today's date

 

(We do need a vps / pc to run this app 24/7 / or you can do it manually every 24 hr (upload the key link on your discord / w.e))

 

The code is a mess (sorry)

And sorry for my bad english lmao...

 

        public static string key_;
        public static string n;
        static void Main(string[] args)
        {
            // get key + encrypt + update (discord)
            getkey();
            Console.WriteLine("Key: " + key_);
            encrypt_key();
            Console.WriteLine("\nEncrypted Key: " + key_);
            send_key_discord();


            // checking if the key is correct by decrypting i
            Console.WriteLine("\nDecrypting " + key_ + ", to see if the decrypted string is: " + n);
            decrypt();
            if (key_ == n)
            {
                Console.WriteLine(key_ + " = " + n + " > true");
            } else
            {
                Console.WriteLine("false");
            }
            Console.ReadLine();
        }
        static void getkey()
        {
            var info = TimeZoneInfo.FindSystemTimeZoneById("Turkey Standard Time");
            DateTimeOffset localServerTime = DateTimeOffset.Now;
            DateTimeOffset localTime = TimeZoneInfo.ConvertTime(localServerTime, info);
            string key = localTime.ToString().Substring(0, localTime.ToString().IndexOf(" "));
            key_ = key;
            n = key;
        }
        static void encrypt_key()
        {
            try
            {
                using (TripleDESCryptoServiceProvider tripleDESCryptoService = new TripleDESCryptoServiceProvider())
                {
                    using (MD5CryptoServiceProvider hashMD5Provider = new MD5CryptoServiceProvider())
                    {
                        byte[] byteHash = hashMD5Provider.ComputeHash(Encoding.UTF8.GetBytes("pandora_secret"));
                        tripleDESCryptoService.Key = byteHash;
                        tripleDESCryptoService.Mode = CipherMode.ECB;
                        byte[] data = Encoding.UTF8.GetBytes(key_);
                        key_ = Convert.ToBase64String(tripleDESCryptoService.CreateEncryptor().TransformFinalBlock(data, 0, data.Length));
                    }
                }
            }
            catch { }
        }
        static void decrypt()
        {
            try
            {
                using (TripleDESCryptoServiceProvider tripleDESCryptoService = new TripleDESCryptoServiceProvider())
                {
                    using (MD5CryptoServiceProvider hashMD5Provider = new MD5CryptoServiceProvider())
                    {
                        byte[] byteHash = hashMD5Provider.ComputeHash(Encoding.UTF8.GetBytes("pandora_secret"));
                        tripleDESCryptoService.Key = byteHash;
                        tripleDESCryptoService.Mode = CipherMode.ECB;
                        byte[] data = Convert.FromBase64String(key_);
                        key_ = Encoding.UTF8.GetString(tripleDESCryptoService.CreateDecryptor().TransformFinalBlock(data, 0, data.Length));
                    }
                }
            }
            catch { }
        }
        static void send_key_discord()
        {
            // send it thru a webhook or sm every 24 hr using a timer / upload it on a pastebin using an api / linkvertise api.
        }
  • 2

Added

what is the point of encryption when you can just sniff it using wireshark?

 

sniff what exactly?

There are two apps one thats running on your vps / pc that updates the key every 24h and one (executor) that is just getting the key and comparing it with the key the user typed. There is no internet involved on the executor side, therefore you cant see anything in wireshark lul, check the code.

  • 0

Luau

Luau

Posts: 113

Threads: 24

Joined: May, 2022

Reputation: -33

Replied

Easily bypassable/.

  • 0

Luau

pepsi

PePsIDeveloper

vip

Posts: 259

Threads: 4

Joined: Apr, 2021

Reputation: 13

Replied

This is easily bypassable and also there is no database to save the key and using discord to handle your services is just unsafe.

  • 0

https://cdn.discordapp.com/attachments/661621789591470090/1013919752294498314/Untitled_1366_768_px_1546_202_px_2.gif

Luau

Luau

Posts: 113

Threads: 24

Joined: May, 2022

Reputation: -33

Replied

Doesn't run while on PC? Easy hackable and also insecure.

 

People can reverse and change the code. 

  • 0

Added

@Cyros No, it would use a similar method in C/C++?

  • 0

Added

@Cyros Well actually you can and can't.

 

Did you read TimeZoneInfo.FindSystemTimeZoneById?

 

The user can pass the time zone by putting ahead their time.

  • 0

Added

@Cyros But you can't! The code probably only runs after 24 hours. You would have to set your time to the next day in order to do it.

  • 0

Luau

SeizureSalad

i love femboys

Posts: 1012

Threads: 73

Joined: Mar, 2021

Reputation: 37

Replied

am willing to bet that this will set off antiviruses for being "ransomware"

  • 1

"Questionable intellegence, but I like the mystery" - CubeFaces

https://cdn.discordapp.com/attachments/1136067487847415848/1138948596679589898/sig.png

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )