Automated solution described here. Below I describe manual steps that reproduce application inner logic.
$ openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem| #!/usr/bin/env bash | |
| set -e | |
| check_dependencies() { | |
| local missing=() | |
| command -v adb >/dev/null || missing+=("adb"); | |
| command -v curl >/dev/null || missing+=("curl"); | |
| command -v unxz >/dev/null || missing+=("unxz"); | |
Automated solution described here. Below I describe manual steps that reproduce application inner logic.
$ openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem| import textwrap | |
| import ast | |
| import json | |
| from typing import Any, Union | |
| from urllib.parse import urlparse, urlunparse, parse_qs | |
| from mitmproxy.addonmanager import Loader | |
| from mitmproxy.addons.export import formats | |
| from mitmproxy.flow import Flow |
| import { colorSignal, Img, ImgProps, initial, signal } from "@motion-canvas/2d"; | |
| import { ColorSignal, createComputedAsync, PossibleColor, SignalValue, SimpleSignal } from "@motion-canvas/core"; | |
| import { QRCodeErrorCorrectionLevel, QRCodeToDataURLOptions, toDataURL } from "qrcode"; | |
| export interface QRCodeProps extends ImgProps { | |
| text: SignalValue<string>; | |
| correctionLevel?: SignalValue<QRCodeErrorCorrectionLevel>; | |
| background?: SignalValue<PossibleColor>; | |
| foreground?: SignalValue<PossibleColor>; |
ссылки:
| (defsrc | |
| esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 | |
| grv 1 2 3 4 5 6 7 8 9 0 - = bspc | |
| tab q w e r t y u i o p [ ] \ | |
| caps a s d f g h j k l ; ' ret | |
| lsft z x c v b n m , . / rsft | |
| lctl lmet lalt spc ralt rmet cmp rctl | |
| ) | |
| (defvar |
| import json | |
| from mitmproxy.command import command | |
| from mitmproxy import types, ctx, log | |
| @command("custom_command.export_event_logs") | |
| def export_event_logs(filename: types.Path): | |
| export_logs = [] | |
| for log_entry in ctx.master.events.data: | |
| export_logs.append(log_entry_to_json(log_entry)) |
$ openssl x509 -inform DER -in cert.der -out cert.pemВо время компиляции плагин делает следующие шаги:
| #!/bin/env python3 | |
| from bcc import BPF | |
| bpf_text = ''' | |
| int syscall__execve(void *ctx) | |
| { | |
| bpf_trace_printk("execve detected"); | |
| return 0; | |
| } |