tuiHoneyPot

front and back end of my TUI honeypot
Log | Files | Refs | README

user.js (431B)


      1 
      2 window.FakeTerminal.command.user = function (instance) {
      3     window.FakeTerminal.command.apply(this, arguments);
      4 
      5     const base = this;
      6 
      7     base.info = () => {
      8         return {
      9             description: "Configure your user, in our special GUI"
     10         }
     11     }
     12 
     13     base.execute = () => {
     14         window.location = "/userpanel/";
     15 
     16         base.deferred.resolve();
     17         return base.deferred.promise();
     18     }
     19 
     20     return base;
     21 }