WeChall - overthewire

本文介绍了如何通过WeChall平台的排行榜功能来跟踪OverTheWire游戏进度,鼓励玩家之间的良性竞争。具体步骤包括注册账号、获取令牌和用户名,以及配置环境变量和SSH客户端,实现轻松记录游戏成就。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

WeChall Scoreboard

OverTheWire makes use of a scoreboard provided by WeChall to allowplayers to track their own progress and promote some healthy competitionbetween players. To make use of this scoreboard for OverTheWire games,you need to follow these steps:

  1. First, go to WeChall and register for an account.
  2. Next, log in and retrieve your WeChall token and username. YourWeChall username is what you registered with, while your WeChalltoken can be found on the WeChall website under “Account” ->“WarBoxes”. The token looks something like“EDD76-1FC9F-7388B-DC6EB-E3F71-FC4CB”.
  3. Next, assuming you are using the correct operating system, edit your~/.bashrc file and add:

    export WECHALLUSER="YourUserName"
    export WECHALLTOKEN="YOUR-WECHALL-TOKEN-HERE"
    

    For fish users, you may run:

    set -Ux WECHALLUSER "YourUserName"
    

    You may need to logout and login again for these changes to takeeffect. To test whether the environment variables are registered,type “echo $WECHALLUSER”, which should show that environmentvariable.

  4. Next, edit ~/.ssh/config (or create it if it doesn’t exist) andadd:

    Host *.labs.overthewire.org
      SendEnv WECHALLTOKEN
      SendEnv WECHALLUSER
    

    This configures your SSH client to transmit both username and tokento your remote session, so it can be used there.

  5. Finally, you are able to easily register which levels you havebeaten on OverTheWire by logging in through SSH the normal way, andinvoking the “wechall” command. This command will use your WeChallusername and WeChall token to register the level you have beatenwith WeChall.



ref: http://overthewire.org/about/wechall.html

<html> <head> <!-- This stuff in the header has nothing to do with the level --> <link rel="stylesheet" type="text/css" href="http://natas.labs.overthewire.org/css/level.css"> <link rel="stylesheet" href="http://natas.labs.overthewire.org/css/jquery-ui.css" /> <link rel="stylesheet" href="http://natas.labs.overthewire.org/css/wechall.css" /> <script src="http://natas.labs.overthewire.org/js/jquery-1.9.1.js"></script> <script src="http://natas.labs.overthewire.org/js/jquery-ui.js"></script> <script src=http://natas.labs.overthewire.org/js/wechall-data.js></script><script src="http://natas.labs.overthewire.org/js/wechall.js"></script> <script>var wechallinfo = { "level": "natas11", "pass": "<censored>" };</script></head> <? $defaultdata = array( "showpassword"=>"no", "bgcolor"=>"#ffffff"); function xor_encrypt($in) { $key = '<censored>'; $text = $in; $outText = ''; // Iterate through each character for($i=0;$i<strlen($text);$i++) { $outText .= $text[$i] ^ $key[$i % strlen($key)]; } return $outText; } function loadData($def) { global $_COOKIE; $mydata = $def; if(array_key_exists("data", $_COOKIE)) { $tempdata = json_decode(xor_encrypt(base64_decode($_COOKIE["data"])), true); if(is_array($tempdata) && array_key_exists("showpassword", $tempdata) && array_key_exists("bgcolor", $tempdata)) { if (preg_match('/^#(?:[a-f\d]{6})$/i', $tempdata['bgcolor'])) { $mydata['showpassword'] = $tempdata['showpassword']; $mydata['bgcolor'] = $tempdata['bgcolor']; } } } return $mydata; } fu
最新发布
03-08
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值