title: Run Unix commands from Javascript and HTML
body: <p>I would like to run Lynis (audit tool preinstalled in Kali Linux) from a webpage using  javascript technology but  I don’t know how to execute local programs using bash commands from Javascript, can somebody help me?</p>
  
  <p>In short, the general idea is the following:</p>
  
  <ol>
  <li><p>The visitor (let’s assume the visitor is using Kali Linux on his computer with Lynis installed) enters to my webpage www.example.com/example.html </p></li>
  <li><p>The visitor downloads the content of the page and with a button or something similar we can execute shell commands and run Lynis software on the visitor's computer. (e.g. "# sudo lynis")</p></li>
  <li><p>When Lynis finishes its execution the generated results in some way interacts with the javascript code and we can show this information on the website.</p></li>
  </ol>
  
  <p>(The priority now is point 1 and 2)</p>
  
  <p>Thanks in advance.</p>
  
  <p>P.S. If this is not possible ... is there any way to do this without using javascript?</p>