1.下载linux版的飞信主程序

2.下载机器人支持的库

# wget  http://www.it-adv.net/fetion/cenos54X64_20101113.rar

3.创建飞信目录
# mkdir /sms
# mv fetion /sms/
# chmod +x /sms/fetion
4.解压库文件到/sms/目录下
# unrar x cenos54X64_20101113.rar -C /sms/
unrar的命令安装
http://www.rarlab.com/download.htm
下载后解压进入目录执行make即可
5.编辑/etc/ld.so.conf.d/fetion.conf
添加/sms/lib/
保存退出执行ldconfig
6.运行测试报错
# ./fetion
-bash: ./fetion: Permission denied
需要安装
# yum install /lib/ld-linux.so.2
# yum install -y libstdc++.so.6 libgssapi_krb5.so.2 libz.so.1
验证机器人是否正常
# ./fetion
************************ IMPORTANT STATEMENT ************************
**                                                                 **
**   PLEASE DON'T USE THIS SOFTWARE TO SEND JUNK SHORT MESSAGES.   **
**   OTHERWISE PLEASE BEAR YOUR OWN CONSEQUENCES.                  **
**                                                                 **
**                                Version:[20101205002-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]
    --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 sms longsms smartmsg]
    --file-gb=[gb2312/gbk file]
    --file-utf8=[utf8 file]
    --query-cmcc-no
    --auto-retry
    --exit-on-verifycode
    --t3key=[http://www.tui3.com/page/smssend/]
继续测试
# ./fetion --mobile=15012345678 --pwd=****** --to=15012345678 --msg-utf8=hello
HTTP/1.1 200 OK
Connection: close
Date: Tue, 08 Oct 2013 08:09:31 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Content-Location: nav.fetion.com.cn
X-AspNet-Version: 4.0.30319
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 2321
<?xml version="1.0" encoding="UTF-8"?><results><pic-certificate id="a1616144-e96f-4bf9-996d-de2dce7b1af8" pic="/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAAkAFoDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD3+uYsPiD4Z1PxF/wj9tfTDVuc2s1lPC4wu453oMcc8109fPms3WrW/wC0uZbKyhlvRBthiDlldfKOCThcHHJ5wPU0L4kn5/kD+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otwoW4mdy0k2BjLN+J4GAMnAGa8r8J6T45+FfiDUdHsPDEmv6XqEpe1ljuViRdo+8zkEISpAIYDJHBPf3iii/vXDS1jzLwJ8MtV8Ja7qGpf28tta3s3mtplnArR9cqpdwTgbmX5QpPByOlem0UUdEuwdWwooooAKKKKACiiigAooooAKKKKACiiigAooooA//Z" /></results>
图形验证码已经生成,文件名为:15012345678.jpg请识别后输入图形验证码:
hfpd
您输入的识别码是:hfpd
SIP-C/4.0 280 Send SMS OK
T: sip:558520732@fetion.com.cn;p=9170
I: 2
Q: 1 M
L: 112
D: Tue, 08 Oct 2013 08:11:48 GMT
XI: 34B526B1B658A944071710D84E1A10B5

生成的15026984182.jpg使用sz命令传到本地打开查看然后输入对话


发送飞信必须是自己在对方好友列表里,无需对方在自己好友列表里