mirror of
https://github.com/trustedsec/social-engineer-toolkit
synced 2024-11-21 20:13:04 +00:00
Merge pull request #924 from donno2048/patch-2
Remove nested statement with the same condition
This commit is contained in:
commit
09c7b7343f
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))
|
||||
|
||||
|
||||
if apache == 0:
|
||||
if os.path.isfile(userconfigpath + "meta_config"):
|
||||
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:")
|
||||
child = pexpect.spawn("%smsfconsole -r %s/meta_config" % (msf_path, userconfigpath))
|
||||
child.interact()
|
||||
pause=raw_input("Press <return> when you want to shut down the web server. It is currently listening.")
|
||||
if os.path.isfile(userconfigpath + "meta_config"):
|
||||
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:")
|
||||
child = pexpect.spawn("%smsfconsole -r %s/meta_config" % (msf_path, userconfigpath))
|
||||
child.interact()
|
||||
pause=raw_input("Press <return> when you want to shut down the web server. It is currently listening.")
|
||||
|
||||
# Handle KeyboardInterrupt
|
||||
except KeyboardInterrupt:
|
||||
|
|
Loading…
Reference in a new issue