dil15
Posts: 2
Joined: Wed Jun 08, 2016 11:54 pm

xwd command to screenshot Pi display

Thu Jun 09, 2016 4:16 am

Hi I have been working on this following website :http://colesec.inventedtheinternet.com/hacking-x11/ to secretly capture the Desktop screenshot of Pi.

When I type:

Code: Select all

xwd -root -screen -silent -display 192.168.1.5:0 > screenshot.xwd
It shows me an error with

Code: Select all

Invalid mit-magic-cookie-1 keywd: unable to open display 'IP:0'
Does anybody have any idea??

User avatar
topguy
Posts: 6527
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: xwd command to screenshot Pi display

Thu Jun 09, 2016 10:02 am

There are luckily (some) security in X that prevents unauthorized users to access your desktop.

If you on the other hand are trying to do this on the desktop you are logged in to, then don't use the ip-adress, just use "-display :0.0".

To allow remote connections to a X-windows environment look up "xhost" command.

Return to “Networking and servers”