You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 14, 2026. It is now read-only.
UScrubber (User Scrubber) is a tool designed to simplify the modification of users in a linux environment. It contains the following functionalities:
4
+
5
+
1. Detect user accounts
6
+
2. Modify sudo priviledges of users
7
+
3. Create a backup of users
8
+
4. Restore the users from a backup
9
+
10
+
Uscrubber performs these tasks with the aid of a user to ensure correct assumptions, it does provide error/warnings to assist the user in decision making. However, this tool IS NOT perfect. It cannot see service accounts (on purpose) and relies on the user.
11
+
12
+
13
+
## How to perform actions with UScrubber
14
+
15
+
When starting the shell you will be prompted with:
16
+
- Do you have an account list (a backup of users to restore)
17
+
- yes = Go to restore user process
18
+
- no = Go to modify user process
19
+
20
+
21
+
### Modify User Process
22
+
23
+
This will initally give a list of all the users with their
24
+
- Username
25
+
- UID
26
+
- GID
27
+
- Home location
28
+
- Login Shell Type
29
+
- Priviledge (only checks for sudo and root)
30
+
31
+
afterwards, you have the ability to choose if you want to modify a user or, if everything looks good pass to the next step.
32
+
33
+
If you chose to modify a user you will be prompted with what user to change (username) and what priviledge they should have. Anything else must be done mannually either in the backup or by manual oversight.
34
+
35
+
Finally, after the users were modified you are prompted with a do you want an account list option. which
36
+
- prints out your backup of the users in the terminal. This must be copied and pasted into a text document on your own device. (for red team security reasons [can be changed])
37
+
38
+
39
+
### Restore user Process
40
+
41
+
This will give you a way to use an account list. (See Modify User Process for more details) Which will:
42
+
- restore lost accounts with a new default password
43
+
- Modifies all accounts to a previous state in the account lsit
44
+
45
+
IT DOES NOT
46
+
- remove new accounts (use the modify user feature)
47
+
48
+
The format for the account list is the
49
+
- Username
50
+
- UID
51
+
- Priviledge
52
+
- Home Directory
53
+
54
+
Nothing else is considered. We can easily change this though to include something like the previous password.
55
+
56
+
57
+
## Other Notes / Improvements
58
+
59
+
- Can alter functionalty, this is currently the first prototype
60
+
- Tried taking into account red team activity, program is quite simple because of it.
0 commit comments