HW 内网环境小工具

本地 HTML 或 JavaScript 实现,适用于使用客户机器纯内网防守时

Base64 / URL 编解码器

代码

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<html>
<textarea name="str" id="str" style="margin: 5px;width:700px; height:300px;"></textarea>
<hr>
<button onclick="urlDecode()">URL解码</button>
<button onclick="urlEncode()">URL编码</button>
<button onclick="base64Decode()">base64解码</button>
<button onclick="base64Encode()">base64编码</button>
</html>

<script>
function urlDecode(){
var str=document.getElementById('str').value;
var reStr=decodeURIComponent(str);
document.getElementById('str').value=reStr;
}

function urlEncode(){
var str=document.getElementById('str').value;
var reStr=encodeURIComponent(str);
document.getElementById('str').value=reStr;
}

function base64Decode(){
var str=document.getElementById('str').value;
var reStr=window.atob(str);
document.getElementById('str').value=reStr;
}

function base64Encode(){
var str=document.getElementById('str').value;
var reStr=window.btoa(str);
document.getElementById('str').value=reStr;
}
</script>

效果

URL-Base64.html


浏览器自动刷新

替换 /#/risk 为需要刷新的目录后 F12-Source-Watch 添加即可

1
onload:setTimeout(()=>{if(window.location.href.indexOf("/#/risk")!=-1){window.location.reload()}},5000);

评论