darkoperator / darkoperator/Posh-SSH

Support for "password:" password prompts

Open
#186 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PowerShell
Stars
1.1k
Forks
222
PR merge metrics
No merged PRs in 30d

Description

For our network devices, we use TACACS for network access authentication, which uses a custom password prompt to differentiate from logging in with a local account. In other words, here's the local password prompt:

===============================
TOS
===============================
Password:

and here's the network password prompt:

===============================
TOS
===============================
Ops password:

This can be supported if you update the following line in NewSessionBase.cs from:
if (prompt.Request.Contains("Password"))
to
if (prompt.Request.Contains("assword"))

I'm new to Github so I don't know what the protocol is, I didn't want to make the change myself, so I figured I would submit it as an issue and get your thoughts on it. Thanks!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in NewSessionBase.cs at the prompt check shown in the issue and trace how password prompts are handled. Confirm that the change supports both the existing "Password:" prompt and the network device's "Ops password:" prompt, then verify the resulting behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
authentication
Issue type
Feature
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.