PHP Captcha Solver

edited February 2021 in General
using curl:

$ch = curl_init();
$data = array('username' => 'captcha', 'password' => 'sniper', 'pict' => '@/captcha.png');
curl_setopt($ch, CURLOPT_URL, 'http://127.0.0.1:80/');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
$dataReturned = curl_exec($ch);
$answer = end(split('-',$dataReturned ));


Sign In or Register to comment.