Socket
Socket
Sign inDemoInstall

mitm

Package Overview
Dependencies
2
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous13Next

1.2.1

Diff

Changelog

Source

1.2.1 (Mar 30, 2016)

  • Fixes writing to sockets returned by Mitm by postponing writing until the next tick. Brings it in line with Node's behavior.
    Thanks, Maarten Winter, for the help!
  • Fixes listening to the connect event after socket is emitted on ClientRequest.
    Thanks, Maarten Winter, for the help!
  • Fixes intercepting TLS connections to properly emit the secureConnect event and given a callback, bind it to secureConnect rather than connect.
moll
published 1.2.0 •

Changelog

Source

1.2.0 (Sep 1, 2015)

  • Adds Io.js v3 support. Io.js v2.4.0 worked previously
    Thanks, Vincent Voyer, for the help!
moll
published 1.1.0 •

Changelog

Source

1.1.0 (Apr 25, 2015)

  • Returns an instance of Tls.TLSSocket from Tls.connect.
    The returned socket has both encrypted and authorized set.
    Thanks to Andreas Lind for the initial encrypted property patch!

    On Node v0.10 Tls.connect will just return a Net.Socket with the encrypted and authorized properties set.

moll
published 1.0.3 •

Changelog

Source

1.0.3 (Jan 26, 2015)

  • Adds Mitm.prototype.addListener to look more like an EventEmitter.
    Thanks to Alex Wolfe!
moll
published 1.0.2 •

Changelog

Source

1.0.2 (Nov 23, 2014)

  • Fixes tests by locking Mocha to v0.18.
    For more info on Mocha's ill-behavior, see #1195.
moll
published 1.0.1 •

Changelog

Source

1.0.1 (Nov 23, 2014)

moll
published 1.0.0 •

Changelog

Source

1.0.0 (Sep 29, 2014)

  • Adds compatibility with Node v0.11.14.
moll
published 0.5.1 •

Changelog

Source

0.5.1 (May 28, 2014)

  • Fixes Mitm.prototype.off to remove bound events with (mitm.off("request", listener)).
moll
published 0.5.0 •

Changelog

Source

0.5.0 (May 19, 2014)

  • Adds bypass functionality to not intercept a particular outgoing connection and let it connect as usual.
    Let a connection happen by calling bypass on the socket object given to the connect event:

    var mitm = Mitm()
    mitm.on("connect", function(socket) { socket.bypass() })
    Net.connect({host: "example.org", port: 25})
    
  • Emits connect and connection on Mitm with the options object given to Net.connect.
    You can use that with the above bypass functionality to bypass selectively:

    mitm.on("connect", function(socket, opts) {
      if (opts.host == "sql.example.org" && opts.port = 5432) socket.bypass()
    })
    
moll
published 0.4.1 •

Changelog

Source

0.4.1 (May 4, 2014)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc