<?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 Ninad Balsaraf on Medium]]></title>
        <description><![CDATA[Stories by Ninad Balsaraf on Medium]]></description>
        <link>https://medium.com/@bk_201?source=rss-4ce24514a487------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*b2ViIJXn1AsHFnKm.jpg</url>
            <title>Stories by Ninad Balsaraf on Medium</title>
            <link>https://medium.com/@bk_201?source=rss-4ce24514a487------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 04:48:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bk_201/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[Hack The Box — Remote Write-up]]></title>
            <link>https://medium.com/techzap/hack-the-box-remote-write-up-9524a90faa38?source=rss-4ce24514a487------2</link>
            <guid isPermaLink="false">https://medium.com/p/9524a90faa38</guid>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[htb]]></category>
            <category><![CDATA[htb-writeup]]></category>
            <dc:creator><![CDATA[Ninad Balsaraf]]></dc:creator>
            <pubDate>Fri, 03 Dec 2021 07:08:47 GMT</pubDate>
            <atom:updated>2021-12-03T07:08:47.824Z</atom:updated>
            <content:encoded><![CDATA[<h3>Hack The Box — Remote Write-up</h3><h3>Step 1: Scanning</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/1*Mm9cRPROpZ53ug757iiLKA.png" /><figcaption>nmap -sC -sV 10.10.10.180</figcaption></figure><p>I directly went to mountd (port 2049) since Ftp was a dead end.</p><h3>Step 2: Enumerating</h3><p>When I checked port 80, I found Umbraco login in the contact page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/759/1*iI634hj5J2YKINBjoiSkfQ.png" /></figure><p>After that i enumerated the 2049 port (mountd)</p><p>First i checked what is mounted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/479/1*U-KzmY3NDrAMOw5IQGXxnA.png" /><figcaption>showmount -e 10.10.10.180</figcaption></figure><p>I found <strong><em>/site_backups</em></strong> was there, so I mounted it on a temporary folder mnt.</p><pre>mount -t nfs 10.10.10.180:/site_backups ./mnt/</pre><p>I knew that I will be able to find password of umbraco in App_Data/Umbraco.sdf</p><p>so I copied it on my local machine.</p><p>When I <strong><em>cat</em></strong> the file it was garbage so i used <strong><em>strings</em></strong> and grep <strong><em>admin.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pojrIZTjBronS7S04GRN-A.png" /><figcaption>strings Umbraco.sdf | grep admin</figcaption></figure><p>I found hash and decoded it, got<strong> baconandcheese</strong> as password.</p><h3>Step 3: User</h3><p>I also found Umbraco RCE on github (<a href="https://github.com/noraj/Umbraco-RCE">https://github.com/noraj/Umbraco-RCE</a>).</p><p>logged in using the credentials I found and got user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aW0sBmQNw0w_i7o3wlKZ5g.png" /></figure><h3>Step 4: Root</h3><p>After that I logged in the Umbraco and uploaded an aspx reverse shell with <strong><em>.txt</em></strong> as extension because it was not acccepting <strong><em>.aspx</em></strong> which got saved in <strong><em>/media/1033/</em></strong> directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MBR6dMBJKEsTtXv3WXhyjg.png" /></figure><p>Now I had to change the extension to <strong><em>.aspx</em></strong>, so I changed it. but I couldn’t access my reverse shell if my file was in media, so I moved it to Umbraco.</p><p>Now I could access it and got a reverse meterpreter shell.</p><p>Then I uploaded powerup onto the machine and ran it.</p><p>I found that it had a teamviewer on it. In metasploit there is a post module for teamviewer which can get password for it. Which got me the password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MjlcTLwFAw5DghZJZpdWZg.png" /></figure><p>And then I used that password to connect it to administrator using evil-winrm.</p><p>and I got root.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*qbu-GvBEMScrVCpB1CAPdA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9524a90faa38" width="1" height="1" alt=""><hr><p><a href="https://medium.com/techzap/hack-the-box-remote-write-up-9524a90faa38">Hack The Box — Remote Write-up</a> was originally published in <a href="https://medium.com/techzap">techzap</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hack The Box — Traverxec Write-up]]></title>
            <link>https://medium.com/techzap/hack-the-box-traverxec-write-up-8d5b5abd0498?source=rss-4ce24514a487------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d5b5abd0498</guid>
            <category><![CDATA[hackthebox]]></category>
            <category><![CDATA[traverxec]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[journalctl]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Ninad Balsaraf]]></dc:creator>
            <pubDate>Thu, 14 May 2020 13:29:46 GMT</pubDate>
            <atom:updated>2020-05-14T13:29:46.970Z</atom:updated>
            <content:encoded><![CDATA[<h3>Hack The Box — Traverxec Write-up</h3><h3><strong>Step 1: Scanning</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/860/1*7fUl7hWlSsOdjpbgtnkOEg.png" /><figcaption>nmap -sC -sV 10.10.10.165</figcaption></figure><p>Found two services running (<strong><em>ssh</em></strong> and <strong><em>nostromo</em></strong>).</p><h3><strong>Step 2: Getting foothold</strong></h3><p>Search for nostromo CVE on msf and you&#39;ll find <strong><em>nostromo_code_exec</em> </strong>exploit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fazY4RJf3roU0qpMnveVtQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/927/1*gyBG4qXFPmiaNHfVyhxyXw.png" /></figure><p>Now you have the meterpreter shell.</p><h3>Step 3: Enumerating</h3><p>After getting initial shell checkout for nostromo conf directory in var, there you’ll find some useful information about david.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*EmRViUW0bZRe97K0gWiH0w.png" /></figure><p>Cracking david password using john.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/932/1*gAfPZPOXfI1_PVBWZcH5PA.png" /></figure><p>After cracking david password enumerate more.</p><p>Reading nhttpd.conf for some useful information. (Also read nhttpd manual)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/519/1*7UzqTXUjKdT2t6iWwcHemw.png" /></figure><p>In config file you&#39;ll find <strong><em>public_www</em></strong> directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/1*w9duXhpPV6765OMmRKtqpQ.png" /></figure><p>While enumerating <strong><em>public_www</em></strong> directory you&#39;ll find a <strong><em>backup-ssh-identity-files.tgz</em></strong> file.</p><p>You can browse it directly and get the file using the david’s password we cracked.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fo15pU4jfCTB5dU4GWwvYA.png" /><figcaption><a href="http://10.10.10.165/~david/protected-file-area/">http://10.10.10.165/~david/protected-file-area/</a></figcaption></figure><h3><strong>Step 4: User</strong></h3><p>After extracting the file you&#39;ll get a private key for which you have to crack the passphrase using john.</p><p>First use ssh2john to convert private key to john crackable file and then use john.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/934/1*o6zNtBRvdjCJejw4Z1HRqg.png" /></figure><p>Using ssh ,connect to david using the private key and the passphrase.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/751/1*N4vOln4z12iw9ckW5fcGVw.png" /></figure><h3><strong>Step 5: Root</strong></h3><p>Enumerating bin you&#39;ll find <strong><em>server-stats.sh </em></strong>who have root privileges</p><p>So while running</p><pre>/usr/bin/sudo /usr/bin/journalctl -n5 -unostromo.service</pre><p>you can get a root shell by <strong><em>!/bin/bash</em></strong></p><p><strong><em>Note: when you run the service your terminal window should be minimized.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xk2Np5f4SQmxElKlm7A2Sg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d5b5abd0498" width="1" height="1" alt=""><hr><p><a href="https://medium.com/techzap/hack-the-box-traverxec-write-up-8d5b5abd0498">Hack The Box — Traverxec Write-up</a> was originally published in <a href="https://medium.com/techzap">techzap</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[VMware kernel module updater FIX]]></title>
            <link>https://medium.com/@bk_201/vmware-kernel-module-updater-fix-fa85d153948a?source=rss-4ce24514a487------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa85d153948a</guid>
            <dc:creator><![CDATA[Ninad Balsaraf]]></dc:creator>
            <pubDate>Tue, 25 Feb 2020 16:01:25 GMT</pubDate>
            <atom:updated>2020-02-25T16:07:34.833Z</atom:updated>
            <content:encoded><![CDATA[<p>I had an issue while installing VMware on my Kali Linux, the installation was successful but when I ran my VMware a popup showed up “VMware kernel module updater”, but when i installed it there was an error, so to fix this i got this git hub link which fixed my problem.</p><p><a href="https://github.com/mkubecek/vmware-host-modules/tree/workstation-15.5.1">mkubecek/vmware-host-modules</a></p><p>after downloading go to that folder and then open a terminal and type</p><pre>make install</pre><p>and you&#39;re done… after that my VM worked!!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fa85d153948a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating Custom Commands in Linux]]></title>
            <link>https://medium.com/@bk_201/creating-custom-commands-in-linux-cf2672cdac9f?source=rss-4ce24514a487------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf2672cdac9f</guid>
            <category><![CDATA[creating-commands]]></category>
            <category><![CDATA[custom-commands]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[commands]]></category>
            <category><![CDATA[creating-linux-commands]]></category>
            <dc:creator><![CDATA[Ninad Balsaraf]]></dc:creator>
            <pubDate>Tue, 28 Jan 2020 03:38:04 GMT</pubDate>
            <atom:updated>2020-01-28T03:38:04.734Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aMG-jU9HGlAoXZnoXA-rtw.png" /></figure><p><strong><em>/usr/bin</em></strong> is a standard directory on <a href="http://www.linfo.org/unix-like.html">Unix-like</a> <a href="http://www.linfo.org/operating_systems_list.html">operating systems</a> that contains most of the <a href="http://www.linfo.org/executable.html"><em>executable files</em></a> (i.e., ready-to-run <a href="http://www.linfo.org/program.html">programs</a>) that are not needed for booting (i.e., starting) or repairing the system.</p><p>Just create a custom Linux command and then copy it to <strong><em>/usr/bin, </em></strong>give it executable permission then you&#39;re good to go.</p><p>Example -</p><p>Step 1: I’m creating a simple script to ping google.com</p><p>filename : <strong>mycommand</strong></p><pre>root@kali:~# vi mycommand<br>#!/bin/bash<br>ping google.com -c 4</pre><p>Step 2: Copy the file in <strong><em>/usr/bin </em></strong>and give it executable permissions.</p><pre>chmod +x mycommand </pre><p>Now you&#39;re done and good to go.</p><p>Simply type <strong><em>mycommand</em></strong> on terminal and your custom command will execute directly.</p><pre>root@kali:~# mycommand<br>PING google.com (172.217.163.110) 56(84) bytes of data.<br>64 bytes from maa05s03-in-f14.1e100.net (172.217.163.110): icmp_seq=1 ttl=58 time=54.3 ms<br>64 bytes from maa05s03-in-f14.1e100.net (172.217.163.110): icmp_seq=2 ttl=58 time=15.8 ms<br>64 bytes from maa05s03-in-f14.1e100.net (172.217.163.110): icmp_seq=3 ttl=58 time=22.4 ms<br>64 bytes from maa05s03-in-f14.1e100.net (172.217.163.110): icmp_seq=4 ttl=58 time=278 ms</pre><pre>--- google.com ping statistics ---<br>4 packets transmitted, 4 received, 0% packet loss, time 5203ms<br>rtt min/avg/max/mdev = 15.793/92.585/277.851/107.946 ms</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf2672cdac9f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>