Skip to content

Instantly share code, notes, and snippets.

View ericdennisforever's full-sized avatar

Online Game Security Researcher ericdennisforever

View GitHub Profile
@ericdennisforever
ericdennisforever / Using the curl library from C++ on Windows.txt
Last active October 4, 2023 12:49
Using the curl library from C++ on Windows
Using the curl library from C++ on Windows
curl is a project containing a command line tool and a library that can be used to transfer data using a variety of protocols, including, of course, HTTP and HTTPS. The library API is written in C, but there are various C++ wrappers on top of it. One of those is curlcpp. In this article, I will show how to build these libraries for Windows with Visual Studio.
Here is an example, using curlcpp, of how to get weather data from https://openweathermap.org.
#include "curl_easy.h"
#include "curl_form.h"
#include "curl_ios.h"
#include "curl_exception.h"
@ericdennisforever
ericdennisforever / How-to Write a Kernel Module for Android.txt
Created June 14, 2023 05:50
How-to Write a Kernel Module for Android
How-to Write a Kernel Module for Android
In this article I will describe how you can write a kernel module for Android or its after market product like CyanogenMod. As we all know Android is based upon and using the GNU/Linux kernel. Therefore, writing/building kernel modules for android is same as writing/building a kernel module for the common Linux found on our desktop or server machines. However, if you ever try to build kernel module for android using the guidelines written for the desktop Linux machine you could possibly not be able do build it. According to my knowledge and experience, the reason behind that possible module build failure is the integrated build environment of Android Open Source Project (AOSP). In order to write and build a kernel module for android you need to first download the android source. In this tutorial I am using CyanogenMod 11 but you can use also the android source from the AOSP. Moreover, I am using the AOSP android emulator for demonstrating this tutorial. However, I hav
@ericdennisforever
ericdennisforever / HowToCompileAndroidEumlatorLKM.txt
Last active January 30, 2025 09:56
How to compile a Linux kernel module for Android Emulator(LDPLAYER/NOX)
- LDPlayer ver 9.0.45(9)
Android version 9
Kernel 4.4.146 #1 Thu Apr27 10:42:33 (ST 2023)
Build Number PQ3A 190705.003 release keys
$modinfo vboxsf.ko
vermagic: 4.4.146 SMP preempt mod_unload modversions
- To compile a linux kernel module:
git clone https://android.googlesource.com/kernel/goldfish/ -b android-goldfish-4.4-dev