Sunday, September 10, 2006

bypassing port 22, if and only if your admin closed port 22

huh..hav been thru alot of r&d lately. i'm realy didn't get what r&d actually stand in malaysia.it's relex&delay?:D.heh. being someone who spent almost 2 years on r&d, i felt that ways.heh.at least for me.but thanx god, i made my r&d done.huhh.ohh back to the topic. actually, lately i stumbled accross a few things/domain. it;s started with embedded system, security competation,,,bla..bla..bla. for embedded system, i'll leave it for next post.yeahh, hopefully.:D.so, now, back to the topic. by passing blocked ssh port.hehe. some sort of ppls tend to change the default ssh's port from 22 to unblocked port(80,443). it's relatively rare to find admin (if, he does, woww-i'm amazed.:p) to closed port 80 and 443 since these two ports hold responsiblelity to handle http and https traffics. but do you really think, people who provide free ssh services will change the default for our own gud. i dont think so man.so, here is how u can actully by pass the blocked ssh port. what u really need are tor (the onion routing) and privoxy. first things first.
-------------------------------howto begin----------------------------------------------------

1.install tor. (im using gentoo,arrgg, installation is just demm plain straight forward.go figure for ur distro)
shell>emerge -av tor

2.install privoxy
shell>emerge -av privoxy

3.configure privoxy's config file.
shell>vi /etc/privoxy/config
#things that you should change.
#-----------------------------
#on line 661
listen-address 127.0.0.1:8118
#on line 1009
forward-socks4a / localhost:9050 .
#hehh,watch out the "." at the end of localhost:blalal .
#u really need to put that magic "."

4.configure tor's config file
shell>vi /etc/tor/torrc
#things that you should change.
#-----------------------------
#on line 30
SocksPort 9050
#online 31
SocksListenAddress 127.0.0.1
#online 34
ReachableDirAddresses *:80
#online 34
ReachableORAddresses *:443

5.config ur(ssh luser) ssh's config file
shell>vi /home/yomuds/.ssh/config
#add these line to ur config file
Host myillegalssh.org
#whatever host u can put here.
ProxyCommand socat - SOCKS4A:localhost:chi.spunge.org:22,socksport=9050
#chi.spunge.org just an example. put your real ssh server here
#e.g=ProxyCommand socat - SOCKS4A:localhost:myhomessh.no-ip.org,socksport=9050

6. run our tor and privoxy services.
shell>/etc/init.d/tor start

shell>/etc/init.d/privoxy start

7.test our configuration.yey..\0/
before
yomuds@gentoob0x ~ $ ssh yomuds@chi.spunge.org
ssh_exchange_identification: Connection closed by remote host
demm!!


after
shell>ssh yomuds@myillegalssh.org
Welcome to Spunge.org. Please log in....

yomuds@chi.spunge.org's password:
Last login: Mon Sep 4 14:42:52 2006 from static-68-179-33-129.ptr.terago.ca
System News -

Tadaaa!!!!
--------------------------------end howto---------------------------------------

this howto should worked if ur admin didn't block tor network.if he did, then we're out of luck.it's happen to me.:(.demm..*update*-i was wrong,our admin didn't block the tor network yet.huhh..legaa!!.:D..\o/

3 comments:

h7u4h said...

Hello Mista Yomuds,

Long time no see. hehe sihat ka? Oh ya Selamat hari raya bro. Amacam projek r&d hang skrg? Wish semuanya bjalan dengan bagus. Best dpt bkerja ngn hang dulu..walaupun dlm masa singkat ia cukup bermakna dpt kenal ngn hang, ada free time nanti jum p minum2 k. ok la sori mengangu.
Enjoy ur r&d.

yomuds said...

dude..thanx a lot for the wish.:D
r&d?.emm, pretty good.i'm done with the r&d stuffs.:D.hahha.anyway, my memory got c0rrupted,i just can't recall which one u are.:).

nadahahs said...

askm... selamat tahun baru..
1 muharam ni aku dah berazam nak belajar betul2 dari hustler2 macam hang...

how's ur live? hope fine, alhamdulillah.

aku pun tinggal satu sem lagi.. cam sat sangat belajar kat ipt nih.. banyak lagi yang lum belajar.. dan banyak lagi ilmuwan2 yang belum dijadikan kawan..

amacam korang punya 3boss group. budak2 uitm baru nak maintain group.. lagipun en. hamid berazam nak develop lebih ramai lagi student yang cenderung dengan ilmu sekuriti nih...

-shahadan
ym id: nadahahs