Author Topic: Share Simple Programs Thread  (Read 1348 times)

0 Members and 1 Guest are viewing this topic.

Offline El_Presidente

  • Colonel
  • *
  • Posts: 2067
  • David
    • View Profile
  • Side: Neutral
Share Simple Programs Thread
« on: August 28, 2013, 03:31:38 am »
Share your amazing scripts in this thread! Not in modding because these are meant to be scripts written from scratch rather than modified stuff for mount and blade!

Firstly, my Python A* Keygen that none of you noobs could decipher:

Spoiler
Code
import random, time

###Algorithim Constants. DO NOT CHANGE!###
SEC1 = 7
SEC2 = 3
SEC3 = 15
###Algorithim Constants. DO NOT CHANGE!###

###Main Algorithim Generator###

def Generator():

        WordBank = "gjeiru"

        time.sleep(1)

        print("Generating combinations...")

        time.sleep(2)
       

        Stage1 = False
        Stage2 = False
        Stage3 = False

        while Stage1 == False:

                FKey1 = random.randint(0,7)
                SKey1 = random.randint(0,7)

                if FKey1 + SKey1 == 7:
                        print("Stage1 generated suitable intigers")
                        x1 = True
                        break
                       
        while Stage2 == False:

                FKey2 = random.randint(0,3)
                SKey2 = random.randint(0,3)

                if FKey2 + SKey2 == 3:
                        print("Stage2 generated suitable intigers")
                        x2 = True
                        break

        while Stage3 == False:

                FKey3 = random.randint(0,15)
                SKey3 = random.randint(0,15)

                if FKey3 + SKey3 == 15:
                        print("Stage3 generated suitable intigers")
                        x3 = True
                        break

        if x1 == True and x2 == True and x3 == True:
                Combo = "ZiltarkytmQetra"
                print("First combination generated succesfully:")
                Key = FKey1,SKey1,FKey2,SKey2,FKey3,SKey3
                time.sleep(1)
                y1 = FKey3
                y2 = SKey3
                y3 = FKey2 + SKey2

                Key = Combo[y1],FKey1,Combo[y3],SKey1,FKey2,SKey2,FKey3,Combo[y2],SKey3
                print("The final key is now written below:")
                Key = str(Key)
                print(Key)
                print("Writing Key to KEYS.txt...")
                F = open("KEYS.txt","a")
                F.writelines("" + Key +"\n")
                F.close()
                print("Key written! generating new key.")

###Main Algorithim Generator###

###Prompts User to Ask for a Number of Keys###

def DemandKeys():

        try:

                KeyRequest = raw_input("How many keys should be generated? These will be stored in the same \n"
                        "directory in a seperate .txt file called KEYS\n")
                KeyRequest = int(KeyRequest)
               
                while KeyRequest != 0:
                        Generator()

        except ValueError:
                print("You did not enter an intiger. The program will now reboot from scratch.\n")
                DemandKeys()
               
###Prompts User to Ask for a Number of Keys###

           
###Starting User Prompt. Initiates Program###       

UP = raw_input(str("Begin generating keys? y/n?\n"))

if UP == "y" or UP == "Y":
    DemandKeys()
   
else:
    print("Ok then, closing the program")
    time.sleep(2)

###Starting User Prompt. Initiates Program###   
[close]


^ Meant to stop noobs pirating a friends game. I haven't written a script to decipher any keys generated by it, so at the moment, it remains undecipherable.  A video demonstration of my 3 hours labour, with incredibly unfitting music and poor quality:

[youtube]http://www.youtube.com/watch?v=VguZZFiSLv8[/youtube]

Perhaps the bad video can be forgiven by the good intention of the script, preventing piracy? This is really the groundwork of my final keygen. It is somewhat easy to decipher and bypass at the moment and the keys can be dangerously similar in the .txt file lol...

Why not share you magical stuff here? Simple programs like mine. So people can use them and we can all learn more  ;).

« Last Edit: August 28, 2013, 10:27:46 am by El_Presidente »

Offline groenewoldr

  • Second Lieutenant
  • *
  • Posts: 669
    • View Profile
  • Nick: NotFamous
  • Side: Union
Re: Share Simple Programs Thread
« Reply #1 on: August 28, 2013, 03:57:56 am »
Code
// rejereg best na/eu/au

#include <iostream>
using namespace std;

int main ()
{
cout << "rejereg";
return 0;
}
I call it.... rejecode
I don't know who you are, I don't know what you want. But I will find you, and I will troll you.

Offline Thundersnow

  • Captain
  • *
  • Posts: 2343
  • Overlord of the 00th Regiment, Time and Space.
    • View Profile
    • www.PlanetThundersnow.com
  • Side: Neutral
Re: Share Simple Programs Thread
« Reply #2 on: August 28, 2013, 04:58:09 am »
Code
if a = b, then goto c

I call this one "Old School"

Offline El_Presidente

  • Colonel
  • *
  • Posts: 2067
  • David
    • View Profile
  • Side: Neutral
Re: Share Simple Programs Thread
« Reply #3 on: August 28, 2013, 10:03:34 am »
Code
// rejereg best na/eu/au

#include <iostream>
using namespace std;

int main ()
{
cout << "rejereg";
return 0;
}
I call it.... rejecode

lolololloollololo fanboy

Offline Dom13WorstNW

  • Donator
  • ***
  • Posts: 8689
    • View Profile
  • Side: Union
Re: Share Simple Programs Thread
« Reply #4 on: August 28, 2013, 10:08:36 am »
omg ... I barely know how to access my files and u can hack into the pentagon (Wouldn't recommend trying)  :P
« Last Edit: August 28, 2013, 10:16:04 am by Dom13WorstNW »

Offline groenewoldr

  • Second Lieutenant
  • *
  • Posts: 669
    • View Profile
  • Nick: NotFamous
  • Side: Union
Re: Share Simple Programs Thread
« Reply #5 on: August 29, 2013, 01:37:35 am »
Code
// rejereg best na/eu/au

#include <iostream>
using namespace std;

int main ()
{
cout << "rejereg";
return 0;
}
I call it.... rejecode

lolololloollololo fanboy
i is en meber of rejereg
I don't know who you are, I don't know what you want. But I will find you, and I will troll you.