On Thu, Jun 30, 2016 at 3:26 PM, Johan Vromans <[email protected]> wrote:
> For a binary that is created with pp, is it possible to know (show) the > version of the packer? $PAR::VERSION is available, but > $PAR::Packer::VERSION is not. That's understandable. > $PAR::Packer::VERSION is not available, since it's used for the packing, but not when running the resulting executable. > However, I think it would be helpful in case of problems to know what > version of the Packer produced the binary. > Certainly doable. But a perl variable wouldn't be that useful: you would have to add code in advance to your script to show it. And if the problem is so severe that the executable won't run at all, you can't get this information out of it. What about a static string in the executable that you could grep for, e.g. "packed by PAR::Packer VERSION". Cheers, Roderich
