fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Trying to use responder with cli interactive menu options...


From: Chris Thomas
Subject: Trying to use responder with cli interactive menu options...
Date: Fri, 31 Jan 2020 14:29:12 +0000

Hey Guys/Gals,

 

I have a password reset script we are using that works for one id but not another which has to be done by “walking” through a couple cli menus.  I am trying to figure out how to scan the stdout to find a match then send a response using a menu option number scraped from the stdout (all assuming that stdout is where I would pull this from…. Sorry “very new” to python… background is mostly BASH.

 

So a very simplified flow would be something like this:

 

  1. Create connection
  2. Look at returned text from host to search for line “Go to admin menu”
  3. Returned text line is “1) Go to admin menu”  Parse menu option “1” and send that as first response
  4. Look at returned text from host to search for “Pass reset”
  5. Returned text line is “12) Password reset”  Parse menu option “12” and send that as next response
  6. Run through password reset responder routine

 

Problem is that the menu “numbers” can be different for the same option on our hosts which are running two diff OS versions.

 

Can anyone give me a clue how I might do this???

 

Chris Thomas
Pontiac, MI

reply via email to

[Prev in Thread] Current Thread [Next in Thread]