Apsara bot PHP free text message call interface download

Source: Internet
Author: User

My PHP version of fetionSource codeThe file has been fully published. Please click "download of PHP fetion source code publicly available" to download all the attachments.Code.

A few days ago, I studied Feixin intermittently. In the meantime, I was grateful to the World Circle of the robot in the blog garden. I found the direction, downloaded libfetion, and captured packets on it. Haha ~ Sin, Sin. Well! I would also like to thank openfetion. Although it is no longer available, there are still many references.

Now we have implemented it using PHP, so we can call him the PHP version of the flying mail robot. Because the socket listening port is always failed, it is not possible to directly simulate sending messages to the Apsara client. Due to PhP's own defects, such as event-driven, the client cannot be perfectly simulated, I captured packets to implement two functions: one is to send text messages to myself, and the other is to change the nickname (because when the nickname is changed to null, the text message obtained is more "regular ").

Others, such as sending text messages to the contact list and automatically adding friends, are packet capture. I am too lazy to take care of him, so I will study it when I am okay. Call ~ Made a BO-BLOG plug-in, calling methods are in it, I provide a download. /Files/gently/sms2_fetion.rar

The following is the core code snippet.

 

{
Function onclick ()
{
Function onclick ()
{
This. style. display = 'none'; document. getelementbyid ('Code _ closed_text_113302 '). style. display = 'none'; document. getelementbyid ('Code _ open_image_113302 '). style. display = 'inline'; document. getelementbyid ('Code _ open_text_113302 '). style. display = 'inline ';
}
}
} "Id =" code_closed_image_113302 "> {
Function onclick ()
{
Function onclick ()
{
This. style. display = 'none'; document. getelementbyid ('Code _ open_text_113302 '). style. display = 'none'; getelementbyid ('Code _ closed_image_113302 '). style. display = 'inline'; getelementbyid ('Code _ closed_text_113302 '). style. display = 'inline ';
}
}
} "Id =" code_open_image_113302 "style =" display: none "> Apsara robot PHP core code
$ Post_data = " Mobile_no = { $ _ Xcfg ['Username']} & pass = { $ _ Xcfg ['Password']} & SMS = " . Rawurlencode ( $ SMS );
If ( $ _ Xcfg [ ' Use_tmp_nick ' ]) {
$ Post_data . = " & Amp; use_tmp_nick = 1 & amp; tmp_nick = " . Rawurlencode ( $ _ Xcfg [ ' Tmp_nick ' ]);
}
$ Len = Strlen ( $ Post_data );

$ Headers = " Post/fetion/fetionserver. php HTTP/1.1 \ r \ n " ;
$ Headers . = " Accept: */* \ r \ n " ;
$ Headers . = " Content-Type: Application/X-WWW-form-urlencoded \ r \ n " ;
$ Headers . = " User-Agent: zendstudio. Net \ r \ n " ;
$ Headers . = " HOST: x.zendstudio.net \ r \ n " ;
$ Headers . = " Content-Length :{ $ Len } \ R \ n " ;
$ Headers . = " Connection: Close \ r \ n " ;
$ Headers . = $ Post_data ;
If ( $ Fp = Fsockopen ( ' X.zendstudio.net ' , 80 , $ Errno , $ Errstr , 90 )){
Flock ( $ Fp , Lock_ex );
Fwrite ( $ Fp , $ Headers );
Sleep ( 1 );
$ Received = Fread ( $ Fp , 2048 );
Fclose ( $ Fp );
}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.