{"id":5010,"date":"2026-06-15T09:29:40","date_gmt":"2026-06-15T07:29:40","guid":{"rendered":"https:\/\/infosec.andreas-klingler.de\/?p=5010"},"modified":"2026-06-15T09:31:56","modified_gmt":"2026-06-15T07:31:56","slug":"mustache-and-handlebar-template-engine","status":"publish","type":"post","link":"https:\/\/infosec.andreas-klingler.de\/?p=5010","title":{"rendered":"Mustache and Handlebar Template Engine"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Mus\u00adtache is a tem\u00adplate engine, used in var\u00adi\u00adous frame\u00adworks. It is \u201clog\u00adic less\u201d, it sup\u00adports if statemets, but it does not have many log\u00adi\u00adcal operations.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Han\u00addle\u00adbar is an exten\u00adsion of Mus\u00adtache with more capabilities.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Read vari\u00adables:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">{{name}}<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">With han\u00addle\u00adbar, try to read a&nbsp;file:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">{{read \"\/etc\/passwd\"}}<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Or try to list a directory:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">{{#each (readdir \"\/etc\")}}<br>  {{this}}<br>{{\/each}}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Mus\u00adtache is a tem\u00adplate engine, used in var\u00adi\u00adous frame\u00adworks. It is \u201clog\u00adic less\u201d, it sup\u00adports if statemets, but it does not have many log\u00adi\u00adcal oper\u00ada\u00adtions. Han\u00addle\u00adbar is an exten\u00adsion of Mus\u00adtache with more capa\u00adbil\u00adi\u00adties. Read vari\u00adables: {{name}} With han\u00addle\u00adbar, try to read a&nbsp;file: {{read \u201c\/etc\/passwd\u201d}} Or try to list a direc\u00adto\u00adry: {{#each (read\u00addir \u201c\/etc\u201d)}} {{this}}{{\/each}}<\/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":[471],"tags":[548,547,540],"class_list":["post-5010","post","type-post","status-publish","format-standard","hentry","category-privesc","tag-handlebar","tag-mustache","tag-template"],"_links":{"self":[{"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=\/wp\/v2\/posts\/5010","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=5010"}],"version-history":[{"count":3,"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=\/wp\/v2\/posts\/5010\/revisions"}],"predecessor-version":[{"id":5014,"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=\/wp\/v2\/posts\/5010\/revisions\/5014"}],"wp:attachment":[{"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5010"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5010"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/infosec.andreas-klingler.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5010"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}