https://github.com/paulo-d2000/pnexe
C++ Based Steganography with exe files & png images
https://github.com/paulo-d2000/pnexe
cpp
Last synced: 12 months ago
JSON representation
C++ Based Steganography with exe files & png images
- Host: GitHub
- URL: https://github.com/paulo-d2000/pnexe
- Owner: Paulo-D2000
- License: mit
- Created: 2020-12-14T05:12:36.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-11-10T08:05:45.000Z (over 2 years ago)
- Last Synced: 2025-03-24T13:11:21.160Z (about 1 year ago)
- Topics: cpp
- Language: C++
- Homepage:
- Size: 1.91 MB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PNexe
C++ Based Steganography & In-Memory Execution of .exe (PE) files hidden as png images!

//EN - US //
*ATENTION! I DON'T RESPONSABILIZE FOR YOUR ACTS, THIS CODE IS ONLY FOR EDUCATIONAL PURPOSES!"
This code will do in memory execution of PE data stored as valid png file.
Dependencies (Used in pre-built demo, already on the bin folder):\
libgcc_s_dw2-1.dll\
libgcc_s_seh-1.dll\
libstdc++-6.dll
Build instructions:\
```git clone https://github.com/Paulo-D2000/PNexe.git --recursive```\
```mkdir build```\
```g++ Encoder/main.cpp -I./external/ -fpermissive -O2 -o build/Encoder```\
```g++ Decoder/main.cpp ./external/RunPE-X86--X64-/RunPE.cpp -I./external/RunPE-X86--X64-/ -I./external/ -fpermissive -O2 -o build/Decoder```\
```g++ Demo/demo_msgbox.cpp -fpermissive -o build/MsgBox```
Encoder.exe -> Usage: file.exe or drop the executable to "Encoder.exe" -> generates the .png\
Decoder.exe -> Usage: encoded.png or drop the image to "Decoder.exe" -> will execute the .png PE data
// Inside Demo/bin folder there are the compiled tools and one simple messagebox executable "MsgBox.exe" for testing //
// PT - BR //
*ATENÇÃO! NÃO RESPONSABILIZO POR SEUS ATOS, ESTE CÓDIGO É APENAS PARA FINS EDUCACIONAIS! "
Este codigo faz execução na memória de um PE ( arquivo .exe executavel) salvo como uma imagem png válida.
Dependências (Usadas na demo pré-compilada, já estão na pasta bin):\
libgcc_s_dw2-1.dll\
libgcc_s_seh-1.dll\
libstdc++-6.dll
Instruções para compilação:\
```git clone https://github.com/Paulo-D2000/PNexe.git --recursive```\
```mkdir build```\
```g++ Encoder/main.cpp -I./external/stb -fpermissive -O2 -o build/Encoder```\
```g++ Decoder/main.cpp ./external/RunPE-X86--X64-/RunPE.cpp -I./external/RunPE-X86--X64-/ -I./external/stb/ -fpermissive -O2 -o build/Decoder```\
```g++ Demo/demo_msgbox.cpp -fpermissive -o build/MsgBox```
Encoder.exe -> Uso: arquivo.exe ou arraste o executável em cima de "Encoder.exe"\
Decoder.exe -> Uso: encoded.png ou arraste a imagem em cima de "Decoder.exe"
// Dentro da pasta Demo/bin estão presentes as ferramentas compiladas e um gerador de mensagem "MsgBox.exe" para testes //