<?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 Kanyoko on Medium]]></title>
        <description><![CDATA[Stories by Kanyoko on Medium]]></description>
        <link>https://medium.com/@itskanyoko?source=rss-3627b260b131------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*sZgg-ZPdwh6VtqQ5f6pwZw.png</url>
            <title>Stories by Kanyoko on Medium</title>
            <link>https://medium.com/@itskanyoko?source=rss-3627b260b131------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 17:25:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@itskanyoko/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[LOGICAL ACCESS- OFFICIAL WALK-THROUGH]]></title>
            <link>https://medium.com/@itskanyoko/logical-access-official-walk-through-fb31721aaef3?source=rss-3627b260b131------2</link>
            <guid isPermaLink="false">https://medium.com/p/fb31721aaef3</guid>
            <category><![CDATA[web-application-security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[web-security]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Kanyoko]]></dc:creator>
            <pubDate>Tue, 10 Feb 2026 08:16:52 GMT</pubDate>
            <atom:updated>2026-02-10T08:16:52.038Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello there, welcome to another exciting cybersecurity challenge walk-through on matters on web security. This write-up will work on solving the “logical access” challenge present in the MMU hacknight series of challenges. Categorized under “web”. This is the official walk-through from the creator.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/1*aatt4AGvKJG4e18PgVTeVg.png" /></figure><p>We are given the description:</p><blockquote>I have everything set up, I just need one last access to the admin page. Can you help me get there?</blockquote><blockquote>Access the site: <a href="http://4.161.43.110:8084/">http://4.161.43.110:8084/</a></blockquote><p>Just from the description, we can tell that this will be a matter of privilege escalation but now on the web accounts. Just like what usually happens in boot2root challenges where we deal with real user accounts, here we need to make a way to upgrade our account to be able to access the admin page.</p><p>The privilege escalation happens through various ways, just to mention few: cookie theft, parameters tampering, Insecure Direct Object Reference (IDOR) and session manipulation. A good cybersecurity expert should understand all these and be able to conduct either of them. That’s why CTFs come in handy, helping beginners and gurus put into practice all these types of vulnerabilities that are available in normal web applications we are using today.</p><p>In this specific challenge, the creator is trying to test our knowledge on the basic knowledge of cookie manipulation. Cookies in web security are basically small, text-based data files generated by a web server and stored by the browser on a user’s device to maintain state, manage sessions, and authenticate users. They allow websites to identify users, securely store login credentials, and remember user preferences between visits, which is essential for tracking, personalization, and security.</p><p>Start by accessing the site, you get a simple web page that has the message of restricted access. The important step to be done is to make sure we have authorized access, we get the variable or factor that will give us access and we manipulate it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U0whEHlP7puiveLGLdkSIg.png" /></figure><p>There are few enumeration techniques that are expected to be followed when we interact with various sites in web application security. When you are only give an ip address, you are expected to do some nmap scanning and subdirectory/subdomain scanning. When given a login page, one is expected to check with burp-suite the kind of responses the server is giving with the intention of either doing more subdirectory scanning or even bruteforcing, sqli injections and such. All in all; in such a challenge where we can see a static webpage having contents of a normal user, a professional may opt to start by viewing the page-source.</p><p>Accessing the page source is easy, just right click on the webpage you have and “check page source”. The main aim of this is seeing the hidden values or fields in the webpage. Viewing them helps one understand how the website is handling data and values beyond what the basic HTML page is showing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QG7By2i-hxizefQ-F3GkWQ.png" /></figure><p>Our page source has nothing interesting. The next step is inspecting the web page. Just right click and click on inspect option. Your browser determines how you will inspect the page. Different browsers have different way and orientation when inspecting a webpage.</p><p>Understanding what we need most is the aim, we need to check the cookies that have been set by default in this webpage, and try to manipulate them. In the following snip, this is a chrome browser, the cookie section is found under the <strong>application</strong> tab, Storage section, in the cookies drop-down menu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R0fb1vAl6nYmlBGZ_YxWwA.png" /></figure><p>For users using Firefox web browsers, the tab is little bit different. The cookies are found under the <strong>storage</strong> tab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wzWD_FuedDPneHnPuPRFpw.png" /></figure><p>There is a variable that catches the eye in the two snips above. The section having the name: “is_admin”. This is the breakthrough for the challenge. This is what will make one an administrator (authorized access) to the server holding the web page.</p><p>Edit the value from <strong>False</strong> to <strong>True. </strong>This happens to be a way of making the server treat us like an administrator and give us access to the web application like an administrator.</p><p>In real world, the method of manipulation can be different, most are not easily accessible like openly on the cookie section, some need changing <strong>by decoding and re-encoding data that appears nonsensical at first glance.</strong> In more modern applications, you won’t always see a plain-text ‘True’ or ‘False.’ Talk of base64 encoded strings, JSON web tokens, hashing and brute forcing. There are others dealing with session ids.</p><p>For this challenge, the creator wanted to check one’s understanding on editing cookie values. Once you change that <strong>False</strong> to <strong>True, </strong>just refresh the web-page. You will now access the decryption-key (flag).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sZyYMtZW067jUY9l_DL77g.png" /></figure><p>Submitting that earns you and your team 100 points.</p><p>HAPPY HACKING!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fb31721aaef3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CHATTY PRINTER]]></title>
            <link>https://medium.com/@itskanyoko/chatty-printer-ece17b3049f8?source=rss-3627b260b131------2</link>
            <guid isPermaLink="false">https://medium.com/p/ece17b3049f8</guid>
            <category><![CDATA[logs]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[digital-forensics]]></category>
            <category><![CDATA[networking]]></category>
            <dc:creator><![CDATA[Kanyoko]]></dc:creator>
            <pubDate>Tue, 10 Feb 2026 08:16:17 GMT</pubDate>
            <atom:updated>2026-02-10T08:16:17.560Z</atom:updated>
            <content:encoded><![CDATA[<p>NETWORK FORENSICS WALK-THROUGH</p><p>This is the official walk-through, from the creator of the “chatty printer” challenge. Organized for cybersecurity enthusiasts at Multi-media university of Kenya during the hack-night 1.0</p><p>Recently, we have seen a rise in the use of smart devices both in our homes and offices. How are we sure the devices are not connecting and exfiltrating data to other parties and servers? In this challenge, we are supposed to check on how a printer communicates with other parties. The printer being monitored here was feeding data to a suspicious server, we are supposed to check it out and understand how this works. By the end of the challenge, you will have understood the protocol used by smart devices such as printers, you will have understood analyzing those packets using wire-shark.</p><p><strong>challenge description:</strong><br>The office manager noticed that the new ‘smart’ printer in the HR department is acting strange. It’s printing fine, but the network logs show it’s talking to an outside server every few minutes. We captured the traffic. Your job is to find out what it’s sending and where the secret flag is hidden.</p><p>We are given a zip file, we download the zip file and extract the contents inside it, we get a capture.pcapng file. we open it using the normal wireshark tool, which comes pre-installed in kali-linux machines.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LtxG9ILxxgBpq3NRcKuikw.png" /><figcaption>View of the capture file</figcaption></figure><p>one can see different types of packets, different source ip addresses, different destination ip addresses, different protocols.<br>Its now a matter of going back to the drawing board and try to narrow down what we need so that we dont waste alot of time. The key words from our description are: printer and network logs. Now its our task to research the kind of protocol used by printers that can be seen from the network logs.</p><p>There is a protocol that has been seen to be common in smart/IoT devices. This mostly happens to the newest model with cloud features. The protocol is: <strong>MQTT (Message Queuing Telemetry Transport). </strong>It happens in two ports, port 1883 (unencrypted) and port 8883 (encrypted)</p><p>With that knowledge, we now check for protocols using MQTT and likely to be running on port 1883. We use the filter bar in our wireshark to filter for that specific protocol. Just type mqtt in the filter bar and hit enter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9s0noll2nGGCLuZMItxLwA.png" /></figure><p>We are now down from 182 packets to 10 packets being displayed. Now we can inspect these packets to get the answers to the questions we have.</p><p>Question 1: <em>What is the “Client ID” of the printer sending the data? <br>flag format: s3ns31{CLIENT_ID}</em></p><p>This is a very simple process, after the filtering, just click the first packet. This holds the connection packet of the printer. By double clicking it, expand on the MQ Telementary transport protocol, connect command. it is the last one from the frames seen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*spTYHN2fM18iv94Ncubmfg.png" /></figure><p>Notice the client ID there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*BVn37rtL2eRkG5KelgtRtQ.png" /></figure><p>FLAG: s3ns31{HR_Office_Printer_V2}</p><p>QUESTION 2: What protocol is being used for the “strange” communication?</p><p>We already identified that from our investigation about smart printers and the cloud. The flag is: s3ns31{MQTT}</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JfZlHgyruzG-7AhWiKMTrw.png" /></figure><p>QUESTION 3: <em>We learn that there was a connection made to a specific computer at a specific time. what is the operating system of the computer and what time is it said to receive the connection??</em></p><p>The trick of this question is that someone would go to look for the connection part in the logs part. The catch was reading the data being sent by the printer. The creator specifically gave that information in plain text in the data being exfiltrated.</p><p>We check the log having the info of “/connections”. That is the one having all that information</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TSZN0dsGPlGirO-tdKutxg.png" /></figure><p>By just double clicking it, we can read the message on the new wire-shark window we have. The message has the type of operating system the printer connected to and also a time, which was also in the same text.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CGYwFPsCC1th3HotfXCUFA.png" /></figure><p>From that message, we understand the operating system is linux operating system and the time is: 12:12:25.</p><p>FLAG: s3ns31{linux_12:12:25}</p><p>QUESTION 4: <em>Now do the honors and find the flag</em></p><p>We now have to look through and get the flag for this last question. Now this was hidden under “<strong>/office/printer/maintenance/raw_logs</strong>” packet.</p><p>Just by double clicking it, we get the message we need. The flag is not also directly readable from the message we have, you have to decode it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*khkzINWn7dX-8WTi8dCUkg.png" /></figure><p>In cryptography, whenever we see the “=” character after a text, we understand that the text is likely to be base64 encoded. To get the flag we now have to just copy the message and move to your best decoder. Lets decode it using 2 of the most common and accurate online decoders.</p><p>The first one will be <a href="https://gchq.github.io/CyberChef/#recipe=From_Base64(&#39;A-Za-z0-9%2B/%3D&#39;,true,false)&amp;input=Y3pOdWN6TXhlMjFmY1Y5MFgzUmZhWE5mZG5Wc2JtVnlZV0pzWlgwPQ&amp;oeol=NEL">cybercheff</a>. Check out and see the results on your browser. The recipe used is “from base64”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3tYY2sV3bLwGvAefeLrjow.png" /></figure><p>The other decoder is the base64 <a href="https://www.base64decode.org/">decoder</a> online</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bvYUq0E4bevyA7uGzaIQqw.png" /></figure><p>It is now official. The flag is there.</p><p>FLAG: s3ns31{m_q_t_t_is_vulnerable}</p><p>Thank you for sticking to the end, I hope you got to understand how smart devices communicate and analyze such network traffic.</p><p>HAPPY HACKING!!!!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ece17b3049f8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Archivist’s Paradox- Official Walk-through]]></title>
            <link>https://medium.com/@itskanyoko/the-archivists-paradox-official-walk-through-88d87241f744?source=rss-3627b260b131------2</link>
            <guid isPermaLink="false">https://medium.com/p/88d87241f744</guid>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[nicsc26]]></category>
            <dc:creator><![CDATA[Kanyoko]]></dc:creator>
            <pubDate>Fri, 30 Jan 2026 10:13:55 GMT</pubDate>
            <atom:updated>2026-01-30T10:13:55.815Z</atom:updated>
            <content:encoded><![CDATA[<p>This is the official walk-through for the challenge titled the Archivist’s Paradox. The Challenge was created for the Namibia International Cybersecurity CTF Challenge 2026.</p><p>First of all you are given the story behind this challenge. You are supposed to find the relatable content of the image, make sense of the encrypted stream(flag.enc) and later uncover the final secret.</p><p>You are provided with a zip file that has four files. The files are: library.jpg, file.pdf, notes.txt and flag.enc. The first step is enumeration, check the contents of the files, starting with notes.txt. In a normal terminal, just:<br><strong>“cat notes.txt”</strong> or use any text editor of your preference. You should get the journal that has some insights on what you are to do here. The main thing to note is what the text is insinuating.<br><em>“the greatest security isn’t found in distance, but in proximity.”</em></p><p>This means that the values p and q are in close proximity, also after the line above we are told that P and Q are like twin. This happens when <strong>Fermat’s Factorization </strong>is used. We have our first breakthrough from the notes.txt</p><p>Trying to open the PDF document provided, you notice it is password protected. Leave that alone first, then proceed to check the image, library.jpg this is just a normal picture of a woman with a camera. In images like these, you need to investigate further. Get more insights that what the normal eye can get a glance on. The tool to use here is <strong>exiftool</strong>. Just run <strong>“exiftool library.jpg”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/819/1*e3ILB19YtjcKwe-QNnN8Ag.png" /><figcaption>exiftool results on the image.</figcaption></figure><p>There is some text that catches the eye, the value under: GPS Processing Method. Investigate what this is, the best tool to use here is the <a href="https://gchq.github.io/CyberChef/">cybercheff</a>. Base64 decode it and get some meaningful data. check the <a href="https://gchq.github.io/CyberChef/#recipe=From_Base64(&#39;A-Za-z0-9%2B/%3D&#39;,true,false)&amp;input=ZXlJd0lqb2laaUlzSUNJeElqb2lOeUlzSUNJeUlqb2lZU0lzSUNJeklqb2lZeUo5&amp;oeol=FF">RESULTS</a>. Save the results on a separate text editor, you will use it later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XmGk0R8bxfsLxHOyldKBRg.png" /><figcaption>decoding the string</figcaption></figure><p>The result from decoding the base64 code above is now the S-Box. Now proceed to checking the flag.enc file. Just cat the file, <strong>“cat flag.enc”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*PU1CulQDO63DO4zFo-SttA.png" /></figure><p>The output is a ciphertext that is used to together with the sbox and a raw key to be later used to get the flag.</p><p>Now you have not been told at any point the password of the PDF file, you have to find it. A cybersecurity guy will think of trying to crack it using special john-the-ripper tools for pdf password cracking, that is going to be a dead end. The password of the file was the string we pulled from the exiftool results of the image.</p><p>“eyIwIjoiZiIsICIxIjoiNyIsICIyIjoiYSIsICIzIjoiYyJ9” open the PDF file using that password.</p><p>Once you have opened the PDF, you will get the long document. From the first paragraph, the last statements give some very important information. The last statement will send you looking through the document trying to locate a paragraph teaching you about cryptography, it is very important you read the two parts of the document(paragraph 1 &amp; paragraph 4). In the middle of paragraph 4, you will notice a GitHub repository link. Click that to be redirected to two files posted on a github repository and get the variables and a python script to be used in this challenge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zowhMzoNGPjkaS6W4axcTQ.png" /></figure><p>It is recommended you download the files as they are so that values in the variables.txt remain intact without being corrupted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Es_GKPPeSylm31CtfwWOAg.png" /><figcaption>The variables.txt has N, e and c</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u7I41PXHPdOEnPzilJ9Akw.png" /></figure><p>The script.py is actually a guide to tell you what is needed of you to solve this RSA challenge. From this point, you already have your variable, N, e and c. You now need to write a script to factor N, it finds <em>p</em> and <em>q </em>then decrypts the variable c to get the raw_key needed. The key is: “ARCHIVIST_KEY_2026_99&quot;. Finding the correct raw_key is very important at this point.</p><p>You remember the Sbox I told you to copy and keep somewhere for future use? yes that one that looked like this, {“0”:”f”, “1”:”7&quot;, “2”:”a”, “3”:”c”}. This is what you will conduct sbox mapping with on the raw_key you found above. You might be wondering what this sbox mapping is, this simply does substitution of characters you have in your raw_key, from what you have in your sbox, any character that is ‘0’ is substituted with ‘f’. A character that is ‘1’ is substituted with ‘7’. The character ‘2’ is substituted with ‘a’ and lastly those of the character ‘3’ are substituted with ‘c’. All other characters are left the same. Hope you now understand the sbox mapping 😁.</p><p>Now from “ARCHIVIST_KEY_2026_99&quot;, you now have: “ARCHIVIST_KEY_afa6_99”. This is now what is referred to as: <strong>transformed</strong> <strong>key</strong>. Finally you get to the last gate, where you have to use the transformed key against the string we got from the flag.enc. From the python script you found on the github repository, you can tell the you need to use the standard XOR stream cipher. It is even mentioned in the comments of the script.</p><p>Before starting the process of XOR operation, you need to change the hex string of flag.enc and convert it to raw bytes. Then start the XOR operation</p><ul><li>Take the first byte of the encrypted flag and XOR it with the first character of the transformed_key.</li><li>Take the second byte and XOR it with the second character of the key.</li><li>If the flag is longer than the key, start over at the beginning of the key (the % len logic in your script).</li><li><strong>The Output:</strong> The resulting characters will reveal the flag.</li></ul><p>You can create a script to solve solve all the mathematical sorting. It starts by doing the Fermat’s Factorization. Finds the p, then finds the q then continues to decrypting the raw key. Then finally getting the flag. The power of good scripting.</p><p>The script is uploaded to a GitHub repository, download it <a href="https://github.com/rkanyoko/NICCTF26_solve/blob/main/solve.py"><strong>here</strong></a>.</p><p>make sure to download the module gmpy2. Then run the script well. The final flag is: NICCTF26{M4th_15_th3_0nly_Un1v3rs4l_L4ngu4g3_2026}</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SK7T30HHIr-Z4CpvsJNE2w.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88d87241f744" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[NETWORK SECURITY- CRACKING WIFI PASSWORD]]></title>
            <link>https://medium.com/@itskanyoko/network-security-cracking-wifi-password-6815639e65ac?source=rss-3627b260b131------2</link>
            <guid isPermaLink="false">https://medium.com/p/6815639e65ac</guid>
            <category><![CDATA[cyber-awareness]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[wifihacking]]></category>
            <category><![CDATA[handshake]]></category>
            <category><![CDATA[network-security]]></category>
            <dc:creator><![CDATA[Kanyoko]]></dc:creator>
            <pubDate>Sun, 13 Jul 2025 19:27:48 GMT</pubDate>
            <atom:updated>2025-07-14T06:22:44.921Z</atom:updated>
            <content:encoded><![CDATA[<h3>WIFI CRACKING- NETWORK SECURITY</h3><p>Most people talk of hacking WIFI passwords, but don’t really look into the tactics behind this, and also what this depends on. In this blog i’ll be showing you the concepts of cracking the WiFi passwords of networks and also teach you the theory behind it.</p><p><em>NOTE: THIS CONTENT IS FOR EDUCATIONAL PURPOSES ONLY, do not try this in unauthorized networks</em></p><p><em>From this blog you will understand why it is very necessary for you to use strong passwords.</em></p><p>First of all, it’s good to know that for authentication to take place, between your device and the Wi-Fi router, there should be a four-way handshake between the two. So whats the four-way handshake?<br>The four-way handshake is the process used by the WPA/WPA2 protocols to set up a secure connection between the end devices(eg. Phone) to the access point (eg. router). This confirms that both parties know the correct pre-shared key(PSK) without actually transmitting the PSK itself. Keep in mind the point of not transmitting the PSK itself. The proof of knowledge is done by cryptographic exchanges. Now these cryptographic exchanges are what we are going to be majoring on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*GgEGlKbVNDpL6roBqkivZw.png" /><figcaption>four way handshake</figcaption></figure><p>Now enough with the theory, lets move to the practical side,the operating system I will be using is the Kali-Linux, some other tools would be like the <strong>air-crack-ng</strong> and such. I’ll set up some network using just an access point, then hack it. Ill show you how this is done. There is no need of an external adapter, just the normal adapter for your laptop.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XIHOyFBEVWxRnF1_gvweyw.png" /><figcaption>my router in access point mode</figcaption></figure><p><strong>STEP 1: Putting your network card into monitor mode.</strong><br>The command used is: <br><em>sudo airmon-ng start wlan0<br></em>Something to keep in mind is that the adapter might be different. One can do the <strong>ifconfig</strong> command and identify the adapter that is used to connect to your WiFi network. So replace the <strong>wlan0</strong> with the specific name of your adapter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OjWQXGcgAsbdPZSDE94Y9g.png" /><figcaption>Getting the name of your adapter</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nm6J_NSTzkpZxK9UzXBc7w.jpeg" /><figcaption>My wlan0 adapter in monitor mode</figcaption></figure><p>You will notice that your internet might actually go down, don’t worry you are still okay and on the right track.</p><p><strong>STEP 2: Getting the specifics of the desired network. </strong><br>Now let me proceed to identifying the specifics of the wireless network I want to crack and connect. I simply do this by capturing the traffic. The specific tool for this is airodump-ng. The full command is:<br><strong><em>sudo airodump-ng wlan0mon.<br></em></strong>I run the command above, it takes some time but eventually I get what I need. Take note of the BSSID and the Channel.The two are very important. In this demonstration, I am using “kanyoko_AP” as the network we are cracking. So I am on the lookout of those details.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*qcpuxDzVp3-7XX63ZzR-Bg.jpeg" /><figcaption>Getting the specifics for the network</figcaption></figure><p>Immediately I get those I can cancel the <strong>airodump-ng</strong> command and now start working on the next one. The next task is now to focus on the network and actually capture the network traffic.</p><p><strong>STEP 3: Focusing on the network.</strong><br>At this point, I am looking to capture the handshake. But before I capture the handshake, I must now put my monitor in some active capture mode, but this time targeting that specific network I am working on.The command used for this is:<br><strong><em>sudo airodump-ng — bssid &lt;BSSID&gt; — channel &lt;CH&gt; -w bing wlan0mon</em></strong></p><p>I replace the &lt;BSSID&gt; part with the BSSID I got in step 2.<br>I replace &lt;CH&gt; with 8 since it is the channel the network is running on.<br>One thing to note is that “<strong>bing</strong>” is just a name I used that I want my results to have. Some may use <strong>capture</strong> or any word of their liking.</p><p>In the following Image, the monitor is still on the lookout for any authentication so that it could get the four-way handshake but still it is not successful. What I am waiting for is the capture of a handshake to be confirmed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*3qomXgudH0YfnNoZM8otIw.jpeg" /><figcaption>trying to capture a handshake</figcaption></figure><p>Now one thing to note is that the command actually saves the four-way handshake to files with the base-name “bing”. The most important file that is needed is the “bing-01.cap”. This one holds the handshake.<br>In short, what I am doing here is like what is normally done when one opens up Wireshark and clicks on the adapter they want to capture packets on. The packets are captured, then you can manually save them to your desired location. Now all this is done using that one command.</p><p><strong>STEP 4: wait for a device to connect</strong><br>Now practically I know that not at every moment a device is authenticating and conducting the four-way handshake. For this reason I have to make sure there is a device that surely does the authentication. Otherwise I might be waiting forever for an authentication to take place. There is a technique for this, which is simply doing the <strong>deauth attack</strong>.<br>It works by the technique of disconnecting an end device from the access point then letting it connect back. This point of reconnecting there must be the four-way handshake that happens. Then I have what I really want.</p><p>I can now start the deauth attack. I just open another tab and use the command:<br><strong><em>sudo aireplay-ng — deauth 10 -a &lt;BSSID&gt; wlan0mon<br></em></strong>Remember to replace the BSSID with the correct BSSID of your network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*-SLveYyxgsiJHQQsGnG65Q.jpeg" /><figcaption>doing the deauth attack</figcaption></figure><p>As the capture of packets continues as I had set up in step 3, I notice there is a handshake that is captured. With that; I can stop the packet capturing and now deal with the captured handshake.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/848/1*O8satS_PNROK8w0tqojyTA.jpeg" /><figcaption>A handshake is captured</figcaption></figure><p><strong>STEP 5: Cracking the password</strong></p><p>I will use these packets to crack the password. The command is simple: <strong>Aircrack-ng</strong> allows me to provide the tool with the handshake capture file and a <strong>wordlist</strong> for password cracking.</p><p>The format of the command is simply:<br><strong>aircrack-ng bing-01.cap -w /path/to/wordlist.txt</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/843/1*qBPuFLFajxEGyewk1pt_ug.jpeg" /><figcaption>starting the cracking of the handshake to get the password</figcaption></figure><p>Now one thing everyone should keep in mind is that if the password is not in the word-list, you will not actually get any password. Now this is the point I want everyone to take home, if the password is really a strong password, chances are you are not going to crack it.<br>The cracking of the password depends on two things, what the word-list contains and how strong the password is. The good thing is that one can create their own word-list or rather use publicized word-lists. Talk of using crunch to create your own word-list, or even using word-lists like <strong>rockyou.txt</strong>. All these can be used to get the password. Enough with that and lets continue with the cracking. For demonstration purposes I will be using a simple word-list that I created for myself. In this situation I am actually sure the password is in this word-list but in a scenario where the attacker will not get the password, they will surely try cracking it using another word-list.</p><p><strong>STEP 6: CREATING THE WORD-LIST</strong></p><p>This step is for demonstrating the method I used for creating my wordlist. Otherwise if one already has the wordlist they desire the above step would be enough.</p><p>Now I will be creating a simple-custom wordlist. The tool I am to use is <strong>crunch</strong>. This comes pre-installed in Kali Linux. I am going to be using my name (kanyoko) plus some two other digits as the password for my Access point. The crunch command ill be using is simply:<br><strong><em>crunch 9 9 -t kanyoko%% -o pass.txt</em></strong></p><p>The first 9 is to specify the minimum characters of the words, the second 9 is to specify the maximum characters of the words. The rest of the command, I have the “kanyoko%%” this is for a pattern, lets take it i can guess for sure the password is my name but some other characters after this, I use the kanyoko then add %%. For unknown characters there are special symbols used:</p><ol><li>@ — used for lowercase letters (a-z)</li><li>, — used for uppercase letters (A-Z)</li><li>% — used for numbers (0–9)</li><li>^ — used for special characters (like !, @, #, etc.)</li></ol><p>The following snip shows how I create the wordlist. With the cat command I can verify the words you just created meet the pattern you liked.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QItyKbnwDokFG8pUUa-FRw.png" /><figcaption>creating the wordlist</figcaption></figure><p>Now in my scenario since I was sure my password is in the wordlist, the tools don’t even take long before I get the password. These are the results:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/933/1*FtJS6ewOT0EmKgwIEtuPLA.jpeg" /><figcaption>I get the password</figcaption></figure><p>From all this, one good takeaway is that you should always have your passwords as strong as possible. There are very many ways that an attacker can get your password and even penetrate through systems.</p><p>#preparing for the worst but still praying for the best.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6815639e65ac" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Admin has the power_cyber talents]]></title>
            <link>https://medium.com/@itskanyoko/admin-has-the-power-cyber-talents-639ece11c203?source=rss-3627b260b131------2</link>
            <guid isPermaLink="false">https://medium.com/p/639ece11c203</guid>
            <category><![CDATA[admin-has-the-power]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[cyber-talents]]></category>
            <category><![CDATA[web-security]]></category>
            <category><![CDATA[privilege-escalation]]></category>
            <dc:creator><![CDATA[Kanyoko]]></dc:creator>
            <pubDate>Wed, 23 Apr 2025 14:48:28 GMT</pubDate>
            <atom:updated>2025-04-23T14:48:28.990Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>introduction</strong></p><p>welcome to my walk-through guide on a cyber-talents challenge,with the title “Admin has the power” which is in the field of web security.<br>In this walk-through ill show you the best practices and steps to follow when trying to solve a web security challenge.</p><p><strong>challenge description<br></strong>This is the description of the challenge i shall be solving.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sboNz5TvUHRC8mlQMwHVUg.png" /><figcaption>CHALLENGE DESCRIPTION</figcaption></figure><p>What I can tell about this CTF challenge is that it’s testing on the basics of web penetration testing and privilege escalation. Stick around and learn the step by step solution of such a problem since this is most likely to be something any cyber-security professional gets to encounter in their day to day operations. It can be any form of penetration testing on a client’s website or even a bug bounty program.<br>After opening the link I am re-directed to a login page that is so so simple on its design and presentation of its content.</p><p>I normally try two approaches when I encounter such a login form, one is to try out an SQL injection and the other one is then checking out for the source page to see if there is some hint hidden there.<br>So I will start with the SQL injection.<br>I will use the command:<br><strong>Username: admin<br>Password: ‘ OR ‘1’=’1</strong></p><p>I have used the above command since the description text insinuates the flag is likely in the admin account.The username might therefore be admin it would then be a good approach to check if the password field is vulnerable to SQL injection.<br>This process hits a dead end and I therefore have the conclusion that the password field is not vulnerable to SQL injection. <strong>Note</strong> there are many other sql injection types and commands that one might try out.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cWcF6Qu0nJG4H9-D3byg9g.png" /><figcaption>password field not vulnerable to sql injection.</figcaption></figure><p>I therefore move to the next step I have in mind which is by checking the viewing the page source of the login form we have.In the page-source we can try to read through and check for any hidden info that can help us in this challenge.<br>After reading through I am happy to find some wonderful information in the comments of this HTML code.I am able to get working login credentials that might have been intentionally left there for the purpose of maintenance practices or maybe they were unintentional but errors might really be there since developers are also humans and humans are prone to mistakes. I therefore take advantage of this and login with the credentials.This is what I found.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/919/1*M4Tc1MexDy4bguhmrmQnIw.png" /><figcaption>login credentials</figcaption></figure><p>This finding really works and I immediately get access to the support account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ieq6p-YSbaT0F9AQkScgww.png" /><figcaption>support account accessed</figcaption></figure><p>Upon successful access I got the message that I now need to have the admin account to get the flag. This is a breakthrough on what we intent to achieve.</p><p>My next course of action was just to conduct my privilege escalation techniques in order to get the admin get the flag.I opt to use interception practices to get the admin account by the use of burp suite.<br>You can find the tutorial for your introduction to burp suite in a room called burp suite. The link is <a href="https://tryhackme.com/r/module/learn-burp-suite">https://tryhackme.com/r/module/learn-burp-suite</a> . In the same same tutorial you will learn about connecting your browser to the burp-suite proxy and even using the chromium from burp-suite. In this challenge I used the built in browser chromium.<br>I am therefore going to intercept the request of the support web page and change the role from support to admin and see if I am able to get the flag.</p><p>The following snip is just when I login to the support account and notice what fields are available for us, those that can really help us in the interception.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vWOSD43KhopOIfJmaZC-lA.png" /><figcaption>when i have logged into the support account</figcaption></figure><p>Before I forward the request I just amend the role part and put in the admin instead of support part.This will really help instead of now trying to capture cookies of the admin that are usually stored in the website so that we can get the admin access.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/1*Lr06M_S-97WPaGCDlXIrJQ.png" /><figcaption>amending the role to admin</figcaption></figure><p>After getting the amendment I just forward the request and luckily enough my task has just been accomplished since I now have the admin account and have our flag in the web page now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*tzoW5qrd_-y548T-KKBMqg.png" /><figcaption>flag obtained</figcaption></figure><p>Hooray!<br>I have obtained the flag.<br>Hope you have learnt something, remember to keep on doing more and more CTFs since they help you have problem solving skills and be persistent with the keep trying mentality.<br>Happy hacking.</p><p>PREPARE FOR THE WORST BUT STILL PRAY FOR THE BEST</p><p>#ctfs #cybertalents</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=639ece11c203" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SECURE TRAFFIC]]></title>
            <link>https://medium.com/@itskanyoko/secure-traffic-c641cb09d9ed?source=rss-3627b260b131------2</link>
            <guid isPermaLink="false">https://medium.com/p/c641cb09d9ed</guid>
            <category><![CDATA[encryption]]></category>
            <category><![CDATA[man-in-the-middle-attack]]></category>
            <category><![CDATA[https]]></category>
            <category><![CDATA[http-request]]></category>
            <category><![CDATA[ssl-certificate]]></category>
            <dc:creator><![CDATA[Kanyoko]]></dc:creator>
            <pubDate>Mon, 24 Feb 2025 21:55:50 GMT</pubDate>
            <atom:updated>2025-02-25T05:54:13.661Z</atom:updated>
            <content:encoded><![CDATA[<p>Web-security has become a major concern in the fast-evolving digital world we are living in. Our life is increasingly shifting to web-based platforms.This means that we are accessing the web-browsers now more than ever. Servers are being deployed and set up everyday. We need to be more vigilant than ever on what type of communication we are using with these browsers and servers. This is why understanding secure web traffic is no longer optional — it’s essential. There are two fundamental protocols that really shape the experience of web-based platforms.I will dive deep into these protocols in this blog: <strong>HTTP </strong>(Hypertext Transfer Protocol) and <strong>HTTPS</strong> (Hypertext Transfer Protocol Secure). By the end you will surely understand why secure communication is the backbone of a safer internet that we surely need.</p><p>It is clearly noteworthy that HTTPS is the secure mode of HTTP traffic. I will clearly show you how and why it is really important you strictly use HTTPS traffic rather than HTTP.</p><p>I won’t be testing out or trying out other developers’ server but I opted to use my own setup server in my local-host. I used flask(python) for the server. The whole idea is to have a student portal login where students get to register for units, download learning resources and such. So students will surely have an account which has some of username, they authenticate with their password and an email address is also added when registering a student account.<br>So there is a server, database and a website. The server (flask) controls the operations, the database that stores the information of users like usernames and passwords. Then the website is where the students interact with the server from.</p><p>The same concept was now done in two similar setups. Since i am to compare the HTTPS traffic with the HTTP traffic, I have one server that has the normal HTTP protocol configurations while the other server has some more elements in the code to set up the secure protocol. The secure protocol I am referring to is literally encryption of the data traffic being sent through the server.</p><h3>HTTP</h3><p>I will start by the insecure server communication. The flask code is just normal code, i wont dig deep in what it does but it runs on port 5500 on my local machine, same as the website. The website was just developed for the concept, no CSS is used for the webpage to look appealing.</p><p>The server just has simple authentication process for students to use for login, registration and some dashboard page where they conduct their business.<br>The sever also has some database initialization by creating SQLite database where there is creation of students table that will now store the details; username, password and email.<br>The server now controls all the functions of the website, including the Home page, the login(authenticating users), displaying the dashboard, logout of students from their account, and the registration of students then storing their credentials in the database that will be used for their authentication.<br>The flow of events are:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*U-AuKXhnGyjjoB_rMuVMEw.png" /><figcaption>Flow of events</figcaption></figure><p>Lets now move to the testing out our server and checking to capture traffic and expose how the protocol HTTP is very insecure. I will be using wire-shark tool to capture traffic and simulate how attackers get access to your credentials and data if you use unencrypted protocol for data communication. <br>I start by making the website go live;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*M7LAhaMi6nngVJDu2aGYQA.png" /><figcaption>website login page.</figcaption></figure><p>Then start the server. I use the command: <strong><em>python .\studentportal.py</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IPBI79bINrm4mwC5ohdw4w.png" /><figcaption>server being deployed.</figcaption></figure><p>Then students can now interact with the website freely. Before I start the registering of students or any other operations; I start up my wire-shark tool to capture the communication between the website and the server. Since i am running everything(server and website) on my local machine; i use the <strong>adapter for loopback traffic capture</strong> to do the capturing of data. This tool might also be used by attackers. An example is when they are running a Rogue Access Point network(their own WiFi) and let the victim use it, being a Man-in-the-middle attack.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UprN4S4K0t47kbeZudB1Bg.png" /><figcaption>the network type to be captured: loopback</figcaption></figure><p>Once that is ready, you will notice more and more traffic is being captured. Lets go back to our website and our server. Since we have no account, we register. I use the credentials; beast as the username and tycoon as the password. I added beast@2025 as the email. Let me take you step by step on how these credentials will be captured.<br>I use the same credentials to login and i am authorized to access the dashboard. From the server side, we can see it shows the traffic flow from and into it. Some with GET method and some with POST method.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*4x81MzwxZbBrCt3vUCuQCA.png" /><figcaption>server showing its activities.</figcaption></figure><p>I head back to the wire-shark tool that has been capturing traffic for me, make it stop capturing traffic since we are done and want to investigate the traffic we have dealt with. One thing about wire-shark is that we need to know how to filter traffic since so much packets are capture. Like in my scenario, I have 3911 packets which we have only captured in a matter of less than three minutes while we registered and logged in the user “beast”.</p><p>Therefore I use the filter command; <strong>tcp.port ==5500</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xEozEvuY_7MVyfDWQ1jaXA.png" /><figcaption>after filtering</figcaption></figure><p>After filtering, we could now interact with 126 packets which at-least reduces the burden, viewing the contents of each group of the packets I interact with one packet that really proves everything.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/888/1*KfPRvaZeZLOEym-_3znoWA.png" /><figcaption>packet showing the credentials.</figcaption></figure><p>This now shows how bad it is to use HTTP traffic since when intercepted, the data is just accessed directly since it is in plain text(Not encrypted). And just like that, attackers are able to access very important details and credentials.</p><h3>HTTPS</h3><p>HTTPS now brings the feature of encryption, data sent through HTTPS protocol is encrypted whereby the receiver must have some decryption key to be able to decrypt the data they have received. This makes sure that even if there is any leek or attack on the communication part, the attackers are not able to read or have exactly the information being transported.</p><p>This HTTPS server works literally almost the same as the HTTP server; only that here there are few new features. There is the certificate and key that are used to keep the data secure.</p><p>The HTTPS server uses <strong>TLS/SSL</strong> which is the mechanism that encrypts data. The <strong>ssl_context</strong> requires two files: certificate file and a private key file. You can see these features in the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*AtiovwnlDT05p9OmIu5Fsg.png" /><figcaption>the main code part that makes https secure.</figcaption></figure><p>One thing to understand about the security part of the HTTPS, the SSL and TLS features are what makes the encryption and authentication. With that maintained, data-integrity will be surely maintained.<br><strong>Encryption</strong>: SSL/TLS encrypts data between the browser(client) and the server preventing any eavesdropping by attackers.<br><strong>Authentication</strong>: the server has to present an SSL certificate that needs to be verified by a Certificate Authority(CA). This is just a confirmation that the client is communicating with a legitimate and the intended server.</p><p>We now start looking into the functioning server and the website. I deploy the website and the server respectively. I then visit <a href="https://127.0.0.1:5500/"><em>https://127.0.0.1:5500</em></a><em>.<br></em>Remember what I have talked about the verification and the issuing of a certificate by a trusted certificate authority. For my server scenario, I have used a <strong>self-signed certificate </strong>and therefore my browser will literally have some warning message since it can tell the certificate is not from a well known and trusted Certificate Authority. For reasons that the server is for local development only I will allow my browser to work with that certificate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kIWCCCImG6rHkJjCteJSwA.png" /><figcaption>warning by our browser</figcaption></figure><p>To proceed; click <strong>Advanced</strong> and then “<strong>proceed to 127.0.0.1</strong>”. This will surely tell you browser to accept the risks and let you access the website.<br>Then proceed to use the website as a normal one. Register a new student to have their details in the database and be able to use them for authentication purposes.</p><p>Before I register I start my wire-shark, have it capture the loop-back address and proceed with the operations.<br>I use <strong>paps </strong>as the <em>username</em>, <strong>paps </strong>as the <em>password </em>and <strong><em>paps2025@gmail.com</em></strong> as the <em>email address</em> for the registration.I then use the same same credentials to log in. It authenticates me and I am in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*YRsEmU4uuATeOXnctFcDQw.png" /><figcaption>dashboard</figcaption></figure><p>I then head back to wire-shark, make the tool stop capturing data traffic and then start to analyze the captured data. <br>I still use the same filter command from my HTTP traffic analysis (tcp.port==5500).<br>Upon checking the packets, one cannot even be sure which one was used for registering, or for authenticating logins. An attacker will surely be met with such data and this literally can’t be of much help to them since they don&#39;t have the decryption key. An example of the captured data is with the following snip.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FFi_NpSU4AhZO1XWqm8TqA.png" /><figcaption>data packet</figcaption></figure><p>It is evident that HTTPS does not transport data in plain text and is very secure.</p><h4>Key differences between HTTP and HTTPS</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/845/1*1gkGa_VXtlDhtka0_GcFPw.png" /><figcaption>Differences btn HTTP and HTTPS</figcaption></figure><p>It is now evident that security is not for leisure but a necessity. Most humans now use the web and it should be their top priority to make sure they are using secure traffic like that of the HTTPS.</p><p>More <strong>benefits </strong>that come with the encryption in HTTPS are</p><ol><li><strong>Faster performance</strong>: the HTTPS supports HTTP/2 which enable multiplexing, header compression and resource prioritization.</li><li><strong>Building user trust and credibility</strong>: users are more likely to share sensitive information and data on a secure traffic.</li><li><strong>Supports online payments and sensitive information</strong>: with the matter being about money or online payment, users should not even risk using HTTP traffic, one should really use HTTPS for all those kinds of transaction to make sure they don&#39;t expose important information like they bank pins.</li><li><strong>Improved SEO ranking: </strong>google prioritizes HTTPS websites in search engines traffic. Non-HTTPS traffic may even get flagged as “not secure” making it have lower visitor trust.</li></ol><p>You can check-out my git-hub repository for the code: <a href="https://github.com/kanyokoo/secure-traffic.git">https://github.com/kanyokoo/secure-traffic.git</a></p><p>Thank you for your time. Hope you keep in mind that web-security is something you should always watch out. Make sure to use safe protocols.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c641cb09d9ed" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SCAMMER ALERT]]></title>
            <link>https://medium.com/@itskanyoko/scammer-alert-698570601c22?source=rss-3627b260b131------2</link>
            <guid isPermaLink="false">https://medium.com/p/698570601c22</guid>
            <category><![CDATA[whistleblower]]></category>
            <category><![CDATA[alerts]]></category>
            <category><![CDATA[scammer-alert]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[earning-money-online]]></category>
            <dc:creator><![CDATA[Kanyoko]]></dc:creator>
            <pubDate>Tue, 12 Nov 2024 18:47:09 GMT</pubDate>
            <atom:updated>2024-11-12T18:47:09.449Z</atom:updated>
            <content:encoded><![CDATA[<p>CRYPTOCURRENCY TRADING SCAM ALERT — THE-BLOCKJET.COM EXPOSED</p><p>Hey there; In this article I will be exposing a scamming platform that claims to help people earn by trading. I will not be hiding any kind of information of the scamming company, let it all be known!!!!</p><p>It was a humble request from a friend who was interested to know if the platform is legit and they called for my expertise to do some research and know if it was something one was willing to deposit money into. The platform is: “the-blockjet.com”.<br>Due to my love for the game and putting my skills to the test, I began digging deep into the site; these are the main red flags I noticed with the platform.</p><p>I navigated to the site <a href="https://the-blockjet.com/">https://the-blockjet.com/</a>.</p><p>What I found was interesting;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hsBPFdJKzhao2M7EE6JBuQ.png" /><figcaption>the first webpage</figcaption></figure><p>This looks really legit; with the registration being on the right side, a good look of where one could navigate to with the “ABOUT US”, “CONTACT US” and “LOGIN” tabs.<br>Something that really got my attention is the warning that appears at the top of the webpage. It insinuates that due to the high demand, the platform will close registration today in about 6 minutes. <br><strong>“let me hurry up with the registration and will look into their reputability later.”</strong><br>These are the kind of words one will tell themselves when they encounter with something of the sort. let me unveil to you how this is just but a way to entice you to scamming.</p><p>I noticed this was just a script added to the webpage since after refreshing the webpage in about 13 minutes later; same thing appears, this raises some questions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dUz1m91QFK_BxcKTUwEOTQ.png" /><figcaption>before refreshing the page</figcaption></figure><p>The above is before refreshing the page, the countdown has lapsed. I then proceed to refresh the page and this is what follows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*evq6nYJlsHDE08hV-dhp6w.png" /><figcaption>after refreshing the page</figcaption></figure><p>That’s a fake or enticing countdown; this was obviously due to some script encoded in the webpage; let me show and explain what is making this.</p><p>I went ahead and took a thorough research on the lines of code and found this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ne5zlJvzU3IJTZ_lDEsLRA.png" /><figcaption>the script</figcaption></figure><p>any programmer or developer can understand what this script does; it just works with the fundamental of setting a timer to 6.4 minutes. The timer counts down normally but when the timer gets to 0, no action is taken. This is not normal since what was the essence of the timer if no action is to be done? The timer is 100% on the client side proving the point that nothing will happen even after the timer countdown ends.<br>My take is that the 6.4 minutes timer that actually turns out to be 6 minutes and 24 seconds is to make everything seem <strong>authentic</strong>. It may not bring suspicion like having one going for exactly 6 minutes, which will seem too much of a coincidence.</p><p>That was just one red flag; here is another one. The registration of the domain, one thing one should always consider when choosing a platform to trade with is the consistency of the platform to help people earn their incomes. I will prove that this platform was just recently registered and has some pending info of the immediate owners.</p><p>I did some <strong>whois</strong> scanning with my kali linux; the results were as follows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*bW5Esc0RBdO6F_7tMiRbuQ.png" /><figcaption>whois scan</figcaption></figure><p>this really seemed very fishy. let me make it easy to anyone who may not know the details and use a web-based scanner.</p><p>First of all “whois&quot; is a tool in Kali Linux used to check the registries entities of a domain. There is also a website that does this. This is what I mean by a web-based scanner.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yCyER3zzkizE5m6yyb2Uhw.png" /></figure><p>You can see clearly that the domain was registered on 15th of October the year 2024, At the time I am writing this article is on the 12th of November 2024 which is barely some 4 weeks old duration. For a trading platform to gain so much “demand” as they claim on their website still raises some questions.</p><p>The following is an example of how a legitimate platform has its domain dates. This is a well known platform used by traders to trade and they get their incomes legitimately. I wont disclose the exact platform to avoid contradiction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/906/1*Z57iCU5Zr6G5mt58Egp9oQ.png" /><figcaption>a legitimate site with its dates of the domain registry</figcaption></figure><p>Proceeding to the details of the registrar data info we get more red flags. The registrar details are hidden, this is obviously to prevent any blow-back on them. If there platform is legit why hide??.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*95rPtlXtmTF6LDgNNbHB0g.png" /></figure><p>These helps them hide their tracks in-case they are exposed to be scamming people, none of their details will be used by the law-enforcers to get a catch them.</p><p>I wanted to test what the site does even after being in the know that they are illegitimate, I used non-personal credentials, those that i normally use such suspicious sites. The platform allows me to register my account and for the mobile number i provide some phone number i own.</p><p>Funny thing is that after providing the account detail, i got no prompt to prove i am a human; CAPTCHA (Completely Automated Public Turing test to tell Computers and Humans Apart). Normal and legitimate sites normally use this to tell if the user is a human. This gives me the thought that the website could have even been created from a template.</p><p>I look into the page source again to check for any traces of template use; there is the use of web-flow attributes “<strong>data-wf-page</strong>” and “<strong>data-wf-site</strong>” which are normally used with templates.</p><p>Some few minutes after registering my account, I received an email telling me the obvious of verifying my account. but just after that, I receive a call from someone claiming to be from the-blockjet company and they will be my contact person and help me in my investment and earning through trading.</p><p>The man asked me questions like where I work, how much I earn; this is obviously very unethical but since i already know he everything is bad/illegitimate, I listen to him and find out what he is up-to. He tried to persuade me to thinking of depositing money to my account, he even said that the minimum package to use is <strong>39000</strong>.</p><p>I tried to dodge the depositing of money from my M-pesa with an excuse that my supervisor at work is calling me to work but the man kept on insisting that ill be loosing out on huge market shares at the moment if I don’t deposit the money instantly. This seems really too persistent to be legit of-course. The man has called my phone for about three times now and is using a kenyan number: <strong>+254 773 543 644</strong>.</p><p>The number is not even registered by true-caller. It would have been better if the number and the company had verified calls like legitimate companies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*tzRjOD1vTCBim3olVNpCiQ.jpeg" /></figure><p>My honest advice to anyone trying to make money online is that they should take their time and look into the platform they want to deposit their money to. There are a lot of hungry people trying to get a chance and get money out of you and walk away.</p><p><strong>PROTECTING YOURSELF FROM SIMILAR SCAMS</strong></p><p>Based on this investigation, here are critical warning signs to watch for when evaluating any trading platform:</p><ol><li>Domain Age: Always check when the platform was registered. Legitimate trading platforms typically have years of operational history, not weeks.</li><li>Artificial Urgency: Be extremely wary of countdown timers or claims of “limited time” registration. Legitimate platforms don’t need such pressure tactics.</li><li>Registration Details: Verify the platform’s ownership transparency. Hidden registrar details often indicate attempts to avoid accountability.</li><li>Communication Patterns: Legitimate platforms don’t aggressively push for immediate deposits or ask personal questions about your income. High-pressure sales tactics are a major red flag.</li><li>Technical Implementation: Check for basic security features like CAPTCHA. Their absence often indicates a hastily constructed scam.</li></ol><p>Remember: Your money is valuable, and legitimate investment platforms will give you time to conduct due diligence. Never rush into investments under pressure, and always verify platform legitimacy through multiple independent sources. If you encounter the-blockjet.com or similar suspicious platforms, report them to your local cybercrime unit and financial regulatory authorities. Together, we can protect our community from these predatory schemes.</p><p>#StopOnlineScams #CryptoScamAlert #InvestorProtection</p><p>BEWARE!! RESEARCH AND ASK AROUND!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=698570601c22" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[EASY MESSAGE CYBER TALENTS_WRITE UP]]></title>
            <link>https://medium.com/@itskanyoko/easy-message-cyber-talents-write-up-85b122f9c223?source=rss-3627b260b131------2</link>
            <guid isPermaLink="false">https://medium.com/p/85b122f9c223</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[web-security]]></category>
            <category><![CDATA[cyber-talents]]></category>
            <category><![CDATA[easy-message]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <dc:creator><![CDATA[Kanyoko]]></dc:creator>
            <pubDate>Thu, 10 Oct 2024 22:10:58 GMT</pubDate>
            <atom:updated>2024-10-10T22:10:58.859Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Introduction</strong></p><p>Hey there, welcome to the write-up on the ctf challenge titled <br>“Easy Message”. Make sure to follow along and learn how the enumeration process should be followed so that you can clearly learn how to find important info in a web page.<br>This is one way on how learn of web-security.</p><p><strong>Preview</strong></p><p>Let’s take a look at how the web challenge is described.<br>The description is : <strong>“I Have a Message for you.”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IZywv6qPPsG6u7plOtIMmg.png" /></figure><p>We are therefore informed that there is some information in the website that we need to extract.</p><p>Start the challenge and navigate to the link.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3EdXm1gll0YESKPBqFfpcg.png" /><figcaption>welcoming web page of the link</figcaption></figure><p>The first step for our Enumeration will be checking the page source to see if there are any hidden scripts or comments for logins.<br><strong>Viewing page source.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1S0m8PaauuB99Ss_r_G-QA.png" /></figure><p>we can check the page source by right-clicking on the website and click the view-page source and you will see snip above this.<br>From this we cannot get anything interesting. No comments no interesting scripts.</p><p><strong>Inspection-web developer tools</strong></p><p>Inspection makes great sense when one tries to login in, so even before showing you how to get to the inspection, try some login with fake credentials like admin on both the username and the password.<br>The authentication fails. we then lead to the inspection section.<br>There are very many ways to do this, one can right click on the web page and proceed to the inspect option or maybe one can click on the browser menu, click on more tool/ more developer options and click the open developer tools.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*joTsQ0I1p2Xq_tjHwx19VA.png" /><figcaption>inspecting the web page</figcaption></figure><p>We get no cookies here, this tells us that we have to look for another way since we have nothing to change the value and work on.</p><p><strong>Burp-suite</strong></p><p>The burp-suite tool works significantly by acting as the man-in-the-middle and acting on web request before they are forwarded to the web server and have more info. In simple terms, it intercepts and modifies web traffic.</p><p>We can use the tool here and try checking for hidden scripts,try to modify the headers but this did not give any good result.</p><p>We try changing the authentication headers in the requests; still nothing obtained.</p><p>We also try changing the request method in the repeater but still no results.<br>This is as good as a dead end.</p><p><strong>SQL-Injection</strong></p><p>We can try the various commands that are common on SQL-injection, the most common one is:<br><strong>‘ OR ‘1’=’1</strong><br>One can check the website below for various sql injection commands.<br><a href="https://book.hacktricks.xyz/pentesting-web/sql-injection">https://book.hacktricks.xyz/pentesting-web/sql-injection</a></p><p>Unfortunately the commands tried did not bare any fruit. We are still left with our login form the same way with no bypass.</p><p><strong>Gobuster tool</strong></p><p>This is one tool that comes pre-installed in the Kali Linux OS. Its main purpose is to conduct a brute-force enumeration to discover hidden files, subdomains or even directories.<br>We are going to use the <strong>common.txt</strong> word-lists that is also available in kali linux.<br>The full command will be:</p><p>gobuster dir -u <a href="http://wcamxwl32pue3e6mxwl322yue3e6wl32yoqnue3e-web.cybertalentslabs.com/">http://wcamxwl32pue3e6mxwl322yue3e6wl32yoqnue3e-web.cybertalentslabs.com/</a> -w /usr/share/wordlists/dirb/common.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5TAqsQAq3Qwq7OIbdDt74g.png" /><figcaption>results from gobuster scan.</figcaption></figure><p>Here we get the breakthrough. we find the hidden directories index.php and robots.txt</p><p><strong>index.php</strong> is typically the default file loaded when a user visits a directory in a website. It serves as the entry point for a web application or website built using PHP. The index.php file is commonly located in the root directory of a website and is often the first file that handles user requests.</p><p>But the <strong>robots.txt</strong> has some good answers for us.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0pvPf8K--kmdhL9g0wb5uw.png" /><figcaption>when we add the /robots.txt in the URL</figcaption></figure><p>The info here shows us that there might be info under /?source.<br>This gives us more info we can look into, we then amend our URL to have it show us more.<br>we can try this:<br><a href="http://wcamxwl32pue3e6mxwl322yue3e6wl32yoqnue3e-web.cybertalentslabs.com/?source">http://wcamxwl32pue3e6mxwl322yue3e6wl32yoqnue3e-web.cybertalentslabs.com/?source</a></p><p>Luckily enough we get some hidden php.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/1*Y6SYT9btFjPGo_apVh47sQ.png" /></figure><p>We can analyze the above and get so much of what is needed.</p><p>There is a .php code that actually gives us the password which is encrypted with the base64 encryption format. The code check for the username and password which have been set to the same values. If they match one gets a successful login but if otherwise the login fails. we are directly told that we need to decode the username and password with base64.</p><p>we can lead to the base64 decoder online to decode Q3liZXItVGFsZW50. Navigate to this website: <a href="https://www.base64decode.org/">https://www.base64decode.org/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CULyIghNmxZnsbdwh1X-Cw.png" /><figcaption>decoding for username and password.</figcaption></figure><p>we can then conclude that our username and password is: Cyber-Talent. This is after we decode: <strong>Q3liZXItVGFsZW50</strong>.</p><p>We then lead to login in. The authentication is very successful. we have some info waiting for us here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WiE9eLfnhzO7Z0dQoc291A.png" /><figcaption>after login</figcaption></figure><p>There is some encrypted information here. we then have to investigate what it contains.<br>We can use AI tools like chatgpt to tell us the kind of encryption here so that we can work on it. This might be common to people who have been into cryptography all through, they might even tell the type of encryption here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/1*_UnLxnKAT-ACauHOVlMedw.png" /><figcaption>getting the type of code the message is in.</figcaption></figure><p>We can use an online morse code decoder to get the message we need. The link to the morse decoder is: <a href="https://morsecode.world/international/translator.html">https://morsecode.world/international/translator.html</a>.</p><p>Here we hope on getting our flag after decoding the morse code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/1*pJkGQnzU6As0-_5EGsfUtg.png" /><figcaption>capturing the flag.</figcaption></figure><p>Congratulations, we just got our flag. it is: FLAG(I-KN0W-Y0U-AR3-M0RS3).</p><p>That show the importance of proper and through enumeration. One really needs to train on how to conduct there research and familiarize themselves with how to get info from a web-page.</p><p>HAPPY HACKING!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=85b122f9c223" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[THIS IS SPARTA_CYBER TALENTS]]></title>
            <link>https://medium.com/@itskanyoko/this-is-sparta-cyber-talents-80452ec3bed6?source=rss-3627b260b131------2</link>
            <guid isPermaLink="false">https://medium.com/p/80452ec3bed6</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[web-security]]></category>
            <category><![CDATA[obfuscation]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Kanyoko]]></dc:creator>
            <pubDate>Mon, 09 Sep 2024 22:19:06 GMT</pubDate>
            <atom:updated>2024-09-09T22:19:06.074Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey there,welcome to this walk-through of the “easy” challenge with the title<strong><em> “This is Sparta</em></strong>,” a cyber-talents challenge that one surely has to come across when they do the course of cyber-security.</p><p>It is rated easy and this is very true since one just has to understand the concept being tested and they will surely know what is needed to be solved.So follow along to see how such a challenge is solved without much stressing about.</p><p><strong>PREVIEW</strong></p><p>Here is what the challenge intro snip look likes;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G8qv-pIk9uaOnqUOG2yolA.png" /><figcaption>preview of the challenge</figcaption></figure><p><strong>1st STEP</strong></p><p>After starting the machine and it finishes loading up, we click the link and it redirects us to this web page that contains a login page and it has some few elements, we can clearly see the username field, the password field and below that the password field we can see the Hint button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7gmCD21ciMEAyVP1-pPyVQ.png" /><figcaption>login page</figcaption></figure><p>We begin the enumeration process by viewing the page source of this web page and trying to figure out how we can bypass this login page.<br>Normally we first should check on the comments since the comments are much easy to understand even by beginners and also, to see if there are any credentials left there accidentally or intentionally for maintenance practices.There are no such so we begin by analyzing the elements and scripts in here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iMPwv3xgblHv5pg8gg-4Cg.png" /><figcaption>view of the web-page</figcaption></figure><p>After several analysis and all that, we can come across this script that actually seems so so much interesting.<br>It has the format of a variable setting and this is normally what the challenge creators want to see if you can notice and figure out.We can actually try to read it through but the syntax and the values in it seem to be complicated and we cant just understand it.</p><p><strong>2nd step</strong></p><p>we have to research and know what this script entails;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4CU-x_VeHeQYsdu4eToxWQ.png" /><figcaption>the script</figcaption></figure><p>Keeping in mind we have tools like chatgpt at our disposal, we can actually research what the script entails, we shall use our promo engineering skills in knowing what we need to know.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*ocWT__Q0iYMtLJdvCtt8Pg.png" /></figure><p>we can therefore conclude that the script has obfuscated code,this is a nice step forward, we then use our knowledge on how to de-obfuscate the codes.There are two main ways of doing this, there is the one for using the developer tools and there is the other one using web accessible tools to de obfuscate the codes.</p><p><strong>WEB DEVELOPER TOOLS</strong></p><p>This is just easy, by visiting the web developer options in your preferred web browser, we can use the console special tool to de-obfuscate this.<br>The steps are really simple, copy the script from the “var” part , past it on your console and press enter. you then type “<strong>_0xae5b” </strong>there and get what the variable holds in clear text we then analyze our findings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jQmfS3C_Ot5avE4tMvsQ8A.png" /><figcaption>de-obfuscating using the console</figcaption></figure><p><strong>DE-OBFUSCATOR TOOL ON THE WEB</strong></p><p>There are many tools available online that help in the de-obfuscation of java script codes, in this write-up we are going to use the deobfuscate.io tool. It is really straight forward and gets us what we need directly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZsJsTk1OIY3q7dSO1QZIWw.png" /></figure><blockquote>we get the variable we have been needing all along, <br>the function is :<br>function check() {<br> var _0xeb80x2 = document.getElementById(“user”).value;<br> var _0xeb80x3 = document.getElementById(“pass”).value;<br> if (_0xeb80x2 == “Cyber-Talent” &amp;&amp; _0xeb80x3 == “Cyber-Talent”) {<br> alert(“ Congratz \n\n”);<br> } else {<br> alert(“wrong Password”);<br> }<br>}</blockquote><p>with the function being this way we can surely understand what it means,<br>the following are the clear understandings we get from the function, <br> — the user is assigned the variable: “<strong>_0xeb80x2</strong>&quot;.<br> — the pass is assigned the variable:<strong>”_0xeb80x3&quot;.<br> — </strong>the function then assesses the situation and works by checking the values entered in the fields, it uses the “<strong><em>if” </em></strong>function that checks whether a criteria has been reached,in the occassion the text entered in the user field matches <strong>“Cyber-Talent” </strong>and still the text entered in the pass field matches; <strong>“Cyber-Talent”, </strong>the function allows the user to have their access and get the congrats text as seen in the function.<br>If the above criteria is not met, the function tells that the user will be given the text “<strong>”wrong Password”.</strong></p><p>we then know that the page needs us to use Cyber-Talent as the username and the password.<br>we then do so;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CDtesgZk76hlz1RJeE80Jg.png" /></figure><p>after clicking submit we get:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CzBp5qa0TpeAF8tWeUwDqw.png" /><figcaption>capturing our flag.</figcaption></figure><p>and there we have it, that&#39;s our flag.</p><p>In matters of submission, we do so in the format stated in the challenge description.Here it is;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a8PZyrDU-20dU40yVeR-nw.png" /><figcaption>flag submission</figcaption></figure><p>This CTF challenge was a great learning experience, allowing us to apply and improve my skills in java script code obsufcation. Grabbing the flag was a rewarding outcome after navigating the obstacles. Thanks to the organizers for putting together such a valuable and fun challenge!</p><p>HAPPY HACKING!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80452ec3bed6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[COOL NAME EFFECT_CYBER-TALENTS]]></title>
            <link>https://medium.com/@itskanyoko/cool-name-effect-cyber-talents-e319afde361e?source=rss-3627b260b131------2</link>
            <guid isPermaLink="false">https://medium.com/p/e319afde361e</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[web-security]]></category>
            <category><![CDATA[cyber-talents]]></category>
            <category><![CDATA[walkthrough]]></category>
            <category><![CDATA[gui̇de]]></category>
            <dc:creator><![CDATA[Kanyoko]]></dc:creator>
            <pubDate>Wed, 04 Sep 2024 17:09:50 GMT</pubDate>
            <atom:updated>2024-09-04T17:09:50.402Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>INTRODUCTION</strong></p><p>Hey there, welcome to our hands on walk-through of another exciting web-security ctf challenge.<br>I will be taking you through the <strong>cool name effect</strong> ctf.</p><p>Preview:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6bN1rwtWNvGOw1ZOf__OKQ.png" /><figcaption>challenge description</figcaption></figure><p>Here we are welcomed with the description:<br><strong><em>Webmaster developed a simple script to do cool effects on your name, but his code not filtering the inputs correctly execute java script alert and prove it.</em></strong></p><p>The statement is truly straight forward and it tells us that the web master or rather the developer designed the simple script to make cool effects of name that we input into the script.</p><p>But from the same description we can learn that there is some vulnerability by the <strong>ending</strong> of the statement telling us that the code is not filtering the inputs correctly executing java script alert.This is so important to note since we are supposed to somehow make sure we execute the alert.<br>It is also common in many ctf challenges I(personally) have encountered with, It is mostly solved by the cross-site scripting(XSS) technique. We therefore know we are dealing with the same here.<br>We therefore click the link and see what it holds for us.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZHOFgaCHgD_xWFqT137TQg.png" /><figcaption>upon clicking the link for the challenge</figcaption></figure><p>We can surely tell that the web-developer has some style in him by the way he/she developed the script.We shall start by testing the script in trying to see how it works and then continue to the enumeration step which is the most important one here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PkFZR9CjirVVe5MUvoLprQ.png" /><figcaption>trying out the name “jack greenlish”</figcaption></figure><p>We can now see how the script executes now we have to proceed to checking/viewing the page source and analyze it with all the materials we can access.<br>Just as we had thought, it has so so many scripts in it that are joined together to make the script itself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZaXjcxHliokTNDH8fc8Ylw.png" /><figcaption>viewing the page-source</figcaption></figure><p>This is not an easy task to be honest as we try to analyze each script, we also have to check each of them to try and see which one has to be the one we have to “play” with in the sense of cross-site scripting.<br>We finally land on the script that seems to be so unique;therefore we have the work of trying to know what the script has hidden.<br>The script is at number 25 of the page-source:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pV4RoovAytipijWXAjr4OA.png" /><figcaption>the script</figcaption></figure><p>We now have to do some serious research of what it can provide; after the research we could not have any other idea rather than the script having some obfuscated code in it.We then have to figure out a way of de- obfuscating the code and the best tactic is by using the console in the developer tools of the browser which is a very good tool but not common to many web-penetration testers.</p><p>The other thing that also clearly shows us that we need to de-obfuscate the code is the presence of the “<strong><em>eval”</em></strong> part in the code.This is a common obfuscating technique know as <strong><em>packer </em></strong>and is sometimes called <strong>Dean Edwards’ packer.</strong></p><p>Just by opening the console; we paste the whole script that has the obfuscated code.We then replace the <strong>eval </strong>part with <strong>console.log.<br></strong>This is what we are actually doing:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zdcvB7UpjuvmOafo4i2VBA.png" /><figcaption>after replacing “eval” with “console.log”</figcaption></figure><p>This process really helps us since we are able to get the hint of what we need to work on. The visibility of the array of characters containing “your flag is” combined shows us we are close to finding what we need.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CpjbwTk41yVg1QueiwSx0w.png" /><figcaption>viewing the “your flag is” string</figcaption></figure><p>By noting each function we can come into conclusion that it is the function “<strong>newAlert” </strong>that is being defined and it is assigned to the variable “<strong>z”. </strong>once we know this everything becomes straight forward for us.<br><strong><em>newAlert=function(){var z=[‘y’,’o’,’u’,’r’,’ ‘,’f’,’l’,’a’,’g’,’ ‘,’i’,’s’,’:’]</em></strong></p><p>The same function is is still seen directly overwriting the functions:window.alert, window.confirm and window.prompt as seen here:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f0SWTF10AK6XkaQYQFIb1w.png" /><figcaption>overwriting of functions</figcaption></figure><p>this tells us clearly that if we find a way of executing either functions the newAlert function will be triggered and we shall then have done our cross-site scripting.<br>Its then up to us to create the command we are to use in the injection as it is the only thing left for us to do now.<br>We can try out the following commands to see which one best works on the injection.</p><p>what we need to know so dearly is that we have to execute the script newAlert; after tying various injections we get this one special script that enables us access to the flag.</p><p>The payload is:</p><p><strong><em>&lt;img src=x onerror=”alert()”&gt;</em></strong></p><p>The above payload works in the sense that it sets an invalid source of an image.The “x” image is clearly a non-existent image and when tried to be sourced will not be found defaulting to an error which is what we want here.We also call function alert that is overwritten with the newAlert function that we want to execute.</p><p>After using the payload we get the flag as seen below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*Mavd4RV2QOaamGzvaMAyOQ.png" /><figcaption>before running the payload</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*mZjuvgQPa32yeuP5UXZhjg.png" /><figcaption>flag</figcaption></figure><p>HOORAY! we have just obtained our flag.<br>I hope the this has helped you.<br>Happy hacking all through.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e319afde361e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>