Exploit databaseDownload repository ZIP
GH-0011071ef8edba01d913bfaeb274ffe0
okk30721-cell/cve-2026-98260-ksu
Sources for CVE-2026-98260
61 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files16
okk30721-cell/cve-2026-98260-ksuRevision 6b1446641032
- app/
- ota-parse-archive/
- profiles/
- third_party/
- .gitignore
- LICENSE
- NOTICE.md
- README-LICENSE.md
- README.md
- build-apk.sh
- build-both.sh
- gen_icon.py
- pack_apk.py
- version.txt
- zipalign.py
- 源码说明.md
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
gen_icon.py
Suggested starting filePython · 4,577 bytes#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""生成 CVE-2026-98260 应用图标(深色渐变 + 机器人头 + 盾牌)并输出各 dpi mipmap"""
import os, math
from PIL import Image, ImageDraw, ImageFilter
S = 1024
SS = 2 # 超采样倍数
W = S * SS
def lerp(a, b, t):
return tuple(int(a[i] + (b[i] - a[i]) * t) for i in range(3))
def grad_bg(w, h):
top = (0x1B, 0x24, 0x38)
bot = (0x0E, 0x10, 0x14)
img = Image.new("RGB", (1, h))
px = img.load()
for y in range(h):
t = y / max(1, h - 1)
px[0, y] = lerp(top, bot, t)
return img.resize((w, h), Image.BILINEAR)
def radial_glow(w, h, color, strength=90, radius_ratio=0.55):
"""中心径向光晕(返回 RGBA 叠加层)"""
g = Image.new("L", (w, h), 0)
d = ImageDraw.Draw(g)
cx, cy = w // 2, int(h * 0.46)
r = int(min(w, h) * radius_ratio)
for i in range(60):
t = i / 59.0
rr = int(r * (1 - t * 0.95))
a = int(strength * (t ** 2))
d.ellipse([cx - rr, cy - rr, cx + rr, cy + rr], fill=a)
g = g.filter(ImageFilter.GaussianBlur(60))
layer = Image.new("RGBA", (w, h), color + (0,))
layer.putalpha(g)
return layer
def robot_head(d, cx, cy, w, h, color, bg):
"""Android 机器人头(圆角矩形 + 眼睛 + 天线)"""
left, top, right, bottom = cx - w // 2, cy - h // 2, cx + w // 2, cy + h // 2
# 圆角矩形头
d.rounded_rectangle([left, top, right, bottom], radius=int(h * 0.46), fill=color)
# 眼睛(背景色挖空)
eye_r = int(w * 0.105)
ey = cy + h * 0.01
for ex in (cx - w * 0.22, cx + w * 0.22):
d.ellipse([ex - eye_r, ey - eye_r, ex + eye_r, ey + eye_r], fill=bg)
# 天线(从左肩上方伸出)
lw = int(w * 0.042)
for sx, ex in ((left + w * 0.22, left - w * 0.02), (right - w * 0.22, right + w * 0.02)):
sy = top + h * 0.16
ey2 = top - h * 0.20
d.line([sx, sy, ex, ey2], fill=color, width=lw)
d.ellipse([ex - lw, ey2 - lw, ex + lw, ey2 + lw], fill=color)
def shield(d, cx, cy, w, h, fill, check):
"""盾牌 + 对勾"""
top, bot = cy - h // 2, cy + h // 2
left, right = cx - w // 2, cx + w // 2
pts = [(left, top + h * 0.18), (left + w * 0.16, top), (right - w * 0.16, top),
(right, top + h * 0.18), (right, top + h * 0.58),
(cx, bot), (left, top + h * 0.58)]
d.polygon(pts, fill=fill)
# 对勾
lw = int(w * 0.11)
d.line([cx - w * 0.26, cy - h * 0.02, cx - w * 0.06, cy + h * 0.18], fill=check, width=lw,
joint="curve")
d.line([cx - w * 0.06, cy + h * 0.18, cx + w * 0.28, cy - h * 0.18], fill=check, width=lw,
joint="curve")
def main():
base = grad_bg(W, W).convert("RGBA")
base = Image.alpha_composite(base, radial_glow(W, W, (0x6E, 0xC8, 0xE0), 70))
bg = (0x12, 0x16, 0x1E)
d = ImageDraw.Draw(base)
# 机器人头(略偏左上)
robot_head(d, int(W * 0.455), int(W * 0.42), int(W * 0.38), int(W * 0.315),
(0xEE, 0xF1, 0xF6), (0x12, 0x16, 0x1E))
# 盾牌(右下,先画背景色描边隔开)
sc, sw, sh = int(W * 0.735), int(W * 0.205), int(W * 0.235)
def shield_pts(cx, cy, w, h):
top, bot = cy - h / 2, cy + h / 2
left, right = cx - w / 2, cx + w / 2
return [(left, top + h * 0.18), (left + w * 0.16, top), (right - w * 0.16, top),
(right, top + h * 0.18), (right, top + h * 0.58),
(cx, bot), (left, top + h * 0.58)]
d.polygon(shield_pts(sc, int(W * 0.735), sw + int(W * 0.03), sh + int(W * 0.03)),
fill=(0x12, 0x16, 0x1E))
shield(d, sc, int(W * 0.735), sw, sh, (0x8F, 0xB4, 0xFF), (0x0B, 0x12, 0x1E))
# 大圆角遮罩
mask = Image.new("L", (W, W), 0)
ImageDraw.Draw(mask).rounded_rectangle([0, 0, W - 1, W - 1], radius=int(W * 0.22), fill=255)
base.putalpha(mask)
icon = base.resize((S, S), Image.LANCZOS)
out = os.path.join(os.path.dirname(os.path.abspath(__file__)))
icon.save(os.path.join(out, "icon.png"))
print("icon.png", icon.size)
# mipmap 各 dpi
sizes = {"mdpi": 48, "hdpi": 72, "xhdpi": 96, "xxhdpi": 144, "xxxhdpi": 192}
res = os.path.join(out, "app", "app", "src", "main", "res")
for dpi, sz in sizes.items():
dd = os.path.join(res, "mipmap-" + dpi)
os.makedirs(dd, exist_ok=True)
icon.resize((sz, sz), Image.LANCZOS).save(os.path.join(dd, "ic_launcher.png"))
print("mipmap-%s/ic_launcher.png (%d)" % (dpi, sz))
if __name__ == "__main__":
main()