<?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 George Mwaura Karumbi on Medium]]></title>
        <description><![CDATA[Stories by George Mwaura Karumbi on Medium]]></description>
        <link>https://medium.com/@gkarumbi?source=rss-50aa85de7804------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by George Mwaura Karumbi on Medium</title>
            <link>https://medium.com/@gkarumbi?source=rss-50aa85de7804------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 10:26:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gkarumbi/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[From Cybersecurity Analyst to Smart Contract Auditor: My Journey in Pursuit Of Excellence]]></title>
            <link>https://gkarumbi.medium.com/from-cybersecurity-analyst-to-smart-contract-auditor-my-journey-in-pursuit-of-excellence-b63f1c85a0eb?source=rss-50aa85de7804------2</link>
            <guid isPermaLink="false">https://medium.com/p/b63f1c85a0eb</guid>
            <category><![CDATA[sch]]></category>
            <category><![CDATA[smart-contract-security]]></category>
            <dc:creator><![CDATA[George Mwaura Karumbi]]></dc:creator>
            <pubDate>Mon, 01 May 2023 11:12:12 GMT</pubDate>
            <atom:updated>2023-05-01T11:12:12.385Z</atom:updated>
            <content:encoded><![CDATA[<p>As a cybersecurity analyst with a Comptia Security+ certification, I have always been fascinated by lockchain technology and its applications. This fascination led me to explore blockchain development and smart contracts. Recently, I completed the BNB Chain Zero2Hero Solidity bootcamp, which gave me an in-depth understanding of the Solidity language,smart contract development, and also a little bit of smart contract security. This experience further heightened my interest in smart contract auditing, and I am now applying for a scholarship opportunity at an online bootcamp for smart contract auditing.</p><p>My motivation for pursuing smart contract auditing is twofold. Firstly, I am passionate about ensuring the security of smart contracts and blockchain applications. As a cybersecurity analyst, I have seen first-hand the disastrous effects of cyberattacks on organizations and individuals. I believe that as the adoption of blockchain technology grows, there will be an increased need for experts in smart contract auditing to ensure the security of these systems. Secondly, I am excited about the potential for smart contracts to revolutionize various industries, including finance, real estate, and supply chain management. By helping to secure smart contracts, I believe I can contribute to the growth and success of these industries.</p><p>Upon completion of the SCH bootcamp, my ideal plan is to work with an auditing firm, auditing smart contracts for their clients. I believe that my experience as a cybersecurity analyst and my knowledge of smart contracts will be invaluable in this role. Additionally, I plan to stay up to date with the latest developments in blockchain technology and smart contracts, continuously improving my skills and knowledge.</p><p>Finally, I am excited about the opportunity to pursue excellence in smart contract auditing through the SCH Bootcamp</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b63f1c85a0eb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Smart contracts are an essential part of the Ethereum network, and their performance is critical…]]></title>
            <link>https://gkarumbi.medium.com/smart-contracts-are-an-essential-part-of-the-ethereum-network-and-their-performance-is-critical-d7add389c05e?source=rss-50aa85de7804------2</link>
            <guid isPermaLink="false">https://medium.com/p/d7add389c05e</guid>
            <category><![CDATA[smart-contract-auditing]]></category>
            <dc:creator><![CDATA[George Mwaura Karumbi]]></dc:creator>
            <pubDate>Mon, 13 Feb 2023 11:24:47 GMT</pubDate>
            <atom:updated>2023-02-13T11:24:47.284Z</atom:updated>
            <content:encoded><![CDATA[<p>Maximizing Efficiency: Strategies for Optimizing Gas Usage in Solidity Smart Contracts</p><p>Smart contracts are an essential part of the Ethereum network, and their performance is critical to the overall health of the ecosystem. One of the key factors affecting smart contract performance is the cost of executing code, which is measured in terms of gas. Gas is a unit of computation used in the Ethereum network, and it is required for every operation performed on the blockchain. To ensure that smart contracts are efficient and cost-effective, it’s important to optimize their gas usage. In this article, we’ll discuss some strategies for optimizing gas usage in Solidity.</p><ol><li>Splitting Large require and revert Statements</li></ol><p>The require and revert statements in Solidity are used to validate conditions and stop execution if they are not met. When the data associated with these statements is longer than 32 bytes, it&#39;s recommended to split it into multiple statements, each less than 32 bytes, to save on gas.</p><ol><li>Use of x = x + y Over x += y</li></ol><p>In Solidity, it’s recommended to use x = x + y instead of x += y when incrementing variables. The x += y syntax is less efficient and uses more gas than the x = x + y syntax.</p><ol><li>Use of unchecked in Loops</li></ol><p>The unchecked keyword can be used in Solidity to suppress overflow checks, which can improve performance and reduce gas usage. It&#39;s recommended to use the unchecked keyword in loops when it&#39;s known that an operation will not overflow, but be careful when using this keyword as it can lead to unexpected results if an overflow occurs.</p><ol><li>Inlining Internal Functions</li></ol><p>Internal functions are functions that can only be called from within the contract and are not accessible from the outside. If a function is only called once, it can be inlined to save on gas. Inlining eliminates the overhead associated with calling a function, which can significantly reduce gas usage.</p><p>In conclusion, optimizing gas usage in Solidity is an important aspect of developing efficient and cost-effective smart contracts. By following these strategies, developers can reduce the cost of executing code, improve performance, and ensure that their smart contracts run smoothly on the Ethereum network.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d7add389c05e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Maximizing Gas Efficiency in Ethereum Contracts: The Benefits of Using calldata and private…]]></title>
            <link>https://gkarumbi.medium.com/maximizing-gas-efficiency-in-ethereum-contracts-the-benefits-of-using-calldata-and-private-a72a118413ae?source=rss-50aa85de7804------2</link>
            <guid isPermaLink="false">https://medium.com/p/a72a118413ae</guid>
            <category><![CDATA[smart-contract-security]]></category>
            <category><![CDATA[smart-contract-auditing]]></category>
            <dc:creator><![CDATA[George Mwaura Karumbi]]></dc:creator>
            <pubDate>Sun, 12 Feb 2023 13:11:44 GMT</pubDate>
            <atom:updated>2023-02-12T13:11:44.878Z</atom:updated>
            <content:encoded><![CDATA[<h3>Maximizing Gas Efficiency in Ethereum Contracts: The Benefits of Using calldata and private Keywords</h3><p>Developing Ethereum smart contracts can be challenging, especially when it comes to optimizing the code for gas usage. Gas is a fee that is required to execute a smart contract and it is paid in Ether. When developing a smart contract, it is important to consider the gas cost as this will affect the overall cost of executing the contract. In this article, we will discuss two gas optimization strategies that developers can use to reduce gas costs.</p><ol><li>Use private rather than public for constants When defining constants in your contract, use the private keyword instead of the public keyword. This will save gas as the constant will not be visible to the outside world and will not be included in the contract’s storage. For example, instead of using uint256 public constant BIPS_ONE = 1e4;, you can use uint256 private constant BIPS_ONE = 1e4;.</li><li>Use calldata instead of memory for function parameters Passing data to a function as calldata rather than memory can also save gas. If the data passed into the function does not need to be changed, it can be passed in as calldata. This makes it so that the data is not automatically loaded into memory, which reduces the gas cost. For example, instead of using function auctionID(Auction memory auction) external pure returns (uint256);, you can use function auctionID(Auction calldata auction) external pure returns (uint256);.</li></ol><p>By using these two strategies, developers can reduce the gas cost of executing Ethereum smart contracts, making them more efficient and cost-effective. These strategies can be applied to any type of smart contract, regardless of its complexity or function.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a72a118413ae" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How To Find Confluence Servers With CVE-2021–26084 Vulnerability Using Nuclei]]></title>
            <link>https://gkarumbi.medium.com/how-to-find-confluence-servers-with-cve-2021-26084-vulnerability-using-nuclei-7b86625127e5?source=rss-50aa85de7804------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b86625127e5</guid>
            <category><![CDATA[appsec]]></category>
            <category><![CDATA[websec]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[George Mwaura Karumbi]]></dc:creator>
            <pubDate>Wed, 08 Sep 2021 09:40:13 GMT</pubDate>
            <atom:updated>2021-09-08T09:40:13.040Z</atom:updated>
            <content:encoded><![CDATA[<p>Step 1:</p><p>Use this google dork to find Confluence Servers that are exposed to the internet<strong> inurl:http://confluence. login.action</strong></p><p>Step 2:</p><p>Copy the list of urls to a file like this:</p><p>Example:</p><p><a href="http://confluence.notocord.com/">http://confluence.notocord.com</a></p><p><a href="http://confluence.ti9.com.br:8081/">http://confluence.ti9.com.br:8081</a></p><p><a href="http://confluence.isi-developpement.com/">http://confluence.isi-developpement.com</a></p><p><a href="http://confluence.deepend.com.au/">http://confluence.deepend.com.au</a></p><p><a href="https://confluence.semmtech.com/">https://confluence.semmtech.com/</a></p><p><a href="http://confluence.ankiro.dk/">http://confluence.ankiro.dk</a></p><p><a href="http://confluence.mercurydpm.org/">Dashboard</a></p><p>Step 3: Using nuclei run this command on the terminal to view the results</p><p><strong>cat confluence-targets.txt | ./nuclei -t nuclei-templates/cves/2021/CVE-2021–26084.yaml</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b86625127e5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Can a global variable be changed locally in Javascript?]]></title>
            <link>https://gkarumbi.medium.com/can-a-global-variable-be-changed-locally-in-javascript-de75818274ff?source=rss-50aa85de7804------2</link>
            <guid isPermaLink="false">https://medium.com/p/de75818274ff</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[100daysofcode]]></category>
            <dc:creator><![CDATA[George Mwaura Karumbi]]></dc:creator>
            <pubDate>Fri, 09 Jul 2021 13:16:44 GMT</pubDate>
            <atom:updated>2021-07-09T13:16:44.708Z</atom:updated>
            <content:encoded><![CDATA[<p>The short answer to that is Yes.</p><p>Here is an example:</p><p>var sum = 0;</p><p>function addThree() {<br> sum = sum + 3;<br>}</p><p>//var=3</p><p>// Only change code below this line<br>function addFive(){<br> sum = sum +5<br>}</p><p>//var sum=8</p><p>// Only change code above this line</p><p>addThree();<br>console.log(sum)<br>addFive();</p><p>console.log(sum)</p><p>Without the use of the<em> </em><strong><em>var</em> keyword</strong> and hence being <strong>undefined</strong>, the variable sum inside functions addThree() and addFive() becomes a global variable meaning that once the value of sum changes inside the addThree() function it is also gets changed in the <strong>global variable</strong> which now becomes <strong>3. </strong>The same is repeated after the function addFive()</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de75818274ff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Global Scope Vs. Local Scope in Functions]]></title>
            <link>https://gkarumbi.medium.com/global-scope-vs-local-scope-in-functions-366fdd1472a9?source=rss-50aa85de7804------2</link>
            <guid isPermaLink="false">https://medium.com/p/366fdd1472a9</guid>
            <category><![CDATA[100daysofcode]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[local-variable]]></category>
            <dc:creator><![CDATA[George Mwaura Karumbi]]></dc:creator>
            <pubDate>Fri, 09 Jul 2021 12:38:18 GMT</pubDate>
            <atom:updated>2021-07-09T12:38:18.959Z</atom:updated>
            <content:encoded><![CDATA[<p>Where you have 2 variables with the same name i.e in a global scope and another on in a function(local scope); Inside that function the local variable takes precedence.</p><p>Example:</p><p>var someVar = “Head”</p><p>function myFun(){<br> var someVar = “Hat”<br>return someVar<br>}</p><p>console.log(myFun())</p><p>This code will print out “Hat” which is in the local scope</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=366fdd1472a9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding the “undefined” variable in Javascript]]></title>
            <link>https://gkarumbi.medium.com/understanding-the-undefined-variable-in-javascript-291b3e6e7c57?source=rss-50aa85de7804------2</link>
            <guid isPermaLink="false">https://medium.com/p/291b3e6e7c57</guid>
            <category><![CDATA[variables]]></category>
            <category><![CDATA[undefined]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[George Mwaura Karumbi]]></dc:creator>
            <pubDate>Mon, 28 Jun 2021 15:15:46 GMT</pubDate>
            <atom:updated>2021-06-28T15:15:46.485Z</atom:updated>
            <content:encoded><![CDATA[<p>There’s usually a lot of misunderstanding surrounding the undefined variable so I am going to attempt to demystify it by sharing some knowledge around this.</p><p>When javascript values are undeclared they have an initial value of undefined e.g</p><p>var myVar; -has a value of undefined</p><p>If you do a mathematical operation on an undefined variable you will get a NaN i.e Not a Number</p><p>If you concatenate a string with an undefined variable you will get a literal string of undefined.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=291b3e6e7c57" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>