In rememberance (Shraddhanjali) of the victims of Pahalgam terrorism
· β˜• 4 min read · πŸ€– Naresh Mehta

India has been suffering from terrorists attacks since the last 1400 years! This terrorism is based on religion and the religious principles embibed in the religious book. In the latest spate of attacks, on 22nd April 2025, terrorists opened fire on a group of tourists killing at least 28 peiple and injuring more than 20 others. These tourists were asked their names, religion and checked for circumcision before being killed. Partial details of the attack is captured in Wiki.


Reverse a string in Rust
· β˜• 2 min read · πŸ€– Naresh Mehta

Rust has been gaining a lot of positive attention in the developer community due to very many positive things. You can read more on Stackoverflow (https://stackoverflow.blog/2020/01/20/what-is-rust-and-why-is-it-so-popular/) so I will avoid repetition on this blog.

Rust has fantastic support for basic str primitive (https://doc.rust-lang.org/std/primitive.str.html) but there are typical things that are very hard to get a grip on when one jumps to Rust as a C/C++ developer. I was doing some exercisim.io for Rust and came across a nice exercise where a primitive str is passed to a function which is expected to return a Rust String with the contents reversed i.e. drawer as an input is reversed into reward as an out.


Google CTF – Quest 3 (High-Speed Chase)
· β˜• 3 min read · πŸ€– Naresh Mehta

This is the first quest where you are told to write code in JavaScript. It is a very easy challenge to clear and tests the basics of conditional statements. The problem is that after breaking away from the Prague Apartment (Quest 2), you are being followed by adversaries. Luckily you get your hands on a self-driving car and you can break-in into the self-driving module and write your own code to get it to move faster than the pursuers. You are also helped by data points which are collected from satellites and sent to you for use. You can use JavaScript to write the code and get away from the pursuers.


Google CTF - Quest 2 (Prague Apartment)
· β˜• 2 min read · πŸ€– Naresh Mehta

Quest 2 is even easier than Quest 1 (if you have studied logic gates). Basically, the idea is to go through the circuit given and arrive at the code which will provide for a 1 on the final output. The combination of gates that are TRUE needs to be mentioned in CTF{}. The rest of the gates can be ignored.

There is a very simple way to solve it. We do a reverse traversal from the final gate to the input gates. The idea is to basically have the final value as true and then look at the gates input. Determine the input values so that the final value is true. Do the reverse traversal in an iterative fashion until one reaches the inputs defined.


Google CTF (Beginners Quest)!
· β˜• 2 min read · πŸ€– Naresh Mehta

I have been doing reverse engineering (RE) since my childhood days and that always helps freshen up my technical skills as well as understand the intrinsic working details of a particular piece of code and/or software. I have used tools such as IDA, x64dbg/Ollydbg, hiew, and more recently Ghidra. In the past I had also used SoftICE and quite a few other things. Those were the golden days when one can play around and I had all the time to learn stuff.


Home Alarm in Sweden
· β˜• 5 min read · πŸ€– Naresh Mehta

Home Alarm (Hemlarm in Swedish) systems market in Sweden is pretty monopolistic with 2 big companies (Verisure and Sector Alarm) dominating the home alarm market. Alarm systems needs to be connected to the central alarm system which is the one monitoring and calling in emergency services (Police & fire departments) in case of break-ins or fire. HomeAlarm systems from the big companies can cost as much as 500 SEK per month. In many cases, I have seen people spending more than 600 SEK per month.


Climate Change Strategies
· β˜• 4 min read · πŸ€– Naresh Mehta

Climate change is for real and multiple scientific evidence that has been provided by scientists and climate change activists to ask for increased action by corporates and individuals alike to actively work towards reversing and/or stopping the phenomena. Corporates especially are increasingly challenged to incorporate visible and meaningful action on climate change in their day to day activities. Investors are also requesting for transparency on corporate greenhouse gases (GHG) emissions and looking forward to strategies to reduce them. This resulted in a shift towards market responses, i.e. proactive managerial and technological measures, such as the establishment of carbon inventories, investments in β€˜green’ products and cleaner production processes[1][2].


Climate Change Strategy Framework
· β˜• 2 min read · πŸ€– Naresh Mehta

The literature on climate change strategies converges on 4 main strategic intents namely governance, innovation, compensation, and legitimation. The figure below identifies a corporate climate change strategy framework. The different corporate activities are grouped into 4 strategic intent with a focus of interaction / self-containment levels in each of those activities[1].

Governance which is defined as an organization’s ability to deal with risks and opportunities deals with GHG (Green House Gas) management and associated policy development, organization involvement and risk management. All of these corporate activities are mostly internal to the company and if done properly can be effectively used to formulate and strategize the corporate vision around climate change. Innovation is geared towards the improvement of existing products and processes as well as embracing any new technologies that can accelerate and conform to the various standards related to climate change activities and impact reduction. Compensation is the action taken by an organization to reduce its carbon footprint like buying CO2 credits or enhancing carbon sinks. The organization’s own technological assets and competencies remain unaltered. Legitimation encompasses the activities aimed at retaining or gaining legitimacy around the various activities done by the organization.