scripts

Random scripts
git clone git://git.margiolis.net/scripts.git
Log | Files | Refs | README | LICENSE

irssi_torconf (750B)


      1 #!/bin/sh
      2 
      3 echo "mapaddress 10.40.40.40 libera75jm6of4wxpxt4aynol3xjmbtxgfyjpu34ss4d7r7q2v5zrpyd.onion" >> /usr/local/etc/tor/torrc
      4 service tor restart
      5 mkdir -p ~/.irssi/certs && cd ~/.irssi/certs
      6 openssl req -x509 -sha256 -new -newkey rsa:4096 -days 1000 -nodes -out libera.crt -keyout libera.key
      7 cat libera.crt libera.key > ~/.irssi/certs/libera.pem
      8 chmod 600 libera.pem
      9 rm libera.key libera.crt
     10 printf "/msg NickServ CERT ADD "
     11 openssl x509 -in ~/.irssi/certs/libera.pem -outform der | sha1 | cut -d' ' -f1
     12 echo "/network add -sasl_username cmrg -sasl_password cmrgsasl -sasl_mechanism EXTERNAL LiberaTor"
     13 echo "/server add -ssl -ssl_cert ~/.irssi/certs/libera.pem -net LiberaTor 10.40.40.40 6697"
     14 echo "/ignore * CTCPS"
     15 echo "/save"
     16 echo "/quit"