首页 > 作文

通过ICQ网关发送手机短信的PHP源程序

更新时间:2023-04-06 06:51:21 阅读: 评论:0

通过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, becau of the cure mode!

// nb: you must have registered your icq# at /d/file/titlepic/web.icq.com 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 /d/file/titlepic/web.icq.com http/1.0

accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, */*

referer: /d/file/titlepic/web.icq.com1,,,00.html

accept-language: nl

content-type: application/x-www-form-urlencoded

accept-encoding: gzip, deflate

ur-agent: mozilla/4.0 (compatible; msie 5.0; windows 98; digext)

host: web.icq.com

content-length: “.$contentlength.”

proxy-connection: keep-alive

pragma: no-cache

cookie: uin=”.$uin.”; sms_country=”.$prefix.”; karmarvice1=yes; uin=”.$uin.”; sms_country=”.$prefix.”; karmarvice1=yes

urvice=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).””;

fclo($remote);

//****************************************************************\//persoonlijke cookie uit de inlogpage halen

// en: fetch personal cookie from login page

$splited = split(“\n”,$htmlreply);

$cookies = $splited[3];

$cookies = str_replace(“t-cookie: karmalogin=”,””,$cookies);

$cookies = str_replace(“; path=/”,””,$cookies);

$cookies = str_replace(“\n”,””,$cookies);

//uncomment voor output: echo $cookies;

if (strlen($prefix) == 2) { $contentprefix = ‘ ‘.$prefix; } el { $contentprefix = $prefix; }

$charcount = (160-strlen($message));

$contentlength= ( 1561+

strlen($message)+

strlen($charcount)+

strlen($phonenumber)+

strlen($prefix)

);

//****************************************************************\//verzendpagina openen met de opgehaalde cookie

// en: open nd page with fetched cookie

$htmlreply=””;

$post =’post /d/file/titlepic/web.icq.com http/1.0

accept: image团委总结/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, */*

referer: /d/file/titlepic/web.icq.com />
accept-language: nl

content-type: multipart/form-data; boundary=—————————7d12442eab4

accept-encoding: gzip, deflate

ur-agent: mozilla/4.0 (compatible; msie 5.0; windows 98; digext)

host: web.icq.com

content-length: ‘.$contentlength.’

proxy-connection: keep-alive

pragma: no-cache

cookie: uin=’.$uin.’; sms_country=’.$prefix.’; karmarvice1=yes; karmalogin=’.$cookies.’; uin=’.$uin.’; sms_country=’.$prefix.’; karmarvice1=yes; karmalogin=’.$cookies.’

—————————–7d12442eab4

content-disposition: form-data; name=”carrier”

—————————–7d12442eab4

content-disposition: form-data; name=”prefix”

‘.$contentprefix.’

—————————–7d12442eab4

content-disposition: form-data; name=”tophone”

‘.$phonenumber.’

—————————–7d12442eab4

content-disposition: form-data; name=”ussion”

1

—————————–7d12442eab4

content-disposition: form-data; name=”ureply”

—————————–7d12442eab4

content-disposition: form-data; name=”ulastid”

—————————–7d12442eab4

content-disposition: form-data; name=”und”

1

—————————–7d1巧夺天工打一字2442eab4

content-disposition: form-data; name=”unextid”

—————————–7d12442eab4

content-disposition: form-data; name=”uhistorycounter”

1

—————————–7d12442eab4

content-disposition: form-data; name=”count”

0

—————————–7d12442eab4

content-disposition: form-data; name=”usubmitcount”

0

—————————–7d12442eab4

content-disposition: form-data; name=”checknewmsg”

180000

—————————–7d12442eab4

content-disposition: form-data; name=”charcount”

‘.$charcount.’

—————————–7d12442eab4

content-disposition: form-data; name=&#灯光读后感8221;msg”

‘.$message.’

—————————–7d12442eab4

content-disposition: form-data; name=”x”

30

—————————–7d12442eab4

content-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).””;

fclo($remote);

//*******************************************************小升初试题*********\// check if message is nd if nd ‘moved permanently’ is returned

if (eregi(‘moved permanently’,$htmlreply))

{ echo “sms message successfully nt!”; }

el

{ echo “sms not nt!”; }

?>

本文发布于:2023-04-06 06:51:11,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/zuowen/97076251cd873a5296e3256f42725722.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

本文word下载地址:通过ICQ网关发送手机短信的PHP源程序.doc

本文 PDF 下载地址:通过ICQ网关发送手机短信的PHP源程序.pdf

相关文章
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图