title: How to get a string dump of an executable in PHP?
body: <p>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:</p>
  
  <blockquote>
    <p><img src="https://i.imgur.com/Uw1yXIR.png" alt=""></p>
  </blockquote>
  
  <p>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...</p>
  
  <p>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. </p>
  
  <p>Any tips about this?</p>