| 44 | } |
| 45 | |
| 46 | export class MitmInteractor implements IInteractor { |
| 47 | static ID = 'mitm'; |
| 48 | |
| 49 | get id(): string { |
| 50 | return MitmInteractor.ID; |
| 51 | } |
| 52 | |
| 53 | async onData(data: string): Promise<IInteraction> { |
| 54 | if (data.match('Port forwarding is disabled to avoid man-in-the-middle attacks.')) { |
| 55 | throw Error('Port forwarding is disabled to avoid man-in-the-middle attacks.'); |
| 56 | } |
| 57 | |
| 58 | return {}; |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | export class FingerprintInteractor implements IInteractor { |
| 63 | static ID = 'fingerprint'; |
nothing calls this directly
no outgoing calls
no test coverage detected