{"id":292,"date":"2016-12-22T18:05:44","date_gmt":"2016-12-22T18:05:44","guid":{"rendered":"http:\/\/softinite.com\/?p=292"},"modified":"2016-12-22T18:05:44","modified_gmt":"2016-12-22T18:05:44","slug":"transparent-proxy-from-owasp","status":"publish","type":"post","link":"http:\/\/softinite.com\/?p=292","title":{"rendered":"Transparent proxy from OWASP"},"content":{"rendered":"<p><a href=\"https:\/\/www.owasp.org\/index.php\/OWASP_Zed_Attack_Proxy_Project\">ZAP<\/a> seems like a very good tool for pen testing, but also for debugging HTTP requests between microservices.<\/p>\n<p>The best thing is that it can be run with docker.<\/p>\n<p>An example of setting it up as a transparent proxy with iptables is described <a href=\"http:\/\/www.computerist.org\/blog\/2014\/07\/23\/Transparent-HTTPS-proxying-with-ZAP\/\">here<\/a> .<\/p>\n<p>The key being to forward request port to ZAP, and it will automatically capture them.<\/p>\n<p>Example:<\/p>\n<pre><span class=\"n\">iptables<\/span> <span class=\"o\">-<\/span><span class=\"n\">t<\/span> <span class=\"n\">nat<\/span> <span class=\"o\">-<\/span><span class=\"n\">A<\/span> <span class=\"n\">OUTPUT<\/span> <span class=\"o\">-<\/span><span class=\"n\">p<\/span> <span class=\"n\">tcp<\/span> <span class=\"o\">--<\/span><span class=\"n\">dport<\/span> <span class=\"mi\">443<\/span> <span class=\"o\">-<\/span><span class=\"n\">j<\/span> <span class=\"n\">DNAT<\/span> <span class=\"o\">--<\/span><span class=\"n\">to<\/span><span class=\"o\">-<\/span><span class=\"n\">destination<\/span> <span class=\"mf\">192.168.0.4<\/span><span class=\"o\">:<\/span><span class=\"mi\">8443<\/span>\r\n<span class=\"n\">iptables<\/span> <span class=\"o\">-<\/span><span class=\"n\">t<\/span> <span class=\"n\">nat<\/span> <span class=\"o\">-<\/span><span class=\"n\">A<\/span> <span class=\"n\">OUTPUT<\/span> <span class=\"o\">-<\/span><span class=\"n\">p<\/span> <span class=\"n\">tcp<\/span> <span class=\"o\">--<\/span><span class=\"n\">dport<\/span> <span class=\"mi\">80<\/span> <span class=\"o\">-<\/span><span class=\"n\">j<\/span> <span class=\"n\">DNAT<\/span> <span class=\"o\">--<\/span><span class=\"n\">to<\/span><span class=\"o\">-<\/span><span class=\"n\">destination<\/span> <span class=\"mf\">192.168.0.4<\/span><span class=\"o\">:<\/span><span class=\"mi\">8080<\/span><\/pre>\n","protected":false},"excerpt":{"rendered":"<p><a href=\"https:\/\/www.owasp.org\/index.php\/OWASP_Zed_Attack_Proxy_Project\">ZAP<\/a> seems like a very good tool for pen testing, but also for debugging HTTP requests between microservices.<\/p>\n<p>The best thing is that it can be run with docker.<\/p>\n<p>An example of setting it up as &#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_newsletter_tier_id":0,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[13],"tags":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7uKYI-4I","_links":{"self":[{"href":"http:\/\/softinite.com\/index.php?rest_route=\/wp\/v2\/posts\/292"}],"collection":[{"href":"http:\/\/softinite.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/softinite.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/softinite.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/softinite.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=292"}],"version-history":[{"count":2,"href":"http:\/\/softinite.com\/index.php?rest_route=\/wp\/v2\/posts\/292\/revisions"}],"predecessor-version":[{"id":294,"href":"http:\/\/softinite.com\/index.php?rest_route=\/wp\/v2\/posts\/292\/revisions\/294"}],"wp:attachment":[{"href":"http:\/\/softinite.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=292"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/softinite.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=292"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/softinite.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}