<?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 Deepak Kumar on Medium]]></title>
        <description><![CDATA[Stories by Deepak Kumar on Medium]]></description>
        <link>https://medium.com/@servantoftheservant?source=rss-8bdffec7dc82------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*6s6115P0UKuX2Jb35iYD1g.png</url>
            <title>Stories by Deepak Kumar on Medium</title>
            <link>https://medium.com/@servantoftheservant?source=rss-8bdffec7dc82------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 06:03:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@servantoftheservant/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[The story of COVID — Fear to Fearless]]></title>
            <link>https://servantoftheservant.medium.com/the-story-of-covid-fear-to-fearless-5abf0c74949f?source=rss-8bdffec7dc82------2</link>
            <guid isPermaLink="false">https://medium.com/p/5abf0c74949f</guid>
            <category><![CDATA[india]]></category>
            <category><![CDATA[spirituality]]></category>
            <category><![CDATA[covid19]]></category>
            <category><![CDATA[social-welfare]]></category>
            <category><![CDATA[hindu-scriptures]]></category>
            <dc:creator><![CDATA[Deepak Kumar]]></dc:creator>
            <pubDate>Mon, 21 Sep 2020 03:55:30 GMT</pubDate>
            <atom:updated>2021-01-20T13:20:57.896Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7fSInSU6yKqUOaqw62VS6Q.jpeg" /></figure><h3>The story of COVID — Fear to Fearless</h3><blockquote>No problem can be solved from the same level of consciousness that created it. — Albert Einstein</blockquote><p>I was living a so-called normal life before all this pandemic changed the very core of our modern way of living. In the morning, I used to wait on the bus stand for a struggle to get my feet on the bus. Whenever I couldn’t make it, I used to meditate that what will happen to this crowded, polluted civilization when they hit a dead-end driving in 5th gear with no control at all? I never knew that when 2020 begins, nature will press the reset button, and the whole world will crash. Tom Foolery already made a great video to bring the Realization out of it. Do have a look at it.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FNw5KQMXDiM4%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DNw5KQMXDiM4&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FNw5KQMXDiM4%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/47beb55d56a362b2f054e5fe30dd771e/href">https://medium.com/media/47beb55d56a362b2f054e5fe30dd771e/href</a></iframe><p>After the lockdown was imposed, things changed pretty quickly. Now no more rushing to the bus stand to catch a bus, no more sharing lunch with colleagues, no funny moments on the desk and no more being part of a crowded meck.</p><blockquote>“Nature is pressing a reset button so that we can take inventory of our values our desires our purpose and what really is meaningful in our life. With all the distractions and diversions that we are vulnerable to we have an opportunity individually and collectively to take some time to take a step back and what direction do I really want to take in my life. This is an extraordinary crisis, it’s unprecedented but also gives us unprecedented opportunities.” — HH Radhanath Swami</blockquote><p>Blinded by the assumption that we can control nature, we thought we could exploit it without getting any reaction. Not only did it hit back, but the pandemic also reminded us of the ultimate fear, which is always our constant companion right from the time we took birth, i.e death. While nature was healing itself, millions of people have got affected and hundreds of thousands of deaths to date. The whole modern science was brought down to its knees.</p><p>Now everything we do is restricted within the four walls of our room, and this new normal would take some time to adjust. Within a week, wearing a mask, sanitization, or cleanliness, physical proximity became crucial. Only essential shops could be seen open within controlled timings. Since it was unclear when the unlocking will start, so like other people we also piled up grocery stocks for a few weeks. Luckily we managed to get all the necessary items. For some of us, it was a secure situation working from home without getting exposed. But with a 1.3 billion population under lockdown, this struggle for survival was not going to be easy for many people.</p><blockquote>“To transform a crisis into an opportunity is true wisdom.” — HH Radhanath Swami</blockquote><p>In this crisis situation, the daily wagers, street vendors, construction workers, and labourers, were terribly affected by the economic and social repercussions of the coronavirus. Although the government and many other organisations stepped up to ensure that at least free food reaches everyone in need, it demanded a significant number of volunteers. But I doubted who would be ready to expose himself to the virus in the name of volunteering? Who would be willing to leave their comfortable situation at home? Nevertheless, many of us felt that it was a once in a lifetime opportunity to help humanity by serving people in this pandemic. I took this decision considering all the risks and opportunities involved.</p><p>Sri Sri Radha Rasabihari Temple, Juhu was one of the organizations which had taken the initiative to feed the needy through their Food For Life Program. They planned to distribute 22,000 plates every day to different parts of Mumbai with the help of BMC. Since I had been in regular touch with the temple, I shifted to the temple and picked up the tasks promptly under the guidance of the temple management. Now, this was the beginning of a new phase under the lockdown.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/891/1*O-3qTBJP_1IHXMYUJ4pNbw.jpeg" /><figcaption>Yummy and nutritious Prasadam!</figcaption></figure><blockquote><em>“</em>I used to think that top global environmental problems were biodiversity loss, ecosystem collapse, and climate change. I thought that with 30 years of good science we could address these problems, but I was wrong. The top environmental problems are selfishness, greed, and apathy, and to deal with these we need a spiritual and cultural transformation. And we scientists don’t know how to do that<em>.” — </em>Gus Speth</blockquote><p>Things were unique here, which can be assumed since it is the palace of Sri Sri Radha Rasabihari(SSRRB). Every single devotee was engaged in helping the people out there, by contributing to the Food For Life. By the mercy of SSRRB, and the excellent management, the task was completely streamlined.</p><p>Preparation of such a vast number of plates needs a lot of time. So our day started very early around 4 am, and this first session would go till noon. The cooking of the Prasadam itself used to begin around 4:30 am inside the big kitchen. On the menu, it generally used to be fried rice and dry/semi-dry mix vegetable sabzi, along with Mango pickle. Sometimes we also used to have parantha. Later, we also had Chappatis and on special occasions pav-bhaji. At around 8 am, we would start by preparing the base of a big hall with sheets where rice and dry sabzi were emptied and spread for cooling. This onerous task was of bringing the cooked items from the kitchen would continue for hours. Another set of devotees, around 3–4 dozens would fill the aluminum pouches with the Prasadam. This then would go to another 3–4 dozen group of devotees for getting sealed. The packed pouches would be transferred to big bags, ready to be picked by the BMC. They would then distribute this nutrient-rich food to different parts of Mumbai. This is how I used to spend the first half of my day before starting with my huddle call at the office. The volunteers would begin their next session with full force at around 2 pm.</p><p>Not even a single day there was any kind of compromise with the quality of the Prasadam. To strengthen the immunity of the body it was very important for us to provide vegetarian nutrient-rich food to the people. One very special thing about Prasdam is that it not only nourishes the body but also the soul. The ordinary ingredients of the food got imbued with all spiritual qualities once it is offered to SSRRB. The below verse from Sri Caitanya-caritamrita confirms this.</p><blockquote>tāte ei dravye kṛṣṇādhara-sparśa haila<br>adharera guṇa saba ihāte sañcārila — CC 3.16.112</blockquote><p>The herculean task of distributing the Prasadam would have been practically impossible without the blessings of SSRRB. Although this act may outwardly look like a mundane welfare work, behind the scenes this was adding pious credits to the accounts of the people. Actually, spiritual activities go beyond the codes of mundane morality since it is based on the principle of doing everything as a service and for the pleasure of God. And this is from where the devotees were getting the energy to execute this service of distributing food. The morning darshan of the deities, the meditation, and the discourses would charge us to take up this task as our everyday duty.</p><blockquote>svasty astu viśvasya khalaḥ prasīdatāṁ<br>dhyāyantu bhūtāni śivaṁ mitho dhiyā<br>manaś ca bhadraṁ bhajatād adhokṣaje<br>āveśyatāṁ no matir apy ahaitukī — <a href="https://vedabase.io/en/library/sb/5/18/9/">SB 5.18.9</a></blockquote><p>Unfortunately, even if we find a vaccine for this virus in the future, the real problem would still remain unaddressed. These kinds of situations would keep coming just like the appearance and disappearance of the summer and winter season. But the above verse describes how one can be peaceful and calm even while going through the miseries coming from one’s own mind/body, other living entities, or nature. One has to curb the envious tendency in oneself towards other living entities and think always of the welfare of others.</p><blockquote><em>bhoktāraṁ yajña-tapasāṁ<br>sarva-loka-maheśvaram<br>suhṛdaṁ sarva-bhūtānāṁ<br>jñātvā māṁ śāntim ṛcchati — </em><a href="https://vedabase.io/en/library/bg/5/29/"><em>BG 5.29</em></a></blockquote><p>Our Vedic scriptures explain that the basis of work, which has been taught to us from childhood and is the most fundamental thing in a common man’s life is incorrect. At every moment we are interacting with material objects in an attempt to achieve more of them. But are we the supreme or real proprietor of all these things? All the matter which we can perceive is a combination of five elements namely Earth, Water, Fire, Air, and Ether. If God is the creator of these elements then how can we be the enjoyer of the results of their combination? Just like a mason who will use the different ingredients to build a house, but this doesn’t mean that he becomes the owner of that house. Similarly, for things that are in our custody we are more of a caretaker rather than a proprietor. Another analogy can be given of a bank cashier. He knows that millions of dollars are coming to him, but he knows that “This is belonging to the bank. I am simply a cashier.” When one comes in contact with <em>māyā</em> (illusion) due to the desire to lord it over <em>māyā,</em> the sufferings come as a complimentary gift whether we like it or not. This verse from Shrimad Bhagavad Gita tells us that who is the ultimate beneficiary of all sacrifices and austerities. One who knows this attains peace from the pangs of material miseries. This is described as the peace formula by many scholars.</p><blockquote><em>labhante brahma-nirvāṇam<br>ṛṣayaḥ kṣīṇa-kalmaṣāḥ<br>chinna-dvaidhā yatātmānaḥ<br>sarva-bhūta-hite ratāḥ — </em><a href="https://vedabase.io/en/library/bg/5/25/"><em>BG 5.25</em></a></blockquote><p>The root of suffering of humanity in many scriptures is given as the forgetfulness of God as the supreme enjoyer, the supreme proprietor, and the supreme friend. Therefore, to act to revive this consciousness within the entire human society is the highest welfare work. This is similar to a person who is the son of a loving and caring billionaire father but has rejected the relationship with his father and loiters on the street for survival. While living in separation he will have to face innumerable difficulties and may also ruin his life if comes in a bad association. But if he revives the relationship with his father he can live a comfortable and happy life. Similar is the situation of the people of Kaliyuga today. Actually, we have become accustomed to this miserable condition of life and due to lack of proper knowledge, we can’t even perceive that utopian life can exist.<br>“A person engaged only in ministering to the physical welfare of human society cannot factually help anyone. Temporary relief of the external body and the mind is not satisfactory. . Therefore, to act to revive this consciousness within the entire human society is the highest welfare work. One cannot be engaged in such first-class welfare work without being liberated in the Supreme.” — purport to BG 5.25</p><p>While COVID-19 will stay with us for some more time or maybe for our complete lifetime, the important thing is that what have we learned from it? Nature will make us face these kinds of situations again and again but it is up to us whether we inquire with the given intelligence and take the necessary steps or bury our heads in the sand. <br>But whatever be the future, the COVID-19 has definitely brought us closer as a family, bringing a sense of happiness that comes from the relationship with the people we love. And why was the virus able to bring us closer? Cause sometimes we need to get sick before we feel better — from fear to becoming fearless.</p><blockquote>Let us not forget that human knowledge and skills alone cannot lead humanity to a happy and dignified life.</blockquote><blockquote>— Albert Einstein</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5abf0c74949f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HackerEarth Brute Force 1.0 WriteUp]]></title>
            <link>https://servantoftheservant.medium.com/hackerearth-brute-force-1-0-writeup-3fd878177236?source=rss-8bdffec7dc82------2</link>
            <guid isPermaLink="false">https://medium.com/p/3fd878177236</guid>
            <category><![CDATA[brute-force]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[hackerearth]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <dc:creator><![CDATA[Deepak Kumar]]></dc:creator>
            <pubDate>Mon, 22 Jun 2020 07:46:13 GMT</pubDate>
            <atom:updated>2020-06-22T07:46:13.999Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/333/1*qvnygkHS-g3DvNCA-DvnBA.png" /></figure><p>Brute Force 1.0, is a quarterly hackathon on HackerEarth that is stacked with interesting questions that belong to different categories such as reverse engineering, cryptography, web application, network security, scripting, forensics, etc. that aims at helping you build your hacking skills.</p><h3><strong>Warm-Up</strong></h3><ul><li><strong>General 1<br></strong><em>Description</em>: If I told you your grade was 0x48 in hexadecimal, what would it be in ASCII?<br><em>Solution</em>: <strong>HE{H}</strong>. Simply convert 0x48 to ASCII. Use a HEX to ASCII table or in bash do this:</li></ul><pre>$ echo 48 | xxd -r -p <br>H</pre><ul><li><strong>General 2<br></strong><em>Description: </em>Can you convert the number 1234567890 (base 10) to binary (base 2)?<br><em>Solution: </em><strong>HE{1001001100101100000001011010010}</strong><em>. </em>Simply convert the decimal to binary</li></ul><pre>$ echo &quot;obase=2;1234567890&quot; | bc<br>1001001100101100000001011010010</pre><ul><li><strong>General 3<br></strong><em>Description: </em>Reverse Me and Find The Flag… String=10947f32df25eb4ce3de359176b20271<em><br>Solution: </em><strong>HE{17202b671953ed3ec4be52fd23f74901}</strong>. Simply reverse the string.</li></ul><pre>$ echo 10947f32df25eb4ce3de359176b20271 | rev<br>17202b671953ed3ec4be52fd23f74901</pre><ul><li><strong>General 4<br></strong><em>Description: </em>Rotate The Given String and Get the Points. <br>String = NK{Xuzgzk_Sk_ZU_Mkz_Vuotzy}<em><br>Solution:</em><strong>HE{Rotate_Me_TO_Get_Points}.</strong><em> </em>From the question, it is clear that it a ROT cipher. Visit <a href="http://theblob.org/rot.cgi">http://theblob.org/rot.cgi</a> and enter the string. We are specifically looking for the string which starts with<strong> HE.</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/298/1*U_GKVKkmtmIfR5FSEn_sww.png" /><figcaption>ROT-20 matches the flag pattern</figcaption></figure><ul><li><strong>General 5<br></strong><em>Description: </em>I found SQL Dump. But all the passwords are encrypted. And All are looks like This — <br>$pbkdf2-sha256$29000$7R3jfi/Xcfhvbjkdfgh.Jsangfjhmkl We have to find the name of the algorithm<em><br>Solution:</em><strong><em> </em>HE{PBKDF2}</strong>.</li><li><strong>General 6<br></strong><em>Description: </em>This is My All time Favourite OS<br><em>Solution: </em><strong>HE{Kali}</strong></li></ul><h3><strong>UNIX</strong></h3><ul><li><strong>Grep<br></strong><em>Description: </em>Try to read the flag from the data dump. File Name: UNIX<em><br>Solution: </em><strong>HE{ecfc468968534a32fe335bba396fa519}</strong>.<em> </em>We simply need to perform grep on the content.</li></ul><pre>$ strings UNIX | grep HE{<br>HE{ecfc468968534a32fe335bba396fa519}</pre><h3>Forensics</h3><ul><li><strong>Calculate<br></strong><em>Description: </em>Please Check, if was edited my intruder or not. Find the hash of the given file.<em><br>Solution: </em><strong>HE{72375b80505890609cec28873201c9fa}</strong>. An MD5 checksum is a 32-character hexadecimal number that is computed on a file. If two files have the same MD5 checksum value, then there is a high probability that the two files are the same.</li></ul><pre>$ md5sum Calculate.txt<br>72375b80505890609cec28873201c9fa  Calculate.txt</pre><h3><strong>Welcome</strong></h3><ul><li><strong>Brute Force 1.0<br></strong><em>Description:<br>Solution:</em><strong><em> </em>HE{Welcome_to_Brute_Force_1_0}</strong>. The solution directly is given.</li></ul><h3>Steganography</h3><ul><li><strong>Copy Right and Comment<br></strong><em>Description: </em>Get the flag from the file<em><br>Solution: </em><strong>HE{7e69c214546a931d52312bb92da9d87d}. </strong>Simply perform the below operation.</li></ul><pre>$ strings key.jpg | grep HE{<br>;Here You Go -----&gt;&gt;&gt; HE{7e69c214546a931d52312bb92da9d87d}</pre><p>I am just little lazy, will be updating the solution to all problems very soon</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3fd878177236" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using cron in Linux (WFH special)]]></title>
            <link>https://servantoftheservant.medium.com/using-cron-in-linux-wfh-special-8f6fb21b2805?source=rss-8bdffec7dc82------2</link>
            <guid isPermaLink="false">https://medium.com/p/8f6fb21b2805</guid>
            <category><![CDATA[wfh]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[cron]]></category>
            <category><![CDATA[crontab]]></category>
            <category><![CDATA[automate]]></category>
            <dc:creator><![CDATA[Deepak Kumar]]></dc:creator>
            <pubDate>Fri, 19 Jun 2020 06:59:39 GMT</pubDate>
            <atom:updated>2020-06-19T07:01:53.592Z</atom:updated>
            <content:encoded><![CDATA[<p>The origin of the name <strong><em>cron</em></strong> is from the Greek word for time, χρόνος (chronos), which is a time-based job scheduler in Unix-like computer operating systems (eg, Ubuntu, Fedora, Arch Linux, etc.) — Wikipedia</p><p>Using the cron daemon, we can schedule repeating jobs which run in the background automatically without any intervention. As a system administrator, it comes as a great relief for executing recurring scripts or running tasks during off-hours. No one would like to get up at o’dark hundred to perform the backup, sync files or install updates. While repetitive tasks can be scheduled using the cron, one-time tasks can be accomplished using the associated <strong><em>at</em></strong> utility.</p><p>The <strong>crontab (cron table) </strong>is the config file which is used to run the cron utility. Each user can have their own crontab to create, modify, and delete tasks. By default, these files do not exist but can be created in the /var/spool/cron directory using the <strong>crontab -e</strong> command. This command is also used to modify a cron file. If you are running the command for the first time, you will be asked to choose from the available editors</p><pre>no crontab for sk - using an empty one<br><br>Select an editor. To change later, run &#39;select-editor&#39;.<br> 1. /bin/nano &lt;---- easiest<br> 2. /usr/bin/vim.basic<br> 3. /usr/bin/vim.tiny<br><br>Choose 1-3 [1]:</pre><p>After choosing the editor, we can see the crontab file contents in the editor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EXCOXBsgZSxaK3fD8ZkM8w.png" /></figure><p>Once you exit the editor after saving, cron restarts to reflect any modifications. Each user (including root) has a crontab file. The cron daemon checks a user’s crontab file regardless of whether the user is actually logged into the system or not.</p><p>Each line of the crontab file represents a Job which looks like this:</p><pre># ┌─────────── minute (0 - 59)<br># │ ┌────────── hour (0 - 23)<br># │ │ ┌─────────── day of the month (1 - 31)<br># │ │ │ ┌────────── month (1 - 12)<br># │ │ │ │ ┌────────── day of the week (0 - 6) (Sunday to Saturday;<br># │ │ │ │ │                       7 is also Sunday on some systems)<br># │ │ │ │ │<br># │ │ │ │ │<br># * * * * * &lt;command to execute&gt;</pre><pre>0 5 * * 1 tar -zcf /var/backups/home.tgz /home/</pre><p>Each line has five date and time fields, followed by a command. The five time-and-date fields are as follows: minute (0–59), hour (0–23, 0 = midnight), day (1–31), month (1–12), weekday (0–6, 0 = Sunday). The example entry runs a backup of all your user accounts at 5 a.m every week.</p><pre>0 5 * * 1 tar -zcf /var/backups/home.tgz /home/</pre><p>For some people, it might be difficult to write these commands initially. No worries! There is a cool website <a href="https://crontab.guru/">crontab</a> guru which can be used to form the date and time fields of the cron schedule expressions. Below are a bunch of examples generated randomly from it —</p><pre>5 0 * 8 *           =&gt; At 00:05 in August<br>15 14 1 * *         =&gt; <em>At 14:15 on day-of-month 1<br></em>0 22 * * 1-5        =&gt; At 22:00 on every day-of-week from Monday       <br>                       through Friday.<br>23 0-20/2 * * *     =&gt; At minute 23 past every 2nd hour from 0<br>                       through 20</pre><p>To display the contents of the <strong>crontab</strong> file of the currently logged in user we can use the below command <strong>crontab -l</strong></p><p>Now that we know something about cron, let’s make a script to run. Since it is a Work From Home going on these days, we can make a script to help you get rid of one of your headache — Punching attendance! The steps I will discuss will not be specific to a particular portal but a general method which can be amended after analysing the req-res from the portal.</p><p>Let’s do it step by step:</p><ol><li>Visit your online attendance system, and punch in your attendance.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/531/1*lbu2pQQhnG_KYQeePsDrmg.png" /><figcaption>Dummy Check-In Page</figcaption></figure><p><strong>2.</strong> This check-in request has to be intercepted so that we can repeat that it whenever we want. For intercepting the request on your browser there are a number of options available like <strong>httptoolkit</strong>, <strong>postman</strong>, <strong>OWASP ZAP</strong>, <strong>burp</strong>, etc.<br>For replaying the request I will be using CURL, so I will convert the intercepted request into CURL command. Few Assumptions here:</p><ul><li>The session doesn&#39;t expire in a day.</li><li>An extra layer of protection is not present to the request in the form of session ID or OTP or Timestamp or nonce and MAC which will make the replay difficult.</li><li>We will have to use the same CSRF token until the session expires. Below is a dummy intercepted request. Depending on the platform you may have additional headers or data in the cookies and in the body of the request.</li></ul><pre>POST /xyz/punchin HTTP/1.1<br>Host: dummy.portal.com<br>Connection: Close<br>Content-Length: 123<br>Accept: */*<br>User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36<br>Content-Type: application/x-www-form-urlencoded; charset=UTF-8<br>Origin: https://dummy.portal.com<br>Referer: https://dummy.portal.com/xyz<br>Accept-Language: en-GB,en-US;q=0.9,en;q=0.8<br>Cookie: name=value; Expires=some_date; </pre><pre>action=clockin&amp;params=value&amp;path=abc&amp;location=efgh</pre><p><strong>3. </strong>We will convert this request into curl command.</p><pre>curl --location --request POST &#39;https://dummy.portal.com/xyz/punchin&#39; \<br>--header &#39;Host: dummy.portal.com&#39; \<br>--header &#39;Connection: close&#39; \<br>--header &#39;Content-Length: 123&#39; \<br>--header &#39;Accept: */*&#39; \<br>--header &#39;User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36&#39; \<br>--header &#39;Content-Type: application/x-www-form-urlencoded; charset=UTF-8&#39; \<br>--header &#39;Origin: https://dummy.portal.com&#39;\<br>--header &#39;Sec-Fetch-Site: same-origin&#39; \<br>--header &#39;Sec-Fetch-Mode: cors&#39; \<br>--header &#39;Referer: https://dummy.portal.com/xyz/&#39; \<br>--header &#39;Accept-Language: en-GB,en-US;q=0.9,en;q=0.8&#39; \<br>--header &#39;Cookie: name=value; Expires=some_date; \<br>--data-raw &#39;action=clockin&amp;params=value&amp;path=abc&amp;location=efgh&#39;</pre><p>Now if you run this command you can successfully punch in the attendance! But if the server returns an error then most probably there is an extra layer of protection which prevented the replay.</p><p><strong>4.</strong> So before we run it as a cron job we will have to make a script out of it. We will add some enhancements in the form of logs and considering other attendance situations (eg: ignoring weekends). Although we may not require this check for cron, because we can write an expression which ignores the weekends. But later in this article, I will tell you why I considered writing it. <br>To ignore the weekends we will add this command to the script. It will exit without executing further if the day is not a weekend (&gt;5):</p><pre>if [[ $(date +%u) -gt 5 ]]; then<br>    echo &#39;Sorry, you cannot run this program on the weekend.&#39;<br>    exit<br>fi</pre><p><strong>date + %u : </strong>returns the day of the week (1–7); 1 is Monday<br><strong>-gt: </strong>greater than comparator</p><p><strong>5. </strong>Below this, we will add the curl command with some extra options. You may add or remove options depending on your need. Options I have added:<br><strong>--silent: </strong>silent or quiet mode. mutes curl. Don’t show progress or error.<br><strong>-w “HTTPSTATUS:%{http_code}\n”: </strong>writes out the HTTP response status code. We will store the response of the curl command in a variable http_response.</p><p><strong>6.</strong> Now we will extract the body from http_response.<br>We will use the <strong>sed </strong>command which is a stream editor. The <strong>-E </strong>means ‘use extended regular expressions in the script’.</p><pre>http_body=$(echo $http_response | sed -E &#39;s/HTTPSTATUS\:[0-9]{3}$//&#39;)</pre><p><strong>7.</strong> After that, we will extract the http response code. <br><strong>tr: </strong>Translate, squeeze, and/or delete characters from standard input,<br>writing to standard output.<br><strong>-d ‘\n’: </strong>delete new line</p><pre>http_status=$(echo $http_response | tr -d &#39;\n&#39; | sed -E &#39;s/.*HTTPSTATUS:([0-9]{3})$/\1/&#39;)</pre><p><strong>8. </strong>Our next command will be to assign the current date to a variable. Then we will check if the response code was 200 or not. If it is 200, we will write success in our log file else log the error along with the body of the response.</p><pre>if [ $http_status != &quot;200&quot; ]<br>then<br> echo &quot;[${now}] Error in PUNCH IN: ${http_status} : ${http_body}&quot; &gt;&gt; logs.txt<br>else<br> echo &quot;[${now}] Success PUNCH IN: ${http_status} : ${http_body}&quot; &gt;&gt; logs.txt<br>fi</pre><p>The complete script is below -</p><pre><strong>#!/bin/bash</strong><br>if [[ $(date +%u) -gt 5 ]]; then<br>    echo &#39;Sorry, you cannot run this program on the weekend.&#39;<br>    exit<br>fi</pre><pre>http_response=$(curl --silent -w &quot;HTTPSTATUS:%{http_code}\n&quot; -X $&#39;POST&#39; \<br>-H $&#39;Host: dummy.portal.com&#39; \<br>-H $&#39;Connection: close&#39; \<br>-H $&#39;Content-Length: 123&#39; \<br>-H $&#39;Accept: */*&#39; \<br>-H $&#39;User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36&#39; \<br>-H $&#39;Content-Type: application/x-www-form-urlencoded; \<br>-H $&#39;Origin: https://dummy.portal.com&#39; \<br>-H $&#39;Referer: https://dummy.portal.com/xyz&#39; <br>-H $&#39;Accept-Language: en-GB,en-US;q=0.9,en;q=0.8&#39; \<br>-H $&#39;Cookie: name=value; Expires=some_date; \<br>--data-raw $&#39;action=clockin&amp;params=value&amp;path=abc&amp;location=efgh&#39; \    $&#39;https://dummy.portal.com/xyz/punchin&#39;)</pre><pre>http_body=$(echo $http_response | sed -E &#39;s/HTTPSTATUS\:[0-9]{3}$//&#39;)<br>http_status=$(echo $http_response | tr -d &#39;\n&#39; | sed -E &#39;s/.*HTTPSTATUS:([0-9]{3})$/\1/&#39;)<br>now=`date`<br>if [ $http_status != &quot;200&quot; ]<br>then<br> echo &quot;[${now}] Error in PUNCH IN: ${http_status} : ${http_body}&quot; &gt;&gt; logs.txt<br>else<br> echo &quot;[${now}] Success PUNCH IN: ${http_status} : ${http_body}&quot; &gt;&gt; logs.txt<br>fi</pre><p><strong>9.</strong> Now that our script is ready, we will save the file with <strong>.sh </strong>extension. We will make it executable by running the command <strong>chmod +x &lt;file_name&gt;<br>The similar process you have to follow to create a checkout script.</strong></p><p><strong>10. </strong>Add the cron job expression in crontab file. Open the crontab file: <strong>crontab -e</strong></p><pre>30 11 * * 1-5 bash path_to_file<br>30 21 * * 1-5 bash path_to_file<br> |  | | |  |__________________________ 5 days of the week (Mon-Fri)<br> |  | | |_____________________________ Every Month<br> |  | |_______________________________ Every day<br> |  |_________________________________ Hour<br> |____________________________________ Minute</pre><p>So here we have added two expressions. One for Check-In and another for another for Check-Out. Save the crontab file. Once we save it, we will get the message <strong>crontab: installing new crontab</strong>. If everything till here worked fine for you then, we have our cron jobs ready to execute at the specified time.<br>Now you can check your logs to see the request details.</p><pre>[Thu Jun 11 15:34:35 IST 2020] Success PUNCH IN: 200 : {&quot;data&quot;:{&quot;Id&quot;:&quot;34567876543&quot;,&quot;Location&quot;:&quot;MUMBAI&quot;,&quot;date&quot;:&quot;15-Jun-2020&quot;,&quot;ttime&quot;:&quot;14:50PM&quot;,............}</pre><p>Voila! You have automated your attendance!</p><p>Some points worth considering here — cron comes with its own limitation in this use-case if used on a personal Linux machine rather than server machine. The biggest drawback is that your system needs to be up and running for the job to execute at the specified time. While for some of us it may not be an issue, but still there is always a chance that the job may not run because the system was not up.<br>To overcome that we can use <strong>anacron! </strong>Anacron is used to execute commands periodically, with a frequency specified in days. Unlike cron, it does not assume that the machine is running continuously. So in case, the job was not executed, whenever next the system is running it will execute it after waiting the number of minutes specified in the delay field. Jobs for anacron are described in the file <strong><em>/etc/anacrontab.<br></em></strong>But<strong><em> </em></strong>the frequency of job execution can be specified only in days or as @daily, @weekly, or @monthly for once per day, week, or month. So now you can see why I had kept a check on the day of the week in our script. It will prevent the command from marking the attendance over the weekends.</p><p>But what if you want to punch your attendance without turning on your system? Well, then the obvious way would be to use a server machine and push all the script there. But running a server 24*7 would be too heavy for our pocket. So are there any other options? Yes! We can use Heroku. <a href="https://devcenter.heroku.com/articles/scheduler"><strong>Heroku Scheduler</strong></a> looks like a good option. <br>How I used Heroku in this scenario will be explained in my next blog. I used the Heroku free tier without using the Heroku Scheduler (since it asks you to add your credit card details)!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8f6fb21b2805" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A walk to remember — Nilachal Vedic Village]]></title>
            <link>https://servantoftheservant.medium.com/a-walk-to-remember-nilachal-vedic-village-c5961b56d?source=rss-8bdffec7dc82------2</link>
            <guid isPermaLink="false">https://medium.com/p/c5961b56d</guid>
            <category><![CDATA[cows]]></category>
            <category><![CDATA[happiness]]></category>
            <category><![CDATA[nature]]></category>
            <category><![CDATA[village]]></category>
            <dc:creator><![CDATA[Deepak Kumar]]></dc:creator>
            <pubDate>Sat, 23 May 2020 09:52:35 GMT</pubDate>
            <atom:updated>2021-12-07T10:12:00.335Z</atom:updated>
            <content:encoded><![CDATA[<h3>A walk to remember — Nilachal Vedic Village</h3><figure><img alt="Way to temple at NVV" src="https://cdn-images-1.medium.com/max/1024/1*f8MSQ555irQXlL1W1BpAoQ.png" /></figure><p><em>Feet were reaching the earth, not the dirty roads, lungs breathing fresh air and not the city smoke, tongue tasting the milk tinged with love and joy, ears celebrating the soothing sound of rain from the sky, while I was walking the path which was forgotten by.</em></p><p>In this world, only a mother’s love is considered closest to God’s love, and who doesn’t want to remain close to the mother? I am sure none. Two of our such mothers’ are mother earth and mother cow — both of them playing a central role in fulfilling the crucial needs of humans. But are we respecting or even recognising what these two mothers are doing for us? In the race of trying to become the cream of the society, ignorantly we are not only troubling people near us but also our these two mothers! Therefore, one must take out some time from his busy schedule and grab the opportunities for experiencing the love of mother earth and the cow. Maybe, then some light will shine in our hearts, and reform our consciousness.<br>Such an opportunity is available for all at <strong>Nilachal Vedic Village (NVV)</strong>. So I decided to visit this self-sustained eco-village and explore the offerings it has hidden for mankind.</p><p>We had reached the NVV on a Saturday morning amidst heavy rains. All throughout our way to NVV, we were worried that our trip might get ruined because of such an extreme shower. But to our surprise, we all loved that weather after reaching there. The drizzling, refreshing breeze, the petrichor, the vibrant green plants and trees, all seemed rejuvenated, removing our fatigue and pumping us with unusual energy. At this moment, I was thinking of how the same rainfall in Mumbai would have made me curse the consequent sickening situation. Clearly, it is not the rains to be blamed nor the people who live in the city. It is the ill desires and the activities deep-rooted inside all of us which has acclimatized us to live the intoxicated life. We all are looking for happiness and satisfaction in life, but coming to this place, I was very much sure that our quest for happiness will be futile because of what we have left behind.</p><blockquote>“In the heart that harbors the weed of selfish greed, the flowers of love cannot survive.” — The Journey Home</blockquote><p>Our host was Nataraj Gauranga Das, who has been living here for the past many years. He has seen this village grow from barren land to a beautiful community today. Let me first give you a tour of what you can discover at NVV.</p><blockquote>NVV is home to the Deities of <strong>Lord Jagannath, Baladeva</strong> and<strong> Subhadra</strong>, a <strong>natural farm</strong>, a purifying <strong>Gaushala</strong> with more than <strong>two hundred indigenous cows</strong> and a comfortable guest house with recreational swimming pool.</blockquote><p>Situated in the Talasari Taluka of Palghar district, Maharashtra, it is about two hours drive from Mumbai. This kind of self-sufficient and self-sustainable living system Vedic farm community will make you question the slumpy nature of today’s socio-economic and political structure.</p><blockquote>The NVV orchard and cow sanctuary at <strong>Umbergaon</strong> is full of fruit-bearing trees. It is situated along picturesque foothills with the vast blue Arabian Sea on the other side. This location is also known for its “<strong>Highway to Happy Way</strong>” project which cares for more than a hundred cows rescued from the streets and from being slaughtered.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WFJoqD89QdO30i_SnsSxtQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d__XZL6MTcjV6nYg8dAYLw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GlJPODvTCi6s4we3FgP0Ew.jpeg" /></figure><p><strong>Cows — </strong>Believe me, if you once visit the cows here, they will eternally find a place in your heart. More than 200 sensitive and loving indigenous (Gir) cows are being taken care of at Talasari, and another hundred or so cows are cared for under the “<strong>Slaughterhouse to Shelter house</strong>” project at Umbergaon. Based on my personal experience, these cows are so receptive that if you caress one of the cows, all of the others will surround you wanting that same love! Isn’t that amazing? Whatever these cows produce is useful to maintain the natural cycle, and therefore including the milk, cow urine, cow dung, etc. are converted into things of our daily use. All these outputs are not only organic but are also useful for you and the environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VlcmjiTALvoR2vTLglODUw.jpeg" /><figcaption>NVV Umbergaon</figcaption></figure><p>Some of the cow products made are cow-ark, cow urine tablet, ghee, cow-dung dhoop, butter, butter-milk, nasal-ghee, etc. On top of that, butter and ghee here are made from the pure milk of indigenous cows, which has a very high medicinal value.</p><p><strong>The Temple — </strong>Sri Sri Jagannath Baladeva Subhadra temple here is constructed in the traditional style with cow dung smeared floors and walls. The wall paintings are inspired by the local art form known as Warli. This tribal artwork offers the local people an opportunity to serve and earn while increasing the beauty and ethnicity of the walls. The temple opens early in the morning at 5.00 am with mangal-aarti up to 1.00 pm and again in the evening from 4.15 pm to 8.30 pm closing with the discourse on Bhagavad-Gita.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vLv-XknlD9KWgOY6U4m6PA.jpeg" /><figcaption>On the walls of the NVV temple, source: <a href="https://nilachalvedicvillage.com/nvv/village-style-temple">NVV</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-WGPYtGgrlSGCiPaARaBQA.jpeg" /></figure><p><strong>Farming — </strong><em>Vegetables, pulses, flowers, fruits and grains are grown without using chemical fertilisers or pesticides. Cow dung, cow-urine, slurry from the biogas plant, compost and other organic sources are used as manure and natural pesticides. 70% of the land is under cultivation. While there is no problem of water from July to January, drip irrigation techniques are used during other months.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*72RWkFs2LdzqAvgaXczn5Q.jpeg" /><figcaption>Fruits and Flowers at the NVV, source: <a href="https://nilachalvedicvillage.com/nvv/biodiversity">NVV</a></figcaption></figure><p><strong>Vedic Ashram — </strong>The residential facilities are divided into three categories:</p><p>Guesthouse — It was a pleasurable experience for everyone at the guesthouse which has over 15 rooms divided into dormitories, single bedrooms, double bedrooms, triple bedrooms, and a conference room. Both AC and non-AC rooms are available. A refreshing swimming pool adjoins the residential quarters which was thoroughly enjoyed by the kids 🏊🏻‍♂️.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6uxTuHEqaX0F0acgtNMOkA.png" /><figcaption>Guesthouse and the surrounding fields, source: <a href="https://nilachalvedicvillage.com/booking/book-now">NVV</a> and my camera</figcaption></figure><p>The on-campus Grihasthas (householders) and the Brahmacharis support the NVV, from running the temple to growing vegetables and flowers, from making mouth-watering cuisines to taking care of the cows. These are just some of the high-level responsibilities which you can see them doing, but there’s a lot more to their daily activities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PcjaOnjWy-_f406zNaoyWg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*29jG4uQdp5aNrst1UUvG0w.jpeg" /><figcaption>Way to the Ashram</figcaption></figure><p>Well, the overnight tour had a lot of activities for us in addition to visiting places inside the NVV mentioned above. If you happened to be part of the overnight trip, one of the first activities will be a seminar where you will know more about the different types of cows, their importance, their history in India, and what products you can make from what they produce. Next, after visiting the goshala, there will be a workshop to learn to make cow products like incense sticks and soaps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GlJPODvTCi6s4we3FgP0Ew.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s2AXn6TdLwEB8e4fhSf4Qg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kU0gliGzv3VqJO-lRISEMQ.jpeg" /><figcaption>Cow and cow products from the workshop, source: <a href="https://nilachalvedicvillage.com/nvv/holistic-cow-care">NVV</a> and my camera</figcaption></figure><p>We also had a seminar on life skills, which I would say will surely make you question your current city lifestyle. Then there is the Temple Darshan, where you can sit and participate in singing or hearing beautiful kirtans. From my personal experience, I would suggest the reader spend some time with the soulful kirtans. The peaceful, soothing music will undoubtedly attract your mind and give you if not an out-of-the-world experience, then at least out-of-the-city experience 😛.</p><p>The field tours will bring back your childhood countryside experiences if you happen to be from such parts of our country. The fields are full of vegetables and fruits like cabbage, ladyfingers, bitter gourd, papayas, bananas, Sapota, and many more. Also, there are a variety of flowers blossoming there, including roses, marigolds, and lotus. Fortunately, because of not being surrounded by high-rise buildings and city pollution, the sweet aroma of everything here level ups the experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6FPcaNFJbITENvsuP7Ie5Q.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2gtGY99X0h3leNK2LlXu0A.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DNwnqMtD5sS43bHfhVuELg.jpeg" /><figcaption>source: <a href="https://nilachalvedicvillage.com/nvv/natural-and-chemical-free-farming">NVV</a> and my camera</figcaption></figure><p>Reading this long, I am sure you must be hungry! No worries! We had an excellent breakfast as soon as we came to the NVV. The food you will eat during the tour is cooked using whatever is grown here. Since everything in the fields here is produced by organic farming, the taste of the meals will blow away your mind 🤯. Also, as you may have already guessed and must be expecting to taste the pure desi cow milk, it was given to us in the night. I am not sure as to how many of you might have tasted milk from an indigenous cow. It is not only much tastier but also healthier than the packaged ones. Another drink worth mentioning here is the herbal tea which was loved by everyone on this tour ☕.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*iIEqW7Qo3LMlBFbAJDGwBw.jpeg" /><figcaption>The food at NVV source: <a href="https://nilachalvedicvillage.com/nvv/healthy-dining">NVV</a></figcaption></figure><p>So now that you have come more than 100 km out of Mumbai, you can’t leave the opportunity to practice yoga which helps in controlling one’s mind, body, and soul. Chirping birds, cool breeze of air, drizzling weather, and lovely green lush countryside in the morning light, what else do you need? We had a pleasing experience with our expert, Mr. Rupesh, during the seminar, workshops, and yoga.</p><p>Another memorable experience I had was with the children of this community. They very easily mingled with our group, delighting us throughout the trip with their playful activities. Their eyes were filled with joy and hope, their minds loaded with lively thoughts, and their hearts permeated with gratitude, courage, and love for everyone. It is something which I fail to see in the conduct of the modern city kids, who are entirely encaptivated by technology. These kids have just a fraction of the facilities which the city boys enjoy, but still, nothing can take away the radiant smile of their brilliant faces.</p><blockquote>“The greatest problem in this world is hunger. Not hunger of the stomach but hunger of the heart. All over the world both rich and the poor are suffering. They are lonely, starving for love.” — The Journey Home</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vj-Ms-BbHpHaCzRCtqK5iw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*62nnjncgiA7Ijqu1aCFU1g.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HipdfIQtWdmB64yE8eQ2KA.jpeg" /><figcaption>Seminar, workshops and Yoga with Mr Rupesh</figcaption></figure><p>The next day was thrilling as we visited Umbergaon, the place where rescued and street cows are being taken care of. Umbergaon is located in a mountainous area with a uniform climate and is already a very popular tourist spot. Here you will find a tower, sitting where you can have a 360° degree view of the complete area and take photos like the one I clicked (third from left in the bottom). Each of the cows here has their own story of how from being roaming on the roads like a stray or being on the brink of getting slaughtered to receiving shelter at this place.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j2OaANLWanZkZmheR21R5w.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G84-ByY1LKQys-vNIUuavw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NzgKMzCC0pfc__5tiz0x5Q.jpeg" /></figure><p>The farm here has a wide variety of fruits which I have already mentioned earlier in this blog. Sadly, they were not ripened, so we couldn’t get a bite. Growing patiently, they will be ready sometime in the future.</p><p>The second day of our two-day tour went mostly at Umbergaon. As the sun was ready to fade below the horizon, behind the clouds, so were we to leave the NVV. Before leaving, we had a nice discussion with our host who took our feedback. Everyone shared their beautiful experiences on this tour. Our group consisted of people from all age groups, apparently having different sociocultural values. But, it was no surprise for me as to why we all had spent these two days unanimously just like a family. <strong>It was the result of love, not lust, compassion, not anger, wisdom, not fascination, gratitude, not greed, humility, not pride, and generosity, not envy towards each other and mother nature.</strong></p><p>In the end, after having the snacks, our host distributed gifts to everyone, and we boarded the bus. Leaving behind the place our memories were imbued with a scent of freshly turned soil, the love of the mother cows, and the happiness which seemed lost.</p><p>See you again, my little friend!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SFLfSHoSDsXPEtJHT4wx4g.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0kfvzOuT_dZIilUF-mNN0w.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CcsBh2ItZ6CvXO7PJX9RNQ.jpeg" /><figcaption>source: NVV and my camera</figcaption></figure><p>There’s a lot more to say about this place — the history, the struggles, the future, the life here, and many more things. But, let’s keep that for some other time until it is ready to move out of my hands.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c5961b56d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HackerEarth Cipher Combat WriteUp]]></title>
            <link>https://servantoftheservant.medium.com/hackerearth-cipher-combat-writeup-b08e6875f1b3?source=rss-8bdffec7dc82------2</link>
            <guid isPermaLink="false">https://medium.com/p/b08e6875f1b3</guid>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[hackerearth]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[ctf2019]]></category>
            <dc:creator><![CDATA[Deepak Kumar]]></dc:creator>
            <pubDate>Tue, 04 Jun 2019 06:50:41 GMT</pubDate>
            <atom:updated>2019-06-04T06:52:40.159Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fv_nUfY-6L70DTnMOFvLFA.png" /></figure><p>The challenges were removed after the contest, therefore this post only contains the solution. If someone has the challenges, please do comment below.</p><p>1. <strong>Infosec</strong> All were solved by doing some <strong>Google</strong> and <strong>Yandex</strong> search.</p><p>2. <strong>Generic</strong></p><ul><li>Are you a white hat, blackhat, or somewhere in between? Simple guess for gray_hat.</li><li>My X is Backtrack, guess whom am I with now. Backtrack re-released as Kali Linux.</li><li>History Lesson: Find the guy. Found easily by google search.</li></ul><p>3. <strong>Infrastructure</strong></p><p><strong>I</strong>. I am a domain hunter. I was out of tries for it while solving it. But I could solve it later. How to solve: We are given the domain <a href="http://0x10.info/"><strong>0x10.info</strong></a></p><ul><li>Goto <a href="http://viewdns.info/"><strong>viewdns.info</strong></a> -&gt; DNS record lookup -&gt; enter <a href="http://0x10.info/">0x10.info</a> -&gt; Click ‘GO’</li><li>One of the entries is:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/982/0*q4NElslh9R4NgAVn" /></figure><ul><li>Now we have to decode the data. It looks like hex encoded. So let’s decode it.</li><li>Data -&gt; hex decode, what we get can be easily seen as base64 encoded</li><li>Data -&gt; hex decode -&gt; base64 decode, again base 64 encoded</li><li>Data -&gt; hexdecode -&gt; base64 decode -&gt;base 64 decode -&gt; got this: <strong>yey_kung_fu_panda</strong></li></ul><p><strong>II. </strong>Well, this isn’t the end of the journey — wysiwyg. This was easy as the flag format is given. Got the domain where the gif was hosted</p><ul><li><a href="https://doll.0x10.info/wysinwyg.gif"><strong>https://doll.0x10.info/wysinwyg.gif</strong></a>, then</li><li>go to viewdns.info -&gt; DNS record lookup -&gt; enter doll.0x10.if0 -&gt; Click ‘GO’</li><li>We get the flag in one of the record:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/0*HHg-MQXuXM8jZ9dg" /></figure><p>4. <strong>Forensics</strong></p><p><strong>I.</strong> To human is to err. I read the text description of the people given, used a hint (food,person,food) and it was easy to guess the flag — <strong>lasagna</strong></p><p><strong>II.</strong> What’s in a Barcode? This was a good one. Steps:</p><ul><li>First I fixed the Aztec code by rotating it</li><li>uploaded to <a href="http://www.zxing.org/w/decode.jspx"><strong>www.zxing.org/w/decode.jspx</strong></a> to decode it</li><li>Found this<strong> M1 MORTY/RICK EH3A1C3KDFW*** AA 3992 102F035A0001 100</strong> -&gt; Destination was replaced with ***</li><li>checked the flight it was AA 3992 -&gt; googled to find it’s destination Cincinnati(<strong>CVG</strong>)</li></ul><p><strong>III.</strong> TIL: recovering meme. Steps:</p><ul><li>Used <strong>binwalk</strong> to find if some gif/image embedded in it</li><li>Found this on running it: GIF image data, version “89a”, 705 x 591</li><li>extracted it using the command: <strong>binwalk</strong> <strong>–dd=’.*’ corrupted_image.img</strong> ran the GIF to see for the black text-&gt; Found: <strong>Kuat</strong></li></ul><p><strong>IV.</strong> Mr Shadow and Ms SAM are not from same mother! Steps:</p><ul><li>Reversed the text txt.olleh%2FW380z%2Fhs.refsnart to get this: transfer.shF2%z083WF2%hello.txt</li><li>fixed to <a href="http://transfer.sh/z083W/hello.txt">transfer.sh/z083W/hello.txt </a>This came to be a shadow file where passwords are stored as hashes. Now comes the best part:</li><li>remove all entries except ubuntu, bob, root, tom, and alice</li><li>run the command: <strong>john</strong> hello.txt</li><li>within few minutes got all the passwords: <strong>ubuntu|bobpassword|cookie|marathon</strong></li></ul><p>5. <strong>Cryptography</strong></p><p><strong>I.</strong> GPG | PGP : what was that again? This was good one. Steps:</p><ul><li>reversed the key in rev-privkey.asc using linux command <strong>rev</strong></li><li>wrote a code to again reverse it bottom up</li><li>now we have our private key</li><li>import public key using command: <strong>gpg</strong> –import 0xF7F59104-pub.asc</li><li>import private key using: <strong>gpg</strong> –import fixedprivkey.asc</li><li>Guessing the passphrase took time but it came out to be <strong>rick.morty</strong></li><li>decrypt the gpg file using: gpg -d secret-for-rick.gpg</li><li>Got the data: <strong>thank god i found this: f_3sb__k][FB__t_vT</strong></li></ul><p>6. <strong>Cloud</strong></p><p><strong>I.</strong> Cloud and DNS are match made in heaven, really? The domain given is <a href="http://0x10.info/">0x10.info</a>. Let’s enumerate over to find subdomains using <strong>knockpy</strong>.</p><ul><li><strong>knockpy</strong> <a href="http://0x10.info/">0x10.info</a></li><li>within few minutes saw an ALIAS which matches the flag format <a href="http://cipher-combat.s3.amazonaws.com/"><strong>cipher-combat.s3.amazonaws.com</strong></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b08e6875f1b3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Virtual Machines]]></title>
            <link>https://servantoftheservant.medium.com/virtual-machines-d7f8eb642422?source=rss-8bdffec7dc82------2</link>
            <guid isPermaLink="false">https://medium.com/p/d7f8eb642422</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[vmware]]></category>
            <category><![CDATA[virtual-machine]]></category>
            <dc:creator><![CDATA[Deepak Kumar]]></dc:creator>
            <pubDate>Mon, 13 Aug 2018 16:51:33 GMT</pubDate>
            <atom:updated>2018-08-13T16:51:33.390Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*mAVFXUAbidofah6I" /></figure><p>VMware Workstation is a test-and-development environment that allows systems administrators to create and run virtual machines (VMs) directly on a desktop.<br>You can switch between some Operating System frequently while you are using that Operating System in VMware Workstation.</p><p>Prerequisites:<br>1.VMware Workstation whichyou can download from <a href="https://www.vmware.com/in/products/workstation/workstation-evaluation">here</a> or VMware Workstation Player from <a href="https://my.vmware.com/en/web/vmware/free#desktop_end_user_computing/vmware_workstation_player/12_0">here</a>.<br>2.Ubuntu that you can download from <a href="http://www.ubuntu.com/download/desktop">Ubuntu website</a>.</p><p>Following are the steps on how to install Ubuntu on VMware workstation.<br>1.Open VMware Workstation and click on “New Virtual Machine”.<br>2.Select “Typical (recommended)” and click “Next”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/0*gTBZaJaQMj8ZNGVi" /></figure><p>3.Select “I will install the operating system later.” and click Next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/0*gtmmBz5zy48vqSj-" /></figure><p>4.Select Linux as Guest Operating System and Version Ubuntu and click Next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/0*msxyDXENVEl6vAP-" /></figure><p>5.Choose a name and location for your Virtual Machine. Click Next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/0*V0fJPEtIQI7GzuPT" /></figure><p>6.Leave the maximum disk size to default (20GB) and select “Store Virtual disk as a single file”. Click Next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/0*HidSPUpl4AXQWocQ" /></figure><p>7. Click Finish.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/0*1X4OheNY5HIfppdc" /></figure><p>8. Now click on “Edit virtual machine settings”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WWoPfMDT6ZmNAiPp" /></figure><p>9. In the hardware section Browse for the Ubuntu ISO image file downloaded from Ubuntu website. Click OK.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/0*raSMboEx86T2sUxH" /></figure><p>10. Click on “Power on this virtual machine.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GO7vLHKof6cz-xJl" /></figure><p>11.Once it boots you can Try Ubuntu without install or Install Ubuntu according to your choice.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*6hZYEdwOFHsjpB4y" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*ND_IAKIPWq-W40Vs" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d7f8eb642422" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Slow PC/Laptop Startup? Here’s a trick !]]></title>
            <link>https://servantoftheservant.medium.com/slow-pc-laptop-startup-heres-a-trick-be3cf61bbfe5?source=rss-8bdffec7dc82------2</link>
            <guid isPermaLink="false">https://medium.com/p/be3cf61bbfe5</guid>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[speed-up]]></category>
            <dc:creator><![CDATA[Deepak Kumar]]></dc:creator>
            <pubDate>Mon, 13 Aug 2018 16:46:29 GMT</pubDate>
            <atom:updated>2018-08-13T16:47:04.854Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/450/0*OgDDtEP_dVjICEVC" /></figure><p>All of us must have surely faced the problem of slow startup of our Desktop/Laptop. There are many reasons behind it. In this post I will show you one of the easiest way to fasten up your PC startup in Microsoft Windows 7.</p><p><strong>Step 1</strong>: Click on Start Button.</p><p><strong>Step 2:</strong> Type “<strong>msconfig</strong>” in search without quotes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/335/0*6iv3RMM7e45CtPO_" /></figure><p><strong>Step 3:</strong> Give administrative password if it asks for.</p><p>System Configuration window opens.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/430/0*1e17gqWGRrLDyF93" /></figure><p><strong>Step 4:</strong> Now click on Services tab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/361/0*M8pybOOWcSFOKXft" /></figure><p><strong>Step 5:</strong> Uncheck carefully the services which you feel is slowing your startup.</p><p>Don’t uncheck services which have Microsoft in manufacturer column. Also Don’t uncheck your Anti-virus services.</p><p><strong>Step 6:</strong> Now click on Startup tab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/0*5oSELLfT6AzNYDKK" /></figure><p><strong>Note</strong>: In windows 8/8.1/10 the startup items are in the Task Manager itself.</p><p><strong>Step 7:</strong> Carefully uncheck the Startup items which you don’t want to start at the startup.</p><p>Depending upon the softwares you have installed the list might be different. Here are some common items which can be safely excluded from Startup Items(there may be more depending on the software installed on your system) :</p><ul><li>Adobe Reader and Acrobat Manager</li><li>Adobe Reader Speed Launcher</li><li>Adobe Updater Startup Utility</li><li>Adobe Bridge</li><li>Apple Push</li><li>CCleaner</li><li>Connectify Dispatch</li><li>Connectify Hotspot</li><li>Dropbox</li><li>Google Update</li><li>GoogleDriveSync</li><li>Groove Monitor</li><li>JAVA Platform SE Auto Updater</li><li>QuickTime</li></ul><p><strong>Step 8:</strong> Click on Apply and then on OK.</p><p><strong>Step 9:</strong> Click on Restart when it asks.</p><p>That’s it! You will surely see the difference in your startup time. I will be back with some more interesting tweaks and tricks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be3cf61bbfe5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>