Relayer – SMB Relay Attack Script

relayer smb

Relayer – SMB Relay Attack Script

Relayer is an SMB relay Attack Script that automates all the necessary steps to scan for systems with SMB signing disabled and relaying authentication request to these systems with the objective of gaining a shell. Great when performing Penetration testing.

Relayer makes use of Unicorn from trustedsec to create the payload that is executed on the target system you select. see , you can run the listener on the system you are running relayer on or an alternate system.

Another payload Option includes using Ps1encode ( to generate and encode a powershell based metasploit payload using an sct (COM Scriptlet) file. Relayer will automatically create a webserver using python to stage the payload.


Run to validate dependencies and install missing ones.

Once everything is ready, usage is simple, simply run as root:

sudo ./

How does the Script Work

Script runs the following Steps:

  • Scan for SMB Systems on Target Network and List those with SMB signing Disabled
  • User selects system to Relay the authentication attempts to
  • User selects where to set the Listener for incoming connections
  • Relayer creates payload and sets up Responder and SMBRelayX
  • Wait for connection attempts to your attacking machine and check Listener


Only run this tool where you have permission to do so.


  • chuckle by Craig S. Blackie –
  • Unicorn (@HackingDave) –
  • ps1encode by CroweCybersecurity –

DOWNLOAD Relayer Attack Script

You Might Also Like