# smbAutoRelay | Provides The Automation Of SMB/NTLM Relay Technique For Pentesting & Red Teaming Exercises

**URL:** <https://onehack.st/t/smbautorelay-provides-the-automation-of-smb-ntlm-relay-technique-for-pentesting-red-teaming-exercises/179272>\
**Category:** Tools & Scripts\
**Tags:** tools, freebies, windows\
**Created:** [April 18, 2021, 11:46pm UTC](https://onehack.st/t/smbautorelay-provides-the-automation-of-smb-ntlm-relay-technique-for-pentesting-red-teaming-exercises/179272 "2021-04-18T23:46:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheStrength](https://onehack.st/user_avatar/onehack.st/thestrength/32/46753_2.png) [@TheStrength](https://onehack.st/u/TheStrength)\
**Post date:** [April 18, 2021, 11:46pm UTC](https://onehack.st/t/smbautorelay-provides-the-automation-of-smb-ntlm-relay-technique-for-pentesting-red-teaming-exercises/179272/1 "2021-04-18T23:46:49Z")

</div>

![image](https://onehack.st/uploads/default/original/3X/c/3/c33b59594ba04d8b4b09720079b57a6ce67d39d8.png)

SMB AutoRelay provides the automation of SMB/NTLM Relay technique for pentesting and red teaming exercises in active directory environments.

**Usage**

Syntax: `./smbAutoRelay.sh -i <interface> -t <file> [-q] [-d] `.

Example: `./smbAutoRelay.sh -i eth0 -t ./targets.txt `.

> Notice that the targets file should contain just the IP addresses of each target, one per line, to which you want to try the SMB/NTLM Relay technique.

Run `./smbAutoRelay.sh [-h] `to see other options.

**Software which installs in the current directory [_needed to run properly_]**

- [responder](https://github.com/lgandx/Responder)
- [impacket](https://github.com/SecureAuthCorp/impacket)

**Software which installs through `apt `, if not installed [_needed to run properly_]**

- tmux
- rlwrap
- python
- python3
- netcat
- wget
- xterm
- net-tools

**TODOs**

- Add the possibility to capture and crack the NetNTLM hashes.
- Addapt it to use terminal profiles

## GitHub:

> **[GitHub - cheshireca7/smbAutoRelay: SMB Auto Relay provides the automation of SMB/NTLM...](https://github.com/cheshireca7/smbAutoRelay)**
>
> SMB Auto Relay provides the automation of SMB/NTLM Relay technique for pentesting and red teaming exercises in active directory environments.
