Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ios terminal regex for privilege escalation #62479

Merged
merged 1 commit into from
Sep 23, 2019

Conversation

ganeshrn
Copy link
Member

SUMMARY

Fixes #61726

  • On some ios versions the password prompt for enable
    command differs. Modify the regex to work with multiple
    password prompt patterns
    1. password:
    2. Password:
    3. Local_Password:
    4. Enter Local Password:
ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

plugins/terminal/ios.py

ADDITIONAL INFORMATION

Fixes ansible#61726

*  On some ios versions the passwrod prompt for enable
   command differs. Modify the regex to work with multiple
   password prompt patterns
   1) password:
   2) Password:
   3) Local_Password:
   4) Enter Local Password:
@ansibot
Copy link
Contributor

ansibot commented Sep 18, 2019

@ansibot ansibot added affects_2.10 This issue/PR affects Ansible v2.10 bug This issue/PR relates to a bug. cisco Cisco technologies core_review In order to be merged, this PR must follow the core review workflow. has_issue ios Cisco IOS community needs_triage Needs a first human triage before being processed. networking Network category small_patch support:network This issue/PR relates to code supported by the Ansible Network Team. labels Sep 18, 2019
@ansibot ansibot removed the needs_triage Needs a first human triage before being processed. label Sep 18, 2019
@ansible-zuul
Copy link

ansible-zuul bot commented Sep 18, 2019

Build succeeded (third-party-check pipeline).

@ganeshrn ganeshrn merged commit bd8097e into ansible:devel Sep 23, 2019
@ganeshrn ganeshrn deleted the ios_terminal_regex branch September 23, 2019 09:44
ganeshrn added a commit to ganeshrn/ansible that referenced this pull request Sep 23, 2019
Fixes ansible#61726

*  On some ios versions the passwrod prompt for enable
   command differs. Modify the regex to work with multiple
   password prompt patterns
   1) password:
   2) Password:
   3) Local_Password:
   4) Enter Local Password:

(cherry picked from commit bd8097e)
ganeshrn added a commit to ganeshrn/ansible that referenced this pull request Sep 23, 2019
Fixes ansible#61726

*  On some ios versions the passwrod prompt for enable
   command differs. Modify the regex to work with multiple
   password prompt patterns
   1) password:
   2) Password:
   3) Local_Password:
   4) Enter Local Password:

(cherry picked from commit bd8097e)
@ansible ansible locked and limited conversation to collaborators Oct 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.10 This issue/PR affects Ansible v2.10 bug This issue/PR relates to a bug. cisco Cisco technologies core_review In order to be merged, this PR must follow the core review workflow. has_issue ios Cisco IOS community networking Network category small_patch support:network This issue/PR relates to code supported by the Ansible Network Team.
Projects
None yet
3 participants