av一区二区在线观看_亚洲男人的天堂网站_日韩亚洲视频_在线成人免费_欧美日韩精品免费观看视频_久草视

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

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

瀏覽:71日期:2023-12-24 11:15:16
通過ICQ網關發送手機短信的PHP源程序(轉自linuxforum.net 原作者:liushiliang EMAIL:;;lsl@163.net )<?//###########################################################//// For questions and comments// Roland (alias -=: Vlieg :=-)// icq #78354631// mail: vlieg@atoomnet.net//// 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
主站蜘蛛池模板: 日本大尺度床戏揉捏胸 | www久久久 | 欧美日韩亚洲一区二区三区 | 18视频在线观看男男 | 黄a视频| 久精品视频 | a毛片在线观看 | 色片在线 | 国产一区二区三区精品视频 | 日本在线观看一区 | 亚洲福利在线观看 | 天天躁日日躁狠狠躁伊人 | 在线免费国产 | 欧美jizz19性欧美 | 亚洲精品在线观看视频 | 亚洲高清在线视频 | 一区二区三区精品视频 | 91中文在线| 97在线免费视频 | 成人在线观看网站 | 中文在线免费观看 | 日韩国产精品视频 | 国产视频一 | 亚洲高清中文字幕 | 亚洲成人中文字幕 | 懂色av色吟av夜夜嗨 | 黄色大片在线免费观看 | 久草黄色| 草草视频在线 | 五月天婷婷在线观看 | 大色av| 福利视频二区 | 午夜影院福利 | 国产中文字幕视频 | 欧美一区二区在线视频 | 亚洲天堂av在线播放 | 美女久久久久久 | 亚洲一区二区三区视频 | 黄网免费看| 国产一区免费 | 国产一区二区三区久久 |