Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hands-On Red Team Tactics

You're reading from   Hands-On Red Team Tactics A practical guide to mastering Red Team operations

Arrow left icon
Product type Paperback
Published in Sep 2018
Publisher
ISBN-13 9781788995238
Length 480 pages
Edition 1st Edition
Tools
Arrow right icon
Authors (2):
Arrow left icon
Harpreet Singh Harpreet Singh
Author Profile Icon Harpreet Singh
Harpreet Singh
Himanshu Sharma Himanshu Sharma
Author Profile Icon Himanshu Sharma
Himanshu Sharma
Arrow right icon
View More author details
Toc

Table of Contents (16) Chapters Close

Preface 1. Red-Teaming and Pentesting 2. Pentesting 2018 FREE CHAPTER 3. Foreplay - Metasploit Basics 4. Getting Started with Cobalt Strike 5. ./ReverseShell 6. Pivoting 7. Age of Empire - The Beginning 8. Age of Empire - Owning Domain Controllers 9. Cobalt Strike - Red Team Operations 10. C2 - Master of Puppets 11. Obfuscating C2s - Introducing Redirectors 12. Achieving Persistence 13. Data Exfiltration 14. Assessment 15. Other Books You May Enjoy

Popping up a Meterpreter session using Empire

The concept of popping up a meterpreter session using Empire is very easy to understand. Empire can inject code directly into the memory and execute it. We just need to get an obfuscated shellcode or the DLL/EXE generated by msfvenom and inject the DLL/EXE/shellcode into the memory using Empire. Let's first generate a reverse shell DLL using msfvenom:

Upload the malicious DLL using the upload command:

We can now use the invoke_dllinjection module for DLL injection. Let's execute the following commands in order to use this module:

usemodule code_execution/invoke_dllinjection 
info 

Set ProcessID where you want to inject your DLL, and then set the DLL path where you have uploaded the malicious DLL. The location can be an absolute path or a relative path:

Before executing the module, let's start the handler on Metasploit...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image