Hacking Articles Tips Tricks Videos Tutorials
468 subscribers
65.9K photos
15 videos
157 files
132K links
Exploit
Pentesting
Hacking
Red Team
Blue Team
Kali Linux
Bug Bounty
Black Hat
Cyber security etc

@Hacking_Video
@Hacking_attack
Download Telegram
Hacking Articles Tips Tricks Videos Tutorials
Photo
KitPloit - PenTest Tools!
Php-Jpeg-Injector - Injects Php Payloads Into Jpeg Images

http://3.bp.blogspot.com/-B7zRO87ZAgU/YP8gStMzIeI/AAAAAAAAorA/JE9sPBXEdD0OGt_8DyWIv_VRmx0zYV0-ACK4BGAYYCw/w640-h465/php-jpeg-injector_1-776367.jpeg
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 '

How it works

PHP code is injected in the null/garbage (brown) space after the scan header:

http://3.bp.blogspot.com/-B7zRO87ZAgU/YP8gStMzIeI/AAAAAAAAorA/JE9sPBXEdD0OGt_8DyWIv_VRmx0zYV0-ACK4BGAYYCw/w640-h465/php-jpeg-injector_1-776367.jpeg

The new infected jpeg is run through PHP's gd-library. PHP interprets the payload injected in the jpeg and executes it.
Download Php-Jpeg-Injector

___________________________
@hacking_Attack
@Hacking_Video
What is BOLA? 3-digit bounty from Topcoder ($$$)

This write-up will be about Broken Object Level Authorization (BOLA), which is #1 topic of API Security 101 (OWASP).Continue reading on InfoSec Write-ups »
Read more...
Exploiting JWT to Account Takeover

Hey Cyberpunks, Ethical Kaps here, I’m back again with another powerful article. I hope you all are doing great in your life. Today we are…Continue reading on InfoSec Write-ups »
Read more...
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
Exploiting JWT to Account Takeover

https://cdn-images-1.medium.com/max/1640/1*NTtxNfncSpGSob8KcuPcrg.png
Hey Cyberpunks, Ethical Kaps here, I’m back again with another powerful article. I hope you all are doing great in your life. Today we are…

Continue reading on InfoSec Write-ups »