Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
IRC Hacks
SPECIAL OFFER: Upgrade this ebook with O’Reilly
Foreword
Credits
About the Author
Contributors
Acknowledgments
Preface
Why IRC Hacks?
How to Use This Book
How This Book Is Organized
Conventions Used in this Book
Using Code Examples
How to Contact Us
Got a Hack?
1. Connecting to IRC
Introduction: Hacks #1-4
Hack #1. IRC from Windows
Hack #2. IRC from Linux
Nicknames, Usernames, and Real Names
Server Configuration
Advanced Options and Autoconnects
Setting Up Autologin
Selecting a Stable Server
Different Nicknames on Different Networks
Setting Up the User Interface
Interface/Text Box
Chatting/General
Logging
Network/Setup
Hacking XChat
Tab in a window
Per-channel options
All-server commands
Use colors
Display output with /exec
Setting up auto-replace strings
Setting up user commands
Customize messages/colors and set sounds
Add user list buttons and menu commands
Add CTCP replies
Hack #3. IRC from Mac OS X
Conversation
X-Chat Aqua
Snak
IRCle
Hack #4. IRC with ChatZilla
Installing ChatZilla
Using ChatZilla
See Also
2. Using IRC
Introduction: Hacks #5-11
Hack #5. The IRC Model
Network of Servers
Clients
Channels
Operators
Channel Operators
Hack #6. Common Terms, Abbreviations, and Phrases
Noun-Verb Duality
Leet Speak
Correction Syntax
Phonetics and Keyboard Layouts
Hack #7. Common Acronyms and Initialisms
Hack #8. Register with NickServ
Registering Yourself with NickServ
Fixing Nick Collisions
Changing Nicknames
Hack #9. Register Your Channel with ChanServ
Introducing ChanServ
Registering a Channel
Restoring Channel Operators
Access Lists
Adding Users to the Access List
Other ChanServ Features
Hack #10. The QuakeNet L Channel Bot
Create an Account
Getting L
Setting Up L for Your Channel
Hack #11. Fix Channel Problems with CHANFIX
Channel Monitoring
Automatic CHANFIX
Manual CHANFIX
Interesting CHANFIX Facts
See Also
3. Users and Channels
Introduction: Hacks #12-16
Hack #12. Find Relevant Channels and Servers
Finding Help on IRC
Other Interesting Statistics
Hack #13. Guess the Time Zone of a User
Hack #14. Study Channel Statistics with pisg
Running pisg
Editing pisg.cfg
Publishing pisg Statistics
Setting up statistics options
Nickname tracking
User lines
Photos and photo galleries
Headers and footers
The Results
Hack #15. Find Users in Channels
Nick Seeking
Advanced Search
A Strategy for Finding Users
The Code
Finding users with Net::IRC
irssi
PircBot
Hack #16. Filter Channel Lists
The Code
Running the Hack
Hacking the Hack
4. Enhancing IRC Clients
Introduction: Hacks #17-30
Hack #17. Automatic Completion of Nicknames
mIRC
irssi
XChat
ChatZilla
BitchX
Hack #18. Add Timestamps to mIRC Messages
Adding Simple Timestamps
Hacking the Timestamp
Hack #19. Highlight Lines in mIRC
Highlight Your Own Messages
Highlight Messages from Other People
Highlight Messages Containing Keywords
Hack #20. Automate mIRC with Scripting
Opening the Scripts Editor
Making a Bad Word Banner
alias
set
while
if
return
inc
Putting It All Together
on TEXT
if
mode
kick
Running the Hack
Hack #21. Format Text
Formatting Text in mIRC
Bold
Underline
Italic or reversed
Normal
Formatting Text with a Bot
Bold
Underline
Italic or reversed
Normal
Formatting Text with PircBot
Hack #22. Colorize Text
Using Colors in mIRC
Backgrounds
Problems with Coloring Numbers
Sending Colors from Bots
Sending Colors from PircBot
Hack #23. Play Sounds
Enabling Sound Requests
Adding Sounds to mIRC
Sending Sound Requests
Requesting Sounds
Agents
Hack #24. Enhance irssi with Perl
Using an irssi Script
See What Film Everyone’s Watching
Who’s Behind That Nick?
Strange Dialects
Automatically Get Ops When the Channel Is Empty
Keep Everyone Amused When You’re Away
What Was That Query About Again?
Other Interesting Scripts
The Code
Hack #25. Connect to Multiple Servers
mIRC
XChat
irssi
Hack #26. Secure Your IRC Connection with SSL
Securing Your IRC Connection with mIRC
Securing Your IRC Connection with XChat
Securing Your IRC Connection with irssi
Securing Your IRC Connection with stunnel
Hack #27. Tunnel Your IRC Connection with SSH
Setting Up an SSH Tunnel with OpenSSH
Setting Up an SSH Tunnel with PuTTY
Allowing Third Parties to Bypass the Firewall
Hack #28. Automate Voice Management
The Code
Running the Hack
Hacking the Hack
Hack #29. Make IRC Talk
The Code
Running the Hack
Hacking the Hack
Hack #30. Add Your IRC Nickname to Your Webcam
Writing Your Nickname to a File
Displaying File Contents in Dorgem
The Results
5. Writing IRC Bots
Introduction: Hacks #31-39
Hack #31. IRC Over Telnet
Staying Alive
Joining Channels and Sending Messages
Hack #32. A Simple Perl IRC Client
The Code
Running the Hack
The Results
Hack #33. IRC with Perl and Net::IRC
Preparations
The Code
Running the Hack
The Results
Hack #34. A Simple Java IRC Client
The Code
Running the Hack
Results
Hack #35. IRC with Java and PircBot
Event-Driven Framework
Running the Hack
Hacking the Hack
Hack #36. A Simple Python IRC Client
The Code
Running the Hack
Hack #37. IRC with Python and IRCLib
The Code
Event Handlers
Learning More About IRCLib
Hack #38. Extend the Python IRCLib
The Code
Loading Your Extensions
Built-in Extensions
Hack #39. The Ethics of IRC Bots
6. Logging Bots
Introduction: Hacks #40-43
Hack #40. Keep Tabs on People
!seen
The Code
Running the Hack
Hacking the Hack
Hack #41. Log URLs People Mention
The Code
Running the Hack
Hacking the Hack
Hack #42. Blog from IRC
The Code
Running the Hack
The Results
Hack #43. A Continuity Bot
The Code
Running the Hack
7. Community Bots
Introduction: Hacks #44-50
Hack #44. Infer Social Networks from IRC
Installing PieSpy
Configuring PieSpy
Running PieSpy
Getting Output from PieSpy
Controlling PieSpy
The Results
Hack #45. Run an Infobot
Getting Infobot
Configuration
Set Up Users
Using the Infobot
Reprogramming the Infobot
Hack #46. Use PPF for Gaming Clans
Get PPF
PPF Core
Running PPF
ChannelCentral
TriggerMessage
ServerQuery
ServerAdminShouter
CBFinder
BFTracks
EDFinder
Google
Other Plug-ins
Hack #47. Write a Plug-in for PPF
The Code
Running the Hack
Creating Advanced Plug-ins
Hack #48. Getting Friendly with FOAFBot
Parsing a FOAF File
Crawling FOAF Files
Writing the IRC Interface
Running the Hack
Hack #49. Interrogate Trust Networks with TrustBot
Getting Trust Data
Modifying the IRC Interface
The Results
Hack #50. Pass Notes to Other Users
The Code
Running the Hack
The Results
8. Search and Query Bots
Introduction: Hacks #51-57
Hack #51. Search the Web with Google
Google Web APIs
The Code
Running the Hack
The Results
Hack #52. Use the Dictionary
The Code
Running the Hack
The Results
Hacking the Hack
Hack #53. Check the Weather
The Code
Running the Hack
Hacking the Hack
Hack #54. Don’t Get Lost in Translation
The Code
Running the Hack
Hack #55. Convert Currency
The Code
Running the Hack
Hack #56. Find Out When People Are on the Network
The Code
Running the Hack
The Results
Hack #57. Search for Books on Amazon
The Code
Running the Hack
Using the Bot
Hacking the Hack
9. Fun Bots
Introduction: Hacks #58-63
Hack #58. A DiceBot
The Code
Running the Hack
The Results
Hack #59. An Egg Timer
The Code
Running the Hack
The Results
Hacking the Hack
Hack #60. A Trivia Bot
The Code
Making Questions
Running the Hack
The Results
Hack #61. Perform Feats of Math
Java Expression Parser
The Code
Running the Hack
Hack #62. An Artificial Intelligence Bot
Markov Modeling
JMegaHal
The Code
A simple example
Combining JMegaHal and PircBot
Running the Hack
The Results
Hack #63. Create Comic Strips
Setting Up ComicBot
Running ComicBot
Comic Strip Templates
10. Announcement Bots
Introduction: Hacks #64-67
Hack #64. Welcome Visitors Automagically
Channel Rules
Welcome Options
The Code
Running the Hack
The Results
Hack #65. Announce Newsgroup Posts
Connecting to a News Server
The Code
Running the Hack
The Results
Hack #66. Feed Syndicated RSS News
The Code
Running the Hack
Hacking the Hack
Hack #67. Watch Online Games with MatchEd
Configuring MatchEd
Starting MatchEd
Message Styles
Dynamic configuration
11. Network Bots
Introduction: Hacks #68-72
Hack #68. Link Channels on Multiple Networks
The Code
Running the Hack
The Results
Hack #69. Get a Remote Shell
DCC
The Code
Running the Hack
The Results
DCC CHAT Limitations
Hack #70. Tail Log Files
The Code
Running the Hack
The Results
Hack #71. Bridge Two Infobots
The Code
Running the Hack
Hack #72. A File-Sharing Bot
The Code
Running the Hack
Hacking the Hack
The Results
12. Channel Management Bots
Introduction: Hacks #73-77
Hack #73. Protect the Channel Topic
Topic Protection Mode
Topic Erasure
Formatting and Colors
Profanity Filtering
The Code
Running the Hack
Hack #74. Invite Users into Channels
Create an InviteBot
The Code
Running the Hack
The Results
Hack #75. Maintain Operator Status
The Code
Running the Hack
Hacking the Hack
Hack #76. Set Up an Eggdrop Bot
Configuring Eggdrop
Hack #77. Manage Channels with an Eggdrop
Joining Channels
Adding Users
Flood Protection
13. The IRC Protocol
Introduction: Hacks #78-85
Hack #78. Understanding the IRC Protocol
Asynchronous by Nature
The Protocol
Message
PRIVMSG
NOTICE
PING/PONG
Hack #79. Text Over Multiple Lines
Avoiding the Problem
Hack #80. Fake an Ident Response
The Code
Running the Hack
Firewalls and Ident
Hack #81. Strip Formatting from Messages
TimeBot Scenario
Removing All Formatting
Perl solution
Python solution
Java solution
Java Applet solution
Hack #82. Remove Color from Messages
Simple Color Removal
Perl solution
Python solution
Java solution
Java Applet solution
Hacking the Hack
Hack #83. Encrypt Messages
Key Encryption
The Code
Running the Hack
The Results
Hack #84. Timestamp with the TS Protocol
Before TS
TS Saves the Day
Interesting TS Facts
Hack #85. Understanding CTCP Messages
Tagged Data
Queries
14. Other Ways to Connect to IRC
Introduction: Hacks #86-94
Hack #86. Hypertext Links to IRC Channels
HTML IRC Links
Example Links
Hack #87. IRC from Your Mobile Phone
Hack #88. Enemies of Mobile IRC
The Phone Keypad
Predictive Text Entry
Small Screen Size
Street Traffic and Street Furniture
Dropped Connections
Others Unaware Your Client Is Limited
The Ephemeral Nature of Sessions
Battery Life
Hack #89. IRC from a Pocket PC
Hack #90. Access IRC with Java Applets
Customizing PJIRC
nick
alternativenick
host
alternativeserver
command
authorizedjoinlist
authorizedcommandlist
The Results
Hack #91. Use IRC from a Web Page Without Java
Installing CGI:IRC
Hack #92. Use IRC Within screen
Hack #93. Set Up an IRC Proxy
Setting Up CtrlProxy
Running the Hack
Advanced Features
Hack #94. Use irssi and Its Proxy
Connecting to a Server
Using the irssi Proxy
15. Servers and Services
Introduction: Hacks #95-100
Hack #95. Set Up Your Own IRC Server for Unix/Linux
Installing Unreal
Hack #96. Install Services
Configuring the IRC Server
Configuring Services
Running the Services
Hack #97. Set Up Your Own beware ircd Server
Downloading beware ircd
O:Lines
Running beware ircd
Hack #98. Link Two IRC Servers Together
Configuring the Servers
Numerics
C:Lines
Linking the Servers
Bursting
Commands
Hack #99. Use MSN/ICQ/Jabber from IRC
Installation
Using BitlBee
More Than Just Talking
Hack #100. Combine BitlBee and CtrlProxy
Setting Up CtrlProxy and BitlBee
Starting CtrlProxy
Starting the Session
Hacking the Hack
Index
About the Author
Colophon
SPECIAL OFFER: Upgrade this ebook with O’Reilly
← Prev
Back
Next →
← Prev
Back
Next →