View Single Post
  #44  
Old 05-11-2015, 11:44 PM
James Halpert James Halpert is offline
Junior Member
 
Join Date: Apr 2015
Posts: 24
James Halpert is on a distinguished road
Default

Re: MFC, how to see who is online?


Quote:
Originally Posted by Quazar View Post
I have begun fiddling around with casperjs but it'll take some time for me to get some progress done. Whenever I try accessing any element other than the outer most frame, casperjs acts as if they are not there (selectors are not being found) but the website is being captured fine.

A little example:
Code:
casper.start('http://myfreecams.com/', function() {
    this.echo(this.getTitle());
    casper.capture('step1.png');  // works fine, shows the website with the "I am over 18" button on top.
});

casper.click('#enter_desktop', function() {   // Fails because the selector cannot be found, even though it was clearly shown in step1.png
    this.echo('Passed age gate.');
    casper.capture('step2.png');
}
Cool find!

To install this on Ubuntu 14.04:
Code:
apt -get install phantomjs git -y; git clone git://github.com/n1k0/casperjs.git; cd casperjs; ln -sf `pwd`/bin/casperjs /usr/local/bin/casperjs;
Confirm installation with:
Code:
phantomjs --version; casperjs | head -n1 | awk {'print $9'}
Output should appear as such:
Code:
1.9.0
1.9.0
I'm playing around with this myself now, I'm analyzing MFC via Wireshark in a VM to try and figure out how to bust through the age prompt.

Will update this thread in a little bit with my findings...

Last edited by James Halpert : 05-12-2015 at 03:43 AM.
Reply With Quote