Skip to content

Commit 3ed6075

Browse files
committed
Index: added powershell support
1 parent 88507ee commit 3ed6075

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

html/index.html

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -213,17 +213,20 @@
213213
<noscript>
214214
<p class="text-description">
215215
This website uses <a class="link" href="https://github.com/vaxerski/checkpoint">checkpoint</a> and
216-
requires
217-
javascript to
218-
automatically verify you are not a bot.<br /><br />
219-
You seem to be running without Javascript enabled, and thus will have to do this manually.<br /><br />
220-
Paste this command into your Linux terminal and provide the output below:
216+
requires JavaScript to automatically verify you are not a bot.<br /><br />
217+
You seem to be running without JavaScript enabled, and thus will have to do this manually.<br /><br />
218+
Paste the appropriate command into your terminal and provide the output below:
221219
</p>
222220

221+
<p class="text-description">Linux:</p>
223222
<p class="code-block">
224223
perl -MDigest::SHA=sha256_hex -e '$n="{{ tl:text challengeNonce }}";$d={{ tl:text challengeDifficulty
225224
}};for($i=0;;$i++){$h=sha256_hex($n.$i);if(substr($h,0,$d) eq "0"x$d){print "$i\n";last}}'
226225
</p>
226+
<p class="text-description">Powershell:</p>
227+
<p class="code-block">
228+
$n="{{ tl:text challengeNonce }}";$d={{ tl:text challengeDifficulty }};for($i=0;;$i++){if(((New-Object System.Security.Cryptography.SHA256Managed).ComputeHash([System.Text.Encoding]::UTF8.GetBytes($n+$i))|%{$_.ToString("x2")}) -join "" -match "^[0]{$d}"){Write-Output $i;break}}
229+
</p>
227230

228231
<form action="/checkpoint/challengeNoJs" method="get">
229232
<div>
@@ -441,4 +444,4 @@
441444

442445
</body>
443446

444-
</html>
447+
</html>

0 commit comments

Comments
 (0)