mirror of
https://github.com/AbdullahRizwan101/CTF-Writeups
synced 2024-11-22 03:53:03 +00:00
Update Cheat Sheet.md
This commit is contained in:
parent
bb018b0686
commit
8e66401d2d
1 changed files with 9 additions and 0 deletions
|
@ -336,6 +336,15 @@ dir /a:h `show only hidden files`<br/>
|
|||
`powershell Invoke-WebRequest -Uri $ip -OutFile $filepath`
|
||||
`smbserver.py Share /opt/share -smb2support , copy file \\IP\Share`
|
||||
|
||||
### Executing commands through differnet user
|
||||
|
||||
```powershell
|
||||
$Cred = New-Object System.Management.Automation.PSCredential('domain\user', $SecPassword)
|
||||
$SecPassword = ConvertTo-SecureString 'password' -AsPlainText -Force
|
||||
Invoke-Command -Computer 127.0.0.1 -Credential $Cred -ScriptBlock { whoami }
|
||||
```
|
||||
|
||||
|
||||
## Enumeration
|
||||
|
||||
* Running `winPEAS.exe` on the machine
|
||||
|
|
Loading…
Reference in a new issue