Skip to content

Commit

Permalink
Merge branch 'maxwelldps-master-patch-82207' into 'master'
Browse files Browse the repository at this point in the history
Maxwelldps master patch 82207

See merge request maxwelldps/panik!3
  • Loading branch information
MaxwellDPS committed Sep 8, 2020
2 parents 3a09c89 + fbe98e4 commit 9dd80ca
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 1 deletion.
68 changes: 67 additions & 1 deletion Readme.md
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)

![Images](./img/image.png)

## 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



Binary file added paniK.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9dd80ca

Please sign in to comment.