Commit Graph

78 Commits

Author SHA1 Message Date
emanuele-f
d90a60f475 Add funding-manifest-urls 2026-02-12 20:06:57 +01:00
Emanuele Faranda
ee7c27f8ef
Merge pull request #23 from IzzySoft/fastlane
initial fastlane structures from IzzyOnDroid
2025-09-30 20:06:33 +02:00
Izzy
55476c6b28
initial fastlane structures from IzzyOnDroid 2025-09-30 16:31:58 +02:00
emanuele-f
b0c1f91581 Bump version to 1.4 2024-10-27 18:32:59 +01:00
emanuele-f
e5930f12f9 Fix PUP VirusTotal misdetection
Zipped app.js in mitmweb caused the misdetection
2024-10-27 18:27:47 +01:00
emanuele-f
c3b27f932b Bump version to 1.3 2024-10-15 19:29:21 +02:00
emanuele-f
fbac19d39f Use the official server_connect_error hook
Using the custom logic is not needed anymore
2024-10-13 18:49:09 +02:00
emanuele-f
8a940d67b9 Update mitmproxy to 11.0.0
This now uses the unmodified mitmproxy package, with all its features
like wireguard mode and QUIC decryption support.

Relevant upstream changes:
- mitmproxy now supports transparent HTTP/3 proxying
- ignore_hosts now waits for the entire HTTP headers if it suspects
  the connection to be HTTP
- Fix regression where ignore_hosts would terminate requests
  instead of forwarding them
- allow_hosts/ignore_hosts option now matches against the full
  host:port string
- Fix a bug when proxying unicode domains
- Fix non-linear growth in processing time for large HTTP bodies
- Fix zstd decompression to read across frames
2024-10-13 18:49:04 +02:00
emanuele-f
575bdb58ba Hide request file access entry on Android API 22 or earlier
Permission automatically granted there
2024-08-19 13:31:53 +02:00
emanuele-f
a2050555a2 Bump version to 1.2 2024-08-19 13:13:00 +02:00
emanuele-f
11c8cb8750 Fix invalid escape sequence in make_dist.py 2024-08-19 13:10:03 +02:00
emanuele-f
c45a7104d2 Fix enabled addons sometimes reset
Caused by the modification of the set returned by
SharedPreferences.getStringSet
2024-08-19 12:53:17 +02:00
emanuele-f
93ffb594ef Optionally request MANAGE_EXTERNAL_STORAGE for write access
Due to the scoped storage constraints, the only way to get a publicly
writable directory with a real, non-content-resolver-based, path is
via the MANAGE_EXTERNAL_STORAGE permission.

The mitm addon now allow the user to optionally request it. When
granted, user addons will be loaded directly from the public dir
without an additional copy.

Closes #16
2024-08-19 12:53:11 +02:00
emanuele-f
472aed9f5d Force reloading of already-loaded addons
This allows loading addon changes correctly when the mitm
process remains live in memory
2024-08-17 18:32:59 +02:00
emanuele-f
7a4cc54a35 Add detailed build instructions
Target system: Ubuntu 24.04 LTS
2024-06-28 12:19:34 +02:00
emanuele-f
14b026c792 Update Chaquopy to version 15.0.1
Fixes https://github.com/beeware/briefcase/issues/1480 with
Python 3.12: No module named 'pip._vendor.six.moves'
2024-06-28 11:57:10 +02:00
emanuele-f
74e2b3e04e Fix loading of user addons 2024-02-10 14:21:10 +01:00
emanuele-f
ee1509eea3 Bump mitmproxy to 10.1.6+pcapdroid.1
- Fix error when the --ignore-hosts option is used
- Includes fixes from mitmproxy 10.2.x for the allow_hosts/ignore_hosts options
2024-01-28 22:42:08 +01:00
emanuele-f
41f390a293 Add API to disable battery optimization (Doze)
It can interfere with the mitm service, causing connections to get stuck
until device is rebooted
2024-01-01 17:16:44 +01:00
emanuele-f
164edd09c6 Update mitmproxy to 10.1.6
Relevant upstream changes:

- fix a bug where TCP connections were not closed properly
- enable legacy SSL connect when connecting to server
- enable decompressing zstd responses
- HAR files support
- fix certificate generation for punycode domains
- fix certificate generation to work with strict mode OpenSSL 3.x clients
- fix empty cookie attributes being set to Key= instead of Key
2024-01-01 12:57:12 +01:00
emanuele-f
7b1660cb81 Upgrade to SDK 34 - Android 14 2023-12-02 19:55:08 +01:00
emanuele-f
9dec7d668e Remove mitm-addon permission
This created confusion among the users, with low security benefits
2023-12-02 17:35:32 +01:00
emanuele-f
4704c51502 Fix error on non-existing addons dir 2023-12-02 17:34:21 +01:00
emanuele-f
1b7e2df377 Fix build due to msgpack 1.0.7 2023-12-02 17:01:59 +01:00
emanuele-f
2cec4a83f4 Upgrade gradle plugin to 8.1.4 2023-12-02 16:50:14 +01:00
emanuele-f
21327d7d77 Also look for PCAPdroid debug build 2023-06-25 22:58:44 +02:00
emanuele-f
746e22c90b Add ability to load addons from storage
- Select a folder and load addons from it
- View list of available addons, including Js Injector
- Ability to turn addons on/off

See #8
2023-06-25 22:40:03 +02:00
emanuele-f
1ff8416fd6 Notify to PCAPdroid the scripts injected 2023-06-06 12:06:04 +02:00
emanuele-f
8e210d62aa Improve Js injector strings
Also add button to open the PCAPdroid app
2023-06-06 10:39:56 +02:00
emanuele-f
de17febf81 Update gradle 2023-06-04 17:16:12 +02:00
emanuele-f
8121bba247 Multi-script match and improve header parsing 2023-05-28 22:51:21 +02:00
emanuele-f
069bddaf29 Implement Js Injector UI
Ability to add scripts via URLs, display, delete and reload
them at runtime.
2023-05-28 22:16:53 +02:00
emanuele-f
1263378ae0 Initial Js Injector implementation
It allows injecting Javascript into web pages. Urls to match and script
metadata are read from the js source header, in a similar format as the
one used by Tampermonkey/Greasemonkey. Urls matching supports wildcards.
2023-05-28 15:39:31 +02:00
emanuele-f
4614a71e62 Fix ruamel.yaml version 2023-05-28 11:43:45 +02:00
Emanuele Faranda
61f9fd47b0
Merge pull request #7 from SeeYouOneDayDay/master
Update README.md
2023-04-26 11:58:21 +02:00
hhhaiai
ace91e88d7
Update README.md 2023-04-20 12:06:00 +08:00
emanuele-f
2ef1b52fac Use darker icon background color 2023-03-28 11:29:27 +02:00
emanuele-f
31882fb1a4 Add main activity
It shows information about the addon runtime. It can also solve startup issues
on devices with background service execution limits
services execution problems, it c
2023-03-28 11:25:44 +02:00
emanuele-f
e74396421c mitmproxy 9.0.1 API fixes
This also fixes the following error with HTTP flows introduced in 22b80fa6:
AttributeError: 'HTTPFlow' object has no attribute 'context'
2023-03-26 15:07:38 +02:00
emanuele-f
ca3103a595 Initial support for mitmproxy 9.0.1 2023-03-24 22:12:30 +01:00
emanuele-f
a2edb7405b Upgrade to chaquopy 14.0.2 and gradle plugin 7.4 2023-03-18 15:36:53 +01:00
emanuele-f
ef4c181c20 Implement short payload mode
In this mode the payload is truncated to 512 B per direction. This allows
reducing the memory and the CPU usage. This mode gets activated when
PCAPdroid is run with full payload disabled
2022-12-16 00:59:56 +01:00
Emanuele Faranda
21eb290f95
Update README.md 2022-12-15 21:43:09 +01:00
emanuele-f
ca93610211 Ability to provide custom mitmproxy options 2022-11-24 20:01:43 +01:00
emanuele-f
4a26a4c4a7 Upgrade to gradle 7.3.1 2022-11-24 18:50:03 +01:00
emanuele-f
86cc7b0c4c Export logs via the API 2022-11-24 13:02:34 +01:00
emanuele-f
3c642113c6 Move to open source chaquopy
Closes #5
2022-08-03 11:40:30 +02:00
emanuele-f
22b80fa654 Add support for transparent proxy mode 2022-07-20 17:19:45 +02:00
Emanuele Faranda
dca2fdb961
Update README.md 2022-06-04 08:45:43 +00:00
emanuele-f
5a23ccb932 Print traceback in case of errors 2022-06-01 16:05:28 +02:00