Script to automate actions on ajax-enabled website

Here in Switzerland, people under the age of 26 who have a cell phone contract with Swisscom can send 500 cm per month for free at https://xtrazone.sso.bluewin.ch/ .

Until a few days ago this site was structured quite simply, it had an input and an input code for entering sms. This is why I wrote a perl script ( http://github.com/gwrtheyrn/Xtrazone-SMS-Tool ) to send sms through this service using curl. This worked perfectly.

Now they rewrote the entire site, and I ran into the following problems to rewrite the script:

  • There CAPTCHA after entering the login
  • The login is loaded using javascript and processes the input using ajax
  • The receiver input box is not a standard input field, it is a special javascript input box

My remaining questions are:

  • How can I get around captcha? I was thinking about Tesseract ( http://code.google.com/p/tesseract-ocr/ ). This will probably work with perl (there is a wrapper there).
  • Is there a way to execute JavaScript actions without having to launch a browser? I want to save the command line tool only.

Thanks in advance.

+3
source share
2 answers

- ( , firefox, fiddler - ), , javascript . script, .

+4

Tesseract , . , captcha .

Firefox. captcha POST-, . , POST CURL javascript

0

Source: https://habr.com/ru/post/1735026/


All Articles