<?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 Devilx0x1 on Medium]]></title>
        <description><![CDATA[Stories by Devilx0x1 on Medium]]></description>
        <link>https://medium.com/@Devil0x1?source=rss-bc9a0e4b4e26------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*1xTTjeyBPrXA5fhEN3ij4A.jpeg</url>
            <title>Stories by Devilx0x1 on Medium</title>
            <link>https://medium.com/@Devil0x1?source=rss-bc9a0e4b4e26------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 20:07:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Devil0x1/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[Converting gcc to backdoor in linux]]></title>
            <link>https://medium.com/@Devil0x1/converting-gcc-to-backdoor-in-linux-5b46977285f5?source=rss-bc9a0e4b4e26------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b46977285f5</guid>
            <dc:creator><![CDATA[Devilx0x1]]></dc:creator>
            <pubDate>Sat, 17 Oct 2026 09:44:23 GMT</pubDate>
            <atom:updated>2026-10-17T09:44:23.135Z</atom:updated>
            <content:encoded><![CDATA[<p>Everyone knows GCC as a compiler, but have you ever thought about how it could be turned into something that acts like a backdoor? Sounds strange, right?</p><p>In this demo, I showed how I used a shared library constructor and a condition to match GCC and trigger a socket connection. Pretty interesting how something as normal as a compiler can be involved in an unexpected security scenario right haha ….</p><p>demo:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/504/1*SqPq7ExwNZY_FhBk0tH2MA.png" /></figure><p>got the trigger :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/844/1*fZOChMOq75tpVyMcEz_rbQ.png" /></figure><p>Logic:</p><p>My constructor runs when the shared library is loaded. From there, I read /proc/self/comm to check the current process name.</p><p>Then, I use strcmp() to check whether the process is gcc. If it matches, the code triggers a socket connection to my Netcat listener.</p><p>So basically, the connection is triggered only when the process name matches gcc. A simple concept, but an interesting way to explore how shared library constructors work and how they can be abused. Pretty simple, right?</p><p>if matches then it trigger the connection to our netcat simple easy no?</p><p>code will be open source later ……..</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b46977285f5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ShadowRead Stealer POC]]></title>
            <link>https://medium.com/@Devil0x1/shadowread-stealer-poc-b1b9906d94d1?source=rss-bc9a0e4b4e26------2</link>
            <guid isPermaLink="false">https://medium.com/p/b1b9906d94d1</guid>
            <dc:creator><![CDATA[Devilx0x1]]></dc:creator>
            <pubDate>Tue, 11 Mar 2025 16:00:51 GMT</pubDate>
            <atom:updated>2025-03-11T16:00:51.960Z</atom:updated>
            <content:encoded><![CDATA[<p>ShadowRead is a proof-of-concept (PoC) password stealer designed to demonstrate how sensitive information can be exfiltrated without detection. It discreetly captures the password when the user change password in ssh machine .</p><p>ShadowRead created by me known as Devilx0x1 or bypasser0x1</p><p>check here for poc : <a href="https://github.com/devilzsecurity/POC-Shadowstealer/">https://github.com/devilzsecurity/POC-Shadowstealer/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b1b9906d94d1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[writeup on Gemy thm]]></title>
            <link>https://medium.com/@Devil0x1/writeup-on-gemy-thm-82aede35b2b6?source=rss-bc9a0e4b4e26------2</link>
            <guid isPermaLink="false">https://medium.com/p/82aede35b2b6</guid>
            <dc:creator><![CDATA[Devilx0x1]]></dc:creator>
            <pubDate>Fri, 22 Nov 2024 07:16:26 GMT</pubDate>
            <atom:updated>2024-11-22T07:16:26.127Z</atom:updated>
            <content:encoded><![CDATA[<p>writeup on Gemy thm</p><p>skill:Reversing</p><ol><li>We firstly download the file then unzip it we got gem binary to check the type and properties of the file we will use file command.</li><li>When we do file we get this as a output mean it’s a 64-bit Linux executable:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W9R6Q6mEeuPZIpZAAB9B3g.png" /></figure><p>3. When we do strings gem we got somtehing intresting that it is obfucated using upx :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ooXv0A-TBpF_02unMjVTZA.png" /></figure><p>here we go just we have to unpack it through this command upx -d gem</p><p>4. now we will run the command upx -d gem it will unpack the binary</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lIV97TmksJ9dXMngwHQHjg.png" /></figure><p>yep we successfully unpacked now we will use ghidra to anlyze it .</p><p>5.after we upload our file there wo got something intresting :</p><pre>void FUN_001011c5(long param_1)<br>{<br>  uint local_c;<br>  <br>  for (local_c = 0; local_c &lt; 4; local_c = local_c + 1) {<br>    *(undefined *)(param_1 + (int)local_c) =<br>         (&amp;DAT_00104030)[(int)local_c] ^ (&amp;DAT_00104038)[(int)local_c];<br>  }<br>  *(undefined *)(param_1 + 4) = 0;<br>  return;<br>}</pre><p>This function XORs each byte of the arrays DAT_00104030 and DAT_00104038 to compute the key.</p><p>explainatuon:</p><p>The function FUN_001011c5 is XORing two byte arrays: &amp;DAT_00104030 and &amp;DAT_00104038. Each byte from the two arrays at the same index is XORed and the result is stored.</p><p>For example, the first byte of &amp;DAT_00104030 is XORed with the first byte of &amp;DAT_00104038, the second byte with the second, and so on.</p><p>These XORed bytes are used to validate the key the user inputs</p><p>DAT_00104030 it was something intresting</p><p>Now for the we get the value of that which somthing like starts with 001011e2 0f b6 34 10 MOVZX ESI,byte ptr [RAX + RDX*0x1]=&gt;DAT_00104030 = 8Fh (value:0x8f)<br>for another one it was 001011f2 0f b6 0c 10 MOVZX ECX,byte ptr [RAX + RDX*0x1]=&gt;DAT_00104038 = 4Dh M<br>now 0x4d</p><p>now i thought to run python script which will iterate over a specific range of memory addresses in your binary and print out the byte values stored at those addresses.</p><p>script:</p><pre># Ghidra Python Script<br>from ghidra.program.model.address import Address<br>from ghidra.program.model.mem import MemoryAccessException<br><br># Define the memory range<br>data_section_start = currentProgram.getMinAddress().getAddressSpace().getAddress(0x00104020)<br>data_section_end = currentProgram.getMinAddress().getAddressSpace().getAddress(0x0010403f)<br>data_memory = currentProgram.getMemory()<br><br>try:<br>    address = data_section_start<br>    while address.compareTo(data_section_end) &lt;= 0:<br>        byte_value = data_memory.getByte(address)<br>        # Print address and byte value in hexadecimal format<br>        print(&quot;{}: {:02x}&quot;.format(address, byte_value &amp; 0xFF))<br>        address = address.add(1)<br>except MemoryAccessException as e:<br>    print(&quot;Memory access error at address {}: {}&quot;.format(address, e))</pre><p>it will iterate over memory ranges give us byte values simple<br>Open Script Manager in Ghidra:</p><p>Go to Window &gt; Script Manager.</p><p>Create a New Script:</p><p>Click New Script, choose Python as the language, and paste the script above into the editor.</p><p>Run the Script:</p><p>Save the script and then run it. It will print out the hexadecimal values of bytes in the specified memory range.</p><p>output:</p><pre>00104030: 8f<br>00104031: 5a<br>00104032: 3d<br>00104033: 41<br>00104034: 12<br>00104035: 99<br>00104036: 33<br>00104037: ab<br>00104038: 4d<br>00104039: 92<br>0010403a: 01<br>0010403b: 77<br>0010403c: 34<br>0010403d: bc<br>0010403e: f1<br>0010403f: c5</pre><p>Based on this memory dump, we can group the values as follows:</p><ul><li>DAT_00104030<strong> Values</strong>:</li><li>Starting at 0x00104030 and continuing for 8 bytes:</li></ul><pre>0x00104030: 8f<br>0x00104031: 5a<br>0x00104032: 3d<br>0x00104033: 41<br>0x00104034: 12<br>0x00104035: 99<br>0x00104036: 33<br>0x00104037: ab</pre><p>And for 0x00104038 and continuing for 8 bytes agaon:</p><pre>0x00104038: 4d<br>0x00104039: 92<br>0x0010403a: 01<br>0x0010403b: 77<br>0x0010403c: 34<br>0x0010403d: bc<br>0x0010403e: f1<br>0x0010403f: c5</pre><p>Now we get these values here:</p><pre>DAT_00104030: {0x8F, 0x5A, 0x3D, 0x41, 0x12, 0x99, 0x33, 0xAB}<br><br>DAT_00104038: {0x4D, 0x92, 0x01, 0x77, 0x34, 0xBC, 0xF1, 0xC5}</pre><p>Now this values are hexadecimal representations of bytes we will convert xor then to hexstring with a python script we can do very easily</p><pre>def xor_decrypt(hex_list1, hex_list2):<br>    # Ensure both lists are of equal length<br>    if len(hex_list1) != len(hex_list2):<br>        raise ValueError(&quot;Hex lists must be of equal length&quot;)<br><br>    # Perform XOR operation on each pair of hex values<br>    xor_result = [a ^ b for a, b in zip(hex_list1, hex_list2)]<br><br>    # Convert the result to hex strings<br>    xor_result_hex = [hex(x)[2:].zfill(2) for x in xor_result]<br>    <br>    return xor_result_hex<br><br># Input hex values<br>hex_list1 = [0x8F, 0x5A, 0x3D, 0x41, 0x12, 0x99, 0x33, 0xAB]  # DAT_00104030 values<br>hex_list2 = [0x4D, 0x92, 0x01, 0x77, 0x34, 0xBC, 0xF1, 0xC5]  # DAT_00104038 values<br><br># Perform XOR<br>result = xor_decrypt(hex_list1, hex_list2)<br>print(&quot;XOR result:&quot;, result)<br><br># The result will be in hex format</pre><p>boom we get our result</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*QQLgEclUe_7UTr4BdFqowA.png" /></figure><p>now we will try to use them as a key firs trying with first value c2 c8 3c 36</p><p>lol it works</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*_-Yfm3PL6vR5BMFI7ZNtzg.png" /></figure><p>solved — created by me</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82aede35b2b6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Suspicious Threat HTB Challenge]]></title>
            <link>https://medium.com/@Devil0x1/suspicious-threat-htb-challenge-d980e1127878?source=rss-bc9a0e4b4e26------2</link>
            <guid isPermaLink="false">https://medium.com/p/d980e1127878</guid>
            <dc:creator><![CDATA[Devilx0x1]]></dc:creator>
            <pubDate>Wed, 09 Oct 2024 06:08:52 GMT</pubDate>
            <atom:updated>2024-10-09T06:08:52.697Z</atom:updated>
            <content:encoded><![CDATA[<p>Suspicious Threat HTB Challenge</p><p>it’s a easy challenge</p><p>first step: log in ssh first</p><p>“Now we will check the shared objects in the system, which can sometimes reveal unusual files that may indicate the presence of a userland rootkit also .”</p><p>ldd command to find it out:</p><pre>ldd /bin/ls<br></pre><p>The output we get is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TYlhX8ZpUIUKZRUi4WVFzw.png" /></figure><p>We found /lib/x86_64-linux-gnu/libc.hook.so.6 in the /lib directory, which looks suspicious there.</p><p>Then , we just try to remove it through moving that file into /tmp:</p><pre>mv /lib/x86_64-linux-gnu/libc.hook.so.6 /tmp</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JsG3TAgTO3o-0Ca2m1tC_A.png" /></figure><p>see the msg here ERROR: ld.so: object ‘/lib/x86_64-linux-gnu/libc.hook.so.6’ from /etc/ld.so.preload cannot be preloaded mean that we finally able to remove that kit .</p><p>Now it’s time to find the flag :</p><pre>find / -name flag.txt 2&gt;/dev/null</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YfjeWoKZrRLngyK10qKnqw.png" /></figure><p>boom we pwned the machine easily!!!!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/854/1*M0CIBJPX6Hapov0v03Ymqg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d980e1127878" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Practical: buffer overflow]]></title>
            <link>https://medium.com/@Devil0x1/practical-buffer-overflow-409cf51e2c2d?source=rss-bc9a0e4b4e26------2</link>
            <guid isPermaLink="false">https://medium.com/p/409cf51e2c2d</guid>
            <category><![CDATA[buffer-overflow-attack]]></category>
            <category><![CDATA[practica]]></category>
            <category><![CDATA[memory-corruption]]></category>
            <dc:creator><![CDATA[Devilx0x1]]></dc:creator>
            <pubDate>Thu, 12 Sep 2024 18:48:32 GMT</pubDate>
            <atom:updated>2024-09-12T18:48:32.407Z</atom:updated>
            <content:encoded><![CDATA[<p>what is buffer overflow?</p><p>buffer is a type of a memory which is stores data for a temporary use of it &amp; overflow here is mean we are overflowing the memory region like overloading the memory to corrupt it or crushing the system haha sounds cool na !!!</p><p>how it work?<br>suppose there is a memory which doesn&#39;t check the written data size it accepting if a data is huge in a number, it can cause memory segmentation fault or memory can’t handle it in a simple meaning it is being overload or overflow now i will show you in a practical way to make you well understand .</p><pre>#include &lt;stdio.h&gt;<br>#include &lt;string.h&gt;<br>#include &lt;stdlib.h&gt;<br><br>void unsafeFunction(char *input) {<br>    char buffer[50]; // Small buffer of 50 bytes<br><br>    // Unsafe copy of input to buffer<br>    // No bounds checking, so input longer than 50 bytes will overflow the buffer<br>    strcpy(buffer, input);<br><br>    // Print the buffer content<br>    printf(&quot;Buffer content: %s\n&quot;, buffer);<br>}<br><br>int main() {<br>    char input[100];<br><br>    printf(&quot;Enter some text (up to 100 characters):\n&quot;);<br>    fgets(input, sizeof(input), stdin); // Read input from user<br><br>    <br>    input[strcspn(input, &quot;\n&quot;)] = 0;<br><br>    unsafeFunction(input); // Call the function with unsafe buffer handling<br><br>    return 0;<br>}</pre><p>This code is of c, I have declared buffer which stores almost 50 bytes &amp; sytrcpy copy the input into the buffer now here it did’nt do any king of bound checking which makes it overflow , so if the entered input is more than the 50 bytes will cause overflow the buffer &amp; lasty we called the function without any protection of handling data .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zjKfHAupLv_pXLLom8Z1xw.png" /></figure><p>see here the normal program which have less than 100 characters worked well yea now i will saw you howwe gonna overflow it</p><p>payload must be any word more than 100 characters can do with py also thrugh :</p><pre>print(&quot;A &quot; * 105)</pre><pre>A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A</pre><p>here we run the program and enter this payload see it will say segmentation fault mean memory has successfully corrupted see the below image:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gQitE5mfUdATe5Mq4LapvA.png" /></figure><p>boom!!! intresting na</p><p>thank you don’t forget me to follow me on instagram @computer_boy5</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=409cf51e2c2d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>