Results 1 to 6 of 6

Thread: netcat with ssl support

Hybrid View

  1. #1
    Moderator
    Join Date
    Jan 2010
    Posts
    167

    Default netcat with ssl support

    Hey guys,

    in BT3 was GNU netcat with SSL support included. In BT4 it isnt any more. I think the SSL support is quite helpfull for security audits, so it would be gread if you can provide a GNU-netcat package which has SSL support enabled.

    thx
    m-1-k-3

  2. #2
    Very good friend of the forum hhmatt's Avatar
    Join Date
    Jan 2010
    Posts
    660

    Default Re: netcat with ssl support

    Quote Originally Posted by m-1-k-3 View Post
    Hey guys,

    in BT3 was GNU netcat with SSL support included. In BT4 it isnt any more. I think the SSL support is quite helpfull for security audits, so it would be gread if you can provide a GNU-netcat package which has SSL support enabled.

    thx
    m-1-k-3
    Isn't this exactly what cryptcat is?

  3. #3
    Member Mr-Protocol's Avatar
    Join Date
    Jan 2010
    Location
    Ohio
    Posts
    142

    Default Re: netcat with ssl support

    Yes, it is CryptCat. Netcat by design did not have any encryption.

    There is also Socat.

    more info: Top 2 Netcats

  4. #4
    Moderator
    Join Date
    Jan 2010
    Posts
    167

    Default

    Quote Originally Posted by Mr-Protocol View Post
    Yes, it is CryptCat. Netcat by design did not have any encryption.
    Backtrack 3:
    Code:
    bt ~ # netcat -E --dontcheckhost www.xyz.de 443
    GET / HTTP/1.0
    
    HTTP/1.1 200 OK
    Date: Fri, 09 Apr 2010 15:10:09 GMT
    Server: Apache
    Last-Modified: Wed, 10 Jan 2007 09:16:58 GMT
    Content-Length: 151
    Connection: close
    Content-Type: text/html
    Cryptcat is not working with SSL.

    m-1-k-3

    you can use netcat from BT3 also in BT4, just copy the netcat binary (located in /usr/local/bin/netcat - BT3)

    on BT4 do the following:
    Code:
    root@bt:~# file netcat
    netcat: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.16, dynamically linked (uses shared libs), stripped
    root@bt:~# ./netcat -h
    ./netcat: error while loading shared libraries: libssl.so.0: cannot open shared object file: No such file or directory
    
    root@bt:~# ln -s /usr/lib/libssl.so.0.9.8 /usr/lib/libssl.so.0
    root@bt:~# ln -s /usr/lib/libcrypto.so.0.9.8 /usr/lib/libcrypto.so.0
    
    root@bt:~# ./netcat -h
    GNU netcat 0.7.1, a rewrite of the famous networking tool.
    ...
    Last edited by Archangel-Amael; 04-09-2010 at 06:47 PM.

  5. #5
    Very good friend of the forum hhmatt's Avatar
    Join Date
    Jan 2010
    Posts
    660

    Default Re: netcat with ssl support

    I think I understand more of what you are asking for.(probably a language barrier but hopefully we can work through it.) By default BT4 final has netcat, cryptcat, and socat all installed.

    These commands should help you to get on your way, in a terminal type:

    Code:
    nc -h
    Code:
    cryptcat -h
    Code:
    socat -h
    I'm not sure yet whether you are trying to enumerate a listening ssl port or attempt to connect to a ssl server. Hopefully these should help you do what you are wishing.

    From what I've seen from an unknown source is that the developer of netcat no longer supports it. They probably aren't around anymore. It's uses are amazing and work very well even to this day, I have nothing to complain about with netcat. Although I like getting used to newer tools based off of netcat such as socat or cryptcat. They are all good tools to have and provide a lot of functionality in a quick and easy to use payload. As far as I remember most BT distributions had at least netcat and probably cryptcat aswell. Socat is fairly new I believe but can be found in the latest version of BT.

    Taking a closer look at the socat help you will see some openssl commands that take host:port inputs and you can also setup a ssl listener. It has a lot of interesting stuff like proxies, piping and tunneling. IPv4 and IPv6 suport.

    Hope this helps and good luck!
    Last edited by hhmatt; 04-12-2010 at 07:29 AM. Reason: Spelling

  6. #6
    My life is this forum thorin's Avatar
    Join Date
    Jan 2010
    Posts
    2,629

    Default Re: netcat with ssl support

    If you want true SSL connections then just use openssl in s_client mode.
    Code:
    openssl s_client -connect www.google.com:443
    I'm a compulsive post editor, you might wanna wait until my post has been online for 5-10 mins before quoting it as it will likely change.

    I know I seem harsh in some of my replies. SORRY! But if you're doing something illegal or posting something that seems to be obvious BS I'm going to call you on it.

Similar Threads

  1. Please add support for gnome
    By beyondcr in forum Beginners Forum
    Replies: 6
    Last Post: 03-04-2011, 02:42 PM
  2. tp-link tl-wn821n support? ( Atheros)
    By dudi9999 in forum Beginners Forum
    Replies: 4
    Last Post: 09-16-2010, 08:52 AM
  3. ALFA AWUS036H Support Power ?
    By KherKhere in forum Beginners Forum
    Replies: 2
    Last Post: 02-21-2010, 09:31 PM
  4. X doesn't support the VIA Chrome9 HC3 out of the box
    By ToolZ in forum BackTrack Bugs
    Replies: 1
    Last Post: 01-13-2010, 03:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •