tuiHoneyPot

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

challenge3.js (416B)


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