Skip to content

Instantly share code, notes, and snippets.

View myzhan's full-sized avatar
🎯
Focusing

myzhan

🎯
Focusing
View GitHub Profile
@myzhan
myzhan / daemon.c
Created December 8, 2018 12:47
Linux Daemon Writing HOWTO
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>
#include <syslog.h>
#include <string.h>
@myzhan
myzhan / makeToast.js
Last active September 28, 2023 01:56
Frida android make toast
Java.scheduleOnMainThread(function() {
Toast = Java.use("android.widget.Toast");
var currentApplication = Java.use('android.app.ActivityThread').currentApplication();
var context = currentApplication.getApplicationContext();
Toast.makeText(context,"hello world", Toast.LENGTH_SHORT.value).show();
});