moll / node-mitm

Intercept and mock outgoing Node.js network TCP connections and HTTP requests for testing. Intercepts and gives you a Net.Socket, Http.IncomingMessage and Http.ServerResponse to test and respond with. Super useful when testing code that hits remote servers.
Other
637 stars 48 forks source link

It only intercepts requests made by the current executing script #75

Closed SpiffGreen closed 2 years ago

SpiffGreen commented 2 years ago

I don't know if it possible it does not only intercept requests made by current executing scripts. My goal is to monitor all requests made by a system. Also having it run continually until it is:

moll commented 2 years ago

Hey,

Are you asking whether you can use Mitm.js to MiTM your entire Linux/Windows system? That's definitely not something Mitm.js does — it's only for intercepting network connections from within Node.js and generally for the purpose of testing.