Tested on Android 13 with mitmproxy 10.1.5, Python 3.11.6.
pkg upgrade
pkg install python pipx rust binutils
Setup pipx:
pipx ensurepath
| #!/bin/bash | |
| set -e | |
| help() { | |
| cat << EOF | |
| Usage: $0 [-r|--randomize-macaddr] <wlan interface> <AP ESSID> | |
| Capture PMKID value from a WPA-protected Wi-Fi access point. | |
| Options: |
| #!/bin/bash | |
| directory=$1 | |
| pngfile_list=$(mktemp /tmp/oxipng_to_proceed.XXXXXX) | |
| jpegfile_list=$(mktemp /tmp/jpegoptim_to_proceed.XXXXXX) | |
| find "$directory" -maxdepth 1 -type f -exec file --mime-type {} + | grep 'image/png$' | cut -d ':' -f 1 > $pngfile_list | |
| find "$directory" -maxdepth 1 -type f -exec file --mime-type {} + | grep 'image/jpeg$' | cut -d ':' -f 1 > $jpegfile_list | |
| xargs --arg-file=$pngfile_list -d '\n' oxipng | |
| xargs --arg-file=$jpegfile_list -d '\n' jpegoptim -m 80 -w `nproc --all` |
| #!/usr/bin/env python3 | |
| import subprocess | |
| import sys | |
| import re | |
| import codecs | |
| def ifaceUp(iface, down=False): | |
| if down: | |
| action = 'down' |
| diff --git a/Makefile b/Makefile | |
| index 8265d5e..00eebe0 100644 | |
| --- a/Makefile | |
| +++ b/Makefile | |
| @@ -49,8 +49,8 @@ endif | |
| # intended environment, so it make break in the future. | |
| ifneq (, $(findstring mingw, $(SYS))) | |
| INCLUDES = -Ivs10/include | |
| -LIBS = -L vs10/lib -lIPHLPAPI -lWs2_32 | |
| -FLAGS2 = -march=i686 |
| #!/usr/bin/env python3 | |
| import subprocess | |
| import sys | |
| import re | |
| BSS_PATTERN = re.compile(r'BSS (\S+)( )?\(on \w+\)') | |
| if __name__ == '__main__': | |
| if len(sys.argv) != 3: | |
| print(f"Usage: {sys.argv[0]} <interface> <bssid>") |
| from macros import error, hint | |
| from os import `/`, splitFile | |
| import strutils | |
| import distros | |
| when defined(release): | |
| switch("checks", "off") | |
| switch("assertions", "off") | |
| switch("debuginfo", "off") | |
| switch("stackTrace", "off") |
| import streams | |
| import protobuf | |
| parseProtoFile("test.proto") | |
| var msg = new Example | |
| msg.field1 = @[] | |
| let exampleNested = initExample_ExampleNested() | |
| exampleNested.field1 = initExample_ExampleNested_ExampleNested2(field1 = "Test", field2 = @[]) | |
| let exampleNested3 = initExample_ExampleNested_ExampleNested2_ExampleNested3(field1 = "Test") |
| import streams | |
| import protobuf | |
| const protoSpec = """ | |
| syntax = "proto3"; | |
| message Example2 { | |
| string field1 = 1; | |
| int32 field2 = 2; | |
| } |