Skip to content

Commit

Permalink
fix #4
Browse files Browse the repository at this point in the history
  • Loading branch information
leohearts committed Aug 31, 2021
1 parent ecc9cdd commit fd2b33a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions watchbird-source.php
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,12 @@ function handle_replay(){
flag = escape(flag);
}
finalPacket = finalPacket.replace("{flag_content}", flag);
await fetch("?watchbird=replay&ip="+ipAddr+"&port="+port, {
var FinalFetchUrl = "?watchbird=replay&ip="+ipAddr+"&port="+port;
if (document.getElementById("use_custom_replayer").checked){
FinalFetchUrl = document.getElementById("replayer_addr").value + FinalFetchUrl;
}
await fetch(FinalFetchUrl, {
body: finalPacket,
method: 'POST',
}).then(function(response) {
Expand Down Expand Up @@ -1480,7 +1485,7 @@ class="mdui-icon material-icons">save</i></button></div>');
<div class="mdui-panel-item-body">
<div class="mdui-textfield">
<label class="mdui-textfield-label">Flag正则</label>
<textarea id="flag_regex" class="mdui-textfield-input" type="text" >flag\\{[0-9, a-z]{12,64}\\}</textarea>
<textarea id="flag_regex" class="mdui-textfield-input" type="text" >flag\\{[0-9-_a-z]{12,64}\\}</textarea>
</div>
<div class="mdui-textfield">
<label class="mdui-textfield-label">提交给flag机的数据包, 用{flag_content}表示flag内容</label>
Expand Down

0 comments on commit fd2b33a

Please sign in to comment.