-
Notifications
You must be signed in to change notification settings - Fork 555
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
Allow username detection on older Cisco ios versions #1121
Allow username detection on older Cisco ios versions #1121
Conversation
This switches to the older `| include` syntax, and allows usernames with `password` to be detected.
It looks like while this will work for older ios versions, as I have available, it may not work properly for newer versions. I'm evaluating if it's plausible to support detection of section vs include. |
@dlundgren Can you expand a bit on what works on older IOS versions and what doesn't work on newer IOS versions (as it is a bit unclear to me the reference of |
Older IOS does not support For example, I have a 3750G with IOS 12.2(44)SE12 and using On newer IOS with support for ssh keys, |
Yeah, I guess you could do a PR and try the newer form first i.e. |
Hey @dlundgren - have you seen Kirk's suggestion? |
I haven't had time to fix this up with his suggestions. I will try to look at this over the next week. |
Older iOS will return `% Invalid input detected at '^' marker.`
I've updated to check the command output by looking for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me now!
This switches to the older
| include
syntax, and allows usernames withpassword
to be detected.