diff --git a/core/module/WeChall/sites/WCSite_HTS.php b/core/module/WeChall/sites/WCSite_HTS.php index 998a1eada..8db55ad1d 100644 --- a/core/module/WeChall/sites/WCSite_HTS.php +++ b/core/module/WeChall/sites/WCSite_HTS.php @@ -14,18 +14,21 @@ public function parseStats($url) return htmlDisplayError(WC_HTML::lang('err_response', array(GWF_HTML::display($result), $this->displayName()))); } - $onsitescore = intval($stats[2]); + $onsitescore = intval($stats[2]); // this is always 6713 - probably was a max score once? $score = intval($stats[1]); - $rankname = $stats[0]; + $rankname = $stats[0]; + // max score from https://www.hackthissite.org/user/rankings/explanation + // note: users might still have higher scores, as e.g. finding a vuln gives points, too + $maxScore = 10533; $usercount = 39500; - $challcount = 102; #intval($stats[3]); + $challcount = 107; #intval($stats[3]); if ( ($score > ($onsitescore * 2)) || ($challcount <= 2) || ($onsitescore < 0)) { return htmlDisplayError(WC_HTML::lang('err_response', array(GWF_HTML::display($result), $this->displayName()))); } - return array($score, -1, -1, $onsitescore, $usercount, $challcount); + return array($score, -1, -1, $maxScore, $usercount, $challcount); } } -?> \ No newline at end of file +?>