@@ -756,15 +756,18 @@ def myworkspace
756
756
expect ( aux_cisco ) . to receive ( :store_loot ) . with (
757
757
"cisco.ios.ppp_password" , "text/plain" , "127.0.0.1" , "1511021F0725" , "ppp_password.txt" , "Cisco IOS PPP Password"
758
758
)
759
- expect ( aux_cisco ) . to receive ( :store_cred ) . with (
759
+ expect ( aux_cisco ) . to receive ( :create_credential_and_login ) . with (
760
760
{
761
- host : "127.0.0.1" ,
761
+ address : "127.0.0.1" ,
762
762
port : 1337 ,
763
- user : "" ,
764
- pass : "1511021F0725" ,
765
- type : "password" ,
766
- collect_type : "password" ,
767
- active : true
763
+ protocol : "tcp" ,
764
+ workspace_id : workspace . id ,
765
+ origin_type : :service ,
766
+ service_name : '' ,
767
+ module_fullname : "auxiliary/scanner/snmp/cisco_dummy" ,
768
+ private_data : "1511021F0725" ,
769
+ private_type : :nonreplayable_hash ,
770
+ status : Metasploit ::Model ::Login ::Status ::UNTRIED
768
771
}
769
772
)
770
773
aux_cisco . cisco_ios_config_eater ( '127.0.0.1' , 1337 , 'ppp chap secret 0 1511021F0725' )
@@ -779,6 +782,20 @@ def myworkspace
779
782
"cisco.ios.ppp_password_hash" , "text/plain" , "127.0.0.1" , "1511021F0725" , "ppp_password_hash.txt" ,
780
783
"Cisco IOS PPP Password Hash (MD5)"
781
784
)
785
+ expect ( aux_cisco ) . to receive ( :create_credential_and_login ) . with (
786
+ {
787
+ address : "127.0.0.1" ,
788
+ port : 1337 ,
789
+ protocol : "tcp" ,
790
+ workspace_id : workspace . id ,
791
+ origin_type : :service ,
792
+ service_name : '' ,
793
+ module_fullname : "auxiliary/scanner/snmp/cisco_dummy" ,
794
+ private_data : "1511021F0725" ,
795
+ private_type : :nonreplayable_hash ,
796
+ status : Metasploit ::Model ::Login ::Status ::UNTRIED
797
+ }
798
+ )
782
799
aux_cisco . cisco_ios_config_eater ( '127.0.0.1' , 1337 , 'ppp chap secret 5 1511021F0725' )
783
800
end
784
801
@@ -791,15 +808,18 @@ def myworkspace
791
808
expect ( aux_cisco ) . to receive ( :store_loot ) . with (
792
809
"cisco.ios.ppp_password" , "text/plain" , "127.0.0.1" , "cisco" , "ppp_password.txt" , "Cisco IOS PPP Password"
793
810
)
794
- expect ( aux_cisco ) . to receive ( :store_cred ) . with (
811
+ expect ( aux_cisco ) . to receive ( :create_credential_and_login ) . with (
795
812
{
796
- host : "127.0.0.1" ,
813
+ address : "127.0.0.1" ,
797
814
port : 1337 ,
798
- user : "" ,
799
- pass : "cisco" ,
800
- type : "password" ,
801
- collect_type : "password" ,
802
- active : true
815
+ protocol : "tcp" ,
816
+ workspace_id : workspace . id ,
817
+ origin_type : :service ,
818
+ service_name : '' ,
819
+ module_fullname : "auxiliary/scanner/snmp/cisco_dummy" ,
820
+ private_data : "cisco" ,
821
+ private_type : :password ,
822
+ status : Metasploit ::Model ::Login ::Status ::UNTRIED
803
823
}
804
824
)
805
825
aux_cisco . cisco_ios_config_eater ( '127.0.0.1' , 1337 , 'ppp chap secret 7 1511021F0725' )
0 commit comments