Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

basic Man-in-the-Middle extension to the Relay-Card #181

Merged
merged 1 commit into from
Oct 27, 2020

Conversation

betawave
Copy link

This PR extends the Relay class in such a way that it can be flexibly used as a Man-in-the-Middle.
It adds a new Command-Line Flag (--mitm) which takes a path to a Python File that contains a function get_MitM(), which, when called, produces an object with a handleInPDU and a handleOutPDU method. This object is then used by the Relay-VICC as a Man-in-the-Middel, meaning it passes any packets to these handle-Methods and relays the result of them (instead of the original packets).
For the MitM flag to work properly, the path which is given to it needs to be in Python's load path (eg PYTHONPATH).
The --mitm flag only applies when the Relay type is used. If the Relay is used without specifying a MitM-Module, the default RelayMiddleman is used, which does nothing at all. The RelayMiddleman class may be used by the user to create custom middlemans by inheriting from it.

@frankmorgner frankmorgner merged commit 82e68a6 into frankmorgner:master Oct 27, 2020
@frankmorgner
Copy link
Owner

thank you. How are you using the new extension?

beesmm515 pushed a commit to beesmm515/vsmartcard-1 that referenced this pull request Nov 17, 2020
basic Man-in-the-Middle extension to the Relay-Card
bowb pushed a commit to bowb/vsmartcard that referenced this pull request Mar 6, 2023
basic Man-in-the-Middle extension to the Relay-Card
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.

None yet

2 participants