<?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 Ayushi Soni on Medium]]></title>
        <description><![CDATA[Stories by Ayushi Soni on Medium]]></description>
        <link>https://medium.com/@ayushi-soni-25?source=rss-9e0c4ef9c9d4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*sDJ3ZLdCrSyxYVzCvEP48w.jpeg</url>
            <title>Stories by Ayushi Soni on Medium</title>
            <link>https://medium.com/@ayushi-soni-25?source=rss-9e0c4ef9c9d4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 10:19:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ayushi-soni-25/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[Swimming vs Software Development]]></title>
            <link>https://ayushi-soni-25.medium.com/swimming-vs-software-development-537ceba967e1?source=rss-9e0c4ef9c9d4------2</link>
            <guid isPermaLink="false">https://medium.com/p/537ceba967e1</guid>
            <dc:creator><![CDATA[Ayushi Soni]]></dc:creator>
            <pubDate>Wed, 13 Jan 2021 12:59:24 GMT</pubDate>
            <atom:updated>2021-01-13T13:12:15.688Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>#learnbydoing #1</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*033GbMq-qxpYyGfRzGqDgw.png" /></figure><p>Do you want to learn swimming?<br>Let me suggest you a great book on swimming, read it thoroughly.</p><p>Congrats! Now, you can swim!!<br>Can you?… Really?</p><p>No, you can’t. By reading the book, you’ve just gathered the information about swimming.<strong> You haven’t actually learnt to swim!</strong></p><blockquote>Same is the case with Software Development, we can’t learn development until we try our hands on developing software.<br><strong>We can learn something only by doing it.</strong></blockquote><h3>#learnbydoing #1</h3><p>So, let’s start learning by doing with the first activity. <br><strong><em>Problem Statement:</em></strong><em> Anushka is a Flipkart user, since past few days, she’s observing some irrelevant transactions in her Flipkart account. Being worried about this, she approached </em><strong><em>The Sherlock Developer(you)</em></strong><em> to check whether her account has been hacked or not.<br></em><strong><em>You have two things :<br> </em></strong><em>1. Access log of Flipkart users from Dec 10 till Jan 7.<br>2. Linux Machine(your detective glass).</em></p><p>So, let’s start by looking into the access log which contains a whole lot of data. It contains the date, time, IP Address, username and Machine OS for each Flipkart access.</p><p><strong><em>Clue#1: In order to check whether the account has been hacked or not, we need to look into the IP Address through which Anushka accessed Flipkart.</em></strong></p><p>Would you like to do it manually? Ofcourse NOT!<br>Let’s use the Detective glass(Linux Machine). <br><strong>Note:</strong> If you’re not familiar with Linux commands, Google about <strong>grep</strong> and <strong>uniq</strong> command. We’ll be using these two majorly.<br>So, first things first, let’s try to get all the access logs of Anushka in a separate file.</p><blockquote>Use <strong>grep “Anushka” access.txt &gt; anushka.txt </strong>(it’ll put all lines matching the pattern “Anushka” from access.txt to anushka.txt)</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EhhmrDA9cC8IRztf3ufrvA.png" /><figcaption>Pic(a) : anushka.txt contains all access logs of Anushka</figcaption></figure><p>Here, we can see that Anushka is accessing her Flipkart account through three different OS machines, namely Windows, Android and MacOS(iPad). But, after confirming to Anushka, we get to know she only uses Windows and Android OS.</p><p><strong><em>Clue #2: We need to look into the details of IP Address of all three OS. Get all the IP Addresses from anushka.txt to a different file ip.txt</em></strong></p><blockquote>Use <strong>grep “Anushka” anushka.txt | awk -F, ‘{print $3}’&gt; ip.txt </strong>(it’ll put the 3rd entry separated by ‘ , ’ field separator in each line matching the pattern “Anushka” in ip.txt, 3rd entry is IP address)</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*SOIKEtJ7RBMQs35FpDsd1A.png" /><figcaption>Pic(b) : IP address of all accesses by Anushka</figcaption></figure><p>Still messy?</p><p><strong><em>Clue #3: Count unique IP addresses to make it simpler.</em></strong></p><blockquote>Use <strong>sort ip.txt &gt; sorted.txt </strong>(in order to perform uniq command, we need to sort the file)<strong><br></strong>then<strong> uniq -c sorted.txt </strong>(to find unique IP addresses with their count)</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QTa125tyv7Bc_GNr--jcgQ.png" /><figcaption>Pic(c) : We got 9 unique IP addresses with their counts</figcaption></figure><p>From <strong><em>Pic(a)</em></strong>, we get to know that <strong>47.29.213.79 is Android’s IP address, 182.65.138.165 is Windows’ IP address </strong>and the rest are of iPad. We’re now much closer to conclude.</p><p><strong><em>Clue #4: Use IP Location Finder to find the location of these IP addresses.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/971/1*xipBk_RuKFByY4uOiwBG8Q.png" /><figcaption>Android’s IP address location is India.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/966/1*-rvtXLul0M50me66dJxQLg.png" /><figcaption>Windows’ IP Address location is India.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*0qLsfYjqDsouoK9D96reIg.png" /><figcaption>iPad’s IP Address location is China.</figcaption></figure><p><strong><em>As, iPad’s location is different than Android and Windows, means someone has hacked Anushka’s account from China.</em></strong></p><p><strong><em>Well Done!! We have gathered good amount of evidences.<br>Hence, we can conclude that Anushka’s account has actually been hacked and now Anushka can report to Flipkart so that necessary actions could be taken.</em></strong></p><blockquote>This Activity is a part of CWoD’s Stage 1 Bytes and it was my first #learnbydoing experience. I’m learning by doing in the Crio Winter Of Code and looking forward to more of such #learnbydoing experiences. Thanks Crio! <strong>:</strong>D</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*j-mI_wv35v0LWEqOSBxgJQ.png" /><figcaption><a href="https://www.crio.do/">Crio.Do</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=537ceba967e1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>