π SMB Uploads with WebDAV Twist
Typically, SMB (port TCP/445) is blocked on networks for security π«π‘οΈ. But when you want to upload files and canβt use traditional SMB... enter WebDAV! π§ββοΈ
π Why WebDAV?
WebDAV (π Web Distributed Authoring and Versioning) is an extension of HTTP (RFC 4918) and lets a web server behave like a file server β all over HTTP/HTTPS! It's great for uploads when SMB is blocked, and it works smoothly with Windowsβ Mini-Redirector driver.
π οΈ Step-by-Step: Setting Up WebDAV Uploads
π§± Step 1: Install WebDAV Python Modules
βοΈ Step 2: Start the WebDAV Server
β
This serves /tmp
as writable, anonymously-accessible WebDAV root via HTTP!
π» Step 3: Accessing the Share from Windows
π Browse from Windows using a special keyword:
πΉ DavWWWRoot
is not a real folder β it's a Windows keyword that says βconnect to the WebDAV rootβ.
π§ Or, connect directly to a real subfolder:
π€ Step 4: Upload a File to the Share
π§ You can also upload directly to a folder:
π Notes
If your network doesn't block SMB (TCP/445), you can still use
impacket-smbserver
for uploads as we did in downloads.But if it is blocked, WebDAV is your friend and works on HTTP/HTTPS! πͺ
Last updated