If you are scratching your head after working on the preceding module, let's understand the module in a step by step fashion:
- We've created a CredentialCollection object that takes any type of user input and yields credentials. This means that if we provide USERNAME as root and PASSWORD as root, it will yield those as a single credential. However, if we use USER_FILE and PASS_FILE as dictionaries then it will take each username and password from the dictionary file and will generate credentials for each combination of username and password from the files respectively.
- We've created scanner object for SSH, which will eliminate any manual command usage and will simply check all the combinations we supplied one after ...