From bc6a684f1eb4815a11d07acc600d70153cc01388 Mon Sep 17 00:00:00 2001 From: FlyfishSec <1105135959@qq.com> Date: Fri, 15 Apr 2022 22:07:48 +0800 Subject: [PATCH] Update index_template.html --- index_template.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index_template.html b/index_template.html index 8c26715..e7d959b 100644 --- a/index_template.html +++ b/index_template.html @@ -2,6 +2,8 @@ + https://cdn.rawgit.com/FlyfishSec/rcX/main/rcX-png/favicon.ico + @@ -235,8 +237,7 @@

rcX - Shell Generator

document.getElementById("shell_type").addEventListener("change", function() { "powershell" == this.value ? document.getElementById("platform").value = "windows" : "bash" == this.value && (document.getElementById("platform").value = "linux") }); - const h = ["127.0.0.1", "localhost"]; - h.includes(window.location.host) || (document.querySelector(".localtunnel").style = "display:none", document.getElementById("localtunnel").style.visibility = "hidden"), $(".chosen-select").chosen({ + $(".chosen-select").chosen({ no_results_text: "Oops, nothing found!", width: "700px" }); @@ -247,7 +248,7 @@

rcX - Shell Generator

}); t = await e.text(); t && (t = JSON.parse(t), $("#output-title").html(t.t), $("#output-data").html(t.r)) - } + }; document.getElementById("terminal_id").addEventListener("change", function() { var t, e, n; this.value && (t = "terminal-" + this.value, e = "terminal_" + this.value, $("#tabs").append($('')), 1 == this.value ? n = "https://console.python.org/python-dot-org-console/" : 2 == this.value ? n = "https://www.programiz.com/python-programming/online-compiler/" : 3 == this.value && (n = "https://httpie.io/cli/run"), $('
Python into the bash:
__import__("pty").spawn("/bin/sh")
__import__("os").system("bash -i")
').appendTo(".tab-content"), $("#tabs a[href=#" + e + "]").tab("show"), $("#reload").click(function() {