mirror of
https://github.com/AbdullahRizwan101/CTF-Writeups
synced 2024-11-22 20:13:02 +00:00
Update Cheat Sheet.md
This commit is contained in:
parent
5f6b299f77
commit
927c00b7cb
1 changed files with 8 additions and 2 deletions
|
@ -21,7 +21,7 @@ chattr + i filename `making file immutable`<br/>
|
||||||
chattr -i filename `making file mutable`<br/>
|
chattr -i filename `making file mutable`<br/>
|
||||||
lschattr filename `Checking file attributes`
|
lschattr filename `Checking file attributes`
|
||||||
|
|
||||||
# Windows Shell
|
# Windows
|
||||||
|
|
||||||
### Adding User
|
### Adding User
|
||||||
net user "USER_NAME" "PASS" /add
|
net user "USER_NAME" "PASS" /add
|
||||||
|
@ -29,7 +29,13 @@ net user "USER_NAME" "PASS" /add
|
||||||
net user "USER_NAME" "NEWPASS"
|
net user "USER_NAME" "NEWPASS"
|
||||||
### Adding User to Administrators
|
### Adding User to Administrators
|
||||||
net localgroup administrators "USER_NAME" /add
|
net localgroup administrators "USER_NAME" /add
|
||||||
|
### Changing File Permissions
|
||||||
|
CACLS files /e /p {USERNAME}:{PERMISSION}
|
||||||
|
Permissions:
|
||||||
|
1.R `Read`
|
||||||
|
2.W `Write`
|
||||||
|
3.C `Change`
|
||||||
|
4.F `Full Control`
|
||||||
|
|
||||||
# King Of The Hill (KoTH)
|
# King Of The Hill (KoTH)
|
||||||
#### Monitoring and Closing Shell
|
#### Monitoring and Closing Shell
|
||||||
|
|
Loading…
Reference in a new issue