Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.84 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.   <head>
  4.     <meta charset="utf-8">
  5.     <title></title>
  6.   </head>
  7.   <body>
  8.     <script
  9.               src="https://code.jquery.com/jquery-3.1.1.min.js"
  10.               integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="
  11.               crossorigin="anonymous"></script>
  12.     <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.terminal/0.11.23/js/jquery.terminal.min.js"></script>
  13.     <link href="https://cdnjs.cloudflare.com/ajax/libs/jquery.terminal/0.11.23/css/jquery.terminal.min.css" rel="stylesheet"/>
  14.     <script type="text/javascript">
  15.     jQuery(function($, undefined) {
  16.       $('#terminal').terminal(function(command, term) {
  17.           var result = "";
  18.  
  19.           switch(command) {
  20.               case 'ls':
  21.                   result = "about";
  22.                   break;
  23.               case 'whoami':
  24.                   result = "stsm";
  25.                   break;
  26.               case 'cat about':
  27.                   result = "This Meetup is for people interested in information about technology and hacking issues such as reverse engineering, malware analysis, rf hacking, fuzzing, exploit development (for research purposes only), penetration testing and much more plus societal issues, such as surveillance, privacy, freedom of information, hacktivism and data security.";
  28.                   break;
  29.               default:
  30.                   result = undefined;
  31.           }
  32.  
  33.           if (result != undefined) {
  34.               term.echo(String(result));
  35.           }
  36.  
  37.       }, {
  38.           greetings: '',
  39.           name: 'js_demo',
  40.           height: 400,
  41.           prompt: 'root@stsm$ '
  42.       });
  43.     });
  44.     </script>
  45.  
  46.     <style media="screen">
  47.       html {
  48.         background: black;
  49.       }
  50.       .cmd textarea {
  51.         border: none !important;
  52.       }
  53.     </style>
  54.  
  55. <div id="terminal"></div>
  56.  
  57.   </body>
  58. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement