<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:xhtml="http://www.w3.org/1999/xhtml">
  <url>
    <loc>https://www.rhysin.fyi/tryhackmerooms</loc>
    <changefreq>daily</changefreq>
    <priority>0.75</priority>
    <lastmod>2023-09-09</lastmod>
  </url>
  <url>
    <loc>https://www.rhysin.fyi/tryhackmerooms/blog-post-h4cked</loc>
    <changefreq>monthly</changefreq>
    <priority>0.5</priority>
    <lastmod>2023-09-09</lastmod>
  </url>
  <url>
    <loc>https://www.rhysin.fyi/misc-ctf-rooms</loc>
    <changefreq>daily</changefreq>
    <priority>0.75</priority>
    <lastmod>2023-09-17</lastmod>
  </url>
  <url>
    <loc>https://www.rhysin.fyi/misc-ctf-rooms/blog-post-guessinggame</loc>
    <changefreq>monthly</changefreq>
    <priority>0.5</priority>
    <lastmod>2023-09-11</lastmod>
    <image:image>
      <image:loc>https://images.squarespace-cdn.com/content/v1/64fb766b786f6f2fca09a927/1260e600-6bee-4f30-99e3-6ed96bca039c/Ghidra_Check.png</image:loc>
      <image:title>Misc. CTF Rooms - Patriot CTF | Guessing Game - Make it stand out</image:title>
      <image:caption>BEAUTIFUL! Lets look at the C code to a understanding on what’s going on here. We see that there are a couple local variables created here when this function is called. char local_138 [300] This creates a char array with a size of 300 to store our input to be later used in the strcmp() function local_140 = 0x65666661726947 Now this looks interesting! What could it be?? A flag? A memory address? Lets convert it to ASCII Once we do that we get the string “effariG” But since we are using Little Endian its “Giraffe” Have we gotten it! Sadly no. There is another variable that must not be equal to 0 to get past the second if statement to print the flag if ( local_c != 0 ) -&gt; outputFlag() Well lets abuse that character buffer size of 300.</image:caption>
    </image:image>
    <image:image>
      <image:loc>https://images.squarespace-cdn.com/content/v1/64fb766b786f6f2fca09a927/94a491da-e945-47ef-9031-567309bb9d7b/main_func.png</image:loc>
      <image:title>Misc. CTF Rooms - Patriot CTF | Guessing Game - Make it stand out</image:title>
      <image:caption>Main function of the program. Two main calls, puts() and check()</image:caption>
    </image:image>
    <image:image>
      <image:loc>https://images.squarespace-cdn.com/content/v1/64fb766b786f6f2fca09a927/459ddc92-0245-4052-be1b-9aff1758579a/Buffer_Overflow.png</image:loc>
      <image:title>Misc. CTF Rooms - Patriot CTF | Guessing Game - Make it stand out</image:title>
      <image:caption>Nice! We just used a basic buffer overflow to run over and force the program to output the flag for us! The real flag is below.</image:caption>
    </image:image>
    <image:image>
      <image:loc>https://images.squarespace-cdn.com/content/v1/64fb766b786f6f2fca09a927/83a3c8ac-15f8-4eca-a742-ef5980154135/output_flag_func.png</image:loc>
      <image:title>Misc. CTF Rooms - Patriot CTF | Guessing Game - Make it stand out</image:title>
      <image:caption>Once we reach output flag it opens a file which in turn reads the flag into a variable and prints to the screen</image:caption>
    </image:image>
    <image:image>
      <image:loc>https://images.squarespace-cdn.com/content/v1/64fb766b786f6f2fca09a927/4abcab3e-77f7-4643-ade7-aea18b5e0957/runTheGame.png</image:loc>
      <image:title>Misc. CTF Rooms - Patriot CTF | Guessing Game - Make it stand out</image:title>
      <image:caption>Well….. not much going on in this binary. Input-&gt; Check-&gt; Output-&gt; Quit First thoughts are we can either see what it checks against in a disassembler, or try and abuse a weak input system written in C. fprint - Writes the printf to a file printf - Output a formatted string sprintf - Prints into a string snprintf - Prints into a string checking the length</image:caption>
    </image:image>
    <image:image>
      <image:loc>https://images.squarespace-cdn.com/content/v1/64fb766b786f6f2fca09a927/35aa4c4e-dba0-4c63-b261-b4682f8e7c9f/Check_Func.png</image:loc>
      <image:title>Misc. CTF Rooms - Patriot CTF | Guessing Game - Make it stand out</image:title>
      <image:caption>The check function writes to the screen and asks for an input. once the input is received, There is a call to strcmp() which compares your input to another variable.</image:caption>
    </image:image>
  </url>
  <url>
    <loc>https://www.rhysin.fyi/misc-ctf-rooms/blog-post-pctf-coffeeshop</loc>
    <changefreq>monthly</changefreq>
    <priority>0.5</priority>
    <lastmod>2023-09-10</lastmod>
    <image:image>
      <image:loc>https://images.squarespace-cdn.com/content/v1/64fb766b786f6f2fca09a927/1a412553-4d9b-4e79-b9cd-a9c98f067723/CoffeeShop.png</image:loc>
      <image:title>Misc. CTF Rooms - Patriot CTF | Coffee Shop - Make it stand out</image:title>
      <image:caption>A JAR file is a package file format typically used to aggregate many Java class files and associated metadata and resources into one file for distribution. JAR files are archive files that include a Java-specific manifest file. They are built on the ZIP format and typically have a .jar file extension. That being said a JAR file is identical to a zip file format. Both compresses a group of files (including directories) into a single file to reduce the total size, as well as retain the directory structure of the files.</image:caption>
    </image:image>
    <image:image>
      <image:loc>https://images.squarespace-cdn.com/content/v1/64fb766b786f6f2fca09a927/42b901bd-a190-4aab-96eb-cc800539a816/JarInflate.png</image:loc>
      <image:title>Misc. CTF Rooms - Patriot CTF | Coffee Shop - Make it stand out</image:title>
      <image:caption>We now have a META-INF directory and a CoffeeShop.class We can target this .class file to see how the program inter-workings are.</image:caption>
    </image:image>
    <image:image>
      <image:loc>https://images.squarespace-cdn.com/content/v1/64fb766b786f6f2fca09a927/6f88707f-c38c-401b-be7e-09cb9e6b0028/javap-c.png</image:loc>
      <image:title>Misc. CTF Rooms - Patriot CTF | Coffee Shop - Make it stand out</image:title>
      <image:caption>Whatever it is, the way you tell your story online can make all the difference.</image:caption>
    </image:image>
    <image:image>
      <image:loc>https://images.squarespace-cdn.com/content/v1/64fb766b786f6f2fca09a927/7a26f2b4-bd97-44a5-b249-bf6f1a8029e7/main_Func.png</image:loc>
      <image:title>Misc. CTF Rooms - Patriot CTF | Coffee Shop - Make it stand out</image:title>
      <image:caption>Nice Work! If we peer into the developer comments in the main function we can see that there is a checking function that looks for very specific string values. Thankfully the Dev left them for us to find!</image:caption>
    </image:image>
    <image:image>
      <image:loc>https://images.squarespace-cdn.com/content/v1/64fb766b786f6f2fca09a927/63a7056c-32b2-4469-850e-a8410f59d4fd/base64decode.png</image:loc>
      <image:title>Misc. CTF Rooms - Patriot CTF | Coffee Shop - Make it stand out</image:title>
      <image:caption>BOOM got that flag!</image:caption>
    </image:image>
  </url>
  <url>
    <loc>https://www.rhysin.fyi/misc-ctf-rooms/csaw-baby3</loc>
    <changefreq>monthly</changefreq>
    <priority>0.5</priority>
    <lastmod>2023-09-17</lastmod>
    <image:image>
      <image:loc>https://images.squarespace-cdn.com/content/v1/64fb766b786f6f2fca09a927/00a40d04-5348-4645-9931-04d7d593e24d/checksec.png</image:loc>
      <image:title>Misc. CTF Rooms - CSAW CTF | BabysThird - Make it stand out</image:title>
      <image:caption>Nothing of interest…</image:caption>
    </image:image>
    <image:image>
      <image:loc>https://images.squarespace-cdn.com/content/v1/64fb766b786f6f2fca09a927/86706e0e-ac28-4001-afd5-ce47f01da9d1/objdump.png</image:loc>
      <image:title>Misc. CTF Rooms - CSAW CTF | BabysThird - Make it stand out</image:title>
      <image:caption>I see 2 mains lines of interest, Memory address (120e and 1224) 120e is a scanf that handles our input 1224 calls a strcmp</image:caption>
    </image:image>
    <image:image>
      <image:loc>https://images.squarespace-cdn.com/content/v1/64fb766b786f6f2fca09a927/dda4e840-b595-412b-99d9-64c7fe72ffbd/flag.png</image:loc>
      <image:title>Misc. CTF Rooms - CSAW CTF | BabysThird - Make it stand out</image:title>
      <image:caption>Easy Points in less than 5 min of work.</image:caption>
    </image:image>
    <image:image>
      <image:loc>https://images.squarespace-cdn.com/content/v1/64fb766b786f6f2fca09a927/d8840e45-547d-42d3-afba-8ae638c19986/strings.png</image:loc>
      <image:title>Misc. CTF Rooms - CSAW CTF | BabysThird - Make it stand out</image:title>
      <image:caption>Well I’ll be dammed if that isn’t a flag staring right at me! Lets input it back into the program to see if that’s all we had to do!</image:caption>
    </image:image>
    <image:image>
      <image:loc>https://images.squarespace-cdn.com/content/v1/64fb766b786f6f2fca09a927/8b6dd154-0ac6-406d-9a6f-74f927cfac86/execute.png</image:loc>
      <image:title>Misc. CTF Rooms - CSAW CTF | BabysThird - Make it stand out</image:title>
      <image:caption>Well, not very eventful….. BUT, we can start formulating ideas about how this programs logic works. Input -&gt; Check -&gt; Output Maybe we can abuse the Input buffer? How is this program checking input? (Hard coded compare possibly?)</image:caption>
    </image:image>
  </url>
  <url>
    <loc>https://www.rhysin.fyi/home</loc>
    <changefreq>daily</changefreq>
    <priority>1.0</priority>
    <lastmod>2023-09-10</lastmod>
    <image:image>
      <image:loc>https://images.squarespace-cdn.com/content/v1/6442ef4842b7395876978966/1682108240014-XDIUNHLV64UVCJ0VC29N/Sleek+Objects+1.jpg</image:loc>
    </image:image>
  </url>
  <url>
    <loc>https://www.rhysin.fyi/about</loc>
    <changefreq>daily</changefreq>
    <priority>0.75</priority>
    <lastmod>2023-09-10</lastmod>
    <image:image>
      <image:loc>https://images.squarespace-cdn.com/content/v1/6442ef4842b7395876978966/1682108255276-FRGB1A6K371KAOZEBKNF/Light+Objects+1.jpg</image:loc>
    </image:image>
  </url>
  <url>
    <loc>https://www.rhysin.fyi/contact</loc>
    <changefreq>daily</changefreq>
    <priority>0.75</priority>
    <lastmod>2023-09-10</lastmod>
  </url>
  <url>
    <loc>https://www.rhysin.fyi/security-write-ups</loc>
    <changefreq>daily</changefreq>
    <priority>0.75</priority>
    <lastmod>2023-09-10</lastmod>
  </url>
</urlset>

