Questions about this topic? Sign up to ask in the talk tab.

Difference between revisions of "Irssi Tutorial"

From NetSec
Jump to: navigation, search
(Sample config file)
(Ok finally done with this.)
Line 1: Line 1:
==Getting Irssi==
+
==Getting Irssi, Socat, Tor and Screen==
* Begin by downloading Irssi from [http://irssi.org/download the Irssi download page].
+
**Mac users can download Irssi [http://pdb.finkproject.org/pdb/package.php/irssi here] and Windows users [http://irssi.org/files/irssi-win32-0.8.12.exe here]
+
  
 
===Debian/Ubuntu===
 
===Debian/Ubuntu===
<pre>sudo apt-get install irssi</pre>
+
{{code|text=
 +
<source lang="bash">
 +
$ sudo apt-get install irssi socat tor screen
 +
</source>
 +
}}
  
 
===Gentoo===
 
===Gentoo===
<pre>emerge irssi</pre>
+
{{code|text=
 +
<source lang="bash">
 +
$ sudo emerge irssi socat tor screen
 +
</source>
 +
}}
  
===Slackware===
+
===Arch Linux===
<pre>slackware-current</pre>
+
{{code|text=
 +
<source lang="bash">
 +
$ sudo pacman -S irssi socat tor screen
 +
</source>
 +
}}
  
===Frugalware===
+
==Connecting to the IRC==
<pre>pacman -S irssi</pre>
+
  
===Solaris===
+
===Method 1===
<pre>pkg-get install irssi</pre>
+
[[Tor|Transparent proxy your connection]]
  
===Arch Linux===
+
{{code|text=
<pre>pacman -S irssi</pre>
+
<source lang="bash">
 +
$ irssi
 +
/connect -ssl netseclgxigdsvpj.onion 6697
 +
</source>
 +
}}
  
==Connecting to the IRC==
+
===Method 2===
 
+
{{code|text=
<pre>irssi
+
<source lang="bash">
/connect -ssl irc.blackhatacademy.net
+
$ screen -S connections
/join #CSIII</pre>
+
$ tor
 +
ctrl-a + c
 +
$ socat TCP4-LISTEN:4242,fork SOCKS4A:localhost:netseclgxigdsvpj.onion:6697,socksport=9050
 +
ctrl-a + d
 +
$ irssi
 +
/connect -ssl localhost 4242
 +
</source>
 +
}}
  
 
== Sample config file ==
 
== Sample config file ==
 
<pre>
 
<pre>
 
servers = (
 
servers = (
 +
 
 
   {
 
   {
     address = "irc.blackhatacademy.net";
+
     address = "netseclgxigdsvpj.onion";
 
     chatnet = "bha";
 
     chatnet = "bha";
 
     port = "6697";
 
     port = "6697";
Line 38: Line 59:
 
     ssl_verify = "no";
 
     ssl_verify = "no";
 
   }
 
   }
}
 
  
 
chatnets = {
 
chatnets = {
 
   bha = {
 
   bha = {
 
     type = "IRC";
 
     type = "IRC";
     nick = "Savitri";
+
     nick = "<your nickname here>";
     user = "arya";
+
     user = "<your nickname here>";
     realname = "Llama Llama Duck";
+
     realname = "<your nickname here>";
    autosendcmd = "SBCONNECT";
+
 
   };
 
   };
 
}
 
}
  
 
channels = {
 
channels = {
   { name = "#CSIII"; chatnet = "bha"; autojoin = "Yes"; },
+
   { name = "#csiii"; chatnet = "bha"; autojoin = "Yes"; },
}
+
 
+
aliases = {
+
  J = "join";
+
  WJOIN = "join -window";
+
  WQUERY = "query -window";
+
  LEAVE = "part";
+
  BYE = "quit";
+
  EXIT = "quit";
+
  SIGNOFF = "quit";
+
  DESCRIBE = "action";
+
  DATE = "time";
+
  HOST = "userhost";
+
  LAST = "lastlog";
+
  SAY = "msg *";
+
  WI = "whois";
+
  WII = "whois $0 $0";
+
  WW = "whowas";
+
  W = "who";
+
  N = "names";
+
  M = "msg";
+
  T = "topic";
+
  C = "clear";
+
  CL = "clear";
+
  K = "kick";
+
  KB = "kickban";
+
  KN = "knockout";
+
  BANS = "ban";
+
  B = "ban";
+
  MUB = "unban *";
+
  UB = "unban";
+
  IG = "ignore";
+
  UNIG = "unignore";
+
  SB = "scrollback";
+
  UMODE = "mode $N";
+
  WC = "window close";
+
  WN = "window new hide";
+
  SV = "say Irssi $J ($V) - http://irssi.org/";
+
  GOTO = "sb goto";
+
  CHAT = "dcc chat";
+
  RUN = "SCRIPT LOAD";
+
  SBAR = "STATUSBAR";
+
  INVITELIST = "mode $C +I";
+
  SBCONNECT = "MSG starburst USER IDENTIFY Savitri ohnoesmypassw0rdz";
+
 
}
 
}
  
 +
);
  
 
</pre>
 
</pre>
  
==References==
+
==Irssi customization==
*[http://irssi.org/download Irssi download page]
+
*[http://scripts.irssi.org/ Scripts for Irssi]
*[http://scripts.irssi.org/ Useful Irssi scripts]
+
*[https://irssi-import.github.io/themes/ Themes for Irssi]
  
 
[[Category:Software]][[Category:Administration]]
 
[[Category:Software]][[Category:Administration]]

Revision as of 01:39, 18 June 2016

Getting Irssi, Socat, Tor and Screen

Debian/Ubuntu

 
$ sudo apt-get install irssi socat tor screen
 

Gentoo

 
$ sudo emerge irssi socat tor screen
 

Arch Linux

 
$ sudo pacman -S irssi socat tor screen
 

Connecting to the IRC

Method 1

Transparent proxy your connection

 
$ irssi
/connect -ssl netseclgxigdsvpj.onion 6697
 

Method 2

 
$ screen -S connections
$ tor
ctrl-a + c
$ socat TCP4-LISTEN:4242,fork SOCKS4A:localhost:netseclgxigdsvpj.onion:6697,socksport=9050 
ctrl-a + d
$ irssi
/connect -ssl localhost 4242
 

Sample config file

servers = (
  
  {
    address = "netseclgxigdsvpj.onion";
    chatnet = "bha";
    port = "6697";
    autoconnect = "yes";
    use_ssl = "yes";
    ssl_verify = "no";
  }

chatnets = {
  bha = {
    type = "IRC";
    nick = "<your nickname here>";
    user = "<your nickname here>";
    realname = "<your nickname here>";
  };
}

channels = {
  { name = "#csiii"; chatnet = "bha"; autojoin = "Yes"; },
}

);

Irssi customization