色综合图-色综合图片-色综合图片二区150p-色综合图区-玖玖国产精品视频-玖玖香蕉视频

您的位置:首頁技術文章
文章詳情頁

通過ICQ網關發送手機短信的PHP源程序

瀏覽:41日期:2023-12-24 11:15:16
通過ICQ網關發送手機短信的PHP源程序(轉自linuxforum.net 原作者:liushiliang EMAIL:;;[email protected] )<?//###########################################################//// For questions and comments// Roland (alias -=: Vlieg :=-)// icq #78354631// mail: [email protected]//// NB: This script won't work on free hosting pages, because of the secure mode!// NB: You must have registered your ICQ# at http://web.icq.com/sms/login/ in order for this script to work//###########################################################//****************************************************************//Config:$uin=""//your ICQ number$passw=""//your ICQpassword$prefix=""//sms prefix$phonenumber=""//sms phone number$message = "Hello!"//sms message//****************************************************************// EN: calculate the content length$contentlength= ( 37+strlen($uin)+strlen($passw));//****************************************************************// Openen van de inlogpagina// EN: open loginpage$htmlreply="";$post ="POST http://web.icq.com/karma/dologin/1,,,00.html HTTP/1.0Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, */*Referer: http://web.icq.com/sms/login/1,,,00.htmlAccept-Language: nlContent-Type: application/x-www-form-urlencodedAccept-Encoding: gzip, deflateUser-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)Host: web.icq.comContent-Length: ".$contentlength."Proxy-Connection: Keep-AlivePragma: no-cacheCookie: uin=".$uin."sms_country=".$prefix."KarmaService1=Yes; uin=".$uin."sms_country=".$prefix."KarmaService1=YesuService=1&uLogin=".$uin."&uPassword=".$passw."&x=0&y=0";$remote = fsockopen("web.icq.com", 80, &$errno, &$errstr, 30);global $remote;global $post;fputs($remote, $post);while (!feof($remote)) { $htmlreply.=fgets($remote,120); }//UNCOMMENT FOR OUTPUT: echo "".htmlspecialchars($htmlreply)."";fclose($remote);//****************************************************************//persoonlijke cookie uit de inlogpage halen// EN: fetch personal cookie from login page$splited = split("n",$htmlreply);$cookies = $splited[3];$cookies = str_replace("Set-Cookie: KarmaLogin=","",$cookies);$cookies = str_replace("path=/","",$cookies);$cookies = str_replace("n","",$cookies);//UNCOMMENT VOOR OUTPUT: echo $cookies;if (strlen($prefix) == 2) { $contentprefix = ' '.$prefix; } else { $contentprefix = $prefix; }$charcount = (160-strlen($message));$contentlength= ( 1561+strlen($message)+strlen($charcount)+strlen($phonenumber)+strlen($prefix));//****************************************************************//Verzendpagina openen met de opgehaalde cookie// EN: open send page with fetched cookie$htmlreply="";$post ='POST http://web.icq.com/sms/send_history/1,,,00.html HTTP/1.0Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, */*Referer: http://web.icq.com/sms/send_session/1,,,00.html?prefix=+'.$prefix.'&carrier=&tophone='.$phonenumber.'Accept-Language: nlContent-Type: multipart/form-data; boundary=---------------------------7d12442eab4Accept-Encoding: gzip, deflateUser-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)Host: web.icq.comContent-Length: '.$contentlength.'Proxy-Connection: Keep-AlivePragma: no-cacheCookie: uin='.$uin.'; sms_country='.$prefix.'; KarmaService1=Yes; KarmaLogin='.$cookies.'; uin='.$uin.'; sms_country='.$prefix.'; KarmaService1=Yes; KarmaLogin='.$cookies.'-----------------------------7d12442eab4Content-Disposition: form-data; name="carrier"-----------------------------7d12442eab4Content-Disposition: form-data; name="prefix"'.$contentprefix.'-----------------------------7d12442eab4Content-Disposition: form-data; name="tophone"'.$phonenumber.'-----------------------------7d12442eab4Content-Disposition: form-data; name="uSession"1-----------------------------7d12442eab4Content-Disposition: form-data; name="uReply"-----------------------------7d12442eab4Content-Disposition: form-data; name="uLastId"-----------------------------7d12442eab4Content-Disposition: form-data; name="uSend"1-----------------------------7d12442eab4Content-Disposition: form-data; name="uNextId"-----------------------------7d12442eab4Content-Disposition: form-data; name="uHistoryCounter"1-----------------------------7d12442eab4Content-Disposition: form-data; name="count"0-----------------------------7d12442eab4Content-Disposition: form-data; name="uSubmitCount"0-----------------------------7d12442eab4Content-Disposition: form-data; name="checkNewMsg"180000-----------------------------7d12442eab4Content-Disposition: form-data; name="charcount"'.$charcount.'-----------------------------7d12442eab4Content-Disposition: form-data; name="msg"'.$message.'-----------------------------7d12442eab4Content-Disposition: form-data; name="x"30-----------------------------7d12442eab4Content-Disposition: form-data; name="y"16-----------------------------7d12442eab4--';$remote = fsockopen("web.icq.com", 80, &$errno, &$errstr, 30);global $remote;global $post;fputs($remote, $post);while (!feof($remote)) { $htmlreply.=fgets($remote,120); }//UNCOMMENT FOR OUTPUT: echo "".htmlspecialchars($htmlreply)."";fclose($remote);//****************************************************************// check if message is send if send 'moved permanently' is returnedif (eregi('Moved Permanently',$htmlreply)){ echo "Sms message successfully sent!"}else{ echo "Sms not sent!"}?>
標簽: PHP
主站蜘蛛池模板: 亚洲在线免费观看视频 | 中文字幕日韩有码 | 看a网站| 港台三级在线观看 | 欧美特级特黄a大片免费 | 日韩精品一区二区三区视频 | 男女乱淫真视频免费观看 | 国产成人a大片大片在线播放 | 看片网站在线 | 九九精品视频一区在线 | 国产自产v一区二区三区c | 欧美国产综合视频 | 久久影院一区二区三区 | 狠狠五月深爱婷婷网 | 在线视频一二三区2021不卡 | 日韩久久一区二区三区 | 国产在线一区观看 | 精品热99 | 岛国片欧美一级毛片 | 久久国产经典视频 | 亚洲美女网址 | 久久亚洲一级α片 | 免费观看成年人网站 | 久久精品网站免费观看 | 自拍视频在线观看 | 人碰人碰人成人免费视频 | 不卡国产视频 | 免费五级在线观看日本片 | 国产精品揄拍一区二区久久 | 亚欧免费视频 | 亚洲精品一区二区三区网址 | 国产一区亚洲二区三区 | 国产年成美女网站视频免费看 | 视频二区在线 | 欧美高清一区二区 | 毛片在线不卡 | 亚洲一区二区三区视频 | 在线a人片免费观看国产 | 干欧美女人| 五月色婷婷综合开心网4438 | 最新中文字幕乱码在线 |