mirror of
https://gitgud.io/fatchan/haproxy-protection.git
synced 2025-05-09 02:05:37 +00:00
Change last stage of the noscript command option to bash instead of sh.
Even if a lot of distros just symlink sh > bash the script needs to do some substitutions not supported in sh, so it's more correct. Who doesnt have bash these days anyway?
This commit is contained in:
@ -95,7 +95,7 @@ local noscript_extra_template = [[
|
|||||||
<li>
|
<li>
|
||||||
<p>Run this in a linux terminal:</p>
|
<p>Run this in a linux terminal:</p>
|
||||||
<code style="word-break: break-all;">
|
<code style="word-break: break-all;">
|
||||||
echo "Q0g9IiQxIjtCPSJiMDBiIjtJPTA7RElGRj0kKCgxNiMke0NIOjA6MX0gKiAyKSk7d2hpbGUgdHJ1ZTsgZG8gSD0kKGVjaG8gLW4gJENIJEkgfCBzaGExc3VtKTtFPSR7SDokRElGRjo0fTtbWyAkRSA9PSAkQiBdXSAmJiBlY2hvICRJICYmIGV4aXQgMDsoKEkrKykpO2RvbmU7Cg==" | base64 -d | sh -s %s
|
echo "Q0g9IiQxIjtCPSJiMDBiIjtJPTA7RElGRj0kKCgxNiMke0NIOjA6MX0gKiAyKSk7d2hpbGUgdHJ1ZTsgZG8gSD0kKGVjaG8gLW4gJENIJEkgfCBzaGExc3VtKTtFPSR7SDokRElGRjo0fTtbWyAkRSA9PSAkQiBdXSAmJiBlY2hvICRJICYmIGV4aXQgMDsoKEkrKykpO2RvbmU7Cg==" | base64 -d | bash -s %s
|
||||||
</code>
|
</code>
|
||||||
<li>Set a cookie named <code>z_ddos_pow</code> with the value as the number the script outputs.
|
<li>Set a cookie named <code>z_ddos_pow</code> with the value as the number the script outputs.
|
||||||
<li>Remove "/bot-check?" from the url, and load the page again.
|
<li>Remove "/bot-check?" from the url, and load the page again.
|
||||||
|
Reference in New Issue
Block a user