dlegs / php-jpeg-injector

Injects php payloads into jpeg images
454 stars 118 forks source link

Calculate the index where the injection will start #6

Closed apehex closed 4 years ago

apehex commented 4 years ago

A little proposition: since in the end the injection happens after the magic number, why not mask the intermediary and calculate the final position instead?

I found it easier to interpret, but it doesn't matter much nor change the functionality ^^

Ah it solves #4 too