{"id":191,"date":"2019-01-17T04:18:31","date_gmt":"2019-01-17T04:18:31","guid":{"rendered":"https:\/\/mrjsec.co.uk\/blog\/?p=191"},"modified":"2019-01-17T04:18:38","modified_gmt":"2019-01-17T04:18:38","slug":"holly-evergreen-curling-master-cranberry-pi-terminal","status":"publish","type":"post","link":"https:\/\/mrjsec.co.uk\/blog\/holly-evergreen-curling-master-cranberry-pi-terminal\/","title":{"rendered":"<center>Holly Evergreen &#8211; CURLing Master Cranberry Pi terminal<\/center>"},"content":{"rendered":"\n<p style=\"text-align:center\">Holly Evergreen wants us to restart the Candy Striper, and also hints &#8220;The trigger to restart the Candy Striper is an arcane HTTP call or 2.&#8221;<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"616\" height=\"756\" data-attachment-id=\"192\" data-permalink=\"https:\/\/mrjsec.co.uk\/blog\/holly-evergreen-curling-master-cranberry-pi-terminal\/curlingmaster1\/\" data-orig-file=\"https:\/\/i0.wp.com\/mrjsec.co.uk\/blog\/wp-content\/uploads\/2019\/01\/CURLingMaster1.png?fit=616%2C756&amp;ssl=1\" data-orig-size=\"616,756\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"CURLingMaster1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/mrjsec.co.uk\/blog\/wp-content\/uploads\/2019\/01\/CURLingMaster1.png?fit=616%2C756&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/mrjsec.co.uk\/blog\/wp-content\/uploads\/2019\/01\/CURLingMaster1.png?resize=616%2C756&#038;ssl=1\" alt=\"\" class=\"wp-image-192\" srcset=\"https:\/\/i0.wp.com\/mrjsec.co.uk\/blog\/wp-content\/uploads\/2019\/01\/CURLingMaster1.png?w=616&amp;ssl=1 616w, https:\/\/i0.wp.com\/mrjsec.co.uk\/blog\/wp-content\/uploads\/2019\/01\/CURLingMaster1.png?resize=244%2C300&amp;ssl=1 244w\" sizes=\"auto, (max-width: 616px) 100vw, 616px\" \/><\/figure><\/div>\n\n\n\n<p style=\"text-align:center\">When we first enter the terminal, were informed that we could find hints in the file &#8220;<a href=\"https:\/\/pastebin.com\/raw\/ELJUbH9P\">\/etc\/nginx\/nginx.conf<\/a>&#8220;<\/p>\n\n\n\n<p style=\"text-align:center\">There are a couple of things to note here, one we can&#8217;t access &#8220;\/var\/www\/html\/&#8221; (bash: cd: \/var\/www\/html\/: Permission denied) \ud83d\ude41<br>Also, &#8220;listen 8080 http2;&#8221; But we already know this because of the hint from Holly Evergreen.<\/p>\n\n\n\n<p style=\"text-align:center\">We need to curl the URL http:\/\/localhost:8080\/, but one thing I noticed was the &#8220;.bash_history&#8221; and how it already had the curl command ready! (If it&#8217;s there, then I guess we can use it? Finder&#8217;s Keepers!).<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"486\" height=\"353\" data-attachment-id=\"193\" data-permalink=\"https:\/\/mrjsec.co.uk\/blog\/holly-evergreen-curling-master-cranberry-pi-terminal\/curlingmaster2\/\" data-orig-file=\"https:\/\/i0.wp.com\/mrjsec.co.uk\/blog\/wp-content\/uploads\/2019\/01\/CURLingMaster2.png?fit=486%2C353&amp;ssl=1\" data-orig-size=\"486,353\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"CURLingMaster2\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/mrjsec.co.uk\/blog\/wp-content\/uploads\/2019\/01\/CURLingMaster2.png?fit=486%2C353&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/mrjsec.co.uk\/blog\/wp-content\/uploads\/2019\/01\/CURLingMaster2.png?resize=486%2C353&#038;ssl=1\" alt=\"\" class=\"wp-image-193\" srcset=\"https:\/\/i0.wp.com\/mrjsec.co.uk\/blog\/wp-content\/uploads\/2019\/01\/CURLingMaster2.png?w=486&amp;ssl=1 486w, https:\/\/i0.wp.com\/mrjsec.co.uk\/blog\/wp-content\/uploads\/2019\/01\/CURLingMaster2.png?resize=300%2C218&amp;ssl=1 300w\" sizes=\"auto, (max-width: 486px) 100vw, 486px\" \/><\/figure><\/div>\n\n\n\n<p style=\"text-align:center\">Cool! We can use curl &#8211;http2-prior-knowledge http:\/\/localhost:8080\/ and that gives us.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"631\" height=\"201\" data-attachment-id=\"194\" data-permalink=\"https:\/\/mrjsec.co.uk\/blog\/holly-evergreen-curling-master-cranberry-pi-terminal\/curlingmaster3\/\" data-orig-file=\"https:\/\/i0.wp.com\/mrjsec.co.uk\/blog\/wp-content\/uploads\/2019\/01\/CURLingMaster3.png?fit=631%2C201&amp;ssl=1\" data-orig-size=\"631,201\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"CURLingMaster3\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/mrjsec.co.uk\/blog\/wp-content\/uploads\/2019\/01\/CURLingMaster3.png?fit=631%2C201&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/mrjsec.co.uk\/blog\/wp-content\/uploads\/2019\/01\/CURLingMaster3.png?resize=631%2C201&#038;ssl=1\" alt=\"\" class=\"wp-image-194\" srcset=\"https:\/\/i0.wp.com\/mrjsec.co.uk\/blog\/wp-content\/uploads\/2019\/01\/CURLingMaster3.png?w=631&amp;ssl=1 631w, https:\/\/i0.wp.com\/mrjsec.co.uk\/blog\/wp-content\/uploads\/2019\/01\/CURLingMaster3.png?resize=300%2C96&amp;ssl=1 300w\" sizes=\"auto, (max-width: 631px) 100vw, 631px\" \/><\/figure><\/div>\n\n\n\n<p style=\"text-align:center\">&#8220;To turn the machine on, simply POST to this URL with parameter &#8220;status=on&#8221;<\/p>\n\n\n\n<p style=\"text-align:center\">Simple enough, entering &#8220;curl  &#8211;http2-prior-knowledge -d &#8220;status=on&#8221; -X POST http:\/\/localhost:8080\/&#8221; returns us with.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"716\" height=\"675\" data-attachment-id=\"195\" data-permalink=\"https:\/\/mrjsec.co.uk\/blog\/holly-evergreen-curling-master-cranberry-pi-terminal\/curlingmaster4\/\" data-orig-file=\"https:\/\/i0.wp.com\/mrjsec.co.uk\/blog\/wp-content\/uploads\/2019\/01\/CURLingMaster4.png?fit=716%2C675&amp;ssl=1\" data-orig-size=\"716,675\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"CURLingMaster4\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/mrjsec.co.uk\/blog\/wp-content\/uploads\/2019\/01\/CURLingMaster4.png?fit=700%2C660&amp;ssl=1\" src=\"https:\/\/i1.wp.com\/mrjsec.co.uk\/blog\/wp-content\/uploads\/2019\/01\/CURLingMaster4.png?fit=700%2C660&amp;ssl=1\" alt=\"\" class=\"wp-image-195\" srcset=\"https:\/\/i0.wp.com\/mrjsec.co.uk\/blog\/wp-content\/uploads\/2019\/01\/CURLingMaster4.png?w=716&amp;ssl=1 716w, https:\/\/i0.wp.com\/mrjsec.co.uk\/blog\/wp-content\/uploads\/2019\/01\/CURLingMaster4.png?resize=300%2C283&amp;ssl=1 300w, https:\/\/i0.wp.com\/mrjsec.co.uk\/blog\/wp-content\/uploads\/2019\/01\/CURLingMaster4.png?resize=700%2C660&amp;ssl=1 700w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure><\/div>\n\n\n\n<p style=\"text-align:center\">Curl is not something new, and it is not something too hard to learn, there are many guides, examples and videos on how to use curl.<br>Fun little challenge \ud83d\ude42<\/p>\n\n\n\n<p style=\"text-align:center\"><strong><em>Bonus<\/em><\/strong><\/p>\n\n\n\n<p style=\"text-align:center\">I did mess around with the website and curling and found two funky things about it, which I like as it guides newcomers to the correct path.<\/p>\n\n\n\n<p style=\"text-align:center\">If you send a GET, you  get this back &#8220;curl &#8211;http2-prior-knowledge -X POST http:\/\/localhost:8080\/index.php?status=on&#8221;<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"758\" height=\"245\" data-attachment-id=\"196\" data-permalink=\"https:\/\/mrjsec.co.uk\/blog\/holly-evergreen-curling-master-cranberry-pi-terminal\/curlingmaster5\/\" data-orig-file=\"https:\/\/i0.wp.com\/mrjsec.co.uk\/blog\/wp-content\/uploads\/2019\/01\/CURLingMaster5.png?fit=758%2C245&amp;ssl=1\" data-orig-size=\"758,245\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"CURLingMaster5\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/mrjsec.co.uk\/blog\/wp-content\/uploads\/2019\/01\/CURLingMaster5.png?fit=700%2C226&amp;ssl=1\" src=\"https:\/\/i1.wp.com\/mrjsec.co.uk\/blog\/wp-content\/uploads\/2019\/01\/CURLingMaster5.png?fit=700%2C226&amp;ssl=1\" alt=\"\" class=\"wp-image-196\" srcset=\"https:\/\/i0.wp.com\/mrjsec.co.uk\/blog\/wp-content\/uploads\/2019\/01\/CURLingMaster5.png?w=758&amp;ssl=1 758w, https:\/\/i0.wp.com\/mrjsec.co.uk\/blog\/wp-content\/uploads\/2019\/01\/CURLingMaster5.png?resize=300%2C97&amp;ssl=1 300w, https:\/\/i0.wp.com\/mrjsec.co.uk\/blog\/wp-content\/uploads\/2019\/01\/CURLingMaster5.png?resize=700%2C226&amp;ssl=1 700w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure><\/div>\n\n\n\n<p style=\"text-align:center\">Moreover, if you do get the command correct, but you send the wrong parameter, i.e. &#8220;curl  &#8211;http2-prior-knowledge -d &#8220;param1=on&#8221; -X POST http:\/\/localhost:8080\/&#8221; You get.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"712\" height=\"245\" data-attachment-id=\"197\" data-permalink=\"https:\/\/mrjsec.co.uk\/blog\/holly-evergreen-curling-master-cranberry-pi-terminal\/curlingmaster6\/\" data-orig-file=\"https:\/\/i0.wp.com\/mrjsec.co.uk\/blog\/wp-content\/uploads\/2019\/01\/CURLingMaster6.png?fit=712%2C245&amp;ssl=1\" data-orig-size=\"712,245\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"CURLingMaster6\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/mrjsec.co.uk\/blog\/wp-content\/uploads\/2019\/01\/CURLingMaster6.png?fit=700%2C241&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/mrjsec.co.uk\/blog\/wp-content\/uploads\/2019\/01\/CURLingMaster6.png?fit=700%2C241&amp;ssl=1\" alt=\"\" class=\"wp-image-197\" srcset=\"https:\/\/i0.wp.com\/mrjsec.co.uk\/blog\/wp-content\/uploads\/2019\/01\/CURLingMaster6.png?w=712&amp;ssl=1 712w, https:\/\/i0.wp.com\/mrjsec.co.uk\/blog\/wp-content\/uploads\/2019\/01\/CURLingMaster6.png?resize=300%2C103&amp;ssl=1 300w, https:\/\/i0.wp.com\/mrjsec.co.uk\/blog\/wp-content\/uploads\/2019\/01\/CURLingMaster6.png?resize=700%2C241&amp;ssl=1 700w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n\n\n\n<p style=\"text-align:center\">I liked this, as this challenge was forgiving and didn&#8217;t expect you to be a master of curl, N1 one devs &lt;3.<\/p>\n\n\n\n<p style=\"text-align:center\">References:<br>\nhttps:\/\/gist.github.com\/subfuzion\/08c5d85437d5d4f00e58<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Holly Evergreen wants us to restart the Candy Striper, and also hints &#8220;The trigger to restart the Candy Striper is an arcane HTTP call or 2.&#8221; When we first enter the terminal, were informed that&#8230;<\/p>\n","protected":false},"author":1,"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_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[10],"tags":[13,14,12],"class_list":["post-191","post","type-post","status-publish","format-standard","hentry","category-kringlecon-2018","tag-13","tag-ctf","tag-kringlecon"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paD3U6-35","_links":{"self":[{"href":"https:\/\/mrjsec.co.uk\/blog\/wp-json\/wp\/v2\/posts\/191","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mrjsec.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mrjsec.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mrjsec.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mrjsec.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=191"}],"version-history":[{"count":1,"href":"https:\/\/mrjsec.co.uk\/blog\/wp-json\/wp\/v2\/posts\/191\/revisions"}],"predecessor-version":[{"id":198,"href":"https:\/\/mrjsec.co.uk\/blog\/wp-json\/wp\/v2\/posts\/191\/revisions\/198"}],"wp:attachment":[{"href":"https:\/\/mrjsec.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mrjsec.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=191"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mrjsec.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}