Python - Linux Remote Administration Tool

Jun 17, 2015 07:23 PM
635701397639079217.jpg

Good evening.

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)

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

So without further ado

http://pastebin.com/6xQU463d

Feel free to edit, modify, study the code as you see fit

Feedback welcome.

Credit to Sergeant Sploit for the knowledge kindly shared a good few months back now. Thank you my friend.

Related Articles

637263493835297420.jpg

How to Use Zero-Width Characters to Hide Secret Messages in Text (& Even Reveal Leaks)

636455706472146367.jpg

How to Hide DDE-Based Attacks in MS Word

Comments

No Comments Exist

Be the first, drop a comment!