In the following task you’re going to use MSRPC protocol (Microsoft implementation of DCERPC) in order to manage a remote Windows machine.
In specific, you will use MS-SAMR API which provides managements functionality for an account store or directory. You will find any information regarding the interface in the following link. You are not required to implement the whole MS-SAMR interface. Most of the work was already done for you by Impacket project. The project contains an implementation for most MSRPC interfaces with examples and test cases. Your code should support the following:
- Create a new local user\group
- Retrieve all users\groups
The code should request the user for a command to execute and the system will operate accordingly. For start, try to implement a piece of code for the following example. This example emphasizes the sequence of methods required to create a user account on a remote system. You need to understand each function, how it works, and the relevant structures involved. Next, extend it to fully support all the functionality required.
- You should work with GitHub repository to store and manage your code.
- You should be using Python 3.6+
- You are required to write your code using OOP concepts
- Document your code as much as needed
- Fork this repository (https://github.com/cymptomlabs/candidate-task.git).
- Send a link to the forked github repository to: itamar@cymptom.com .
Good luck!