Results 1 to 4 of 4
Thread: Netcat, Socat, & Cryptcat help
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Nov 2007
Netcat, Socat, & Cryptcat help
Here is what I need to command line for.
Cryptcat listening on localhost port 7777, encrypting the connection (passkey is test), and connecting the encrypted connection to localhost port 7778
Socat listening on localhot port 7778, connecting to a socks4a server (example: 188.8.131.52) on port 80 to forward the data from localhost port 80 to 100.100.100.100 (example) port 8989
Cryptcat listening on port 8989, decrypting the connection (passkey is test), sending the decrypted data to 184.108.40.206 (example) port 80
...now how would I go about doing this? I am running the windows versions of these programs (not that that should make a difference). I am trying to get something to the effect of an encrypted proxy. The problem is my residential isp blocks inbound port 80 and 443 but the firewall at my work only allows outbound port 80 and 443. The traffic at work also passes through an internal proxy that does blocking based on the ip we are connecting to and also scans the data stream for keywords (such as proxy) and saves the ip address the keyword was received from for a network admin to review to see if it needs to be blocked.
This is my problem, can someone help me?
I can help you.
But I think you underjudge Socat.
Socat can send over SSL.
And proxying, well id pick Squid but ok..
Fist play around with each as a seperate tools.
Netcat -> Clear Text Sending.
Cryptcat -> AES Encryption.
Socat -> SSL Encryption (Most advanced Cat).
I have wrote a Syncing protocol with these tools for my PDA.
I do it this way:
Cryptcat sends Certificate for SSL
Socat makes a SSL connection to server with the certificate he just got.
Netcat reads incomming commands to a file that tail parses to the programs
Well, if you first play around with cc and nc and then try soc you must be able to do this.
I hope this helps abit.
And if it didnt Ill try to write a better help thingy for you when I am home
- Join Date
- Nov 2007
would that be easier? I am not worried about security of the data (it wont be anything important) I am looking for somthing that uses socks4a (for its remote dns lookup) so I am thinking just a free 3rd party proxy. No matter what I need a 3rd party proxy because the outbound ports at work that arent blocked are inbound blocked ports by my ISP. here is an example of what I am going to do:
I am going to have an application send a socks connection request to localhost port 7777 (work computer)
Cryptcat will be listening on localhost port 7777. It will encrypt the connection and send the encrypted socks request to localhost port 7778 (still work computer)
I am going to have Socat listening on port 7778. It takes the encrypted request and sends it to 220.127.116.11 port 8989 through a socks server that is listening at 18.104.22.168 port 80
The socks server gets the connection request and pipes the data (the encrypted socks request) to 22.214.171.124 port 8989 (home computer)
The home computer will have cryptcat listening on port 8989 and will get the encrypted socks request
Cryptcat will decrypt the data and send the cleartext socks request to 126.96.36.199 port 80 (same socks server used to pipe the encrypted request to the home computer)
The socks server fetches the data
so, I am fairly new to the CAT tools. I just want to know if you think this will work. I also have no clue what the command line arguments would be for this.