首先是下载包 包名是fetion20091117-linux.tar.gz
http://www.it-adv.net/fetion/downng/fetion20091117-linux.tar.gz 包下载地址
本机环境安装到独立的目录
[root@10vps ~]# mkdir /feixin
上传到这个目录中
cd /feixin
[root@10vps feixin]# tar -zxvf fetion20091117-linux.tar.gz
[root@10vps feixin]# cd fx
[root@10vps feixin]# ./fetion
./fetion: error while loading shared libraries: libACE-5.7.2.so: cannot open shared object file: No such file or directory
[root@10vps fx]# cp libACE-5.7.2.so /lib/
[root@10vps fx]# ./fetion
./fetion: error while loading shared libraries: libACE_SSL-5.7.2.so: cannot open shared object file: No such file or directory
[root@10vps fx]# cp libACE_SSL-5.7.2.so /lib
[root@10vps fx]# ./fetion
./fetion: error while loading shared libraries: libssl.so.4: cannot open shared object file: No such file or directory
[root@10vps fx]# cp libssl.so.4 /lib
[root@10vps fx]# ./fetion
./fetion: error while loading shared libraries: libcrypto.so.4: cannot open shared object file: No such file or directory
[root@10vps fx]# cp libcrypto.so.4 /lib/
上面的意思也就是lib里面缺少这几个文件直接拷贝即可,我只是把出错过程也记录下来,文件就在下载的软件包里
出现下面的界面表示飞信安装成功了已经可以运行了
[root@10vps fx]# ./fetion
************************ IMPORTANT STATEMENT ************************
** **
** PLEASE DON’T USE THIS SOFTWARE TO SEND JUNK SHORT MESSAGES. **
** OTHERWISE PLEASE BEAR YOUR OWN CONSEQUENCES. **
** **
** Version:[20091117002-linux] **
*********************************************************************
This program is the console version of China Fetion!
It’s free for personal user.
This project website: http://www.it-adv.net/
AUTHOR:KelvinH MSN/EMAIL:shichangguo@msn.com
Usage:
–mobile=[mobile]
–sid=[sid]
–pwd=[pwd]
–config=[config file] *format:index mobile password
–index=[index no in config file,refer to sample.conf]
–debug *debug mode on
–hide *login fetion in hidden state
–to=[mobile/sid]
–add=[uri]
–command-path=[command file path]
–robotmode
–daemon(linux only)
–proxy-ip(http proxy ip)
–proxy-port(http proxy port)
–msg-gb=[gb2312/gbk message]
–msg-utf8=[utf8 message]
–msg-type=[0/1/2/3 sms longsms smartmsg mms]
–file-gb=[gb2312/gbk file]
–file-utf8=[utf8 file]
–query-cmcc-no
–testaccount
–auto-retry
–get-web-session
–action=getpiccode –mobile=13910000000 –pwd=[pwd] (–piccode-url=[url])
–action=appsubscribe –mobile=[mobile] –pwd=[pwd] –pic-certificate-id=[certid] –pic-cert-code=[certcode] –apply-sub-service-url=[url]
–action=subscribe –mobile=[mobile] –pwd=[pwd] –sms-code=[smscode] –subscribe-url=[url]
–action=updatepwd –mobile=[mobile] –pwd=[pwd] –sms-code=[smscode] –update-pwd-url=[url]
此时即可用下面的命令发送信息了,达到的效果和飞信一样 ,134的用户也就你本人给159的好友发送消息成功(要加了好友才可以发)
[root@10vps feixin]# ./fetion –mobile=134******** –pwd=password –to=159******** –msg-utf8=10vps-test
除此之外你还可以直接发送txt文件内的内容给你的好友发送方法见下
[root@10vps feixin]# vi /tmp/10vps-test.txt
内容随便写 10vps-test 保存后 直接发送即可
[root@10vps feixin]# ./fetion –mobile=158******** –pwd=password –to=159******** –file-utf8=/tmp/10vps-test.txt
发送后好友即可收到你发的信息
后期还可以使用交互的脚本来使用短信重启apache
测试中!本文出自 51CTO.COM技术博客