[PHP] Scan a Website using CURL and PHP, using Sucuri SiteCheck

Status
Not open for further replies.

Vick

Banned
Banned
297
2011
72
0
PHP:
<?php
/**
* Author: Vick@PHPCanyon.net
* Site  : www.PHPCanyon.net
* Date  : 26/11/2011
*/
$url = "phpcanyon.net";
$postvars = array(
  'scan'=>$url
  );
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://sitecheck.sucuri.net/scanner/');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postvars);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec($ch);
curl_close($ch);
echo $result;
?>

Original Post @ PHPCanyon.net
 
Status
Not open for further replies.
Back
Top