Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
deesel authored and wk committed Jan 26, 2020
1 parent 49f4c28 commit 87f38d1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Master

* FEATURE: add enable support to ciscosmb (@deesel)
* FEATURE: add Waystream iBOS model
* BUGFIX: better login modalities for telnet in aos7 (@optimuscream)
* BUGFIX: better virtual domain detection in fortios (@agabellini)
Expand Down
10 changes: 10 additions & 0 deletions lib/oxidized/model/ciscosmb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,16 @@ class CiscoSMB < Oxidized::Model
cfg :telnet, :ssh do
username /^User ?[nN]ame:/
password /^\r?Password:$/

post_login do
if vars(:enable) == true
cmd 'enable'
elsif vars(:enable)
cmd 'enable', /^\r?Password:$/
cmd vars(:enable)
end
end

post_login 'terminal datadump' # Disable pager
post_login 'terminal width 0'
post_login 'terminal len 0'
Expand Down

0 comments on commit 87f38d1

Please sign in to comment.