{"id":76,"date":"2020-11-07T21:40:00","date_gmt":"2020-11-07T21:40:00","guid":{"rendered":"https:\/\/thecyberstaff.com\/?p=76"},"modified":"2025-12-13T21:40:43","modified_gmt":"2025-12-13T21:40:43","slug":"weak-rsa-hackthebox-lab","status":"publish","type":"post","link":"https:\/\/thecyberstaff.com\/?p=76","title":{"rendered":"Weak RSA- Hackthebox lab"},"content":{"rendered":"\n<p>Today I am working on the Weak RSA challenge from hackthebox. The goal is to solve the challenge and find the flag.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/thecyberstaff.com\/wp-content\/uploads\/2020\/11\/image.png\" alt=\"\" class=\"wp-image-4583\"\/><\/figure>\n\n\n\n<p>After downloading the file and unzipping it, I found two files, key.pub and flag.enc. I did a cat command to read both files:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/thecyberstaff.com\/wp-content\/uploads\/2020\/11\/image-3.png\" alt=\"\" class=\"wp-image-4586\"\/><\/figure>\n\n\n\n<p>Looks like we have a public key file and a file that is encrypted, I did a google search for \u201ccrack weak RSA tool\u201d to see if a tool was available for this task:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img decoding=\"async\" src=\"https:\/\/thecyberstaff.com\/wp-content\/uploads\/2020\/11\/image-2.png\" alt=\"\" class=\"wp-image-4585\" style=\"width:682px;height:414px\"\/><\/figure>\n\n\n\n<p>I installed the tool with instructions from GitHub<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img decoding=\"async\" src=\"https:\/\/thecyberstaff.com\/wp-content\/uploads\/2020\/11\/image-1.png\" alt=\"\" class=\"wp-image-4584\" style=\"width:848px;height:232px\"\/><\/figure>\n\n\n\n<p>I ran the tool against the two files and got the flag<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img decoding=\"async\" src=\"https:\/\/thecyberstaff.com\/wp-content\/uploads\/2020\/11\/image-4-1024x397.png\" alt=\"\" class=\"wp-image-4587\" style=\"width:1017px;height:394px\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img decoding=\"async\" src=\"https:\/\/thecyberstaff.com\/wp-content\/uploads\/2020\/11\/image-5-1024x254.png\" alt=\"\" class=\"wp-image-4588\" style=\"width:1111px;height:275px\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Today I am working on the Weak RSA challenge from hackthebox. The goal is to solve the challenge and find the flag. After downloading the file and unzipping it, I found two files, key.pub and flag.enc. I did a cat command to read both files: Looks like we have a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,4],"tags":[],"class_list":["post-76","post","type-post","status-publish","format-standard","hentry","category-cybersecurity","category-pentesting"],"brizy_media":[],"_links":{"self":[{"href":"https:\/\/thecyberstaff.com\/index.php?rest_route=\/wp\/v2\/posts\/76","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thecyberstaff.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thecyberstaff.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thecyberstaff.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thecyberstaff.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=76"}],"version-history":[{"count":1,"href":"https:\/\/thecyberstaff.com\/index.php?rest_route=\/wp\/v2\/posts\/76\/revisions"}],"predecessor-version":[{"id":77,"href":"https:\/\/thecyberstaff.com\/index.php?rest_route=\/wp\/v2\/posts\/76\/revisions\/77"}],"wp:attachment":[{"href":"https:\/\/thecyberstaff.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=76"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thecyberstaff.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=76"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thecyberstaff.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=76"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}