mirror of
https://github.com/trustedsec/social-engineer-toolkit
synced 2025-02-16 13:28:36 +00:00
remove nested statement with the same condition
This commit is contained in:
parent
02ed2e8f11
commit
dd4d02f1af
1 changed files with 6 additions and 7 deletions
|
@ -294,13 +294,12 @@ def web_server_start():
|
||||||
thread.start_new_thread(webserver.start_server, (web_port, path))
|
thread.start_new_thread(webserver.start_server, (web_port, path))
|
||||||
|
|
||||||
|
|
||||||
if apache == 0:
|
if os.path.isfile(userconfigpath + "meta_config"):
|
||||||
if os.path.isfile(userconfigpath + "meta_config"):
|
msf_path = meta_path()
|
||||||
msf_path = meta_path()
|
#print("You will need to launch the listener on your own, execute in a different shell the following command if using Metasploit:")
|
||||||
#print("You will need to launch the listener on your own, execute in a different shell the following command if using Metasploit:")
|
child = pexpect.spawn("%smsfconsole -r %s/meta_config" % (msf_path, userconfigpath))
|
||||||
child = pexpect.spawn("%smsfconsole -r %s/meta_config" % (msf_path, userconfigpath))
|
child.interact()
|
||||||
child.interact()
|
pause=raw_input("Press <return> when you want to shut down the web server. It is currently listening.")
|
||||||
pause=raw_input("Press <return> when you want to shut down the web server. It is currently listening.")
|
|
||||||
|
|
||||||
# Handle KeyboardInterrupt
|
# Handle KeyboardInterrupt
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
|
|
Loading…
Add table
Reference in a new issue