当前位置: 动力学知识库 > 问答 > 编程问答 >

regex - How to get a string dump of an executable in PHP?

问题描述:

I'm working on a project in PHP, and i need to get a list of all strings contained in a executable PE file, like some desktop programs do. Here is a screenshot of what i need that the file returns:

I can have the HEX dump of the file, and the strings are there, but i don't know how to extract them. Maybe with regex, idk...

I could make a program in C that return the strings to the PHP script, but i want to make it using PHP, because i'll upload the script to a host, and maybe i cannot use commandline or something like this.

Any tips about this?

分享给朋友:
您可能感兴趣的文章:
随机阅读: