Jump to content
php.lv forumi

cURL


eT`

Recommended Posts

Dabūju vienu uzdevumu.

Uzdevuma izpildīšanai bez cURL nevaru laikam.

 

Apraksts:

vairumtirdzniecības bāze ar preču kataloga sarakstu

users un pass man ir.

tur pie ielogošanās ir captcha.

mēģināju captchu palaist uz lokālā skripta.

 

http://paste.php.lv/afad0f41a13df9ba917d70d3a3baf81a?lang=php

 

bet nesanāk.

headeri, ko saņemu palaižot skriptu:

 

HTTP/1.1 100 Continue HTTP/1.1 302 Found Date: Wed, 16 Mar 2011 15:31:25 GMT Server: Apache/2.0.52 (CentOS) X-Powered-By: PHP/5.2.9 Set-Cookie: PHPSESSID=e61aa8f6d3634a3674b4f44d05941801; path=/ Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache [b]Location: index.php?err=-2[/b] Content-Length: 0 Connection: close Content-Type: text/html HTTP/1.1 200 OK Date: Wed, 16 Mar 2011 15:31:25 GMT Server: Apache/2.0.52 (CentOS) X-Powered-By: PHP/5.2.9 Set-Cookie: PHPSESSID=7a6e12f8746b72513c3ccf0b5b6391af; path=/ Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Content-Length: 3163 Connection: close Content-Type: text/html

Link to comment
Share on other sites

Nu jā.

Izmet, ka nepareizs kods.

Captchs ir 0-9, A-Z [ capital letters only ]

un tātad 36 elementi

tur uz katras bildes ir 4.

Pēc variāciju formulas [ ja pareizi atceros ] sanāk 36!/(36-4)! * 4!

baigi lielais cipars.

biju domājis, ka var paņemt kaptču ielikt savā test.php failā caur <img src="" /> un tad logoties ar cURl, bet nevar.

Link to comment
Share on other sites

Kā lietas notiek:

1. Tu ieej domains.lv/kautkas un ielādē tur viņu pašu captcha.

2. Tu izpildi formas un captcha

3. Spied submit un viss notiek veiksmīgi

 

Kā tu mēģini izdarīt:

1. Iegūsti captcha bildi savā lapā

2. Ievadi captcha bildi un submito formu, kas ir CITĀ lapā

->lapa ielādējas

->ielādējas captcha (JAUNS!!!)

->pievienojas dati

->submitojam

3. Fail

 

+- tā tas viss notiek. Īsumā - tu vecu captcha viņiem sūti.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...