Python3 Command and Control How to Guide

Joe Helle
The Mayor
Published in
4 min readApr 4, 2023

--

Chapter Two — Socket Communications Part 1

In Lesson 1 we talked about how to configure a basic socket connection between two points and transfer data. In this lesson we will construct the foundations of the server and client, which will eventually be our payload. Prior to beginning, you will need some type of text-based editor. I use Visual Studio Code throughout the course; however, you are free to use what you wish (unless it’s Vim of course).

Opening our first file, we can call that sockserver.py (sockserver from here on out), and…

--

--

Father | Husband | Army Veteran | Former Mayor | Chief Operating Officer | Red Team Lead | CISM | PNPT | OSCP | Retired Moonshiner | Twitter @joehelle