Chen Jian

导航

 

古老的 IRC,一直都没有试过,今天就尝试了一下,专注于聊天的东西啊。 
把初用的过程记录下来

先找了一下客户端,命令行版本的我试了一下 weechat(和微信就差一个字母),图形的用了 TimeChat。 
并没有推荐使用的意思,没有用更多的客户端做对比。

下面以 weechat为例,来写一下基本的使用命令。 
安装 weechat: Mac 里面用 brew install weechat 就可以了,在 kali 里面用 apt-get install weechat就可以了。 
安装完成后,输入 weechat 命令就能启动客户端了。

要想使用 IRC,就需要先连接一个 irc 服务器,选择了大名鼎鼎的 chat.freenode.net 服务器。 
刚开始按照教程添加了默认的服务器,使用的命令为 /server add freenode chat.freenode.net 
然后运行连接服务器的命令 /connect freenode 但是怎么也连接不上,tcp 连接总被 reset by peer。 
然后用 nmap 扫描了一下 chat.freenode.net,发现还有好多个端口开发提供 irc 服务。 
再试试其它端口吧 
按照/help server 帮助命令的提示,添加了新的 server。 
命令为 /server add freenode chat.freenode.net/6697
再连接 /connect freenode 
连接成功了。

好了,给自己起一个 nickname,就用自己的名字zhijia 吧。执行命令/nick zhijia 
结果不行,还是需要注册一下的,否则被人冒用怎么办。 
注册的命令格式是这样的: 
/msg NickServ REGISTER <name> <passwd> <email> 
passwd为密码,email为邮箱地址 
很幸运,没有重复的,注册成功。 
不一会邮箱收到了 freenode 发来的验证邮件,里面有一条命令,用来验证邮箱的,在 weechat里面执行这条命令就好了。

退出 weechat的命令也很简单/exit 
退出后,还得再登录 
下次启动 weechat,登录服务器 
登录后,切换用户名/nick zhijia 
然后验证用户身份/msg NickServ identify <password>.

22:23:38 freenode8001  -- | NickServ (NickServ@services.): This nickname is registered. Please choose a different nickname, or identify via /msg NickServ identify <password>.
22:23:54 freenode8001  -- | MSG(NickServ): identify ***********
22:23:55 freenode8001  -- | NickServ (NickServ@services.): You are now identified for zhijia.

下一个步骤就是进 chanel 聊天了,进入 chanel 的命令是/join #chanelname 
那就进如火如荼的开源项目 openstack 频道里面看看吧 
/join #openstack 
进去后,就能看到各位大牛聊天了

Openstack Support Channel, Development in #openstack-dev | Wiki: http://wiki.openstack.org/ | Docs: http://docs.openstack.o>>
22:21:22       --> | zhijia (~root@111.196.192.52) has joined #openstack │@ChanServ
22:21:22        -- | Topic for #openstack is "Openstack Support Channel, Development in #openstack-dev | │ 20WAAACXB
                   | Wiki: http://wiki.openstack.org/ | Docs: http://docs.openstack.org/ | Answers:        │ _0x5eb_
                   | https://ask.openstack.org | Logs: http://eavesdrop.openstack.org/irclogs/ | Paste:    │ _cmd_
                   | http://paste.openstack.org/"                                                          │ _nick
22:21:22        -- | Topic set by openstackstatus on Sun, 14 Feb 2016 01:37:17                             │ _shaps_
22:21:23        -- | Channel #openstack: 950 nicks (1 op, 0 voices, 949 normals) │ `ariel
22:21:23        -- | URL for #openstack: http://www.openstack.org │ `Calvin
22:21:25        -- | Channel created on Mon, 28 Jun 2010 22:37:39                                          │ a1|away
22:21:33       --> | martin (~Martin@unaffiliated/martin) has joined #openstack │ aarefiev
22:21:34       <-- | trifon (~trifon@78.90.21.222) has quit (Ping timeout: 255 seconds)                    │ ababich
22:21:36       <-- | josecastroleon (~josecastr@pcitis153.cern.ch) has quit (Quit: Leaving.)               │ abhi_
22:21:49 yankcrime | wigwam: and on your upgraded compute node                                             │ abramley
22:22:10        -- | irc: disconnected from server                                                         │ AbyssOne
22:22:10       === | ========== End of backlog (11 lines) ==========                                       │ Acinonyx_
23:02:36       --> | zhijia (~root@111.196.192.52) has joined #openstack │ adam_g
23:02:36        -- | Topic for #openstack is "Openstack Support Channel, Development in #openstack-dev | │ adeschamps
                   | Wiki: http://wiki.openstack.org/ | Docs: http://docs.openstack.org/ | Answers:        │ adjohn
                   | https://ask.openstack.org | Logs: http://eavesdrop.openstack.org/irclogs/ | Paste:    │ adreznec
                   | http://paste.openstack.org/"                                                          │ Adri2000
23:02:36        -- | Topic set by openstackstatus on Sun, 14 Feb 2016 01:37:17                             │ adrienr
23:02:37        -- | Channel #openstack: 956 nicks (1 op, 0 voices, 955 normals) │ aeperezt
23:02:37        -- | URL for #openstack: http://www.openstack.org │ afazekas
23:02:38        -- | Channel created on Mon, 28 Jun 2010 22:37:39                                          │ AG_Clinton
23:02:39       <-- | linkmark (4e14ae5f@gateway/web/cgi-irc/kiwiirc.com/ip.78.20.174.95) has quit (Quit:   │ agireud
                   | http://www.kiwiirc.com/ - A hand crafted IRC client)                                  │ aholler_
                                                                                                           │ aimon
                                                                                                           │ ajafo
                                                                                                           │ ajmiller
                                                                                                           │ akrzos
                                                                                                           │ al            ++
[23:03] [2] [irc/freenode8001] 2:#openstack(+cnt){955} [Lag: 1.466] 
[zhijia(i)]

 

posted on 2017-08-04 11:43  Chen Jian  阅读(4197)  评论(0编辑  收藏  举报