SHARE
TWEET

Untitled

a guest Mar 19th, 2017 168 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # For Freenode IRC
  2. mapaddress 10.40.40.40 freenodeok2gncmy.onion
  3.    
  4. $ openssl req -x509 -sha256 -new -newkey rsa:4096 -days 1000 -nodes
  5.               -out FreenodeTor.pem -keyout FreenodeTor.pem
  6. Generating a 4096 bit RSA private key
  7. ...
  8. Common Name (e.g. server FQDN or YOUR name) []: mary
  9. $ mkdir -p ~/.irssi/certs
  10. $ mv FreenodeTor.pem ~/.irssi/certs/
  11.    
  12. $ openssl x509 -in ~/.irssi/certs/FreenodeTor.pem -outform der
  13.   | sha1sum -b | cut -d' ' -f1
  14.    
  15. $ irssi
  16. [(status)] /connect irc.freenode.net
  17. [(status)] /msg NickServ CERT ADD <fingerprint from step 3.>
  18.    
  19. [(status)] /network add -sasl_username mary -sasl_password m1nt_545c3 -sasl_mechanism EXTERNAL FreenodeTor
  20. [(status)] /server add -ssl -ssl_cert ~/.irssi/certs/FreenodeTor.pem -net FreenodeTor 10.40.40.40 6697
  21.    
  22. [(status)] /ignore * CTCPS
  23. [(status)] /save
  24. [(status)] /quit
  25.    
  26. servers = (
  27.   ...
  28.   {
  29.     address = "10.40.40.40";
  30.     chatnet = "FreenodeTor";
  31.     port = "6697";
  32.     use_tls = "yes";
  33.     tls_cert = "~/.irssi/certs/FreenodeTor.pem";
  34.     tls_verify = "no";
  35.     autoconnect = "no";
  36.   }
  37. );
  38.  
  39. chatnets = {
  40.   ...
  41.   FreenodeTor = {  
  42.     type = "IRC";  
  43.     max_kicks = "1";
  44.     max_msgs = "4";
  45.     max_whois = "1";
  46.     sasl_mechanism = "external";
  47.     sasl_username = "mary";
  48.     sasl_password = "m1nt_545c3";
  49.   };
  50. };
  51.  
  52. settings = {
  53.   core = { real_name = "mary"; user_name = "mary"; nick = "mary"; };
  54.   ...
  55. };
  56. ignores = ( { level = "CTCPS"; } );
  57.    
  58. $ torsocks irssi
  59. [(status)] /connect FreenodeTor
  60.    
  61. 22:02 -!- Irssi: Connecting to 10.40.40.40 [10.40.40.40] port 6697
  62. 22:02 -!- Irssi: Certificate Chain:
  63. 22:02 -!- Irssi:   Subject: CN: zettel.freenode.net
  64. 22:02 -!- Irssi:   Issuer:  C: US, O: Let's Encrypt, CN: Let's Encrypt Authority X3
  65. 22:02 -!- Irssi:   Subject: C: US, O: Let's Encrypt, CN: Let's Encrypt Authority X3
  66. 22:02 -!- Irssi:   Issuer:  O: Digital Signature Trust Co., CN: DST Root CA X3
  67. 22:02 -!- Irssi: Protocol: TLSv1.2 (256 bit, DHE-RSA-AES256-GCM-SHA384)
  68. 22:02 -!- Irssi: EDH Key: 2048 bit DH
  69. 22:02 -!- Irssi: Public Key: 4096 bit RSA, valid from Mar  6 05:01:00 2017 GMT to Jun  4 05:01:00 2017 GMT
  70. 22:02 -!- Irssi: Public Key Fingerprint:  E0:1B:31:80:56:D9:78:C4:2B:2D:3F:B2:DB:81:AB:03:15:59:BF:04:7E:31:E8:60:5F:98:07:A1:BB:8F:A3:0D (SHA256)
  71. 22:02 -!- Irssi: Certificate Fingerprint: B3:2B:29:0D:01:45:8F:3A:08:78:81:21:8B:72:CF:E4:9F:B1:53:D2:DB:AB:52:0B:38:2A:8F:94:ED:87:65:BA (SHA256)
  72. 22:02 -!- Irssi: Connection to 10.40.40.40 established
  73. 22:02 !zettel.freenode.net *** Looking up your hostname...
  74. 22:02 !zettel.freenode.net *** Couldn't look up your hostname
  75. 22:02 -!- mary!mary@127.0.0.1 mary You are now logged in as mary.
  76. 22:02 -!- SASL authentication succeeded
  77. 22:02 !zettel.freenode.net *** Spoofing your IP
  78. 22:02 -!- Welcome to the freenode Internet Relay Chat Network mary
  79. 22:02 -!- Your host is zettel.freenode.net[127.0.0.1/12345], running version ircd-seven-1.1.4
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top