def testing(): a='1c0111001f010100061a024b53535009181c' b='686974207468652062756c6c277320657965' hexor(a,b) print "'746865206b696420646f6e277420706c6179'" c = '0x09184020923093L' d = '48294'
def about(self): font_url = "https://raw.githubusercontent.com/yasserbdj96/asciitext/main/fonts/ANSI_Shadow.txt" print(ascii.asciitext(font_url, "#imbot", "#ff0000")) hexor().c("https://github.com/yasserbdj96", "#299c52") print("") #}END.
def save(): key = 'ICE' text = "Burning 'em, if you ain't quick and nimble\nI go crazy when I hear a cymbal" expected = '0b3637272a2b2e63622c2e69692a23693a2a3c6324202d623d63343c2a26226324272765272a282b2f20430a652e2c652a3124333a653e2b2027630c692b20283165286326302e27282f' from binascii import hexlify hkey = hexlify(key) htext = hexlify(text) longhkey = ''.join([hkey for i in range(len(htext)/len(hkey)+1) ])[:len(htext)] from hexor import hexor hexor(hkey,htext[0:5])
def mat15(key='ICE',text="Burning 'em, if you ain't quick and nimble\nI go crazy when I hear a cymbal"):#,defaults=True): #Expect key as first arguement, text as second ## if len(args)>1: ## key = args[1] ## text = args[2] ## else: ## key = raw_input('Enter the encryption key without quotes (use \\n for newline): ') ## text = raw_input('Enter the text to encrypt without quotes (use \\n for newline): ') ## if defaults == True: ## print 'Using default values' from binascii import hexlify hkey = hexlify(key) htext = hexlify(text) longhkey = ''.join([hkey for i in range(len(htext)/len(hkey)+1) ])[:len(htext)] ## from hexor import hexor return hexor(longhkey, htext)
def run(self, goto, *argm): operations = self.json_data[goto]['operations'] #for i in range(len(operations)): get_list = [] for i, operation in enumerate(operations): try: # if "code" in operation: code = operation['code'] elif "arg_code" in operation: code = argm[int(operation['arg_code'])] # types = operation['type'] exec(f"self.driver.find_element_by_{types}('{code}')") # if operation['opt'] == "click": do = "click()" text = f"[✓] Clicking on element_by_{types} : '{code}'" exec(f"self.driver.find_element_by_{types}('{code}').{do}") hexor().c(text, "#299c52") sleep(self.sleep_time) # elif operation['opt'] == "put": # if "arg_data" in operation: data = argm[int(operation['arg_data'])] elif "data" in operation: data = operation['data'] else: data = input( hexor(True).c("Data is empty : ", "#ff0000")) do = f"send_keys('{data}')" text = f"[✓] Putting data to element_by_{types} : '{code}'" exec(f"self.driver.find_element_by_{types}('{code}').{do}") hexor().c(text, "#299c52") sleep(self.sleep_time) # elif operation['opt'] == "get": do = "" text = f"[✓] Get data to element_by_{types} : '{code}'" # if "arg_data" in operation: data = argm[int(operation['arg_data'])] elif "data" in operation: data = operation['data'] else: data = input( hexor(True).c("Data is empty : ", "#ff0000")) #xxx="hiii" xxx = f"self.driver.find_element_by_{types}('{code}').get_attribute('{data}')" hexor().c(text, "#299c52") get_list.append(eval(xxx)) sleep(self.sleep_time) # except Exception as e: try: # if "code" in operation: code = operation['code'] elif "arg_code" in operation: code = argm[int(operation['arg_code'])] # types = operation['type'] hexor().c( f"[✗] We couldn't find : element_by_{types}:'{code}'", "#ff0000") sleep(self.sleep_time) del code except Exception as e: hexor().c("Erreur inconnue!.", "#ff0000") sleep(self.sleep_time) finally: pass finally: pass return get_list