Skip to content

Conversation

Ekultek
Copy link
Contributor

@Ekultek Ekultek commented Mar 2, 2018

There was an error that sometimes occurs after the service is started, fixed it:

[?] it appears that service apache2 is not enabled, would you like us to enable it for you[y/N]: y
[+] services started successfully
Traceback (most recent call last):
  File "autosploit.py", line 5, in <module>
    main()
  File "/home/baal/bin/python/autosploit/autosploit/main.py", line 33, in main
    while not check_services(service):
  File "/home/baal/bin/python/autosploit/lib/settings.py", line 93, in check_services
    running_proc = psutil.Process(pid)
  File "/home/baal/.local/lib/python2.7/site-packages/psutil/__init__.py", line 392, in __init__
    self._init(pid)
  File "/home/baal/.local/lib/python2.7/site-packages/psutil/__init__.py", line 432, in _init
    raise NoSuchProcess(pid, None, msg)
psutil.NoSuchProcess: psutil.NoSuchProcess no process found with pid 29144

Changed the color of misc_info so it's not as close to the prompt color:
new_colors

@Ekultek Ekultek requested a review from NullArray March 2, 2018 17:13
Copy link
Contributor

@thehappydinoa thehappydinoa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

while not check_services(service):
choice = prompt("it appears that service {} is not enabled, would you like us to enable it for you[y/N]".format(service))
choice = prompt(
"it appears that service {} is not enabled, would you like us to enable it for you[y/N]".format(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a space after you ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

? you mean after the you[y/N] part?

@Ekultek Ekultek merged commit b5b0c9f into dev-beta Mar 4, 2018
@Ekultek Ekultek deleted the service-edits branch March 4, 2018 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants