Projects STRLCPY wrongsecrets Commits a456470e
🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■
    Dockerfile.web
    1  -FROM jeroenwillemsen/wrongsecrets:ctfdtest11-no-vault
     1 +FROM jeroenwillemsen/wrongsecrets:ctfdtest12-no-vault
    2 2   
    3 3  ARG argBasedVersion="1.4.7"
    4 4  ARG CANARY_URLS="http://canarytokens.com/terms/about/s7cfbdakys13246ewd8ivuvku/post.jsp,http://canarytokens.com/terms/about/y0all60b627gzp19ahqh7rl6j/post.jsp"
    skipped 13 lines
  • ■ ■ ■ ■ ■
    src/main/java/org/owasp/wrongsecrets/StatsController.java
    skipped 14 lines
    15 15   @Autowired
    16 16   private SessionConfiguration sessionConfiguration;
    17 17   
    18  - 
     18 + @Value("${hints_enabled}")
     19 + private boolean hintsEnabled;
     20 + @Value("${reason_enabled}")
     21 + private boolean reasonEnabled;
     22 + @Value("${ctf_enabled}")
     23 + private boolean ctfModeEnabled;
    19 24   
    20 25   @Value("${canarytokenURLs}")
    21 26   private String[] canaryTokenURLs;
    skipped 4 lines
    26 31   model.addAttribute("sessioncounter", sessionConfiguration.getCounter());
    27 32   model.addAttribute("lastCanaryToken", canaryCounter.getLastToken());
    28 33   model.addAttribute("canarytokenURLs", canaryTokenURLs);
     34 + model.addAttribute("hintsEnabled", hintsEnabled);
     35 + model.addAttribute("reasonEnabled", reasonEnabled);
     36 + model.addAttribute("ctfModeEnabled",ctfModeEnabled);
    29 37   return "stats";
    30 38   }
    31 39  }
    skipped 1 lines
  • ■ ■ ■ ■ ■ ■
    src/main/resources/templates/stats.html
    skipped 6 lines
    7 7   <h1>Current Stats</h1>
    8 8   <p>Number of active sessions:</p>
    9 9   <p th:text="${sessioncounter}"></p>
     10 + <p>Hints enabled:<span th:text="${hintsEnabled}"></span></p>
     11 + <p>Reason enabled:<span th:text="${reasonEnabled}"></span></p>
     12 + <p>CTF-mode enabled:<span th:text="${ctfModeEnabled}"></span></p>
     13 + 
    10 14   <p>Number of canary callbacks since boot:</p>
    11 15   <p th:text="${canaryCounter}"></p>
    12 16   <p>Last canary token received:</p>
    skipped 11 lines
Please wait...
Page is in error, reload to recover