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

phrasebooks/cisco/hp/pb: (unused) prompt basic makes logging in impossible #25

ollyg opened this Issue Sep 20, 2017 · 1 comment


None yet
2 participants

ollyg commented Sep 20, 2017

Migrated from #121523 (status was 'new')


From on 2017-05-04 03:38:34:

the hp phrasebook as shipped contains the prompt 'basic', which
overlaps and conflicts with the pass(word) prompt (which is inherited from
the cisco pb). (as far as i can tell from reading the source
of n:🅰️:s and n::c::i, prompt basic isn't even used anywhere?)

that prompt basic matches on /: ?$/ causes n:🅰️:s to fail logging
in on hp procurve devices because the device requests the password
with "username's password: " and basic catches that before the pass(word)
prompt can fire. see the following debug snippet:

[ 0.009026] pr finding prompt
[ 0.012213] tr creating Net::Telnet wrapper for ssh
[ 0.012977] tr connecting with: ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o CheckHostIP=no -o PubkeyAuthentication=no -e none -l manager
[ 1.271511] pr nope, doesn't (yet) match basic
[ 1.271874] pr nope, doesn't (yet) match pass
[ 1.272355] pr nope, doesn't (yet) match generic
[ 1.272724] pr nope, doesn't (yet) match user
[ 1.272991] pr nope, doesn't (yet) match configure
[ 1.273206] pr nope, doesn't (yet) match privileged
[ 1.273770] pr nope, doesn't (yet) match prompt
[ 1.318968] du SEEN:
Warning: Permanently added '' (RSA) to the list of known hosts.
We'd like to keep you up to date about:

manager@'s password:
[ 1.319490] pr hit, matches prompt basic
[ 1.319834] pr prompt has been set to (?^:: ?$)
[ 1.324885] pr output matching prompt was "manager@'s password: "
[ 1.325330] di trimmed command response:
Warning: Permanently added '' (RSA) to the list of known hosts.
We'd like to keep you up to date about:

and the password is never sent and the session eventually fails
with "login failed to remote host - prompt does not match"


Alexander Zangerl
skype: alex.zangerl
mobile: +61 415 482 341

az143 added a commit that referenced this issue Oct 4, 2017


This comment has been minimized.

Show comment
Hide comment

az143 Oct 4, 2017


an updated phrasebook was pushed.


az143 commented Oct 4, 2017

an updated phrasebook was pushed.

@az143 az143 closed this Oct 4, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment