File Transfers through a blocked Proxy

If the scenario occurs whereby you need to send data through your existing ssh tunnel then the following applies.


local 10.11.1.252
AKA 10.2.2.218


from the outside the address her is 10.11.1.252

through the proxy the address is 10.2.2.218 (actual eth0)



from a box on the 10.11.1.0/24 network with proxychains configured as 127.0.0.1 22222, we can say

ssh -D 127.0.0.1:22222 user@10.11.1.252 -p22000


--------------------------------------------------------------------------------------------
From our Local machine ( where we have the file, kali etc)

cat file.txt | proxychains nc 10.2.2.218 22000

-------------------------------------------------------------------------------------------

Receiver box ( where the file is to go, victim etc)


nc -l 22000 > file.txt
------------------------------------------------------------------------------------------

The file should be transferred through  the existing tunnel and bypass any filtering :-)


Sender





Receiver





As we can see, the file has been transferred.

No comments:

Post a Comment