[Share] SSH auto connect tunneling sockv5
#1
Banyak yang nanya di email saya soal Tunneling dari linux jadi gk usah pake bitvise (windows) hehehhehehe mending ane bikiin tools bash simplenya .. pelajari sendiri ya command sama prosesnya Big Grin

[hide]
Code:
#/bin/bash
#Variable

interface="`ip route list | grep "default" | cut -d " " -s -f 5`"
ipinfoloc="`ifconfig | grep 'inet addr:' | grep -v '127.0.0.1' | cut -d: -f2 | awk '{print $1}'`" > /dev/null
ippubloc="`curl ifconfig.me`"

#Intro

function intro() {
tput clear
tput setaf 3
echo "sshtunnel.v.1"
tput cup 5 15
echo "coded by zee eichel <zee.eichel[at]indonesianbacktrack[dot]or[dot]id>"
tput cup 6 15
echo "thx to www.indonesianbacktrack.or.id"
tput cup 7 15
echo "Pengumpulan informasi"
tput cup 8 15
echo "......................................."
tput cup 9 15
echo "interface yang digunakan               : $interface"
tput cup 10 15
echo "local ip anda (jika anda berada di NAT): $ipinfoloc"
tput cup 11 15
echo "publik ip provider anda                : $ippubloc"
}

#fungsi menu

function menu() {
tput cup 13 15
tput rev
tput sgr0

tput cup 14 15
read -p "masukan port forward anda (127.0.0.1:port) exp:8080 :" porttun
tput cup 15 15
read -p "masukan server tunnel exp:[103.103.103.103/domainanda.com :" sertun
tput cup 16 15
read -p "masukan port server tunnel exp:[22] :" portsertun
tput cup 17 15
read -p "masukan username server ssh exp:[root] :" usernametun
tput cup 18 15
read -p "masukan password server ssh exp:[123] :" passwd
mainssh;
}

#fungsi mainssh
function mainssh() {
clear
export SSHPASS="$passwd"
sshpass -e ssh -C2qTnNv -D $porttun $usernametun@$sertun -p $portsertun &&
tput cup 17 15
echo "ip address anda sekarang : $ippubloc"
tput clear
}

intro;
menu;
[/hide]

Cara penggunaan :

simpan source di text editor ente terus klik save kasi nama dengan terserah.sh

Jangan lupa install tools ini

Untuk Debian/Ubuntu

Code:
apt-get install curl sshpass

Untuk Fedora,centos, redhat

Code:
yum install curl sshpass

kemudian kasi hak exec

Code:
chmod +x terserah.sh

isikan saja pertanyaan2 untuk auto connect

Quote:pastikan firefox, iceweasel (browser) disetting menggunakan sockv5 dengan port yang anda tentukan sebelumnya

semoga berguna deh Smile
FOLLOW @DutaLinux
for more question and sharing about security and Opensource only

#2
wahhh thnx sharing scriptnya bro Big Grin

#3
(04-04-2014, 03:41 PM)zaidi Wrote: wahhh thnx sharing scriptnya bro Big Grin

hehehe sama2 bro .. diskusikan disini jika ada trouble
FOLLOW @DutaLinux
for more question and sharing about security and Opensource only

#4
Wah keren Smile Ternyata Bash bisa menjadi sangat berguna jika kita mengetahui caranya ..
Thanks for share om

#5
(04-04-2014, 04:09 PM)Skyland_Hacker Wrote: Wah keren Smile Ternyata Bash bisa menjadi sangat berguna jika kita mengetahui caranya ..
Thanks for share om

sama2 bro Smile
FOLLOW @DutaLinux
for more question and sharing about security and Opensource only

#6
Untuk pakai HTTP Proxynya bijimane Bang?
Ares TheHopeBuster
http://kurawa.id/ - Panglima Perangnya Indonesian BackTrack Team
Anarchy Penetration Testing!-,

#7
xixixixixxi lumayan nihh buat nggeretong di BT Big Grin

#8
(04-04-2014, 05:40 PM)Ares Wrote: Untuk pakai HTTP Proxynya bijimane Bang?

cara penggunaan udah gw update Smile
FOLLOW @DutaLinux
for more question and sharing about security and Opensource only

#9
(04-04-2014, 03:34 PM)zee eichel Wrote: Banyak yang nanya di email saya soal Tunneling dari linux jadi gk usah pake bitvise (windows) hehehhehehe mending ane bikiin tools bash simplenya .. pelajari sendiri ya command sama prosesnya Big Grin

Code:
#/bin/bash
#Variable

interface="`ip route list | grep "default" | cut -d " " -s -f 5`"
ipinfoloc="`ifconfig | grep 'inet addr:' | grep -v '127.0.0.1' | cut -d: -f2 | awk '{print $1}'`" > /dev/null
ippubloc="`curl ifconfig.me`"

#Intro

function intro() {
tput clear
tput setaf 3
echo "sshtunnel.v.1"
tput cup 5 15
echo "coded by zee eichel <zee.eichel[at]indonesianbacktrack[dot]or[dot]id>"
tput cup 6 15
echo "thx to www.indonesianbacktrack.or.id"
tput cup 7 15
echo "Pengumpulan informasi"
tput cup 8 15
echo "......................................."
tput cup 9 15
echo "interface yang digunakan               : $interface"
tput cup 10 15
echo "local ip anda (jika anda berada di NAT): $ipinfoloc"
tput cup 11 15
echo "publik ip provider anda                : $ippubloc"
}

#fungsi menu

function menu() {
tput cup 13 15
tput rev
tput sgr0

tput cup 14 15
read -p "masukan port forward anda (127.0.0.1:port) exp:8080 :" porttun
tput cup 15 15
read -p "masukan server tunnel exp:[103.103.103.103/domainanda.com :" sertun
tput cup 16 15
read -p "masukan port server tunnel exp:[22] :" portsertun
tput cup 17 15
read -p "masukan username server ssh exp:[root] :" usernametun
tput cup 18 15
read -p "masukan password server ssh exp:[123] :" passwd
mainssh;
}

#fungsi mainssh
function mainssh() {
clear
export SSHPASS="$passwd"
sshpass -e ssh -C2qTnNv -D $porttun $usernametun@$sertun -p $portsertun &&
tput cup 17 15
echo "ip address anda sekarang : $ippubloc"
tput clear
}

intro;
menu;

Cara penggunaan :

simpan source di text editor ente terus klik save kasi nama dengan terserah.sh

Jangan lupa install tools ini

Untuk Debian/Ubuntu

Code:
apt-get install curl sshpass

Untuk Fedora,centos, redhat

Code:
yum install curl sshpass

kemudian kasi hak exec

Code:
chmod +x terserah.sh

isikan saja pertanyaan2 untuk auto connect

Quote:pastikan firefox, iceweasel (browser) disetting menggunakan sockv5 dengan port yang anda tentukan sebelumnya

semoga berguna deh Smile


om kalo tunnelnya di barengin sama proxychains gimana om? bisa?

#10
(04-05-2014, 05:34 PM)4IP Wrote: om kalo tunnelnya di barengin sama proxychains gimana om? bisa?

Bisa .. ini POC dari om @sonny rimawan

[Image: 1004865_766006716742965_4859744996935078880_n.jpg]
FOLLOW @DutaLinux
for more question and sharing about security and Opensource only






Users browsing this thread: 2 Guest(s)