Skip to content

Instantly share code, notes, and snippets.

Product Year Version Product Keys
Visual Studio 2022 2021 17.x Professional:
TD244-P4NB7-YQ6XK-Y8MMM-YWV2J
Enterprise:
VHF9H-NXBBB-638P6-6JHCY-88JWH
Visual Studio 2019 2019 16.x Professional:
NYWVH-HT4XC-R2WYW-9Y3CM-X4V3Y
Enterprise:
@RikkaW
RikkaW / gist:be3fe4178903702c54ec73b2fc1187fe
Last active July 14, 2025 07:09
show window in app_process (impossible to work from Android 14 QPR 3 or Android 15, as addView requires the calling process an Android app process)
token = new Binder();
try {
Context _context = android.app.ActivityThread.systemMain().getSystemContext();
final Context context = new ContextWrapper(_context) {
@Override
public Object getSystemService(String name) {
if (Context.WINDOW_SERVICE.equals(name)) {
WindowManager wm = (WindowManager) super.getSystemService(name);
if (wm != null) {
((android.view.WindowManagerImpl) wm).setDefaultToken(token);
@FrankSpierings
FrankSpierings / shell.js
Last active March 4, 2025 22:23
Frida - Linux Shell From App Perspective (Tested on 32-bit...)
libc = {
library: 'libc.so',
system: function(command) {
f = new NativeFunction(Module.findExportByName(this.library, "system"), 'int32', ['pointer']);
retval = f(Memory.allocUtf8String(command));
return retval;
},
open: function(path, mode) {
f = new NativeFunction(Module.findExportByName(this.library, "open"), 'int32', ['pointer', 'int32']);