home *** CD-ROM | disk | FTP | other *** search
/ Hacks & Cracks / Hacks_and_Cracks.iso / hackersclub / km / library / hack / irc.txt < prev    next >
Text File  |  1998-03-25  |  3KB  |  79 lines

  1. Written by Lord Somer
  2. www.lordsomer.com
  3.  
  4. 14. How do I hack ChanOp on IRC?
  5.  
  6. Find a server that is split from the rest of IRC and create your own
  7. channel there using the name of the channel you want ChanOp on. When that
  8. server reconnects to the net, you will have ChanOp on the real channel. If
  9. you have ServerOp on a server, you can cause it to split on purpose.
  10.  
  11. 15. How do I modify the IRC client to hide my real username?
  12.  
  13. Get the IRC client from cs.bu.edu /irc/clients. Look at the source code
  14. files irc.c and ctcp.c. The code you are looking for is fairly easy to
  15. spot. Change it. Change the username code in irc.c and the ctcp information
  16. code in ctcp.c. Compile and run your client.
  17. Here are the diffs from a sample hack of the IRC client. Your client code
  18. will vary slightly depending on what IRC client version you are running.
  19.  
  20. *** ctcp.c.old  Wed Feb 10 10:08:05 1993
  21. --- ctcp.c      Fri Feb 12 04:33:55 1993
  22. ***************
  23. *** 331,337 ****
  24.         struct  passwd  *pwd;
  25.         long    diff;
  26.         int     uid;
  27. !       char    c;
  28.  
  29.         /*
  30.          * sojge complained that ircII says 'idle 1 seconds'
  31. --- 331,337 ----
  32.         struct  passwd  *pwd;
  33.         long    diff;
  34.         int     uid;
  35. !       char    c, *fing;
  36.  
  37.         /*
  38.          * sojge complained that ircII says 'idle 1 seconds'
  39. ***************
  40. *** 348,354 ****
  41.         if (uid != DAEMON_UID)
  42.         {
  43.   #endif /* DAEMON_UID */
  44. !               if (pwd = getpwuid(uid))
  45.                 {
  46.                         char    *tmp;
  47.  
  48. --- 348,356 ----
  49.         if (uid != DAEMON_UID)
  50.         {
  51.   #endif /* DAEMON_UID */
  52. !               if (fing = getenv("IRCFINGER"))
  53. !                       send_ctcp_reply(from, ctcp->name, fing, diff, c);
  54. !               else if (pwd = getpwuid(uid))
  55.                 {
  56.                         char    *tmp;
  57.  
  58. *** irc.c.old   Wed Feb 10 06:33:11 1993
  59. --- irc.c       Fri Feb 12 04:02:11 1993
  60. ***************
  61. *** 510,516 ****
  62.                 malloc_strcpy(&my_path, "/");
  63.         if (*realname == null(char))
  64.                 strmcpy(realname, "*Unknown*", REALNAME_LEN);
  65. !       if (*username == null(char))
  66.         {
  67.                 if (ptr = getenv("USER"))
  68.                         strmcpy(username, ptr, NAME_LEN);
  69. --- 510,518 ----
  70.                 malloc_strcpy(&my_path, "/");
  71.         if (*realname == null(char))
  72.                 strmcpy(realname, "*Unknown*", REALNAME_LEN);
  73. !       if (ptr = getenv("IRCUSER"))
  74. !               strmcpy(username, ptr, NAME_LEN);
  75. !       else if (*username == null(char))
  76.         {
  77.                 if (ptr = getenv("USER"))
  78.                         strmcpy(username, ptr, NAME_LEN);
  79.