<?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 Bina on Medium]]></title>
        <description><![CDATA[Stories by Bina on Medium]]></description>
        <link>https://medium.com/@binaabdulrahim?source=rss-f2e9ff8e4a6f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*LW8YMd16Ygs0x5tyG29CvA.jpeg</url>
            <title>Stories by Bina on Medium</title>
            <link>https://medium.com/@binaabdulrahim?source=rss-f2e9ff8e4a6f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 08:01:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@binaabdulrahim/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[Day 6 of THM’s Advent of Cyber 2023!]]></title>
            <link>https://medium.com/@binaabdulrahim/day-6-of-thms-advent-of-cyber-2023-bd26436e3989?source=rss-f2e9ff8e4a6f------2</link>
            <guid isPermaLink="false">https://medium.com/p/bd26436e3989</guid>
            <category><![CDATA[adventofcyber-4]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[thm]]></category>
            <dc:creator><![CDATA[Bina]]></dc:creator>
            <pubDate>Thu, 07 Dec 2023 04:54:39 GMT</pubDate>
            <atom:updated>2023-12-07T04:54:39.745Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_FocyuulkIH_jXEo" /><figcaption>Photo by <a href="https://unsplash.com/@davidogascon?utm_source=medium&amp;utm_medium=referral">David-Olivier Gascon</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The topics that we are going to learn for Day 6 are language-specific memory, variables, and buffer overflow.</p><p>Click on “start machine” and read through the sections.</p><blockquote><strong>The Game:</strong> Once you start the machine, there is a URL that you need to go to in order to play this game where you can collect coins. There is apparently a bug in this game where when you change the name of the character or player, the game starts to act up.</blockquote><h4><a href="https://tryhackme.com/room/adventofcyber2023"><strong>Memory Corruption:</strong></a></h4><ul><li>Random access memory or RAM is a volatile computer memory whose contents are quickly erased when the computer is shut down or restarted. RAM is quicker to retrieve data because it temporarily stores data while the computer is on. If you’re ever building your own computer, then you need to know that the amount of RAM in a system can significantly impact its overall performance.</li><li>Variable in any coding language means storing some value. Developers use variables to store and manipulate data.</li><li>Buffer overflow is a type of vulnerability where the program writes more data to the block of memory than it was allocated to hold. This excess data can overflow into adjacent memory, potentially overwriting important information, such as return addresses, function pointers, or other critical control data. Hackers can inject malicious code into the overflow data causing DoS attack, privilege escalation, or comprise of security in general.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qiuZeUf_mW4-o_F04eA5QQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M-WJrtBImS7MMT_mEjSRdw.png" /></figure><h4><a href="https://tryhackme.com/room/adventofcyber2023"><strong>Winning the Game:</strong></a></h4><ul><li>Basically, for this game, the character has to keep changing names, and each player changes names, and the player gets more coins = Buffer overflow.</li><li>The longer the name, the more coins. You have to buy a star and then go to Xmax Tree and press space, and that’s where you will find the flag!</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ae5JE6CpDhJtAydwn6MlYA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd26436e3989" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 5 of THM’s Advent of Cyber 2023!]]></title>
            <link>https://medium.com/@binaabdulrahim/day-5-of-thms-advent-of-cyber-2023-db8d66d221fc?source=rss-f2e9ff8e4a6f------2</link>
            <guid isPermaLink="false">https://medium.com/p/db8d66d221fc</guid>
            <category><![CDATA[hacker]]></category>
            <category><![CDATA[santa]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[adventofcyber-4]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Bina]]></dc:creator>
            <pubDate>Thu, 07 Dec 2023 01:00:12 GMT</pubDate>
            <atom:updated>2023-12-07T01:01:05.645Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZRCy7DNo9-Tw2sxA" /><figcaption>Photo by <a href="https://unsplash.com/@fluffmedia?utm_source=medium&amp;utm_medium=referral">Deidre Schlabs</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The topics that we are going to learn for Day 5 are DOS, which stands for disk operating systems, legacy systems, and file systems.</p><p>Click on “start machine” and read through the sections.</p><h4><a href="https://tryhackme.com/room/adventofcyber2023">Disk Operating System:</a></h4><ul><li>DOS, which stands for disk operating system, is a legacy OS that provides a command-line interface to manage files and execute programs.</li><li>Modern-day Windows systems still have a rebranded version of DOS, which includes file management, directory structures, and command prompts in addition to PowerShell.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*QzBikeqSNKFCcaDeAlt2PQ.png" /></figure><h4><a href="https://tryhackme.com/room/adventofcyber2023">File Signature aka Magic Bytes:</a></h4><ul><li>File signatures play a crucial role in file identification, allowing operating systems, applications, and utilities to interpret files correctly.</li><li>Usually, file signatures appear at the beginning of a file, and the signatures serve as identifiers that help computer systems and applications recognize the file type and format.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/1*PyuEmE3dWW48K0C1utz57w.png" /></figure><p>Answer the questions. Overall, this was not my favorite, but it was nice to do something different. Having DOS on Mac M1 is not friendly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wsHasrL9BGIVELdjjeEuXg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/1*QaiiX6hKr2WYb1DSNlDEsw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db8d66d221fc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 4 of THM’s Advent of Cyber 2023!]]></title>
            <link>https://medium.com/@binaabdulrahim/day-4-of-thms-advent-of-cyber-2023-b8e8fce05b3f?source=rss-f2e9ff8e4a6f------2</link>
            <guid isPermaLink="false">https://medium.com/p/b8e8fce05b3f</guid>
            <dc:creator><![CDATA[Bina]]></dc:creator>
            <pubDate>Tue, 05 Dec 2023 08:38:04 GMT</pubDate>
            <atom:updated>2023-12-05T08:38:04.339Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8UI5iVFjfgfqB1yK" /><figcaption>Photo by <a href="https://unsplash.com/@sincerelymedia?utm_source=medium&amp;utm_medium=referral">Sincerely Media</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The topics that we are going to learn for Day 4 are CeWL, a command-line tool used in penetration testing, and ethical hacking for generating custom wordlist.</p><p>Click on “start machine” and read through the sections.</p><h4><a href="https://tryhackme.com/room/adventofcyber2023">CeWL:</a></h4><ul><li>Customization: CeWL can be customized with specific parameters, and CeWL can generate a wordlist based on the parameters that were given.</li><li>Web Crawling: Usually, CeWL is used to curate a word list from the website’s content.</li><li>Brute Force: CeWL can compile a wordlist, email list, or username list, and that list can be used for brute force operations.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/663/1*n49ACF6FEx_-BIrw-uuSzw.png" /></figure><h4><a href="https://tryhackme.com/room/adventofcyber2023">CeWL Commands:</a></h4><ul><li>Open the terminal of choice and type the following: *sudo apt-get install cewl -y*</li><li>Check the CeWL options: *cewl -h*</li><li>Use this command to generate a wordlist from a site: <em>cewl http://&lt;IP address&gt; -w output.txt</em></li><li><em>-w output.txt:</em> to save the wordlist in a file</li><li>Try the practical challenge to get some experience with using CeWL outputs</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/663/1*6q7xHjBtIbnTnPg5qqQWfQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/1*CkgtAWQ4HLDzLMrhCyZFQA.png" /></figure><h4><a href="https://tryhackme.com/room/adventofcyber2023">Wfuzz:</a></h4><ul><li>Another brute force tool</li><li>This time we are using wfuzz plus the wordlist that CeWL generated for us in order to find the right username and password.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/1*2r_pyUymVsK06h_Uiw46Fg.png" /></figure><p>And that&#39;s it! Answer the questions, and done!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*0cgHFcgTVouPuFHf1QfGcQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b8e8fce05b3f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 3 of THM’s Advent of Cyber 2023!]]></title>
            <link>https://medium.com/@binaabdulrahim/day-3-of-thms-advent-of-cyber-2023-5a78c3676fcc?source=rss-f2e9ff8e4a6f------2</link>
            <guid isPermaLink="false">https://medium.com/p/5a78c3676fcc</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[christmasadventchallenge]]></category>
            <dc:creator><![CDATA[Bina]]></dc:creator>
            <pubDate>Mon, 04 Dec 2023 00:03:30 GMT</pubDate>
            <atom:updated>2023-12-04T00:03:30.605Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*siDfvJ93aFhSn7f1" /><figcaption>Photo by <a href="https://unsplash.com/@jeshoots?utm_source=medium&amp;utm_medium=referral">JESHOOTS.COM</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The topics that we are going to learn for <a href="https://tryhackme.com/room/adventofcyber2023">Day 3</a> are password complexity, brute force attacks, generating passwording using crunch, and trying out hydra.</p><p>Click on “start machine” and read through the sections.</p><h4>Password Complexity:</h4><ul><li>Authentication is a process of verifying an individual, system, or entity’s identity. This can be done through usernames and passwords, biometrics such as fingerprints, MFA such as security tokens, or single sign-on.</li><li>We learned about different password lengths that can give us the possible number of passwords.</li></ul><h4><a href="https://tryhackme.com/room/adventofcyber2023">Brute Force:</a></h4><ul><li>Brute force is a method of gaining unauthorized access to an account by trying every single possible combination of passwords.</li><li>The more you increase the complexity of the password, the longer it will take to break it.</li></ul><h4><a href="https://tryhackme.com/room/adventofcyber2023">Crunch:</a></h4><ul><li>Crunch is a command line tool that generates a wordlist.</li><li>Open the terminal and type this command: <a href="https://tryhackme.com/room/adventofcyber2023">crunch 3 3 0123456789ABCDEF -o 3digits.text</a></li><li>The first 3: minimum length to generate password</li><li>The second 3: maximum length to generate password</li><li>0123456789ABCDEF: all the characters we would like this password to have</li><li>-o: saves output</li><li>3digits.text: where we would like this output to be saved</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*aWJ75hknl-KT9Aq3xRMAIA.png" /></figure><h4><a href="https://tryhackme.com/room/adventofcyber2023">Hydra:</a></h4><ul><li>Hydra is another command line tool that is already in Kali Linux, and it is used to crack passwords.</li><li>Remember, use Hydra for brute-force attacks.</li><li>Once we obtain a list of generated passwords from using Crunch, The next step is to use Hydra to brute force this site for us without us manually trying each and every single password from the 3digits.txt file.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*adLJDzWjbfPMJq0dnXqHVg.png" /></figure><ul><li>Open the terminal and run the following command: <a href="https://tryhackme.com/room/adventofcyber2023"><em>hydra -l &#39;&#39; -P 3digits.txt -f -v 10.10.147.177 http-post-form &quot;/login.php:pin=^PASS^:Access denied&quot; -s 8000</em></a></li><li>-l: login</li><li>-P: Passing passwords from 3digits.txt file</li><li>-f: tells Hydra to stop after a password is found</li><li>-v: verbose output</li><li>10.10.147.177: IP address of the attack box or the target</li><li>HTTP-post-form: we found this by going to the target IP address, right-click, and view the page source to get this info.</li><li>/login.php: where the PIN code is submitted</li><li>pin=^PASS^: replaces Pass with values from the password list</li><li>Access denied: invalid password should have this text</li><li>-s: 8000: indicates the port number of our attack box</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/548/1*OYsjPYY1S6U7ja0PvZDnjg.png" /></figure><ul><li>Once Hydra finds the password, go back to the site and plug that password to get the flag for the questions.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*obN2GTfpsoBnrln3QvAFkw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5a78c3676fcc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 2 of THM’s Advent of Cyber 2023!]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@binaabdulrahim/day-2-of-thms-advent-of-cyber-2023-e7e2e65d8162?source=rss-f2e9ff8e4a6f------2"><img src="https://cdn-images-1.medium.com/max/2600/0*1B86AdMd7-h_obw5" width="4392"></a></p><p class="medium-feed-snippet">For Day 2, we are learning how to use data science in cybersecurity, an intro to Python and networking, and learning to use Juptyper&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@binaabdulrahim/day-2-of-thms-advent-of-cyber-2023-e7e2e65d8162?source=rss-f2e9ff8e4a6f------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@binaabdulrahim/day-2-of-thms-advent-of-cyber-2023-e7e2e65d8162?source=rss-f2e9ff8e4a6f------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7e2e65d8162</guid>
            <category><![CDATA[techn]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[christmas]]></category>
            <dc:creator><![CDATA[Bina]]></dc:creator>
            <pubDate>Sun, 03 Dec 2023 00:37:20 GMT</pubDate>
            <atom:updated>2023-12-03T00:43:09.540Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Day 1 of TryHackMe’s Advent of Cyber 2023]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@binaabdulrahim/tryhackmes-advent-of-cyber-2023-997d9a54db26?source=rss-f2e9ff8e4a6f------2"><img src="https://cdn-images-1.medium.com/max/2600/0*VqdZqniw3op5CGhV" width="3432"></a></p><p class="medium-feed-snippet">THM&#x2019;s 24 Days of Cybersecurity Challenges with prices and rewards.</p><p class="medium-feed-link"><a href="https://medium.com/@binaabdulrahim/tryhackmes-advent-of-cyber-2023-997d9a54db26?source=rss-f2e9ff8e4a6f------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@binaabdulrahim/tryhackmes-advent-of-cyber-2023-997d9a54db26?source=rss-f2e9ff8e4a6f------2</link>
            <guid isPermaLink="false">https://medium.com/p/997d9a54db26</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[christmas]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Bina]]></dc:creator>
            <pubDate>Sat, 02 Dec 2023 00:16:37 GMT</pubDate>
            <atom:updated>2023-12-03T00:41:44.022Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Learn about GEN AI]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://faun.pub/gen-ai-via-google-cloud-skills-boost-03200cd97542?source=rss-f2e9ff8e4a6f------2"><img src="https://cdn-images-1.medium.com/max/2600/0*JTWfcUHvXP1hXqLE" width="6316"></a></p><p class="medium-feed-snippet">Gen AI has been making some noises for the past few weeks. As I searched around Google trying to find a course that I don&#x2019;t have to pay a&#x2026;</p><p class="medium-feed-link"><a href="https://faun.pub/gen-ai-via-google-cloud-skills-boost-03200cd97542?source=rss-f2e9ff8e4a6f------2">Continue reading on FAUN.dev()  »</a></p></div>]]></description>
            <link>https://faun.pub/gen-ai-via-google-cloud-skills-boost-03200cd97542?source=rss-f2e9ff8e4a6f------2</link>
            <guid isPermaLink="false">https://medium.com/p/03200cd97542</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Bina]]></dc:creator>
            <pubDate>Mon, 27 Nov 2023 06:15:16 GMT</pubDate>
            <atom:updated>2023-12-06T18:02:25.498Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[ReWork]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@binaabdulrahim/rework-64cb79ccf621?source=rss-f2e9ff8e4a6f------2"><img src="https://cdn-images-1.medium.com/max/2600/0*Wk-cQhaCEPFpNAHO" width="3456"></a></p><p class="medium-feed-snippet">I&#x2019;m Bina and my recent obsession is listening to audiobooks via Audible. Here is my review of ReWork by Jason Fried and David Heinemeier&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@binaabdulrahim/rework-64cb79ccf621?source=rss-f2e9ff8e4a6f------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@binaabdulrahim/rework-64cb79ccf621?source=rss-f2e9ff8e4a6f------2</link>
            <guid isPermaLink="false">https://medium.com/p/64cb79ccf621</guid>
            <category><![CDATA[books]]></category>
            <category><![CDATA[book-review]]></category>
            <category><![CDATA[book-recommendations]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Bina]]></dc:creator>
            <pubDate>Mon, 27 Nov 2023 05:48:31 GMT</pubDate>
            <atom:updated>2023-11-27T05:48:31.910Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Creating a GCP VM Instance]]></title>
            <link>https://medium.com/@binaabdulrahim/creating-a-gcp-vm-instance-6798f5498f09?source=rss-f2e9ff8e4a6f------2</link>
            <guid isPermaLink="false">https://medium.com/p/6798f5498f09</guid>
            <category><![CDATA[women-in-tech]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[gcp]]></category>
            <dc:creator><![CDATA[Bina]]></dc:creator>
            <pubDate>Sun, 26 Feb 2023 18:01:19 GMT</pubDate>
            <atom:updated>2023-02-26T18:01:49.455Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MYin8_-Vbsaeo3Br" /><figcaption>Photo by <a href="https://unsplash.com/@wasdrew?utm_source=medium&amp;utm_medium=referral">Andras Vas</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><em>This is in relation to </em><a href="https://cloud.google.com/blog/topics/training-certifications/discover-the-google-cloud-skills-boost-annual-subscription-benefits"><em>Google Cloud Skills Boost</em></a><em>, which is an online course and skill development for the Google Cloud Platform.</em></p><p><strong>Overview:</strong></p><p><strong>Compute Engine:</strong> GCP’s Compute Engine is a high-performance, scalable virtual machine (VM) service that enables users to launch and manage virtual machines on Google’s infrastructure. Users can choose from a variety of operating systems and software images, or create their own custom images, to run on these VMs. In addition to that, Compute Engine also offers features such as load balancing, auto-scaling, and managed instance groups to help ensure high availability and efficient utilization of resources.</p><ul><li>Compute engines are hosted in a zone.</li><li>A<strong> region</strong> is a collection of three or more zones, and it’s an independent geo area.</li><li>A<strong> zone</strong> is the smallest entity. A zone is a deployment area for GCP resources. <a href="https://cloud.google.com/compute/docs/regions-zones">For example, the </a><a href="https://cloud.google.com/compute/docs/regions-zones">us-west1 region denotes a region on the west coast of the United States that has three zones: </a><a href="https://cloud.google.com/compute/docs/regions-zones">us-west1-a, </a><a href="https://cloud.google.com/compute/docs/regions-zones">us-west1-b, and </a><a href="https://cloud.google.com/compute/docs/regions-zones">us-west1-c.</a></li><li>A<strong> zone</strong> is a single failure domain within a region, and a <strong>region</strong> is used for fault tolerance and high availability.</li></ul><p><strong><em>Important:</em></strong><em> To attach a persistent disk to a virtual machine instance, both resources must be in the same zone.</em></p><p><strong>Gcloud:</strong> Gcloud is a command-line interface tool for managing and interacting with resources and services on GCP. It can be used to create and manage virtual machines, deploy and scale applications, configure network settings, and interact with data storage services. With gcloud, one can manage resources across multiple cloud providers or on-premises data centers from a single command-line interface.</p><p><strong>Nginx: </strong>An open-source web server and reverse proxy server that is designed to handle high traffic and concurrent connections. Nginx is used mostly for serving static content, load balancing, and as a proxy server for dynamic web applications because it has a low memory footprint, high performance, and the ability to handle thousands of connections simultaneously.</p><p><strong>Lab:</strong> In this lab, learn the process of activating gcloud, creating VM instances using both the console and command line, and establishing an SSH connection to Nginx from a VM.</p><p><strong>Prerequisites:</strong></p><ul><li>GCP Account with 2 IAM Users.</li><li>Basic understanding of IAM roles, users, and permissions.</li></ul><h4><strong>Step 1: Activate Cloud Shell</strong></h4><ul><li>Once you’re logged into the GCP console, activate gcloud.</li><li>List the active account name using this command and then click “authorize.”</li></ul><pre>gcloud auth list</pre><ul><li>Then list the project ID with this command:</li></ul><pre>gcloud config list project</pre><h4><strong>Step 2: Create a VM on GCP Console</strong></h4><ul><li>First, navigate to Compute Engineer → VM Instance → Create Instance. Fill in the parameters.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/1*7-lNQ1tB82cByt1R0YuwKA.png" /></figure><ul><li>Make sure to select “allow HTTP traffic” as this allows us to access Nginx via SSH. In other words, this selection will create a firewall rule to allow HTTP traffic on port 80.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*PvWquyaa3plLtx_WGnPeCg.png" /></figure><ul><li>Scroll down and click “create.” Then you should see the new VM listed under the VM Instance.</li><li>Then click on “SSH,” which launches a new window.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*hEBaqAKN44Jxgr00I7wezA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/721/1*3s4g15PqRf4Nncd643dmtA.png" /></figure><h4>Step 3: Install and connect to Nginx</h4><ul><li>Run this command to update the Operating System (OS:</li><li><strong>“sudo”</strong> stands for “superuser do,” and it is used to run the following command with administrative privileges.</li><li><strong>“apt-get”</strong> is a package manager command-line tool used to manage and install packages on Debian-based operating systems such as Ubuntu.</li><li><strong>“update”</strong> is an apt-get command that downloads the latest package lists from the software repositories defined in the system’s sources.list file.</li></ul><pre> sudo apt-get update</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/530/1*YFG8oTCc9LnulaIY_8j5cg.png" /></figure><ul><li>Then install Nginx by running this command:</li><li><strong>“install”</strong> is used to install a package.</li><li><strong>“-y”</strong> option is used to automatically answer “yes” to any prompt.</li><li><strong>“nginx” </strong>is the name of the package that will be installed.</li></ul><pre> sudo apt-get install -y nginx</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/1*GVEpoWMZYubsbeYaRdBqFw.png" /></figure><ul><li>Confirm that the web server (Nginx) is running by using this command:</li><li><strong>“ps auwx”</strong> displays information about all the running processes on the system.</li><li><strong>“grep”</strong> is a command that searches for the word <strong>“nginx”</strong> in the output.</li></ul><pre> ps auwx | grep nginx</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/693/1*mZ_VOVL611nb5D-70hFHHg.png" /></figure><ul><li>Return to the console, click on “External IP.”</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*E_B7tO3nDUfZukge-UuOJg.png" /></figure><ul><li>Nginx page should look like this:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0P9CwcxBpsDUO9ogb8H3RQ.png" /></figure><h4>Step 4: Create a VM using gcloud</h4><ul><li>Using the gcloud command line, run this command to create a new VM.</li><li><strong>“compute instances create”</strong> is to create a VM instance.</li><li><strong>“gcelab2”</strong> is the name of the new VM instance. Replaceable.</li><li><strong>“ — machine-type”</strong> specifies the machine type for the new instance.</li><li><strong>“ — zone”</strong> specifies the zone in which the new instance will be created.</li></ul><pre>     gcloud compute instances create gcelab2 --machine-type e2-medium --zone </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/289/1*sqQMCY0xhN4xB_g-Q5VPYQ.png" /></figure><ul><li>Now, ssh to the newly created VM using the following command and type “Y” to continue:</li></ul><pre>     gcloud compute ssh gcelab2 --zone  </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*7ByuCi48mWd-IfTtMbT2sw.png" /></figure><ul><li>Type “exit” to exit out of the shell.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*xnH7R8Mk5GwY1VxWpbHIVQ.png" /></figure><p><strong>Summary:</strong> By doing this lab, I learned to create a VM instance via the console and gcloud command line. In addition to that, I was able to understand that compute engine is a resource that lives in a zone.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6798f5498f09" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GCP IAM Configuration]]></title>
            <link>https://faun.pub/gcp-iam-configuration-bb63f8922054?source=rss-f2e9ff8e4a6f------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb63f8922054</guid>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[gcp]]></category>
            <dc:creator><![CDATA[Bina]]></dc:creator>
            <pubDate>Sat, 25 Feb 2023 16:37:34 GMT</pubDate>
            <atom:updated>2023-02-26T20:31:16.838Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bsr-YyVOuhEMBVI_" /><figcaption>Photo by <a href="https://unsplash.com/es/@mitchel3uo?utm_source=medium&amp;utm_medium=referral">Mitchell Luo</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Learn to configure IAM to grant and create roles.</p><h4><strong>Overview:</strong></h4><p><strong>Cloud IAM: </strong>manage access control by defining who has what access for which resources. Using Cloud IAM, you grant users roles that have one or more permissions meaning users get access depending on the groups and roles that they’re in. Cloud IAM comes in two forms: Predefined role or custom role.</p><ul><li><strong>Predefined roles: </strong>only<strong> </strong>Google creates and maintains these roles, which are updated automatically as needed to reflect changes such as the addition of new features or services to Google Cloud.</li><li><strong>Custom Roles: </strong>this type of role is only<strong> </strong>created by users and enables them to group together one or more supported permissions according to their particular requirements. Custom roles are not maintained by Google. To create a custom role, users can combine any of the available Cloud IAM permissions, which allow specific actions to be carried out on Google Cloud resources. A custom role can be created at the organizational level or at the project level. Custom roles are used to enforce the minimal privilege meaning giving users and service accounts the permission required to perform their duties within their job function.</li></ul><p><strong>Cloud Identity: </strong>also known as <strong>Identity as a Service (IDaaS)</strong>, which centrally manages users and groups. It is tied to a domain name that manages all users from Google Admin Console. Use cases for Cloud Identity are:</p><ul><li>Cloud-based directory</li><li>Authenticate (SSO) + Authorization</li><li>User lifecycle management</li><li>MFA + endpoint management</li></ul><p><strong>Lab:</strong> In this lab, learn to create, delete, update, and undelete Cloud IAM custom roles.</p><p><strong>Prerequisites:</strong></p><ul><li>GCP Account with 2 IAM Users.</li><li>Basic understanding of IAM roles, users, and permissions.</li></ul><p><strong>Step 1: Activate Cloud Shell</strong></p><ul><li>Login to the GCP console</li><li>Activate cloud shell.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/151/1*6byoFE_MRdDI_rzRHZ2BvQ.png" /></figure><ul><li>Once it’s activated, run the below command to list the active account name. Click “authorized” to get an output.</li></ul><pre>gcloud auth list</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*Nr6hN7xOeeC_I8cQZ3KbSA.png" /></figure><ul><li>Next, run this command to list the project ID.</li></ul><pre>gcloud config list project</pre><ul><li>View a resource’s current permission by using this command:</li></ul><pre>gcloud iam list-testable-permissions //cloudresourcemanager.googleapis.com/projects/$DEVSHELL_PROJECT_ID</pre><p>→ <strong>$DEVSHELL_PROJECT_ID</strong> is an environment variable that holds the unique identifier of the current Google Cloud project in the Cloud Shell environment. The value of this variable can be accessed and used within scripts or commands running in Cloud Shell to refer to the current project. <em>You can easily replace this with your GCP project ID.</em></p><ul><li>Review the metadata for the role by running the following command and replacing [ROLE_NAME] with either roles/viewer or roles/editor or any role of choice.</li></ul><pre>gcloud iam roles describe [ROLE_NAME]</pre><ul><li>To view grantable roles for a specific resource, run the following command, which lists all of the roles that can be applied to a resource.</li></ul><pre>gcloud iam list-grantable-roles //cloudresourcemanager.googleapis.com/projects/$DEVSHELL_PROJECT_ID</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/368/1*WENu2kskgUAY6NpLQDVnMg.png" /></figure><h4>Step 2: Create a custom role using the YAML file</h4><ul><li>In order to create a custom role, one must have iam.roles.create permission. Usually, only the owners of the project or organization have this permission. Users with the following role can also create a custom role as well: the Organization Role Administrator role, or the IAM Role Administrator role.</li><li>Run the following command to create a role-definition.yaml file, then edit.</li></ul><pre>vim role-definition.yaml</pre><ul><li>Make sure the file is structured this way with your choice of role and permissions. Save the file.</li></ul><pre>title: &quot;Role Editor&quot;<br>description: &quot;Edit access for App Versions&quot;<br>stage: &quot;ALPHA&quot;<br>includedPermissions:<br>- appengine.versions.create<br>- appengine.versions.delete</pre><ul><li>Run this command to create the role&gt;</li></ul><pre>gcloud iam roles create editor --project $DEVSHELL_PROJECT_ID \<br>--file role-definition.yaml</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/452/1*f6ogUeeLBzCou70BHoE5ig.png" /></figure><ul><li>List the custom role that we just created by running the following command:</li></ul><pre>gcloud iam roles list --project $DEVSHELL_PROJECT_ID</pre><h4>Step 3: Update the existing custom role</h4><ul><li>By utilizing an <strong>etag</strong> property within custom roles, Cloud IAM provides a solution to this issue. The etag property serves as a means to confirm whether or not a custom role has been modified since the previous request. Whenever a request to Cloud IAM is made with an etag value, the service will compare the etag value in the request with the etag value already linked to the custom role. In cases where the etag values match, any updates will be written.</li><li>Create a new YAML file with the following outputs, save, and exit the vim.</li></ul><pre>vim new-role-definition.yaml</pre><pre>description: Edit access for App Versions<br>etag: BwVxIAbRq_I=<br>includedPermissions:<br>- appengine.versions.create<br>- appengine.versions.delete<br>- storage.buckets.get<br>- storage.buckets.list<br>name: projects/[PROJECT_ID]/roles/editor<br>stage: ALPHA<br>title: Role Editor</pre><ul><li>Using the update command to update the role by running the following command:</li><li>Make sure to replace the “role-id” with “editor”</li></ul><pre>gcloud iam roles update [ROLE_ID] --project $DEVSHELL_PROJECT_ID \<br>--file new-role-definition.yaml</pre><ul><li>To delete a custom role called “viewer,” use the following command:</li><li>Replaced the “viewer” role with the role of choice.</li></ul><pre>gcloud iam roles delete viewer --project $DEVSHELL_PROJECT_ID</pre><ul><li>Undeleting the “viewer” role using the following command:</li></ul><pre>gcloud iam roles undelete viewer --project $DEVSHELL_PROJECT_ID</pre><p>In all, I’m new to GCP, and I figured that I can easily learn some IAM information if I do a hands-on lab. This lab is a very simple way to learn some basic command lines as well the some GCP IAM information. Furthermore, if you want to learn more gcloud CLI command, then go to this page: <a href="https://cloud.google.com/sdk/gcloud"><strong>glcoud cli.</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*1icm1kC-ePHTNs-I.png" /></figure><h4>👋 If you find this helpful, please click the clap 👏 button below a few times to show your support for the author 👇</h4><h4>🚀<a href="http://from.faun.to/r/8zxxd">Join FAUN Developer Community &amp; Get Similar Stories in your Inbox Each Week</a></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb63f8922054" width="1" height="1" alt=""><hr><p><a href="https://faun.pub/gcp-iam-configuration-bb63f8922054">GCP IAM Configuration</a> was originally published in <a href="https://faun.pub/">FAUN.dev() 🐾</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>