Skip to content

fix(core): honor tor rotation interval and override IP wiring#18

Open
mkilijanek wants to merge 1 commit intomatrixleons:mainfrom
mkilijanek:upstream/pr-wiring-tor-override
Open

fix(core): honor tor rotation interval and override IP wiring#18
mkilijanek wants to merge 1 commit intomatrixleons:mainfrom
mkilijanek:upstream/pr-wiring-tor-override

Conversation

@mkilijanek
Copy link
Copy Markdown
Contributor

Summary

Fix runtime wiring issues in core/interceptor.py affecting TOR rotation cadence and forced origin-IP routing.

Problems fixed

  1. --tor-rotate-every was not propagated to Magic rotation logic.
  2. override_ip was not passed into MITMHandshaker.
  3. HTTP upstream connection path ignored override_ip and always connected to hostname.

Changes

  • extend Magic(..., rotate_every=...) and pass configured tor_rotate_every
  • pass override_ip to MITMHandshaker
  • use connect_host = self._override_ip or host in HTTP forwarding path

Validation

  • python3 -m py_compile evilwaf.py core/*.py chemistry/*.py

Risk

  • moderate but localized to interceptor wiring
  • no API surface changes

@mkilijanek
Copy link
Copy Markdown
Contributor Author

Merge order note: please merge after #17.\n\nDepends on: #17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant