title: spaces,',`,/,\,<,>,?,&,| are filtered how to bypass them with Bash commands
body: <p>i have PHP code use some bash codes which the PHP code can run it, and its have a bug to make RCE in bash, </p>
  
  <p>the command would be "$(id)" command executed as well</p>
  
  <p>but if i execute any other command like "ls -la" its have a space 
  the space replaced automatically with "-"</p>
  
  <p>i checked the source as well and i found the following chars <strong>spaces,',`,/,\,&lt;,>,?,&amp;,|</strong> are filtered</p>
  
  <p>how to bypass them and execute command like "wget link" and run it perfect </p>
  
  <p>****UPDATE****</p>
  
  <p>the following code i add as a live example.
  send the command in sendcmd function</p>
  
  <pre><code>`https://pastebin.com/raw/1MfR6aic`
  </code></pre>