IRC Hacks
暫譯: IRC 黑客技巧

Paul Mutton

  • 出版商: O'Reilly
  • 出版日期: 2004-08-31
  • 售價: $1,270
  • 貴賓價: 9.5$1,207
  • 語言: 英文
  • 頁數: 432
  • 裝訂: Paperback
  • ISBN: 059600687X
  • ISBN-13: 9780596006877
  • 海外代購書籍(需單獨結帳)

買這商品的人也買了...

商品描述

Description:

IRC ( Internet Relay Chat) may very well turn out to be the world's most successful hack. In 1988, Jarkko Oikarinen wrote the original IRC program at the University of Oulu, Finland. As he says in his foreword, "IRC started as one summer trainee's programming exercise. A hack grew into a software development project that hundreds of people participated in, and then became a worldwide environment where tens of thousands of people now spend time with each other. I have found many of my friends through IRC and learnt a significant part of my present software engineering knowledge while using and working with IRC. That would not have been possible without learning from code examples and hacks from others".

IRC has continued to grow in popularity since its inception. Millions of people from all over the world now use IRC to chat with friends, discuss projects and collaborate on research. With a simple, clearly defined protocol, IRC has become one of the most accessible chat environments, with clients written for a multitude of operating systems. And IRC is more than just a simple chat system it is a network of intercommunicating servers, allowing thousands of clients to connect from anywhere in the world using the IRC protocol.

While IRC is easy to get into and many people are happy to use it without being aware of what's happening under the hood, there are those who hunger for more knowledge, and this book is for them. IRC Hacks is a collection of tips and tools that cover just about everything needed to become a true IRC master, featuring contributions from some of the most renowned IRC hackers, many of whom collaborated on IRC, grouping together to form the channel #irchacks on the freenode IRC network (irc.freenode.net).

Like all of our Hacks books, there are many different ways to use IRC Hacks. You can read the book from cover to cover, but you might be better served by picking an interesting item from the table of contents and just diving in.

If you're relatively new to IRC, you should considering starting with a few hacks from each progressive chapter. Chapter 1 starts you off by showing you how to connect to IRC, while Chapter 2 acquaints you with the everyday concepts you'll need to use IRC effectively. Chapter 3 is all about users and channels, and introduces the first pieces of code. Chapter 4 shows you how to make useful enhancements to IRC clients.

Chapter 5 is where you will learn the basics about creating IRC bots, with Chapters 6-12 introducing more complex bots that can be used for logging, servicing communities, searching, announcing, networking, managing channels or simply for having fun. Chapter 13 delves into the IRC protocol in more detail, and Chapter 14 demonstrates some interesting alternative methods for connecting to IRC. Finally, Chapter 15 will move you on to new pastures by showing you how to set up your own IRC server.

This book presents an opportunity to learn how IRC works and how to make best use of some of the features that have made it the most successful, most scalable, and most mature chat system on this planet. IRC Hacks delves deep into the possibilities.

 

Table of Contents:

Foreword

Credits

Preface

Chapter 1. Connecting to IRC
       1. IRC from Windows
       2. IRC from Linux
       3. IRC from Mac OS X
       4. IRC with ChatZilla

Chapter 2. Using IRC
       5. The IRC Model
       6. Common Terms, Abbreviations, and Phrases
       7. Common Acronyms and Initialisms
       8. Register with NickServ
       9. Register Your Channel with ChanServ
       10. The QuakeNet L Channel Bot
       11. Fix Channel Problems with CHANFIX

Chapter 3. Users and Channels
       12. Find Relevant Channels and Servers
       13. Guess the Time Zone of a User
       14. Study Channel Statistics with pisg
       15. Find Users in Channels
       16. Filter Channel Lists

Chapter 4. Enhancing IRC Clients
       17. Automatic Completion of Nicknames
       18. Add Timestamps to mIRC Messages
       19. Highlight Lines in mIRC
       20. Automate mIRC with Scripting
       21. Format Text
       22. Colorize Text
       23. Play Sounds
       24. Enhance irssi with Perl
       25. Connect to Multiple Servers
       26. Secure Your IRC Connection with SSL
       27. Tunnel Your IRC Connection with SSH
       28. Automate Voice Management
       29. Make IRC Talk
       30. Add Your IRC Nickname to Your Webcam

Chapter 5. Writing IRC Bots
       31. IRC Over Telnet
       32. A Simple Perl IRC Client
       33. IRC with Perl and Net::IRC
       34. A Simple Java IRC Client
       35. IRC with Java and PircBot
       36. A Simple Python IRC Client
       37. IRC with Python and IRCLib
       38. Extend the Python IRCLib
       39. The Ethics of IRC Bots

Chapter 6. Logging Bots
       40. Keep Tabs on People
       41. Log URLs People Mention
       42. Blog from IRC
       43. A Continuity Bot

Chapter 7. Community Bots
       44. Infer Social Networks from IRC
       45. Run an Infobot
       46. Use PPF for Gaming Clans
       47. Write a Plug-in for PPF
       48. Getting Friendly with FOAFBot
       49. Interrogate Trust Networks with TrustBot
       50. Pass Notes to Other Users

Chapter 8. Search and Query Bots
       51. Search the Web with Google
       52. Use the Dictionary
       53. Check the Weather
       54. Don't Get Lost in Translation
       55. Convert Currency
       56. Find Out When People Are on the Network
       57. Search for Books on Amazon

Chapter 9. Fun Bots
       58. A DiceBot
       59. An Egg Timer
       60. A Trivia Bot
       61. Perform Feats of Math
       62. An Artificial Intelligence Bot
       63. Create Comic Strips

Chapter 10. Announcement Bots
       64. Welcome Visitors Automagically
       65. Announce Newsgroup Posts
       66. Feed Syndicated RSS News into IRC Channels
       67. Watch Online Games with MatchEd

Chapter 11. Network Bots
       68. Link Channels on Multiple Networks
       69. Get a Remote Shell
       70. Tail Log Files
       71. Bridge Two Infobots
       72. A File-Sharing Bot

Chapter 12. Channel Management Bots
       73. Protect the Channel Topic
       74. Invite Users into Channels
       75. Maintain Operator Status
       76. Set Up an Eggdrop Bot
       77. Manage Channels with an Eggdrop

Chapter 13. The IRC Protocol
       78. Understanding the IRC Protocol
       79. Text Over Multiple Lines
       80. Fake an Ident Response
       81. Strip Formatting from Messages
       82. Remove Color from Messages
       83. Encrypt Messages
       84. Timestamp with the TS Protocol
       85. Understanding CTCP Messages

Chapter 14. Other Ways to Connect to IRC
       86. Hypertext Links to IRC Channels
       87. IRC from Your Mobile Phone
       88. Enemies of Mobile IRC
       89. IRC from a Pocket PC
       90. Access IRC with Java Applets
       91. Use IRC from a Web Page Without Java
       92. Use IRC Within screen
       93. Set Up an IRC Proxy
       94. Use irssi and Its Proxy

Chapter 15. Servers and Services
       95. Set Up Your Own IRC Server for Unix/Linux
       96. Install Services
       97. Set Up Your Own beware ircd Server
       98. Link Two IRC Servers Together
       99. Use MSN/ICQ/Jabber from IRC
       100. Combine BitlBee and CtrlProxy

Index

 

商品描述(中文翻譯)

**描述:**
IRC(網際網路中繼聊天)可能是世界上最成功的黑客作品。1988年,Jarkko Oikarinen在芬蘭奧盧大學撰寫了原始的IRC程式。正如他在前言中所說,「IRC起初是一名暑期實習生的程式設計練習。一個黑客演變成一個軟體開發專案,數百人參與其中,然後成為一個全球性的環境,數以萬計的人現在在這裡互相交流。我通過IRC結識了許多朋友,並在使用和操作IRC的過程中學到了我目前軟體工程知識的重要部分。這一切都不可能在沒有從他人的程式碼範例和黑客技術中學習的情況下實現。」

自創立以來,IRC的受歡迎程度持續增長。來自世界各地的數百萬人現在使用IRC與朋友聊天、討論專案和合作研究。憑藉簡單且明確定義的協議,IRC已成為最易於接觸的聊天環境之一,並且為多種作業系統編寫了客戶端。而IRC不僅僅是一個簡單的聊天系統,它是一個互相通訊的伺服器網路,允許數千個客戶端使用IRC協議從世界任何地方連接。

雖然IRC很容易上手,許多人在不知情的情況下愉快地使用它,但也有一些人渴望獲得更多知識,而這本書正是為他們而寫的。《IRC Hacks》是一系列技巧和工具的集合,涵蓋了成為真正IRC大師所需的幾乎所有內容,並且有一些最著名的IRC黑客的貢獻,他們中的許多人曾在IRC上合作,聚集在freenode IRC網路(irc.freenode.net)的#irchacks頻道。

像我們所有的Hacks書籍一樣,《IRC Hacks》有許多不同的使用方式。你可以從頭到尾閱讀這本書,但從目錄中選擇一個有趣的項目直接深入研究可能會更有幫助。

如果你對IRC相對較新,建議你從每個進階章節中開始學習幾個技巧。第一章將教你如何連接到IRC,而第二章則讓你熟悉有效使用IRC所需的日常概念。第三章專注於用戶和頻道,並介紹第一段程式碼。第四章展示了如何對IRC客戶端進行有用的增強。

第五章將教你有關創建IRC機器人的基本知識,第六至十二章則介紹了可以用於日誌記錄、服務社群、搜尋、公告、網路連接、管理頻道或單純娛樂的更複雜的機器人。第十三章深入探討IRC協議的更多細節,第十四章展示了一些有趣的替代方法來連接IRC。最後,第十五章將引導你進入新的領域,教你如何設置自己的IRC伺服器。

這本書提供了一個學習IRC如何運作以及如何充分利用使其成為地球上最成功、最具擴展性和最成熟的聊天系統的一些功能的機會。《IRC Hacks》深入探討了這些可能性。

**目錄:**
前言
致謝
序言
第一章 連接到IRC
       1. 從Windows連接IRC
       2. 從Linux連接IRC
       3. 從Mac OS X連接IRC
       4. 使用ChatZilla連接IRC

第二章 使用IRC
       5. IRC模型
       6. 常見術語、縮寫和短語
       7. 常見首字母縮略詞和簡稱
       8. 使用NickServ註冊
       9. 使用ChanServ註冊你的頻道
       10. QuakeNet L頻道機器人
       11. 使用CHANFIX修復頻道問題

第三章 用戶和頻道
       12. 查找相關頻道和伺服器
       13. 猜測用戶的時區
       14. 使用pisg研究頻道統計
       15. 在頻道中查找用戶
       16. 過濾頻道列表

第四章 增強IRC客戶端
       17. 自動完成暱稱
       18. 為mIRC消息添加時間戳
       19. 在mIRC中突出顯示行
       20. 使用腳本自動化mIRC
       21. 格式化文本
       22. 為文本上色
       23. 播放聲音
       24. 使用Perl增強irssi
       25. 連接到多個伺服器
       26. 使用SSL保護你的IRC連接
       27. 使用SSH隧道你的IRC連接
       28. 自動化語音管理
       29. 讓IRC說話
       30. 將你的IRC暱稱添加到你的網路攝影機

第五章 編寫IRC機器人
       31. 通過Telnet使用IRC
       32. 一個簡單的Perl IRC客戶端
       33. 使用Perl和Net::IRC的IRC
       34. 一個簡單的Java IRC客戶端
       35. 使用Java和PircBot的IRC
       36. 一個簡單的Python IRC客戶端
       37. 使用Python和IRCLib的IRC
       38. 擴展Python IRCLib
       39. IRC機器人的倫理

第六章 日誌記錄機器人
       40. 監控人員
       41. 記錄人們提到的URL
       42. 從IRC發佈部落格
       43. 一個持續性機器人

第七章 社群機器人
       44. 從IRC推斷社交網路
       45. 運行一個Infobot
       46. 為遊戲公會使用PPF
       47. 為PPF編寫插件
       48. 與FOAFBot建立友好關係
       49. 使用TrustBot調查信任網路
       50. 向其他用戶傳遞消息

第八章 搜尋和查詢機器人
       51. 使用Google搜尋網路
       52. 使用字典
       53. 查詢天氣
       54. 不要在翻譯中迷失
       55. 轉換貨幣
       56. 查找人們何時在線
       57. 在Amazon上搜尋書籍

第九章 趣味機器人
       58. 一個擲骰子機器人
       59. 一個計時器
       60. 一個問答機器人
       61. 執行數學運算
       62. 一個人工智慧機器人
       63. 創建漫畫

第十章 公告機器人
       64. 自動歡迎訪客
       65. 宣布新sgroup帖子
       66. 將RSS新聞源輸入IRC頻道
       67. 使用MatchEd觀看線上遊戲

第十一章 網路機器人
       68. 在多個網路上鏈接頻道
       69. 獲取遠端Shell
       70. 尾隨日誌文件
       71. 連接兩個Infobot
       72. 一個檔案分享機器人

第十二章 頻道管理機器人
       73. 保護頻道主題
       74. 邀請用戶進入頻道
       75. 維持操作員狀態
       76. 設置Eggdrop機器人
       77. 使用Eggdrop管理頻道

第十三章 IRC協議
       78. 理解IRC協議
       79. 跨多行的文本
       80. 假冒Ident回應
       81. 從消息中去除格式
       82. 從消息中去除顏色
       83. 加密消息
       84. 使用TS協議時間戳
       85. 理解CTCP消息

第十四章 其他連接IRC的方法
       86. 超文本鏈接到IRC頻道
       87. 從手機連接IRC
       88. 手機IRC的敵人
       89. 從Pocket PC連接IRC
       90. 使用Java Applet訪問IRC
       91. 從網頁使用IRC而不需要Java
       92. 在screen中使用IRC
       93. 設置IRC代理
       94. 使用irssi及其代理

第十五章 伺服器和服務
       95. 為Unix/Linux設置自己的IRC伺服器
       96. 安裝服務
       97. 設置自己的beware ircd伺服器
       98. 將兩個IRC伺服器鏈接在一起
       99. 從IRC使用MSN/ICQ/Jabber
       100. 結合BitlBee和CtrlProxy

索引

最後瀏覽商品 (20)