Author Topic: HOW-TO: Stay safe on IRC  (Read 5643 times)

grinch

  • Administrator
  • Hero Member
  • *****
  • Posts: 1926
  • Reputation: 187
  • the digital grinch who stole your data
    • @DigitalGrinch
  • Badges:
  • iDevices: iPhone 3GS 4.3.3, HTC Evo V 4G ICS
HOW-TO: Stay safe on IRC
« on: November 21, 2011, 06:30:11 pm »
IRC is one of the great communication tools of hackers.
Using that tool safely is important, and easy to do.

Here is how to setup an irc bnc(IRC BouNCer). I use znc, a free, open-source program.

First, get a shell account. Linux, BSD/Unix, does not matter, as long as its a shell.

Some providers offer "irc bnc" or "irc shell" accounts. These are the best because the server your account is on will often have multiple ip addresses and multiple virtual hosts(called vhosts). Having multiple IPs and vhosts will give you more options with your bnc.

You do not need root to install, just the ability to use the system compilers.
You will also need to know the location of openssl on the server. To do this run:
Code: [Select]
which opensslThis should return the path to openssl on the system. Note this path.

Download znc to your home dir
http://znc.in/releases/znc-0.206.tar.gz
You can find the url for the latest version here:
http://wiki.znc.in/ZNC

untar it
Code: [Select]
tar zxvf znc-*
Code: [Select]
cd znc*
Configure, Make, Make Install
Add the path to install dir, and path to openssl
Code: [Select]
./configure --prefix=/home/username/.znc --with-openssl=/usr/bin/openssl
Code: [Select]
make
Code: [Select]
make install
If you are on a *BSD system, you will want to use GNU make, so substitute
Code: [Select]
gmake and
Code: [Select]
gmake install
That's it, it is installed. Now to set it up

Code: [Select]
cd ~/.znc/bin
Code: [Select]
./znc --makeconfThis will make the "configs" dir and "znc.conf" inside that dir
Defaults are fine here, the only global module to load is "webadmin"
For user name and password, I create a user name with a REALLY STRONG password. I use this user only for logging in to configure the znc. This first user is an "admin" and can add/delete other users
After this is done, restart the znc. Quit/Kill if needed, then
Code: [Select]
./znc
After it is running, point your web browser to the config page
Code: [Select]
https://server.host.com:40000Replace "40000" with the port number you setup for the webadmin module
Log in with the user/pass you setup during initial config.
In the "Global Settings" section of webadmin, paste the list of vhosts that your provider gives you, like this:
Code: [Select]
found.your.picture.at-google.com
dont.need.no.****en.l33t-vhost.com
online.via.your.wireless-inter.net
using.your.wireless-inter.net
carded.this.wireless-inter.net
null.routed.wireless-inter.net
ispeeds.customers.get.free.canadian-ass.net
terrorist.strikes.may.cause-lagging.net

From here it is pretty self-explanatory, setup unique connections as "add user", set nicks, pick vhost, etc

After you setup a user you connect to it from mirc with
Code: [Select]
/server -m server.host.com +30000 username:passwordReplace 30000 with the ssl irc port you setup during --makeconf, and username:password with the user and password for the connection you setup in webadmin

You can string a bunch of these together in a mirc alias(Alt + R, Alias tab) using "|" to separate
Code: [Select]
/bnc /server -m server.host.com +30000 username0:password0 | /server -m server.host.com +30000 username1:password1 | /server -m server.host.com +30000 username2:password2
Now you see why I set the initial admin user with hard password, but do not use as an irc connection. Then my znc log-on details are not sitting in plain-text mirc script
------------------------------------------------------------------

Edit: Connect to your znc bouncer using Colloquy (mobile)
In Colloquy:
1.  Add IRC connection
2.  Description can be whatever, something you'll recognize
3.  Address is in server.host.com format. Replace with hostname of your znc
4.  Nick is what will be seen in the channel when you join. Try and use your forum nick, so we recognize you
5.  Real Name can be whatever. Since this post is about staying safe, do not use your real Real Name.
6.  Connect at Launch on
7.  Join Rooms, add channels like #iNinjas
8.  Allow Multitasking on
9.  Advanced > Change port to your znc port number
10.Advanced > SASL off
11.Advanced > SSL on
12.Advanced > Username is the username for this znc user
13.Advanced > Password is the password for this znc user

That's it!

Edit: The webadmin module will run on the port you specify during setup. If you want it to run on a different port than the one used for znc connections, edit your ./configs/znc.conf file to look like this

Code: [Select]
Listener4    = web_only +10391
Listener4    = +10813

You will already have one Listener4 line from setup, add the second line, with the "web_only" parameter
Be sure to add "+" in front of SSL ports, and make sure you use https:// in your browser when connecting to the webadmin module

EDIT: Use AndChat, a free IRC program on ANDROiD, to connect to your znc
Follow this:

« Last Edit: November 08, 2012, 10:41:30 am by grinch »
If I help you or you appreciate my work, clicking that +1 button is the best thanks I could get.

My opinions are my own, you may agree or disagree with them, but they are only just that; opinions
For example: facebook is the microsoft of social networks

http://goo.gl/PiVjI

@DigitalGrinch
https://twitter.com/DigitalGrinch

I follow all iNinjas members back. PM me if I am not following you

Trcx528

  • Haxor
  • Hero Member
  • *****
  • Posts: 4502
  • Reputation: 166
  • Google it!
    • iNinjas
  • Badges:
  • Computers: 13" 2011 Macbook Pro, 120 GB SSD and 16 GB of Ram
  • iDevices: None
Re: HOW-TO: Stay safe on IRC
« Reply #1 on: November 21, 2011, 07:06:49 pm »
Beautiful! Extremely well done! +1

grinch

  • Administrator
  • Hero Member
  • *****
  • Posts: 1926
  • Reputation: 187
  • the digital grinch who stole your data
    • @DigitalGrinch
  • Badges:
  • iDevices: iPhone 3GS 4.3.3, HTC Evo V 4G ICS
Re: HOW-TO: Stay safe on IRC
« Reply #2 on: November 21, 2011, 07:15:54 pm »
Thank you Thank you

I am happy to walk anyone through this, if they have tried it and have trouble

Here are a few irc shell providers
EDIT: ALL removed, because they stunk, down all day

I'm sure there are cheaper ones out there, look around. Just make sure they provide vhosts to use with shell account, otherwise you are stuck with one IP/one vhost of the server
« Last Edit: December 07, 2012, 05:00:28 pm by grinch »
If I help you or you appreciate my work, clicking that +1 button is the best thanks I could get.

My opinions are my own, you may agree or disagree with them, but they are only just that; opinions
For example: facebook is the microsoft of social networks

http://goo.gl/PiVjI

@DigitalGrinch
https://twitter.com/DigitalGrinch

I follow all iNinjas members back. PM me if I am not following you

Ironman

  • Administrator
  • Hero Member
  • *****
  • Posts: 5096
  • Reputation: 251
  • Badges:
  • Computers: ASUS UL50VT
  • iDevices: iPhone 5, iPhone 4S, iPhone 4, iPhone 3GS
Re: HOW-TO: Stay safe on IRC
« Reply #3 on: November 21, 2011, 08:04:07 pm »
Very nice!! +1
Click for How to Add Our Repo
If you're going to ask questions....
At least make them good ones.

Knowledge is the one thing that can never be taken from you

brogan20

  • Hero Member
  • *****
  • Posts: 1061
  • Reputation: 3
  • My insides are full of human amazingness
  • Computers: Windows7 Vista
  • iDevices: iPod 4 gen iOS 5.0.1
Re: HOW-TO: Stay safe on IRC
« Reply #4 on: November 21, 2011, 09:45:51 pm »
Is this your work or copied?

Don't like seeing ads? Click here to register!

grinch

  • Administrator
  • Hero Member
  • *****
  • Posts: 1926
  • Reputation: 187
  • the digital grinch who stole your data
    • @DigitalGrinch
  • Badges:
  • iDevices: iPhone 3GS 4.3.3, HTC Evo V 4G ICS
Re: HOW-TO: Stay safe on IRC
« Reply #5 on: November 21, 2011, 10:24:12 pm »
Not even sure if I should respect you enough to respond, so I'll respond for others

Mine, lol, copied from where? This is written in my voice, how I talk as if I were walking someone through it(I have done so for several people)

I have other tutorials I would love to share, but there are a few people here that do not deserve to see them. They would just end up in prison, being stupid.
If I help you or you appreciate my work, clicking that +1 button is the best thanks I could get.

My opinions are my own, you may agree or disagree with them, but they are only just that; opinions
For example: facebook is the microsoft of social networks

http://goo.gl/PiVjI

@DigitalGrinch
https://twitter.com/DigitalGrinch

I follow all iNinjas members back. PM me if I am not following you

brogan20

  • Hero Member
  • *****
  • Posts: 1061
  • Reputation: 3
  • My insides are full of human amazingness
  • Computers: Windows7 Vista
  • iDevices: iPod 4 gen iOS 5.0.1
Re: HOW-TO: Stay safe on IRC
« Reply #6 on: November 21, 2011, 10:34:13 pm »
...

Ironman

  • Administrator
  • Hero Member
  • *****
  • Posts: 5096
  • Reputation: 251
  • Badges:
  • Computers: ASUS UL50VT
  • iDevices: iPhone 5, iPhone 4S, iPhone 4, iPhone 3GS
Re: HOW-TO: Stay safe on IRC
« Reply #7 on: November 21, 2011, 10:38:48 pm »
Not even sure if I should respect you enough to respond, so I'll respond for others

Mine, lol, copied from where? This is written in my voice, how I talk as if I were walking someone through it(I have done so for several people)

I have other tutorials I would love to share, but there are a few people here that do not deserve to see them. They would just end up in prison, being stupid.
Post any tutorials you wish. iNinjas is all about sharing info. What someone does with that info is their business. There are already a few things on our repo that if used improperly would lead to jail time.
Click for How to Add Our Repo
If you're going to ask questions....
At least make them good ones.

Knowledge is the one thing that can never be taken from you

brogan20

  • Hero Member
  • *****
  • Posts: 1061
  • Reputation: 3
  • My insides are full of human amazingness
  • Computers: Windows7 Vista
  • iDevices: iPod 4 gen iOS 5.0.1
Re: HOW-TO: Stay safe on IRC
« Reply #8 on: November 21, 2011, 10:45:01 pm »
Most things on there would :P

grinch

  • Administrator
  • Hero Member
  • *****
  • Posts: 1926
  • Reputation: 187
  • the digital grinch who stole your data
    • @DigitalGrinch
  • Badges:
  • iDevices: iPhone 3GS 4.3.3, HTC Evo V 4G ICS
Re: HOW-TO: Stay safe on IRC
« Reply #9 on: November 21, 2011, 10:53:41 pm »
Do you have anything useful to add, or are you just here to post garbage, criticize others, be a wise-ass to ops, and question the validity of my work?
If I help you or you appreciate my work, clicking that +1 button is the best thanks I could get.

My opinions are my own, you may agree or disagree with them, but they are only just that; opinions
For example: facebook is the microsoft of social networks

http://goo.gl/PiVjI

@DigitalGrinch
https://twitter.com/DigitalGrinch

I follow all iNinjas members back. PM me if I am not following you

Don't like seeing ads? Click here to register!

Trcx528

  • Haxor
  • Hero Member
  • *****
  • Posts: 4502
  • Reputation: 166
  • Google it!
    • iNinjas
  • Badges:
  • Computers: 13" 2011 Macbook Pro, 120 GB SSD and 16 GB of Ram
  • iDevices: None
Re: HOW-TO: Stay safe on IRC
« Reply #10 on: November 21, 2011, 10:55:26 pm »
I don't think he was questioning your work with that last post, more of just expressing his belief that's ironman's statement was an understatement.  

brogan20

  • Hero Member
  • *****
  • Posts: 1061
  • Reputation: 3
  • My insides are full of human amazingness
  • Computers: Windows7 Vista
  • iDevices: iPod 4 gen iOS 5.0.1
Re: HOW-TO: Stay safe on IRC
« Reply #11 on: November 21, 2011, 11:00:54 pm »
Do you have anything useful to add, or are you just here to post garbage, criticize others, be a wise-ass to ops, and question the validity of my work?
Dude the reason I asked if it was copied or not is because alot of people do just copy the work and take credit also known as plagurism

Sleepdawgg

  • Hero Member
  • *****
  • Posts: 544
  • Reputation: 37
  • Damn it feels good to be a gangsta
    • my twitter
  • Computers: hp dv6000 triple booting win 7, ubuntu and osx snow lepard in a vbox
  • iDevices: iPod touch 4g 5.0.1 jailbroken with redsnow untherethed iphone 3gs 4.3.2 jailbroken with jailbreak me [Android wildfire s rooted and s-off droid gingerbread 2.3.4 cdma][carrier unflashed]
Re: HOW-TO: Stay safe on IRC
« Reply #12 on: November 23, 2011, 10:28:55 pm »
love your tutorials man im new to linux and hacking in general and they are very helpful
NO PHONE BUT SHE STILL GIVING ME FACE TIME LOL

Trcx528

  • Haxor
  • Hero Member
  • *****
  • Posts: 4502
  • Reputation: 166
  • Google it!
    • iNinjas
  • Badges:
  • Computers: 13" 2011 Macbook Pro, 120 GB SSD and 16 GB of Ram
  • iDevices: None
Re: HOW-TO: Stay safe on IRC
« Reply #13 on: November 23, 2011, 10:34:56 pm »
Ya, they really are great man! Keep it up! :D

grinch

  • Administrator
  • Hero Member
  • *****
  • Posts: 1926
  • Reputation: 187
  • the digital grinch who stole your data
    • @DigitalGrinch
  • Badges:
  • iDevices: iPhone 3GS 4.3.3, HTC Evo V 4G ICS
Re: HOW-TO: Stay safe on IRC
« Reply #14 on: November 23, 2011, 10:40:08 pm »
love your tutorials man im new to linux and hacking in general and they are very helpful

Ya, they really are great man! Keep it up! :D

Thank you both. I am here to learn new techniques and share what I know
If I help you or you appreciate my work, clicking that +1 button is the best thanks I could get.

My opinions are my own, you may agree or disagree with them, but they are only just that; opinions
For example: facebook is the microsoft of social networks

http://goo.gl/PiVjI

@DigitalGrinch
https://twitter.com/DigitalGrinch

I follow all iNinjas members back. PM me if I am not following you