PW Crack 2

First, download both the files and store them in the same directory.level2.py and level2.flag.txt.enc Then use the following command in the terminal to see the contents of the file. nano level2.py We can see that inside the function level_2_pw_check there is an if statement that checks the user input with a password. The password is encoded in a series of chr(). We can see that they start with 0x, which means that they are in the hexadecimal format....

January 23, 2023 ยท 1 min

Binary Conversion

Image by Gerd Altmann from Pixabay I wanted to create a python program that takes a binary input and converts them into a different format. So, here we go. The main.py is pretty straightforward, it just imports and calls the functions, presented by a series of options, regarding the intented action. main.py import base64 import binascii import base import ascbin import binoctal import bindecimal import binhexadecimal print("Welcome to prcrypt!") print("Please choose one of the following options:") print("Choice 1: Base64:") print("Choice 2: Binary - Text:") print("Choice 3: Binary - Octal:") print("Choice 4: Binary - Decimal:") print("Choice 5: Binary - Hexadecimal:") print("Choice 0: Terminate the program:") choice = input() if (choice == "0"): print("Ending....

January 6, 2023 ยท 4 min

PW Crack 1

First, dowload both the files in store them in the same directory. (level1.py and level1.flag.txt.enc). Open up the level1.py using your favorite editor or with the following command from the terminal. nano level1.py ### THIS FUNCTION WILL NOT HELP YOU FIND THE FLAG --LT ######################## def str_xor(secret, key): #extend key to secret length new_key = key i = 0 while len(new_key) < len(secret): new_key = new_key + key[i] i = (i + 1) % len(key) return ""....

December 20, 2022 ยท 1 min