{"id":833,"date":"2015-04-06T05:02:32","date_gmt":"2015-04-06T05:02:32","guid":{"rendered":"http:\/\/www.pir8geek.com\/?p=833"},"modified":"2015-04-06T05:02:32","modified_gmt":"2015-04-06T05:02:32","slug":"cryptcat-netcat-encryption","status":"publish","type":"post","link":"https:\/\/www.jameseduard.com\/?p=833","title":{"rendered":"CryptCat &#8211; Netcat + Encryption"},"content":{"rendered":"<p><strong>CryptCat<\/strong> is a simple Unix utility which reads and writes data across network connections, using TCP or UDP protocol while encrypting the data being transmitted. It is designed to be a reliable \u201cback-end\u201d tool that can be used directly or easily driven by other programs and scripts. At the same time, it is a feature-rich network debugging and exploration tool, since it can create almost any kind of connection you would need and has several interesting built-in capabilities.<br \/>\nCryptcat &#8211; is a lightweight version of netcat extended with twofish encryption.<\/p>\n<pre class=\"\">root@kali:~# cryptcat -h\n[v1.10]\nconnect to somewhere:   nc [-options] hostname port[s] [ports] ...\nlisten for inbound: nc -l -p port [-options] [hostname] [port]\noptions:\n    -g gateway      source-routing hop point[s], up to 8\n    -G num          source-routing pointer: 4, 8, 12, ...\n    -h          this cruft\n    -i secs         delay interval for lines sent, ports scanned\n    -l          listen mode, for inbound connects\n    -n          numeric-only IP addresses, no DNS\n    -o file         hex dump of traffic\n    -p port         local port number\n    -r          randomize local and remote ports\n    -s addr         local source address\n    -u          UDP mode\n    -v          verbose [use twice to be more verbose]\n    -w secs         timeout for connects and final net reads\n    -z          zero-I\/O mode [used for scanning]\nport numbers can be individual or ranges: lo-hi [inclusive]\n<\/pre>\n<p>&nbsp;<br \/>\n&nbsp;<br \/>\n<strong>Cryptcat usage:<\/strong><br \/>\nOn the server, listen for a connection <b><i>(-l)<\/i><\/b> on port 4444 <b><i>(-p 4444)<\/i><\/b> and don\u2019t do name resolution <b><i>(-n)<\/i><\/b>. Redirect all data to a file <b><i>(&gt; dataxfer)<\/i><\/b>. On the client, connect to the remote IP address <b><i>(192.168.1.202)<\/i><\/b> on port 4444 <b><i>(4444)<\/i><\/b> and pipe in the data to be transferred <b><i>(&lt; \/tmp\/juicyinfo)<\/i><\/b>:<br \/>\n&nbsp;<\/p>\n<pre class=\"lang:sh decode:true \">root@kali:~# cryptcat -l -p 4444 -n &gt; dataxfer\nroot@kali:~# cryptcat 192.168.1.202 4444 &lt; \/tmp\/juicyinfo<\/pre>\n<p>&nbsp;<br \/>\n<strong>Source:<\/strong> http:\/\/cryptcat.sourceforge.net\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CryptCat is a simple Unix utility which reads and writes data across network connections, using TCP or UDP protocol while encrypting the data being transmitted. It is designed to be a reliable \u201cback-end\u201d tool that can be used directly or easily driven by other programs and scripts. At the same time, it is a feature-rich<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[394],"tags":[393,395,396],"class_list":["post-833","post","type-post","status-publish","format-standard","hentry","category-cryptography","tag-cryptcat","tag-kali-linux","tag-postexploitation"],"_links":{"self":[{"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/posts\/833","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=833"}],"version-history":[{"count":0,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/posts\/833\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=833"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=833"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=833"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}