<?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 Kadyrbek Narmamatov on Medium]]></title>
        <description><![CDATA[Stories by Kadyrbek Narmamatov on Medium]]></description>
        <link>https://medium.com/@kadirpili?source=rss-bccc281dfe97------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*rEKG7T4iHqEwDEI9umoFPQ.jpeg</url>
            <title>Stories by Kadyrbek Narmamatov on Medium</title>
            <link>https://medium.com/@kadirpili?source=rss-bccc281dfe97------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 14:48:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kadirpili/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[Generate social media images with texts using Golang]]></title>
            <link>https://kadirpili.medium.com/generate-social-media-images-with-texts-using-golang-7c9b7f86a510?source=rss-bccc281dfe97------2</link>
            <guid isPermaLink="false">https://medium.com/p/7c9b7f86a510</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[social-media]]></category>
            <category><![CDATA[instagram]]></category>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[image-processing]]></category>
            <dc:creator><![CDATA[Kadyrbek Narmamatov]]></dc:creator>
            <pubDate>Sun, 25 Apr 2021 14:34:30 GMT</pubDate>
            <atom:updated>2021-04-25T14:36:44.549Z</atom:updated>
            <content:encoded><![CDATA[<p>Here, I will explain the way to automatically place different typed texts on top of images. To contrast the text’s color (to make it easy to read), we are going to place a transparent overlay on the image.</p><p>I will be using this library:</p><p><a href="https://github.com/SEFI2/instagen">SEFI2/instagen</a></p><p>First of all, here is the sample image we want to generate:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZGKbrtM5fWVwOuHO04BZMA.png" /><figcaption>Auto-generated image example</figcaption></figure><pre>package main<br>import (<br>   &quot;fmt&quot;<br>   &quot;github.com/SEFI2/instagen/image&quot;<br>   &quot;github.com/SEFI2/instagen/utils&quot;<br>)<br><br>func main() {<br>   title := &quot;Sed ut perspiciatis unde omnis iste natus error sit voluptatem&quot;<br>   content := &quot;Sed ut perspiciatis unde omnis iste natus perspiciatis unde omnis iste natus Joker error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab perspiciatis unde omnis iste natus illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. &quot;<br><br>   width, height := image.InstagramSquarePostSize()<br>   image := image.NewImage(width, height)<br>   author := &quot;@kadirpili&quot;<br><br>   background, err := utils.RandomSquareImage(&quot;Batman&quot;)<br>   if err != nil {<br>      fmt.Println(err)<br>      return<br>   }<br><br>   if err := image.LoadBackground(background); err != nil {<br>      fmt.Println(err)<br>      return<br>   }<br><br>   if err := image.GenerateOverlay(20); err != nil {<br>      fmt.Println(err)<br>      return<br>   }<br><br>   if err := image.AddTitleText(title); err != nil {<br>      fmt.Println(err)<br>   }<br><br>   if err := image.AddContentText(content); err != nil {<br>      fmt.Println(err)<br>      return<br>   }<br><br>   if err := image.AddAuthorText(author); err != nil {<br>      fmt.Println(err)<br>      return<br>   }<br><br>   if err := image.Save(&quot;kadirpili.png&quot;); err != nil {<br>      fmt.Println(err)<br>      return<br>   }<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7c9b7f86a510" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The concept of SMEP (Supervisor Mode Execution Prevention)]]></title>
            <link>https://kadirpili.medium.com/the-concept-of-smep-supervisor-mode-execution-prevention-ed6de2d1fce6?source=rss-bccc281dfe97------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed6de2d1fce6</guid>
            <category><![CDATA[smep]]></category>
            <category><![CDATA[linux-kernel]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Kadyrbek Narmamatov]]></dc:creator>
            <pubDate>Tue, 27 Nov 2018 14:00:06 GMT</pubDate>
            <atom:updated>2018-11-30T12:48:51.098Z</atom:updated>
            <content:encoded><![CDATA[<h3>The concept of SMEP and bypassing it</h3><p>As the technology evolves and becomes powerful to make our life easier, it also becomes a complex mechanism, which gets too complicated for developers to control every aspect of that technology. Thus, fully maintaining complex technology is almost impossible and there always appear vulnerabilities or bugs, which can become an opportunity for hackers to exploit them and gain profits from them. The same thing applies to the “Kernel”, which is the fundamental system in any computer for managing the communication between hardware and software in computers (despite the fact that it is very old designed system). As Kernel was evolving, Kernel engineers tried to secure it by applying very different features and one of those approaches is securing by SMEP, which was first introduced in 2010. SMEP is described by a one-bit variable in the Kernel, which basically shows if it is enabled or disabled. In this post, I will explain the simple idea behind SMEP and describe different ways it can be exploited in Windows and Linux.</p><p>So, SMEP `<strong>Supervisor Mode Execution Prevention`</strong>, as the name states, helps Kernel to prevent the execution of non-privileged code or command in Kernel space. Let’s see in details, how it works.</p><p>The memory, where all processes (note: Kernel itself is also a kind of a process) are being stored and executed is divided into two spaces, first is Kernel space (which is about ~800MB in Linux x86 OS) and second is the user space, where all user-defined commands and codes are stored. It was designed in this way to isolate the Kernel for security reasons. The difference between user space and kernel space is that the Kernel space is more privileged, it is able to directly communicate with CORE and execute powerful commands. Basically, if you are able to execute commands in Kernel space, you able to get any data stored on a computer or crash the whole system. Thus, SMEP always detects and prevents the execution of the code which was defined by the regular user and then returns PAGE FAULTS. PAGE FAULTS is not really important for this post, but you can imagine that it simply tells to the OS that some error happened within the Kernel. Every OS handles the PAGE FAULTS in its own way, for example, Windows shows the blue error screen when it encounters the PAGE_FAULT, which must be very familiar to many of you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PBPfmc_yAuqjwdWPYJ2-7Q.jpeg" /><figcaption>PAGE FAULT in Windows</figcaption></figure><p>Before SMEP was introduced, there were many ways to exploit the Kernel with different ways, but mostly using well-known exploit called Stack Buffer Overflow. Unfortunately, there are still some tricky ways to disable the SMEP or execute the attacker’s code within the Kernel space itself. I will introduce them via using two different OSs, Windows 10 64-bit and Linux x86.</p><h3>SMEP bypass in Windows 10</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*wrP0BFjfto54qOYWSJ5YQg.png" /></figure><ul><li><a href="https://habr.com/company/pt/blog/152365/">Windows 8 - да будет SMEP!</a></li><li><a href="http://blog.ptsecurity.com/2012/09/bypassing-intel-smep-on-windows-8-x64.html">Bypassing Intel SMEP on Windows 8 x64 Using Return-oriented Programming</a></li></ul><h3>SMEP bypass in Linux x86</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed6de2d1fce6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Linux Kernel development]]></title>
            <link>https://kadirpili.medium.com/linux-kernel-development-162d9ec281aa?source=rss-bccc281dfe97------2</link>
            <guid isPermaLink="false">https://medium.com/p/162d9ec281aa</guid>
            <dc:creator><![CDATA[Kadyrbek Narmamatov]]></dc:creator>
            <pubDate>Fri, 23 Nov 2018 15:30:12 GMT</pubDate>
            <atom:updated>2018-11-27T14:04:34.432Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>What is Linux Kernel?</strong></p><p>Basically, the interface which takes the responsibility for communication between the user space and hardware. In other words, it interacts with the hardware of a machine by getting and parsing the commands from the user. The things to note is that kernel has more privileged space than the user does, which also means that user doesn’t have abilities to interact with the system as the kernel can.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hjLmIMKPKP4ThR7J9NX8Jw.png" /><figcaption>Linux Kernel Image</figcaption></figure><p><strong>What is the Linux Module?</strong></p><p>It is the binary code, which can be inserted and run within the Kernel. The interesting thing is that the binary code is inserted on the fly without the need of recompilation the kernel with that new module. insmod instruction is used to insert the module and rmmod instruction is used to remove the module.</p><p><em>But does it mean that inserted module would be able to get all privileges of the Kernel? (`_`)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/1*c_t404RRoBOPqKhVzZHV_Q.gif" /><figcaption>Linux Module</figcaption></figure><p><strong>How to write the Linux Module?</strong></p><p><a href="https://www.youtube.com/watch?v=S8hifIrDh-g">Tutorial</a></p><p><strong>What is Device Drivers? :)</strong></p><p>The code in Kernel which helps the user to use the hardware devices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*DY3Vpc8VN4Ckktc4993E4w.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=162d9ec281aa" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>