r/redteamsec • u/lsecqt • Apr 08 '23
Offensive C++
I am happy to introduce you the newly created Offensive C++ repo: https://github.com/lsecqt/OffensiveCpp
The aim of the repo is to contain useful c/c++ code snippets for offensive purposes. It is community based so feel free to contribute as much as u want and can.
I also started video series of "Offensive coding with C++" and all o the code samples will be on this repo as well.
The first video is already up: https://youtu.be/WYf_nPIPC4s
Would appreciate any feedback and tips regarding the projects.
3
u/urbushey Apr 09 '23
If you are looking for an easy way to add some documentation / comments to the top of each snippet, chatGPT does what looks like to me (as a layperson in C++) a pretty ok job of summarizing.
This code is written in C, a general-purpose programming language. The program is designed to perform process injection on a Windows operating system. Process injection is a technique used in both legitimate applications and malicious software to run code within the address space of another process. In this particular case, the code injects an empty shellcode (unsigned char buf[] = "";) into a running process with the specified process ID (pid).
1
7
u/_W0z Apr 08 '23
I've been looking for something like this. This will definitely be useful.