All Projects → tiann → Leoric

tiann / Leoric

PoC of fighting against force-stop kill process on Android

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Leoric

Btpd
⚡ The BitTorrent Protocol Daemon
Stars: ✭ 365 (-61.42%)
Mutual labels:  daemon
Immortal
⭕ A *nix cross-platform (OS agnostic) supervisor
Stars: ✭ 701 (-25.9%)
Mutual labels:  daemon
Auto Cpufreq
Automatic CPU speed & power optimizer for Linux
Stars: ✭ 843 (-10.89%)
Mutual labels:  daemon
Openstorage
A multi-host clustered implementation of the open storage specification
Stars: ✭ 407 (-56.98%)
Mutual labels:  daemon
Pufferpanel
PufferPanel is an open source game server management panel, designed for both small networks and game server providers.
Stars: ✭ 609 (-35.62%)
Mutual labels:  daemon
Monstache
a go daemon that syncs MongoDB to Elasticsearch in realtime
Stars: ✭ 736 (-22.2%)
Mutual labels:  daemon
Miniircd
A very simple Internet Relay Chat (IRC) server
Stars: ✭ 336 (-64.48%)
Mutual labels:  daemon
Linkliar
🔗 Link-Layer MAC spoofing GUI for macOS
Stars: ✭ 885 (-6.45%)
Mutual labels:  daemon
Crono
A time-based background job scheduler daemon (just like Cron) for Rails
Stars: ✭ 637 (-32.66%)
Mutual labels:  daemon
Usbmuxd
A socket daemon to multiplex connections from and to iOS devices
Stars: ✭ 847 (-10.47%)
Mutual labels:  daemon
Spotifyd
A spotify daemon
Stars: ✭ 5,690 (+501.48%)
Mutual labels:  daemon
Ddos Deflate
Fork of DDoS Deflate with fixes, improvements and new features.
Stars: ✭ 568 (-39.96%)
Mutual labels:  daemon
Pipewire
Mirror of the PipeWire repository (see https://gitlab.freedesktop.org/pipewire/pipewire/)
Stars: ✭ 922 (-2.54%)
Mutual labels:  daemon
Daemonize
daemonize is a library for writing system daemons in Python.
Stars: ✭ 396 (-58.14%)
Mutual labels:  daemon
Temper Hum Hid
🌡 TemperHum HID query API in C
Stars: ✭ 10 (-98.94%)
Mutual labels:  daemon
Clight
A C daemon that turns your webcam into a light sensor. It will adjust screen backlight based on ambient brightness.
Stars: ✭ 371 (-60.78%)
Mutual labels:  daemon
Denon
👀 Monitor any changes in your Deno application and automatically restart.
Stars: ✭ 725 (-23.36%)
Mutual labels:  daemon
Ipmonitor
IP Monitor is a simple application which monitors your public IP address for changes and lets you set different kinds of notifications such as email, audio, pop up or executing a command
Stars: ✭ 28 (-97.04%)
Mutual labels:  daemon
Python Microjet
Python 3 asynchronous microservices framework powered by asyncio.
Stars: ✭ 11 (-98.84%)
Mutual labels:  daemon
Logmonitor
Monitoring log files on windows systems.
Stars: ✭ 23 (-97.57%)
Mutual labels:  daemon

Leoric

Leoric 是一个 Android 上的黑科技保活方法的 PoC,它可以对抗在任意 Android 版本上的 force-stop 杀进程。

Leoric 是 Dota 中的英雄"骷髅王",本项目名取自骷髅王的大招「重生」。

Leoric

重现方法

虽然理论上这个方法可以支持任意的 Android 版本,但本 PoC 在 Android 9.0 及 Android 10 上测试过。具体使用方式参见 demo 项目。

实现原理

应对方法

下面是一种简单的方法杀死 Leoric:

ps -A | grep `ps -A | grep me.weishu.leoric | awk '{print $1}' | head -1` | awk '{print $2}' | xargs kill -19 && am force-stop me.weishu.leoric

对于系统有两种思路可以选择:

  1. 加入在 force-stop 期间不允许启动新的进程的逻辑
  2. 修改 force-stop 的杀进程逻辑为:预先收集好所有进程再进行 kill(如有必要还可以先发送 SIGSTOP)

Contact me

Email: [email protected]

郑重声明

本项目仅做学习研究使用,出现任何问题概不负责。另外,本 PoC 离实际投入使用还有很长的路要走,请不要妄想直接接入代码就能得到永生。

之所以公开代码,是为了推动厂商对系统做出改进,提供应对之法;请不要滥用!!

License

Copyright (C) 2015, Mars Kwok

Copyright (C) 2020, weishu

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Credits

MarsDaemon

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].