From 31280c12137e8108ef6609102375199df6223a60 Mon Sep 17 00:00:00 2001 From: notnull Date: Sat, 26 Jan 2019 14:29:01 -0500 Subject: [PATCH] Added Connect to IRC with Tor --- md/irc-tor.md | 51 ++++ org/irc-how-to.html | 584 ++++++++++++++++++++++++++++++++++++++++++++ org/irc-tor.org | 44 ++++ 3 files changed, 679 insertions(+) create mode 100644 md/irc-tor.md create mode 100644 org/irc-how-to.html create mode 100644 org/irc-tor.org diff --git a/md/irc-tor.md b/md/irc-tor.md new file mode 100644 index 0000000..b280c24 --- /dev/null +++ b/md/irc-tor.md @@ -0,0 +1,51 @@ +Connect to IRC with Tor +======================= + +Debian + +hexchat +------- + +Two options: (1) set up a 'global' proxy that applies to every hexchat +connection, which can be overridden, or (2) set up a 'local' proxy that +only applies to one connection. + +### Global proxy: + +- Install Tor Browser +- Hexchat Settings > Preferences > Network setup + - hostname: 127.0.0.1 + - port: 9150 + - type: socks5 + - use proxy for: all connections +- HexChat > Network List > Add + - name it whatever + - servers > add > km3jy7nrj3e2wiju.onion/6667 + - leave all checkboxes blank +- close > connect + +irssi +----- + +- install irssi +- `cat irssi-tor => proxychains-ng/proxychains4 -f src/proxychains.conf irssi --home ~/.irssi-tor` + +more info? + + +Connect to Freenode w/ Tor +========================== + +- log into IRC +- open a terminal window +- `cd .config/hexchat/certs` +- `openssl req -x509 -new -newkey rsa:4096 -sha256 -days 1000 -nodes -out freenode.pem -keyout freenode.pem` + - generates a self-signed certificate +- `openssl x509 -in freenode.pem -outform der | sha1sum -b | cut -d' ' -f1` + - generates a fingerprint + - note: the certificate file has to have the same name as the name + of the network in your client +- `/msg nickserv cert add ` +- set auth to sas exteral +- have tor open + diff --git a/org/irc-how-to.html b/org/irc-how-to.html new file mode 100644 index 0000000..85dcc6f --- /dev/null +++ b/org/irc-how-to.html @@ -0,0 +1,584 @@ + + + + +irc-how-to + + + + + + + + +
+

irc-how-to

+ +
+

1 Anarchy Planet IRC how to

+
+
+

1.1 How to Connect

+
+
+

1.1.1 web

+ +
+ +
+

1.1.2 using a client

+
+

+irc.anarchyplanet.org port 6667 +irc.anarchyplanet.org port 6697 (SSL) +km3jy7nrj3e2wiju.onion port 6667 || 6697 +

+
+
+ + +
+
+

1.2 Basic Commands

+
+

+/nick nickname Changes your nick. +

+ +

+/list Lists all channels on the current network. +

+ +

+/join #channel Joins the specified channel. +

+ +

+/part #channel Leaves the specified channel. +

+ +

+/quit [message] Disconnects from current server with optional leaving message. +

+ +

+/names #channel Shows the nicks of all users on #channel. +

+ +

+/msg nickname message Sends a private message to a user. +

+ +

+/query nickname message Sends a private message to a user and opens a private chat window. +

+ +

+/me action Prints "yourname action" +

+ +

+/notice nickname message Sends a notice to the specified user. Like a /msg, but usually makes a sound. +

+ +

+/whois nickname Shows information about the specified user. This action is not visible to the specified user. +

+ +

+/whowas nickname Shows information about a user who has quit. +

+
+
+ +
+

1.3 Managing Nicknames (Nickserv)

+
+

+/msg nickserv register password [email] Registers your current nick with NickServ with the chosen password and binds it to an e-mail address (optional). +

+ +

+/msg nickserv identify password Identifies your nick to NickServ using the password you set. +

+ +

+/msg nickserv recover nickname password Kills (forcibly disconnects) someone who has your registered nick. +

+ +

+/msg nickserv ghost nickname password Terminates a "ghost" IRC session that's using your nickname. +

+ +

+/msg nickserv set password yournewpassword Changes your password. NOTE: Under no circumstances should you change your nick to the letter O followed by 8 digit +

+
+
+ +
+

1.4 Managing Channels (ChanServ)

+
+

+/msg chanserv register #channel Registers the current channel to you with ChanServ +

+ +

+/msg chanserv set #channel mlock modes Locks the channel's modes. To unlock all of a channel's modes, use /msg chanserv set #channel mlock + +

+
+
+ +
+

1.5 Moderating Channels

+
+

+/kick nickname!userid@hostname + removes user from channel, but does not ban them. They are able to join immediately. +

+ +

+/ban nickname!userid@hostname + bans user from channel, but does not kick them. They are prevented from speaking but can still see the channel. +

+ +

+/kickban nickname!userid@hostname +

+ +

+Use /whois, /whowas or /who to find the information necessary for a ban. + note: * is a wildcard and can replace nickname, userid, parts of nickname or userid, hostname or a segment of a hostname. +

+ +

+/mode #channel +b nickname!userid@hostname + the same as /ban +

+
+ +
+

1.5.1 Ban Examples:

+
+

+joe!*@* +Will prevent anyone with the nick joe from joining. +

+ +

+myg0t!* +Will prevent anyone whose nick contains myg0t from joining. +

+ +

+mark!*elc@* +Will prevent anyone with the nick mark and the userid elc from joining. +

+ +

+*!*@c-123-24-76-213.ga.isp.net +Will prevent anyone with the host c-123-24-76-213.ga.isp.net from joining. +

+ +

+!*@ +Bans everyone. Don't do that. +

+
+
+
+ +
+

1.6 Advanced Commands for the uberl337

+
+
+

1.6.1 Advanced NickServ commands

+
+
  1. User modes
    +

    +/mode nickname +/-attributes [data] +

    + +

    +Setting people's modes (for current channel only). To set a user's mode outside of a channel, use /mode nickname #channel +/- attributes +

    + +

    +Some of the more important ones are: + +q: User is owner of the current channel (prefix ~ or @) + +a: User is an admin (SOP) on the current channel (prefix & or @). + +o: User is an operator (AOP) on the current channel (prefix @). + +h: User is a half-op on the current channel (prefix %). + +v: User has voice on the current channel (prefix +). +

    + +

    +For a complete list of user modes visit https://wiki.inspircd.org/User_Modes +

    +
    +
+
+ +
+

1.6.2 Advanced Chanserv commands

+
+
  1. Commands
    +

    +/msg chanserv set #channel secure [on|off] Keeps everyone except aops, sops, and the founder from becoming ops. +

    + +

    +/msg chanserv set #channel keeptopic [on|off] Maintains the topic even if everyone leaves. +

    + +

    +/msg chanserv set #channel enforce [on|off] Restores op/halfop/voice if a person with op/halfop/voice gets de-opped/halfopped/voiced. +

    + +

    +/msg chanserv set #channel leaveops [on|off] Whether or not to allow the first person who join the channel to get ops. +

    + +

    +/msg chanserv drop #channel [dropcode] Un-registers the current channel to you with ChanServ. +

    + +

    +/msg chanserv set #channel founder [nickname] Sets the current channel's founder. +

    + +

    +/msg chanserv set #channel desc [description] Changes the current channel's description. +

    + +

    +/msg chanserv set #channel url [address] Associates a URL with the channel. +

    + +

    +/msg chanserv set #channel [email@address] Associates an email address with the channel. +

    +
    +
  2. +
  3. Channel modes
    +

    +/mode #channel +/-attribute [data] +

    + +

    +For a full list of Inspircd's channel modes visit https://wiki.inspircd.org/Channel_Modes +

    +
    +
+
+
+

1.6.3 Access lists

+
+

+/msg chanserv access #channel add [nickname] [level] +Adds nickname to the channel's access list at the specified level. +/msg chanserv access channel del [nickname] +Removes nickname from the channel's access list. +/msg chanserv access #channel list +Displays the channel's access list. +/msg chanserv access #channel count +Displays how many entries are in the channel's access list. +

+
+
+ +
+

1.6.4 Access levels

+
+

+These may vary from network to network. For example, some networks do not go by tens and use 3, 4, 5, 10, etc. +

+ +

+Founder +Full access to ChanServ functions, automatic opping upon entering channel. +100+ +Makes the person an SOP, automatic opping upon entering channel. +50 +Makes the parson an AOP, automatic opping upon entering channel. +40 +Automatic half-opping. +30 +Automatic voicing. +0 +No special privileges. +-1 +May not be opped. +-100 +May not join the channel. +Any nick not on the access list has an access level of 0. +

+
+
+ +
+

1.6.5 AOPs

+
+

+Are automatically ops and can give themselves ops. +Can give/take op/halfop/voice to/from other channel members. +Can unban themselves. +Receive memos sent to the whole channel. +Can invite themselves to the channel. +

+
+
+ +
+

1.6.6 SOPs

+
+

+Can do everything AOPs can. +Can give and take AOP privileges. +Receive memos sent to the channel's SOPs. +Can add (but not remove) AKICKs. +##Viewing and setting privileges +

+
+
+
+

1.6.7 Viewing AOP and SOP lists

+
+

+/msg chanserv aop #channel list +/msg chanserv sop #channel list +adding a AOP or SOP +/msg chanserv [AOP|SOP] channel [ADD|DEL|LIST|CLEAR] [nick | entry-list] +

+
+
+ +
+

1.6.8 AKICKs

+
+

+People on the AKICK list are automatically kicked and banned when they enter the channel. Bans made as a result of AKICK must be removed manually. +/msg chanserv akick #channel add host [reason] +Adds host to #channel's AKICK list [for reason]. +/msg chanserv akick #channel del host +Removes host from the AKICK list. +/msg chanserv akick #channel list +/msg chanserv akick #channel view +Displays the AKICK list. +

+
+
+ +
+

1.6.9 Color codes

+
+

+it's possible to color your text in irc. in most clients you can use control c then foreground,background (background is optional). examples: red text ^c4. black text on a blue background ^c1,2. here's a full list of the color codes: +

+ +

+Number Name +00 white +01 black +02 blue (navy) +03 green +04 red +05 brown (maroon) +06 purple +07 orange (olive) +08 yellow +09 light green (lime) +10 teal (a green/blue cyan) +11 light cyan (cyan / aqua) +12 light blue (royal) +13 pink (light purple / fuchsia) +14 grey +15 light grey (silver) +

+
+
+
+
+
+
+

Author: notnull

+

Created: 2019-01-26 Sat 14:13

+

Emacs 24.5.1 (Org mode 8.2.10)

+

Validate

+
+ + diff --git a/org/irc-tor.org b/org/irc-tor.org new file mode 100644 index 0000000..8dbd6a7 --- /dev/null +++ b/org/irc-tor.org @@ -0,0 +1,44 @@ +* Connect to IRC with Tor +Debian +** hexchat + +Two options: (1) set up a 'global' proxy that applies to every hexchat connection, which can be overridden, or (2) set up a 'local' proxy that only applies to one connection. + +*** Global proxy: +- Install Tor Browser +- Hexchat Settings > Preferences > Network setup + - hostname: 127.0.0.1 + - port: 9150 + - type: socks5 + - use proxy for: all connections +- HexChat > Network List > Add + - name it whatever + - servers > add > km3jy7nrj3e2wiju.onion/6667 + - leave all checkboxes blank +- close > connect + +** irssi +- install irssi +- ~cat irssi-tor => proxychains-ng/proxychains4 -f src/proxychains.conf irssi --home ~/.irssi-tor~ + +more info? https://trac.torproject.org/projects/tor/wiki/doc/TorifyHOWTO/irssi + +* Connect to Freenode w/ Tor + +- log into IRC +- open a terminal window +- ~cd .config/hexchat/certs~ +- ~openssl req -x509 -new -newkey rsa:4096 -sha256 -days 1000 -nodes -out freenode.pem -keyout freenode.pem~ + - generates a self-signed certificate +- ~openssl x509 -in freenode.pem -outform der | sha1sum -b | cut -d' ' -f1~ + - generates a fingerprint + - note: the certificate file has to have the same name as the name of the network in your client +- ~/msg nickserv cert add ~ +- set auth to sas exteral +- have tor open + + + + + +