DarkProgrammer000

Info [cgi]

Jul 9th, 2021 (edited)
725
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.38 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. echo "content-type: text/html
  4.  
  5. <html>
  6. <head> <meta charset='utf-8' /> <title> CGI script </title> </head>
  7.  
  8. <body>
  9.     <h1> Algumas informações sobre a máquina que o CGI está rodando:</h1>
  10.     <h4> uptime </h4>
  11.    
  12.     <pre>$(uptime)</pre>
  13.  
  14.     <h4>uname</h4>
  15.     <pre>$(uname -a)</pre>
  16.  
  17.     <h4>/proc/cpuinfo</h4>
  18.     <pre>$(cat /proc/cpuinfo)</pre>
  19.  
  20. </body>
  21. </html>"  
Add Comment
Please, Sign In to add comment