干得好。在160by2.com上创建一个帐户,然后在系统上安装php。
sudo apt-get install php5-cli php5-curl curl
将您的电话号码和密码粘贴到我提到的位置,然后运行以下脚本:
<?php
echo“电话:”; $ phno = trim(fgets(STDIN));
echo“消息:”; $ msg = trim(fgets(STDIN));
echo“消息长度:”。strlen($ msg)。“ \ n正在发送...”;
$ yournumber =''; //您的单引号内的数字
$ yourpassword =''; //单引号内的密码
$ cur = curl_init(“ http://160by2.com/re-login”);
curl_setopt($ cur,CURLOPT_POST,1);
curl_setopt($ cur,CURLOPT_POSTFIELDS,“ username = $ yournumber&password = $ yourpassword”);
curl_setopt($ cur,CURLOPT_COOKIESESSION,1);
curl_setopt($ cur,CURLOPT_COOKIEJAR,“ cookie”);
curl_exec($ cur);
curl_close($ cur);
$ cur = curl_init(“ http://160by2.com/SendSMSAction”);
curl_setopt($ cur,CURLOPT_POST,1);
curl_setopt($ cur,CURLOPT_AUTOREFERER,1);
curl_setopt($ cur,CURLOPT_COOKIEFILE,“ cookie”);
curl_setopt($ cur,CURLOPT_POSTFIELDS,“ mobile1 = $ phno&msg1 = $ msg&action1 = sa65sdf656fdfd”);
$ x = curl_exec($ cur);
curl_close($ cur);
回声“ \ n已发送!”;
将脚本另存为sms.php。然后在终端运行 php sms.php
完成!