@@ -676,15 +676,18 @@ def myworkspace
676
676
"cisco.ios.ppp_username_password" , "text/plain" , "127.0.0.1" , "someusername:1511021F0725" , "ppp_username_password.txt" ,
677
677
"Cisco IOS PPP Username and Password"
678
678
)
679
- expect ( aux_cisco ) . to receive ( :store_cred ) . with (
679
+ expect ( aux_cisco ) . to receive ( :create_credential_and_login ) . with (
680
680
{
681
- host : "127.0.0.1" ,
681
+ address : "127.0.0.1" ,
682
682
port : 1337 ,
683
- user : "someusername" ,
684
- pass : "1511021F0725" ,
685
- type : "password" ,
686
- collect_type : "password" ,
687
- active : true
683
+ protocol : "tcp" ,
684
+ workspace_id : workspace . id ,
685
+ origin_type : :service ,
686
+ service_name : '' ,
687
+ module_fullname : "auxiliary/scanner/snmp/cisco_dummy" ,
688
+ private_data : "1511021F0725" ,
689
+ private_type : :nonreplayable_hash ,
690
+ status : Metasploit ::Model ::Login ::Status ::UNTRIED
688
691
}
689
692
)
690
693
aux_cisco . cisco_ios_config_eater ( '127.0.0.1' , 1337 , 'ppp123username someusername secret 0 1511021F0725' )
@@ -699,6 +702,20 @@ def myworkspace
699
702
"cisco.ios.ppp_username_password_hash" , "text/plain" , "127.0.0.1" , "someusername:1511021F0725" , "ppp_username_password_hash.txt" ,
700
703
"Cisco IOS PPP Username and Password Hash (MD5)"
701
704
)
705
+ expect ( aux_cisco ) . to receive ( :create_credential_and_login ) . with (
706
+ {
707
+ address : "127.0.0.1" ,
708
+ port : 1337 ,
709
+ protocol : "tcp" ,
710
+ workspace_id : workspace . id ,
711
+ origin_type : :service ,
712
+ service_name : '' ,
713
+ module_fullname : "auxiliary/scanner/snmp/cisco_dummy" ,
714
+ private_data : "1511021F0725" ,
715
+ private_type : :nonreplayable_hash ,
716
+ status : Metasploit ::Model ::Login ::Status ::UNTRIED
717
+ }
718
+ )
702
719
aux_cisco . cisco_ios_config_eater ( '127.0.0.1' , 1337 , 'ppp123username someusername secret 5 1511021F0725' )
703
720
end
704
721
@@ -712,15 +729,18 @@ def myworkspace
712
729
"cisco.ios.ppp_username_password" , "text/plain" , "127.0.0.1" , "someusername:cisco" , "ppp_username_password.txt" ,
713
730
"Cisco IOS PPP Username and Password"
714
731
)
715
- expect ( aux_cisco ) . to receive ( :store_cred ) . with (
732
+ expect ( aux_cisco ) . to receive ( :create_credential_and_login ) . with (
716
733
{
717
- host : "127.0.0.1" ,
734
+ address : "127.0.0.1" ,
718
735
port : 1337 ,
719
- user : "someusername" ,
720
- pass : "cisco" ,
721
- type : "password" ,
722
- collect_type : "password" ,
723
- active : true
736
+ protocol : "tcp" ,
737
+ workspace_id : workspace . id ,
738
+ origin_type : :service ,
739
+ service_name : '' ,
740
+ module_fullname : "auxiliary/scanner/snmp/cisco_dummy" ,
741
+ private_data : "cisco" ,
742
+ private_type : :password ,
743
+ status : Metasploit ::Model ::Login ::Status ::UNTRIED
724
744
}
725
745
)
726
746
aux_cisco . cisco_ios_config_eater ( '127.0.0.1' , 1337 , 'ppp123username someusername secret 7 1511021F0725' )
0 commit comments