Skip to content

Instantly share code, notes, and snippets.

@amenpunk
Created August 9, 2020 18:44
Show Gist options
  • Save amenpunk/9756b59805620555e8a1db347da1c986 to your computer and use it in GitHub Desktop.
Save amenpunk/9756b59805620555e8a1db347da1c986 to your computer and use it in GitHub Desktop.
#!/bin/sh
echo "Content-type: text/html"
echo ""
echo '<html>'
echo '<head>'
echo '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">'
echo '<meta name="viewport" content="width=device-width, initial-scale=1.0">'
echo '<title>Hello World</title>'
echo '</head>'
echo '<style>'
echo 'pre { white-space: pre-wrap; word-wrap: break-word; text-align: justify; }'
echo '</style>'
echo '<body>'
echo '<table border='1' style="overflow-x:auto; height=100%; widht=100%" > <tr>'
echo "<td>Ifconfig:</td><td><pre>$(ifconfig)</pre></td></tr>"
echo "<td>Neofetch:</td><td><pre>$(neofetch)</pre></td></tr>"
echo "<td>DNS:</td><td><pre>$(dig)</pre></td></tr>"
echo "<td>W:</td><td><pre>$(w)</pre></td></tr>"
echo "<td>Gateway:</td><td><pre>$(gateway)</pre></td></tr>"
echo "<td>Resolve.conf:</td><td><pre>$(cat /etc/resolv.conf)</pre></td></tr>"
echo "<td>df -h:</td><td><pre>$(df -h)</pre></td></tr>"
echo "<td>hostname:</td><td><pre>$(hostname)</pre></td></tr>"
echo "<td>Kernel:</td><td><pre>$(uname -r)</pre></td></tr>"
echo "<td>Version del sistema:</td><td><pre>$(uname -s -v)</pre></td></tr>"
echo "<td>nmap :</td><td><pre>$(nmap localhost)</pre></td></tr>"
echo "<td>ps $$ :</td><td><pre>$(ps $$)</pre></td></tr>"
echo "</table>"
echo '</body>'
echo '</html>'
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment