Added checking for local Ipv4 address

This commit is contained in:
sTiKyt 2020-05-08 16:41:14 +03:00
parent 1b8e41deba
commit 5ca3c9ffda
No known key found for this signature in database
GPG Key ID: 510E1C3C9B2414B4

View File

@ -30,8 +30,10 @@ def start_localhost(port):
| | | ]__| ]__| |__ | \| {0}|__ || |__{1} | | | ]__| ]__| |__ | \| {0}|__ || |__{1}
{0}http://github.com/darksecdevelopers {0}http://github.com/darksecdevelopers
{0}** BY:DARKSEC ** \n\n-------------------------------\n{0}[ LOCALHOST SERVER ]{1}!! {0}\n-------------------------------'''.format(default_palette[0], default_palette[2])) {0}** BY:DARKSEC ** \n\n-------------------------------\n{0}[ LOCALHOST SERVER ]{1}!! {0}\n-------------------------------'''.format(default_palette[0], default_palette[2]))
print("\n {0}[{1}*{0}]{0}Enter Your LocalHost/Router Address [ifconfig]:{1}".format(default_palette[0], default_palette[4])) #print("\n {0}[{1}*{0}]{0}Enter Your LocalHost/Router Address [ifconfig]:{1}".format(default_palette[0], default_palette[4]))
host = input(" \n{0}HiddenEye >>> {1}".format(default_palette[0], default_palette[2])) #host = input(" \n{0}HiddenEye >>> {1}".format(default_palette[0], default_palette[2]))
host = simple_informant.get_ip_addr
print("Your Localhost is {0}".format(host))
set_port set_port
#run_command("cd Server/www/ #run_command("cd Server/www/
# && php -S {0}:{1} > /dev/null 2>&1 &".format(host, port)) # && php -S {0}:{1} > /dev/null 2>&1 &".format(host, port))