Hack Forums
ask insert code php to jpg - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45)
+--- Forum: Grayhat • Purple Team • Hybrid Security (https://hackforums.net/forumdisplay.php?fid=449)
+---- Forum: Website Hacking (https://hackforums.net/forumdisplay.php?fid=43)
+----- Forum: SQL Injection Attacks (https://hackforums.net/forumdisplay.php?fid=103)
+----- Thread: ask insert code php to jpg (/showthread.php?tid=6167685)



ask insert code php to jpg - vira - Aug 11, 2021

Hi
sorry can i have questions ?

i want insert my code php shell < ?....?> to one file picture like : .jpg , .gif ....or somethings like that ?

can you suggest me some method ? ,
i have try with exiftool ,its worked only with <? phpinfo();?> but other code its not work , show error
i test my code shell , always not work :(
please help me ,thank you so much


RE: ask insert code php to jpg - Money- - Aug 11, 2021

I just found this the other day. But this for jpeg instead of jpg or gif etc. If the site allows jpeg then go ahead.

https://github.com/dlegs/php-jpeg-injector?fbclid=IwAR0aMVwbOXP-NIFEcFeo6p19GW5bb0InHTjeYXnhDyTrNa_fkQ_9TsgFGhQ

Let me know if it works , I haven't test the tool myself.


RE: ask insert code php to jpg - vira - Aug 12, 2021

(Aug 11, 2021 04:47 PM)Money- Wrote:  I just found this the other day. But this for jpeg instead of jpg or gif etc. If the site allows jpeg then go ahead.

https://github.com/dlegs/php-jpeg-injector?fbclid=IwAR0aMVwbOXP-NIFEcFeo6p19GW5bb0InHTjeYXnhDyTrNa_fkQ_9TsgFGhQ

Let me know if it works , I haven't test the tool myself.

thank you so much , i willl test it , let you know :D


(Aug 11, 2021 04:47 PM)Money- Wrote:  I just found this the other day. But this for jpeg instead of jpg or gif etc. If the site allows jpeg then go ahead.

https://github.com/dlegs/php-jpeg-injector?fbclid=IwAR0aMVwbOXP-NIFEcFeo6p19GW5bb0InHTjeYXnhDyTrNa_fkQ_9TsgFGhQ

Let me know if it works , I haven't test the tool myself.


thank for your share so much , but i dont know why i test this tool always not working , its always show somethings like:

The filename, directory name, or volume label syntax is incorrect.

this is picture , what its show , i hope some peoples can help you and me to fixed this one

[Image: m20ITxW.jpg]


RE: ask insert code php to jpg - Disqual - Aug 12, 2021

(Aug 12, 2021 03:24 AM)vira Wrote:  thank you so much , i willl test it ,  let you know :D




thank for your share so much ,  but i dont know why i test this tool always not working  , its always show somethings like: 

The filename, directory name, or volume label syntax is incorrect.

this is picture , what its show  ,  i hope some peoples can help you and me to fixed this one

[Image: m20ITxW.jpg]

LOL. Output path as example: C:\loljpghack\


RE: ask insert code php to jpg - vira - Aug 12, 2021

(Aug 12, 2021 01:14 PM)Disqual Wrote:  LOL. Output path as example: C:\loljpghack\

Hello disqual 

thank for your help so much ,  but i dont know why ? its still not work ,  i have edit path like your instruction ? 
[Image: rI3o5Dw.png]
could you pls check  help me ?  thank you


RE: ask insert code php to jpg - Disqual - Aug 12, 2021

(Aug 12, 2021 02:07 PM)vira Wrote:  Hello disqual 

thank for your help so much ,  but i dont know why ? its still not work ,  i have edit path like your instruction ? 
[Image: rI3o5Dw.png]
could you pls check  help me ?  thank you

output still missing. C:\python\shell\CanYouSeeMe.jpg


RE: ask insert code php to jpg - vira - Aug 12, 2021

(Aug 12, 2021 03:19 PM)Disqual Wrote:  output still missing. C:\python\shell\CanYouSeeMe.jpg


Hello DISQUAL

thank you so much for your try

but i dont know why its still not work :( 

[Image: 2xyJV97.jpg]


RE: ask insert code php to jpg - Charger - Aug 12, 2021

Windows arguments are separated by a space. Any value that contains a space needs to be surrounded by quotation marks to make it a literal.


RE: ask insert code php to jpg - daxiqehk_daxiqehk - Aug 12, 2021

copy all into python folder then do python gd.py..........................................................


RE: ask insert code php to jpg - vira - Aug 14, 2021

(Aug 12, 2021 05:40 PM)Charger Wrote:  Windows arguments are separated by a space. Any value that contains a space needs to be surrounded by quotation marks to make it a literal.

(Aug 12, 2021 09:35 PM)daxiqehk_daxiqehk Wrote:  copy all into python folder then do python gd.py..........................................................

thank for your respond so much , now i found issue , this is tool not work :( , so i cannot make it :( ,can you suggest me new tool , thank you :(


RE: ask insert code php to jpg - pubgmobilecheat - Aug 29, 2021

What platform are you trying this on? It could be that system function is blocked and phpinfo is not because of it's nature.