-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'maxwelldps-master-patch-82207' into 'master'
Maxwelldps master patch 82207 See merge request maxwelldps/panik!3
- Loading branch information
Showing
2 changed files
with
67 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,69 @@ | ||
# PaniK | ||
|
||
Spoofing WEA messages at at the Android 10 UI level | ||
## POC App for Spoofing of WEA Messages at the API UI level | ||
|
||
<img align="right" src="paniK.gif" width="250" /> | ||
|
||
For use case see Alertify [Alertify](https://github.com/MaxwellDPS/Alertify) which uses a gotify server for realtime headless alerts | ||
|
||
### API Support | ||
API 23 Android 6 - API 29 Android 10 is supported | ||
|
||
#### Alerts Types | ||
|
||
| Type | Message Type | Type | Message Type | | ||
|------|-------------------------------|------|----------------------------------| | ||
| CMAS | Presidental alert | ETWS | ETWS Tsunami alert | | ||
| CMAS | Extreme alert | ETWS | ETWS Earthquake alert | | ||
| CMAS | Severe alert | ETWS | ETWS Earthquake & Tsunami alert | | ||
| CMAS | Amber / Child Abduction alert | ETWS | ETWS Other Message | | ||
| CMAS | Public Safety alert | ETWS | ETWS Test Message | | ||
| CMAS | Required Monthly Test | | | | | ||
| CMAS | Local/State Test | | | | | ||
| CMAS | Broadcast Operator alert | | | | | ||
| CMAS | Critical alert | | | | | ||
|
||
|
||
### Examples | ||
|
||
See Example Messages [Images](./Images.md) | ||
|
||
 | ||
|
||
## Features | ||
|
||
* Spoof WEA via [CMAS](https://en.wikipedia.org/wiki/Wireless_Emergency_Alerts) & [ETWS](https://www.technologyreview.com/2011/03/11/260021/how-japans-earthquake-and-tsunami-warning-systems-work/) | ||
|
||
|
||
## Installation | ||
|
||
Download the apk or build via Android studio. | ||
|
||
### Allow display over other apps | ||
|
||
By default Android does not allow apps to dispay over other apps | ||
|
||
Here is one way to disable battery optimization for Gotify. | ||
|
||
* Open "Settings" | ||
* Search for "Apps" | ||
* Find "PaniK" and select Advanced | ||
* Allow Display over other apps | ||
|
||
## Building | ||
|
||
Execute the following command to build the apk. | ||
```bash | ||
$ ./gradlew build | ||
``` | ||
|
||
## Update client | ||
|
||
* Run `./gradlew generateSwaggerCode` | ||
* Discard changes to `client/build.gradle` (newer versions of dependencies) | ||
* Fix compile error in `client/src/main/java/com/github/gotify/client/auth/OAuthOkHttpClient.java` (caused by an updated dependency) | ||
* Delete `client/settings.gradle` (client is a gradle sub project and must not have a settings.gradle) | ||
* Commit changes | ||
|
||
|
||
|