I have been working on a project recently and thought it may be time to share it with the community.
Minus a few test runs here and there, this is essentially my first python project and would appreciate the feedback, especially with error handling as I'm certain the blood of a few python wizards will soon boil.
We had to include a few various different elements to pass the criteria, and quite frankly I wanted to get into Python classes early. It will only work when connecting to Linux distributions as of yet, with Windows expected to be implemented in the next few weeks once I have some free time.
The progress bar displays twice for some reason too, so if anyone fancies helping me out that would be appreciated. The banner grab is also fairly unpredictable for reasons unknown.
It would be worth changing the self.Str in line 145 to a path on the remote system
Also change the SFTP local and remote host paths as required
(Line 201, 202)
Also change the SFTP local and remote host paths as required
(Line 201, 202)
Usage:
Insert IP, Port, User and Pass
Hit 1 : The Bad Samaritan
Enter commands into the loop
Break the loop with 'Disconnect'
Verify string
Make connection and send string to server, outputting response to file
Hit 2: The Retrieval Job
Verify file transferred to local machine successfully
Hit 1 : The Bad Samaritan
Enter commands into the loop
Break the loop with 'Disconnect'
Verify string
Make connection and send string to server, outputting response to file
Hit 2: The Retrieval Job
Verify file transferred to local machine successfully
So without further ado
Feel free to edit, modify, study the code as you see fit
Feedback welcome.
Feedback welcome.
Credit to Sergeant Sploit for the knowledge kindly shared a good few months back now. Thank you my friend.
0 comments:
Post a Comment