Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

Javascript Login Bot


ghost's Avatar
0 0

Im trying to make a bot for a certain webpage, and the first thing is obviously to login. Since there's a capcha on the login, I decided to send my cookies through javascript after I load the page. This doesn't work though, Any Ideas? I'm testing in firefox. javascript: location.replace('sitehere');document.cookie='cookieshere';

Thanks.


spyware's Avatar
Banned
0 0

cURL. You can't first load a site (so you navigate away from your script) and THEN send the cookies.

You can use cURL! Make your own headers and send them =-]


ghost's Avatar
0 0

I was thinking of that but there is a javascript on the page that I need to run. I figured the only way to do this was using a webbrowser component(im using delphi). Any other ideas?


spyware's Avatar
Banned
0 0

cURL?


ghost's Avatar
0 0

my bad. If I echo the page source retreived by curl, javascript'd still run. Thanks.