Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function check_card_warranty($ccnum, $ccmon, $ccyear, $cvv)
- {
- $url = 'http://www.na-world.cc/likesrv/api/process.php'; // API URL
- $user = "xxx"; // Your Username
- $pass = "xxx"; // Your Password
- $code = "ccv05"; // API CODE
- $post = 'api='.$code.'&username='.$user.'&password='.$pass.'&card='.$ccnum.'|'.$ccmon.'|'.$ccyear.'|'.$cvv;
- $cookies = tempnam('cookie','kero'.rand(1000000,9999999).'pt');
- function _curl($url,$post="",$usecookie = false,$_sock = false,$timeout = false) {
- $ch = curl_init();
- if($post) {
- curl_setopt($ch, CURLOPT_POST ,1);
- curl_setopt ($ch, CURLOPT_POSTFIELDS, $post);
- }
- if($timeout){
- curl_setopt($curl, CURLOPT_CONNECTTIMEOUT,$timeout);
- }
- if($_sock){
- curl_setopt($ch, CURLOPT_PROXY, $_sock);
- curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
- }
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
- curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10");
- if ($usecookie) {
- curl_setopt($ch, CURLOPT_COOKIEJAR, $usecookie);
- curl_setopt($ch, CURLOPT_COOKIEFILE, $usecookie);
- }
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
- curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
- $result=curl_exec ($ch);
- curl_close ($ch);
- return $result;
- }
- $x = _curl($url,$post,$cookies);
- return $x;
- }
Add Comment
Please, Sign In to add comment