<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Chimeziri Iwuoha on Medium]]></title>
        <description><![CDATA[Stories by Chimeziri Iwuoha on Medium]]></description>
        <link>https://medium.com/@chimeziriiwuoha?source=rss-5b1296e9017b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*_0kCBRzdV8_Ey_0ZE_BRVA.png</url>
            <title>Stories by Chimeziri Iwuoha on Medium</title>
            <link>https://medium.com/@chimeziriiwuoha?source=rss-5b1296e9017b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 21:00:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@chimeziriiwuoha/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Active Directory Basics]]></title>
            <link>https://medium.com/@chimeziriiwuoha/active-directory-basics-c41f16380968?source=rss-5b1296e9017b------2</link>
            <guid isPermaLink="false">https://medium.com/p/c41f16380968</guid>
            <dc:creator><![CDATA[Chimeziri Iwuoha]]></dc:creator>
            <pubDate>Wed, 31 Jul 2024 23:03:35 GMT</pubDate>
            <atom:updated>2024-07-31T23:03:35.856Z</atom:updated>
            <content:encoded><![CDATA[<h3>Task 1: Introduction</h3><p>Q1: No answer needed</p><h3>Task 2: Windows Domains</h3><p>Q1: In a Windows domain, credentials are stored in a centralised repository called?</p><p>Ans: Active Directory</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6QZ6nRN4TkoRqaXb-_z4TQ.png" /></figure><p>Q2: The server in charge of running the Active Directory services is called?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9tRnyq0uf1Eqr8CR1zTjDQ.png" /></figure><p>Ans: Domain Controller</p><h3>Task 3: Active Directory</h3><p>Q1: Which group normally administrates all computers and resources in a domain?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oEod5jPTbF0m4vzTiRL1JA.png" /></figure><p>Ans: Domain Admins</p><p>Q2: What would be the name of the machine account associated with a machine named TOM-PC?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/435/1*cplSj5WTG_QOik9cPt3KXA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VunmGuPaFjoWBAZLBj1ErA.png" /></figure><p>Ans: TOM-PC$</p><p>Q3: Suppose our company creates a new department for Quality Assurance. What type of containers should we use to group all Quality Assurance users so that policies can be applied consistently to them?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2fnnTiqPuQbdJ1zoCfsAqA.png" /></figure><p>Ans: Organizational Unit</p><h3>Task 4: Managing Users in AD</h3><p>Q1: What was the flag found on Sophie’s desktop?</p><p>Ans: THM{thanks_for_contacting_support}</p><p>Q2: The process of granting privileges to a user over some OU or other AD Object is called…</p><p>Ans: delegation</p><h3>Task 5: Managing Computers in AD</h3><p>Q1: After organising the available computers, how many ended up in the Workstations OU?</p><p>Ans: 7</p><p>Q2: Is it recommendable to create separate OUs for Servers and Workstations? (yay/nay)</p><p>Ans: yay</p><h3>Task 6: Group Policies</h3><p>Q1: What is the name of the network share used to distribute GPOs to domain machines?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hx_oVIGNK1F11P32AKbXIQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n6RTDTNMAgrdQ7ngc0sSyA.png" /></figure><p>Ans: SYSVOL</p><p>Q2: Can a GPO be used to apply settings to users and computers? (yay/nay)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ymK6gnLwRQ2i2S4Lk-q2IA.png" /></figure><p>Ans: yay</p><h3>Task 7: Authentication Methods</h3><p>Q1: Will a current version of Windows use NetNTLM as the preferred authentication protocol by default? (yay/nay)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZI6V6-VR2p_zrg5r6kq76g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/937/1*d5G7Nde7oQPeBhtaZ7LSCA.png" /></figure><p>Ans: Nay</p><p>Q2: When referring to Kerberos, what type of ticket allows us to request further tickets known as TGS?</p><p>Ans: Ticket Granting Ticket</p><p>Q3: When using NetNTLM, is a user’s password transmitted over the network at any point? (yay/nay)</p><p>Ans: Nay</p><h3>Task 8: Trees, Forests and Trusts</h3><p>Q1: What is a group of Windows domains that share the same namespace called?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AyQbnHCRasPe9N189E2y6w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/1*I37GcI1WXrUEJypcPy-wHQ.png" /></figure><p>Ans: tree</p><p>Q2: What should be configured between two domains for a user in Domain A to access a resource in Domain B?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3s_oVDtYmT5dAXIOV-Qjvg.png" /></figure><p>Ans: a trust relationship</p><h3>Task 9: Conclusion</h3><p>Q1: Click and continue learning! — No answer needed.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c41f16380968" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Encryption — Crypto 101]]></title>
            <link>https://medium.com/@chimeziriiwuoha/encryption-crypto-101-8e65403a0bb5?source=rss-5b1296e9017b------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e65403a0bb5</guid>
            <dc:creator><![CDATA[Chimeziri Iwuoha]]></dc:creator>
            <pubDate>Sun, 09 Jun 2024 22:53:45 GMT</pubDate>
            <atom:updated>2024-06-09T22:53:45.832Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Encryption — Crypto 101</strong></p><p>An introduction to encryption, as part of a series on crypto</p><p><strong>Task 1: This room will cover:</strong></p><p>Why cryptography matters for security and CTFs</p><p>The two main classes of cryptography and their uses RSA, and some of the uses of RSA 2 methods of Key Exchange Notes about the future of encryption with the rise of Quantum Computing</p><p>Note: This room expects some familiarity with tools, and some research into how to use them yourself!</p><p>I’m ready to learn about encryption</p><p><strong>ANS: </strong><em>No answer needed</em></p><p><strong>Task 2: Key Terms</strong></p><p>Many of these key terms are shared with https://tryhackme.com/room/hashingcrypto101, so you might be able to skip over some if you’re already familiar.</p><p><strong>Ciphertext</strong> — The result of encrypting a plaintext, encrypted data</p><p><strong>Cipher</strong> — A method of encrypting or decrypting data. Modern ciphers are cryptographic, but there are many non cryptographic ciphers like Caesar.</p><p><strong>Plaintext</strong> — Data before encryption, often text but not always. Could be a photograph or other file</p><p><strong>Encryption</strong> — Transforming data into ciphertext, using a cipher.</p><p><strong>Encoding</strong> — NOT a form of encryption, just a form of data representation like base64. Immediately reversible.</p><p><strong>Key</strong> — Some information that is needed to correctly decrypt the ciphertext and obtain the plaintext.</p><p><strong>Passphrase </strong>— Separate to the key, a passphrase is similar to a password and used to protect a key.</p><p><strong>Asymmetric encryption</strong> — Uses different keys to encrypt and decrypt.</p><p><strong>Symmetric encryption</strong> — Uses the same key to encrypt and decrypt</p><p><strong>Brute force</strong> — Attacking cryptography by trying every different password or every different key</p><p><strong>Cryptanalysis</strong> — Attacking cryptography by finding a weakness in the underlying maths</p><p><strong>Alice and Bob</strong> — Used to represent 2 people who generally want to communicate. They’re named Alice and Bob because this gives them the initials A and B. https://en.wikipedia.org/wiki/Alice_and_Bob for more information, as these extend through the alphabet to represent many different people involved in communication.</p><p><strong>WARNING:</strong> This room is very theory heavy. Cryptography is a big topic, and this room is designed to just scratch the surface.</p><p>Answer the questions below</p><p>Q1: I agree not to complain too much about how theory heavy this room is.</p><p><strong>ANS: </strong><em>No answer needed</em></p><p>Q2: Are SSH keys protected with a passphrase or a password?</p><p><strong>ANS: </strong><em>passphrase</em></p><p><strong>Task 3: Why is Encryption important?</strong></p><p>Cryptography is used to protect confidentiality, ensure integrity, ensure authenticity. You use cryptography every day most likely, and you’re almost certainly reading this now over an encrypted connection.</p><p>When logging into TryHackMe, your credentials were sent to the server. These were encrypted, otherwise someone would be able to capture them by snooping on your connection.</p><p>When you connect to SSH, your client and the server establish an encrypted tunnel so that no one can snoop on your session.</p><p>When you connect to your bank, there’s a certificate that uses cryptography to prove that it is actually your bank rather than a hacker.</p><p>When you download a file, how do you check if it downloaded right? You can use cryptography here to verify a checksum of the data.</p><p>You rarely have to interact directly with cryptography, but it silently protects almost everything you do digitally.</p><p>Whenever sensitive user data needs to be stored, it should be encrypted. Standards like PCI-DSS state that the data should be encrypted both at rest (in storage) AND while being transmitted. If you’re handling payment card details, you need to comply with these PCI regulations. Medical data has similar standards. With legislation like GDPR and California’s data protection, data breaches are extremely costly and dangerous to you as either a consumer or a business.</p><p><strong>DO NOT</strong> encrypt passwords unless you’re doing something like a password manager. Passwords should not be stored in plaintext, and you should use hashing to manage them safely.</p><p>Answer the questions below</p><p>Q1: What does SSH stand for?</p><p><strong>ANS: <em>Secure shell</em></strong></p><p>Q2: How do webservers prove their identity?</p><p><strong>ANS: </strong><em>Certificates</em></p><p>Q3: What is the main set of standards you need to comply with if you store or process payment card details?</p><p><strong>ANS: </strong><em>PCI-DSS</em></p><p><strong>Task 4: Crucial Crypto Maths</strong></p><p>There’s a little bit of math(s) that comes up relatively often in cryptography. The Modulo operator. Pretty much every programming language implements this operator, or has it available through a library. When you need to work with large numbers, use a programming language. Python is good for this as integers are unlimited in size, and you can easily get an interpreter.</p><p>When learning division for the first time, you were probably taught to use remainders in your answer. X % Y is the remainder when X is divided by Y.</p><p>Examples</p><p>25 % 5 = 0 (5*5 = 25 so it divides exactly with no remainder)</p><p>23 % 6 = 5 (23 does not divide evenly by 6, there would be a remainder of 5)</p><p>An important thing to remember about modulo is that it’s not reversible. If I gave you an equation: x % 5 = 4, there are infinite values of x that will be valid.</p><p>Answer the questions below</p><p>Q1: What’s 30 % 5?</p><p><strong>ANS</strong>:<em> 0</em></p><p>Q2: What’s 25 % 7</p><p><strong>ANS:<em> </em></strong><em>4</em></p><p>What’s 118613842 % 9091</p><p><strong>ANS: </strong><em>3565</em></p><p><strong>Task 5: Types of Encryption</strong></p><p>The two main categories of Encryption are symmetric and asymmetric.</p><p><strong>Symmetric encryption</strong> uses the same key to encrypt and decrypt the data. Examples of Symmetric encryption are DES (Broken) and AES. These algorithms tend to be faster than asymmetric cryptography, and use smaller keys (128 or 256 bit keys are common for AES, DES keys are 56 bits long).</p><p><strong>Asymmetric encryption</strong> uses a pair of keys, one to encrypt and the other in the pair to decrypt. Examples are RSA and Elliptic Curve Cryptography. Normally these keys are referred to as a public key and a private key. Data encrypted with the private key can be decrypted with the public key, and vice versa. Your private key needs to be kept private, hence the name. Asymmetric encryption tends to be slower and uses larger keys, for example RSA typically uses 2048 to 4096 bit keys.</p><p>RSA and Elliptic Curve cryptography are based around different mathematically difficult (intractable) problems, which give them their strength. More about RSA later.</p><p>Answer the questions below</p><p>Q1: Should you trust DES? Yea/Nay</p><p><strong>ANS:</strong> <em>Nay</em></p><p>Q2: What was the result of the attempt to make DES more secure so that it could be used for longer?</p><p><strong>ANS:</strong> <em>Triple DES</em></p><p>Q3: Is it ok to share your public key? Yea/Nay</p><p><strong>ANS:</strong> <em>Yea</em></p><p><strong>Task 6: RSA — Rivest Shamir Adleman</strong></p><p>The math(s) side</p><p>RSA is based on the mathematically difficult problem of working out the factors of a large number. It’s very quick to multiply two prime numbers together, say 17*23 = 391, but it’s quite difficult to work out what two prime numbers multiply together to make 14351 (113x127 for reference).</p><p>The attacking side</p><p>The maths behind RSA seems to come up relatively often in CTFs, normally requiring you to calculate variables or break some encryption based on them. The wikipedia page for RSA seems complicated at first, but will give you almost all of the information you need in order to complete challenges.</p><p>There are some excellent tools for defeating RSA challenges in CTFs, and my personal favorite is https://github.com/Ganapati/RsaCtfTool which has worked very well for me. I’ve also had some success with https://github.com/ius/rsatool.</p><p>The key variables that you need to know about for RSA in CTFs are p, q, m, n, e, d, and c.</p><p>“p” and “q” are large prime numbers, “n” is the product of p and q.</p><p>The public key is n and e, the private key is n and d.</p><p>“m” is used to represent the message (in plaintext) and “c” represents the ciphertext (encrypted text).</p><p>CTFs involving RSA</p><p>Crypto CTF challenges often present you with a set of these values, and you need to break the encryption and decrypt a message to retrieve the flag.</p><p>There’s a lot more maths to RSA, and it gets quite complicated fairly quickly. If you want to learn the maths behind it, I recommend reading MuirlandOracle’s blog post here: https://muirlandoracle.co.uk/2020/01/29/rsa-encryption/.</p><p>Q1: p = 4391, q = 6659. What is n?</p><p>Note: Use Python</p><p><strong>ANS:<em> </em></strong><em>29239669</em></p><p>Q2: I understand enough about RSA to move on, and I know where to look to learn more if I want to.</p><p><strong>ANS: </strong><em>No answer needed</em></p><p><strong>Task 7: Establishing Keys Using Asymmetric Cryptography</strong></p><p>A very common use of asymmetric cryptography is exchanging keys for symmetric encryption.</p><p>Asymmetric encryption tends to be slower, so for things like HTTPS symmetric encryption is better.</p><p>But the question is, how do you agree a key with the server without transmitting the key for people snooping to see?</p><p>Metaphor time</p><p>Imagine you have a secret code, and instructions for how to use the secret code. If you want to send your friend the instructions without anyone else being able to read it, what you could do is ask your friend for a lock.</p><p>Only they have the key for this lock, and we’ll assume you have an indestructible box that you can lock with it.</p><p>If you send the instructions in a locked box to your friend, they can unlock it once it reaches them and read the instructions.</p><p>After that, you can communicate in the secret code without risk of people snooping.</p><p>In this metaphor, the secret code represents a symmetric encryption key, the lock represents the server’s public key, and the key represents the server’s private key.</p><p>You’ve only used asymmetric cryptography once, so it’s fast, and you can now communicate privately with symmetric encryption.</p><p>The Real World</p><p>In reality, you need a little more cryptography to verify the person you’re talking to is who they say they are, which is done using digital signatures and certificates. You can find a lot more detail on how HTTPS (one example where you need to exchange keys) really works from this excellent blog post. https://robertheaton.com/2014/03/27/how-does-https-actually-work/</p><p>Answer the questions below</p><p>I understand how keys can be established using Public Key (asymmetric) cryptography.</p><p><strong>ANS: </strong><em>No answer needed</em></p><p><strong>Task 8: Digital signatures and Certificates</strong></p><p>What’s a Digital Signature?</p><p>Digital signatures are a way to prove the authenticity of files, to prove who created or modified them. Using asymmetric cryptography, you produce a signature with your private key and it can be verified using your public key. As only you should have access to your private key, this proves you signed the file. Digital signatures and physical signatures have the same value in the UK, legally.</p><p>The simplest form of digital signature would be encrypting the document with your private key, and then if someone wanted to verify this signature they would decrypt it with your public key and check if the files match.</p><p>Certificates — Prove who you are!</p><p>Certificates are also a key use of public key cryptography, linked to digital signatures. A common place where they’re used is for HTTPS. How does your web browser know that the server you’re talking to is the real tryhackme.com?</p><p>The answer is certificates. The web server has a certificate that says it is the real tryhackme.com. The certificates have a chain of trust, starting with a root CA (certificate authority). Root CAs are automatically trusted by your device, OS, or browser from install. Certs below that are trusted because the Root CAs say they trust that organisation. Certificates below that are trusted because the organisation is trusted by the Root CA and so on. There are long chains of trust. Again, this blog post explains this much better than I can. https://robertheaton.com/2014/03/27/how-does-https-actually-work/</p><p>You can get your own HTTPS certificates for domains you own using Let’s Encrypt for free. If you run a website, it’s worth setting it up.</p><p>Answer the questions below</p><p>Q1: Who is TryHackMe’s HTTPS certificate issued by?</p><p><strong>ANS:</strong><em> E1</em></p><p><strong>Task 9: SSH Authentication</strong></p><p>Download Task Files</p><p>Encryption and SSH authentication</p><p>By default, SSH is authenticated using usernames and passwords in the same way that you would log in to the physical machine.</p><p>At some point, you’re almost certain to hit a machine that has SSH configured with key authentication instead. This uses public and private keys to prove that the client is a valid and authorised user on the server. By default, SSH keys are RSA keys. You can choose which algorithm to generate, and/or add a passphrase to encrypt the SSH key. ssh-keygen is the program used to generate pairs of keys most of the time.</p><p>SSH Private Keys</p><p>You should treat your private SSH keys like passwords. Don’t share them, they’re called private keys for a reason. If someone has your private key, they can use it to log in to servers that will accept it unless the key is encrypted.</p><p>It’s very important to mention that the passphrase to decrypt the key isn’t used to identify you to the server at all, all it does is decrypt the SSH key. The passphrase is never transmitted, and never leaves your system.</p><p>Using tools like John the Ripper, you can attack an encrypted SSH key to attempt to find the passphrase, which highlights the importance of using a secure passphrase and keeping your private key private.</p><p>When generating an SSH key to log in to a remote machine, you should generate the keys on your machine and then copy the public key over as this means the private key never exists on the target machine. For temporary keys generated for access to CTF boxes, this doesn’t matter as much.</p><p>How do I use these keys?</p><p>The ~/.ssh folder is the default place to store these keys for OpenSSH. The authorized_keys (note the US English spelling) file in this directory holds public keys that are allowed to access the server if key authentication is enabled. By default on many distros, key authentication is enabled as it is more secure than using a password to authenticate. Normally for the root user, only key authentication is enabled.</p><p>In order to use a private SSH key, the permissions must be set up correctly otherwise your SSH client will ignore the file with a warning. Only the owner should be able to read or write to the private key (600 or stricter). ssh -i keyNameGoesHere user@host is how you specify a key for the standard Linux OpenSSH client.</p><p>Using SSH keys to get a better shell</p><p>SSH keys are an excellent way to “upgrade” a reverse shell, assuming the user has login enabled (www-data normally does not, but regular users and root will). Leaving an SSH key in authorized_keys on a box can be a useful backdoor, and you don’t need to deal with any of the issues of unstabilised reverse shells like Control-C or lack of tab completion.</p><p>Answer the questions below</p><p>Q1: I recommend giving this a go yourself. Deploy a VM, like Linux Fundamentals 2 and try to add an SSH key and log in with the private key.</p><p><strong>ANS: </strong><em>No answer needed</em></p><p>Q2: Download the SSH Private Key attached to this room.</p><p><strong>ANS: </strong><em>No answer needed</em></p><p>Q3: What algorithm does the key use?</p><p>ANS: RSA</p><p>Q4: Crack the password with John The Ripper and rockyou, what’s the passphrase for the key?</p><p><strong>ANS: </strong><em>delicious</em></p><p><strong>Task 10: Explaining Diffie Hellman Key Exchange</strong></p><p>What is Key Exchange?</p><p>Key exchange allows 2 people/parties to establish a set of common cryptographic keys without an observer being able to get these keys. Generally, to establish common symmetric keys.</p><p>How does Diffie Hellman Key Exchange work?</p><p>Alice and Bob want to talk securely. They want to establish a common key, so they can use symmetric cryptography, but they don’t want to use key exchange with asymmetric cryptography. This is where DH Key Exchange comes in.</p><p>Alice and Bob both have secrets that they generate, let’s call these A and B. They also have some common material that’s public, let’s call this C.</p><p>We need to make some assumptions. Firstly, whenever we combine secrets/material it’s impossible or very very difficult to separate. Secondly, the order that they’re combined in doesn’t matter.</p><p>Alice and Bob will combine their secrets with the common material, and form AC and BC. They will then send these to each other, and combine that with their secrets to form two identical keys, both ABC. Now they can use this key to communicate.</p><p>Extra Resources</p><p>An excellent video if you want a visual explanation is available here. https://www.youtube.com/watch?v=NmM9HA2MQGI</p><p>DH Key Exchange is often used alongside RSA public key cryptography, to prove the identity of the person you’re talking to with digital signing. This prevents someone from attacking the connection with a man-in-the-middle attack by pretending to be Bob.</p><p>Answer the questions below</p><p>Q1 I understand how Diffie Hellman Key Exchange works at a basic level</p><p><strong>ANS: </strong><em>No answer needed</em></p><p><strong>Task 11: PGP, GPG and AES</strong></p><p>What is PGP?</p><p>PGP stands for Pretty Good Privacy. It’s a software that implements encryption for encrypting files, performing digital signing and more.</p><p>What is GPG?</p><p>GnuPG or GPG is an Open Source implementation of PGP from the GNU project. You may need to use GPG to decrypt files in CTFs. With PGP/GPG, private keys can be protected with passphrases in a similar way to SSH private keys. If the key is passphrase protected, you can attempt to crack this passphrase using John The Ripper and gpg2john. The key provided in this task is not protected with a passphrase.</p><p>The man page for GPG can be found online here.</p><p>What about AES?</p><p>AES, sometimes called Rijndael after its creators, stands for Advanced Encryption Standard. It was a replacement for DES which had short keys and other cryptographic flaws.</p><p>AES and DES both operate on blocks of data (a block is a fixed size series of bits).</p><p>AES is complicated to explain, and doesn’t seem to come up as often. If you’d like to learn how it works, here’s an excellent video from Computerphile https://www.youtube.com/watch?v=O4xNJsjtN6E</p><p>Answer the questions below</p><p>Q 1: Time to try some GPG. Download the archive attached and extract it somewhere sensible.</p><p><strong>ANS: </strong><em>No answer needed</em></p><p>Q2: You have the private key, and a file encrypted with the public key. Decrypt the file. What’s the secret word?</p><p><strong>ANS:</strong> <em>Pineapple</em></p><p><strong>Task 12: The Future — Quantum Computers and Encryption</strong></p><p>Quantum computers will soon be a problem for many types of encryption.</p><p>Asymmetric and Quantum</p><p>While it’s unlikely we’ll have sufficiently powerful quantum computers until around 2030, once these exist encryption that uses RSA or Elliptical Curve Cryptography will be very fast to break. This is because quantum computers can very efficiently solve the mathematical problems that these algorithms rely on for their strength.</p><p>AES/DES and Quantum</p><p>AES with 128 bit keys is also likely to be broken by quantum computers in the near future, but 256 bit AES can’t be broken as easily. Triple DES is also vulnerable to attacks from quantum computers.</p><p>Current Recommendations</p><p>The NSA recommends using RSA-3072 or better for asymmetric encryption and AES-256 or better for symmetric encryption. There are several competitions currently running for quantum safe cryptographic algorithms, and it’s likely that we will have a new encryption standard before quantum computers become a threat to RSA and AES.</p><p>Learn More about Quantum Computers and Cryptography</p><p>If you’d like to learn more about this, NIST has resources that detail what the issues with current encryption is and the currently proposed solutions for these. https://doi.org/10.6028/NIST.IR.8105</p><p>I also recommend the book “Cryptography Apocalypse” By Roger A. Grimes, as this was my introduction to quantum computing and quantum safe cryptography.</p><p>Answer the questions below</p><p>I understand that quantum computers affect the future of encryption. I know where to look if I want to learn more.</p><p>ANS: No answer needed</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e65403a0bb5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Metasploit: Introduction | Tryhackme Walkthrough]]></title>
            <link>https://medium.com/@chimeziriiwuoha/metasploit-introduction-tryhackme-walkthrough-e2a55d0a7554?source=rss-5b1296e9017b------2</link>
            <guid isPermaLink="false">https://medium.com/p/e2a55d0a7554</guid>
            <dc:creator><![CDATA[Chimeziri Iwuoha]]></dc:creator>
            <pubDate>Sat, 04 May 2024 03:16:25 GMT</pubDate>
            <atom:updated>2024-05-04T03:16:25.375Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Task 1: Introduction to Metasploit</strong></h3><p>Metasploit is a powerful tool that can support all phases of a penetration testing engagement, from information gathering to post-exploitation.</p><p>Metasploit has two main versions:</p><ul><li>Metasploit Pro: The commercial version that facilitates the automation and management of tasks. This version has a graphical user interface (GUI).</li><li>Metasploit Framework: The open-source version that works from the command line. This room will focus on this version, installed on the AttackBox and most commonly used penetration testing Linux distributions.</li></ul><p>The Metasploit Framework is a set of tools that allow information gathering, scanning, exploitation, exploit development, post-exploitation, and more. While the primary usage of the Metasploit Framework focuses on the penetration testing domain, it is also useful for vulnerability research and exploit development.</p><p>The main components of the Metasploit Framework can be summarized as follows;</p><ul><li>msfconsole: The main command-line interface.</li><li>Modules: supporting modules such as exploits, scanners, payloads, etc.</li><li>Tools: Stand-alone tools that will help vulnerability research, vulnerability assessment, or penetration testing. Some of these tools are msfvenom, pattern_create and pattern_offset. We will cover msfvenom within this module, but pattern_create and pattern_offset are tools useful in exploit development which is beyond the scope of this module.</li></ul><p><em>No answer needed</em></p><h3><strong>Task 2: Main Components of Metasploit</strong></h3><p>While using the Metasploit Framework, you will primarily interact with the Metasploit console. You can launch it (Metasploit) from the AttackBox terminal using the msfconsole command. The console will be your main interface to interact with the different modules of the Metasploit Framework. Modules are small components within the Metasploit framework that are built to perform a specific task, such as exploiting a vulnerability, scanning a target, or performing a brute-force attack.</p><p>Before diving into modules, it would be helpful to clarify a few recurring concepts: vulnerability, exploit, and payload.</p><ul><li>Exploit: A piece of code that uses a vulnerability present on the target system.</li><li>Vulnerability: A design, coding, or logic flaw affecting the target system. The exploitation of a vulnerability can result in disclosing confidential information or allowing the attacker to execute code on the target system.</li><li>Payload: An exploit will take advantage of a vulnerability. However, if we want the exploit to have the result we want (gaining access to the target system, read confidential information, etc.), we need to use a payload. Payloads are the code that will run on the target system.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hAmv8WsG2IshnsD8zeAiyA.png" /></figure><ul><li>Auxiliary: Any supporting module, such as scanners, crawlers and fuzzers</li><li>Encoders: Encoders will allow you to encode the exploit and payload in the hope that a signature-based antivirus solution may miss them. Signature-based antivirus and security solutions have a database of known threats. They detect threats by comparing suspicious files to this database and raise an alert if there is a match. Thus encoders can have a limited success rate as antivirus solutions can perform additional checks.</li><li>Evasion: While encoders will encode the payload, they should not be considered a direct attempt to evade antivirus software. On the other hand, “evasion” modules will try that, with more or less success.</li><li>Exploits: Exploits, neatly organized by target system.</li><li>NOPs: NOPs (No OPeration) do nothing, literally. They are represented in the Intel x86 CPU family with 0x90, following which the CPU will do nothing for one cycle. They are often used as a buffer to achieve consistent payload sizes.</li><li>Payloads: Payloads are codes that will run on the target system.</li></ul><p>You will see four different directories under payloads: adapters, singles, stagers and stages.</p><ul><li>Adapters: An adapter wraps single payloads to convert them into different formats. For example, a normal single payload can be wrapped inside a Powershell adapter, which will make a single powershell command that will execute the payload.</li><li>Singles: Self-contained payloads (add user, launch notepad.exe, etc.) that do not need to download an additional component to run.</li><li>Stagers: Responsible for setting up a connection channel between Metasploit and the target system. Useful when working with staged payloads. “Staged payloads” will first upload a stager on the target system then download the rest of the payload (stage). This provides some advantages as the initial size of the payload will be relatively small compared to the full payload sent at once.</li><li>Stages: Downloaded by the stager. This will allow you to use larger sized payloads.</li></ul><p>Metasploit has a subtle way to help you identify single (also called “inline”) payloads and staged payloads.</p><ul><li>generic/shell_reverse_tcp</li><li>windows/x64/shell/reverse_tcp</li></ul><p>Both are reverse Windows shells. The former is an inline (or single) payload, as indicated by the “_” between “shell” and “reverse”. While the latter is a staged payload, as indicated by the “/” between “shell” and “reverse”.</p><p>Post: Post modules will be useful on the final stage of the penetration testing process listed above, post-exploitation.</p><p><strong>Question 1: What is the name of the code taking advantage of a flaw on the target system?</strong></p><p>Answer: exploit</p><p><strong>Question 2: What is the name of the code that runs on the target system to achieve the attacker’s goal?</strong></p><p>Answer: payload</p><p><strong>Question 3: What are self-contained payloads called?</strong></p><p>Answer: singles</p><p><strong>Question 4: Is “windows/x64/pingback_reverse_tcp” among singles or staged payload?</strong></p><p>Answer: singles</p><h3><strong>Task 3: Msfconsole</strong></h3><p><em>Ensure to read carefully the guidelines as you also practice your learning in the attackbox provied</em></p><p><strong>Question 1: How would you search for a module related to Apache?</strong></p><p>Answer: search apache</p><p><strong>Question 2: Who provided the auxiliary/scanner/ssh/ssh_login module?</strong></p><p>Answer: tobd</p><h3><strong>Task 4: Working with modules</strong></h3><p>Once you have entered the context of a module using the use command followed by the module name, as seen earlier, you will need to set parameters. The most common parameters you will use are listed below. Remember, based on the module you use, additional or different parameters may need to be set. It is good practice to use the show options command to list the required parameters.</p><p>All parameters are set using the same command syntax:<br>set PARAMETER_NAME VALUE</p><p>Before we proceed, remember always to check the msfconsole prompt to ensure you are in the right context. When dealing with Metasploit, you may see five different prompts:</p><ul><li>The regular command prompt: You can not use Metasploit commands here.</li><li>The msfconsole prompt: msf6 (or msf5 depending on your installed version) is the msfconsole prompt. As you can see, no context is set here, so context-specific commands to set parameters and run modules can not be used here.</li><li>A context prompt: Once you have decided to use a module and used the set command to chose it, the msfconsole will show the context. You can use context-specific commands (e.g. set RHOSTS 10.10.x.x) here.</li><li>The Meterpreter prompt: Meterpreter is an important payload we will see in detail later in this module. This means a Meterpreter agent was loaded to the target system and connected back to you. You can use Meterpreter specific commands here.</li></ul><p>Parameters you will often use are:</p><ul><li>RHOSTS: “Remote host”, the IP address of the target system. A single IP address or a network range can be set. This will support the CIDR (Classless Inter-Domain Routing) notation (/24, /16, etc.) or a network range (10.10.10.x — 10.10.10.y). You can also use a file where targets are listed, one target per line using file:/path/of/the/target_file.txt, as you can see below.</li><li>RPORT: “Remote port”, the port on the target system the vulnerable application is running on.</li><li>PAYLOAD: The payload you will use with the exploit.</li><li>LHOST: “Localhost”, the attacking machine (your AttackBox or Kali Linux) IP address.</li><li>LPORT: “Local port”, the port you will use for the reverse shell to connect back to. This is a port on your attacking machine, and you can set it to any port not used by any other application.</li><li>SESSION: Each connection established to the target system using Metasploit will have a session ID. You will use this with post-exploitation modules that will connect to the target system using an existing connection.</li></ul><p>You can override any set parameter using the set command again with a different value. You can also clear any parameter value using the unset command or clear all set parameters with the unset all command.</p><p>You can use the setg command to set values that will be used for all modules. The setg command is used like the set command. The difference is that if you use the set command to set a value using a module and you switch to another module, you will need to set the value again. The setg command allows you to set the value so it can be used by default across different modules. You can clear any value set with setg using unsetg.</p><p><strong>Question 1: How would you set the LPORT value to 6666?</strong></p><p>Answer: set LPORT 6666</p><p><strong>Question 2: How would you set the global value for RHOSTS to 10.10.19.23 ?</strong></p><p>Answer: set RHOSTS 10.10.19.23</p><p><strong>Question 3: What command would you use to clear a set payload?</strong></p><p>Answer: unset payload</p><p><strong>Question 4: What command do you use to proceed with the exploitation phase?</strong></p><p>Answer: exploit</p><h3><strong>Task5: Summary</strong></h3><p><em>No answer needed</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e2a55d0a7554" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Intro to Offensive Security|Tryhackme]]></title>
            <link>https://medium.com/@chimeziriiwuoha/intro-to-offensive-security-tryhackme-75c5fdfb664b?source=rss-5b1296e9017b------2</link>
            <guid isPermaLink="false">https://medium.com/p/75c5fdfb664b</guid>
            <dc:creator><![CDATA[Chimeziri Iwuoha]]></dc:creator>
            <pubDate>Mon, 29 Apr 2024 06:41:37 GMT</pubDate>
            <atom:updated>2024-04-29T06:41:37.324Z</atom:updated>
            <content:encoded><![CDATA[<p>We will have access to a safe and legal environment to practice our learning. Pay attention to the details of every instruction given to answer the questions.</p><p>This room can be accessed using this link: <a href="https://tryhackme.com/room/introtooffensivesecurity?ref=blog.tryhackme.com"><em>https:;//tryhackme.com/room/introtooffensivesecurity?ref=blog.tryhackme.com</em></a></p><h3><strong>Walkthrough-</strong></h3><h3><strong>Task 1: What is Offensive Security:</strong></h3><p>Offensive security is the process of breaking into computer systems, exploiting software bugs, and finding loopholes in applications to gain unauthorized access to them. To beat a hacker, you need to behave like a hacker, finding vulnerabilities and recommending patches before a cybercriminal does.</p><h3><strong>Task 2: Hacking your first machine</strong></h3><p><strong>Your first hack</strong></p><p>Click the “Start Machine” button. Once loaded in Split View in your browser, you will have access to a machine you’ll use to hack a fake bank application called FakeBank. If you don’t see the machine appear, use the blue ‘Show Split View’ button on the top-left of this page.</p><p>In this room, we will use a command-line application called “GoBuster” to brute-force FakeBank’s website to find hidden directories and pages. GoBuster will take a list of potential page or directory names and tries accessing a website with each of them; if the page exists, it tells you.</p><p>Follow the steps below to access ‘Gobuster’.</p><p><strong>Step 1) Open a terminal.</strong></p><p>A terminal, also known as the command-line, allows us to interact with a computer without using a graphical user interface. Terminal icon:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/64/0*_D1JwLzCYa4dbwvO.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JKfuFFgdTPk96b3OZkJX9g.png" /></figure><p><strong>Step 2) Find hidden website pages.</strong></p><p>This can be done by using the gobuster command in your terminal: gobuster -u http://fakebank.com -w wordlist.txt dir</p><ul><li>- u: is used to state the website we’re scanning</li><li>- w: takes a list of words to iterate through to find hidden pages. In this case, the list of words are found in “wordlist.txt”</li><li><a href="http://fakebank.com/">http://fakebank.com</a>: Website of the Fake Bank</li><li>dir: Directory of the wordlist we are using.</li></ul><p>The command will run and show you an output similar to this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FxJDyunpIyDGRWSROKiZJw.png" /></figure><p>Notice from the picture above that <strong>/images</strong> returns (Status: 301) while <strong>/bank-transfer</strong> returns (Status: 200). The 200 status code means “OK” showing there is a page at that location that we can access.</p><p><strong>Step 3) Hack the bank</strong></p><p>You should have found a secret bank transfer page that allows you to transfer money between accounts at the bank (/bank-transfer). Type the hidden page into the FakeBank website on the machine.</p><p>This page allows an attacker to steal money from any bank account, which is a critical risk for the bank. As an ethical hacker, you would (with permission) find vulnerabilities in their application and report them to the bank to fix before a hacker exploits them.</p><p>Transfer $2000 from the bank account 2276, to your account (account number 8881).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Km_BhXxVOPAKVllu3pS_mQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D2euB1ypWvgDYwdsA8Pe7g.png" /></figure><p><strong>Question: If your transfer was successful, you should now be able to see your new balance reflected on your account page. Go there now and confirm you got the money! (You may need to hit Refresh for the changes to appear)</strong></p><p><strong>Above your account balance, you should now see a message indicating the answer to this question. Can you find the answer you need?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IEVTQ6BbCEAsvQ-1SqutXA.png" /></figure><p><strong>Answer: </strong>BANK-HACKED</p><p><strong>Question: If you were a penetration tester or security consultant, this is an exercise you’d perform for companies to test for vulnerabilities in their web applications; find hidden pages to investigate for vulnerabilities.</strong></p><p><strong>Answer:</strong> No answer needed</p><p><strong>Question :</strong> Terminate the machine by clicking the red “Terminate” button at the top of the page.</p><p><strong>Answer:</strong> No answer needed</p><h3><strong>Task 3: Careers in cyber security</strong></h3><p><strong>Question: Read the above, and continue with the next room!</strong></p><p><strong>Answer:</strong> No answer needed</p><p>Thank you for reading my blog.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=75c5fdfb664b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>