Code Monkey home page Code Monkey logo

tcptrap's Introduction

It's a trap

Config

hosts:
  80:
    # Write capture to:
    pcap: port80.pcap
    # Listen on:
    listen: 0.0.0.0:8123
    # Proxy to:
    target:
      host: 127.0.0.1:8000
  443:
    # Write capture to:
    pcap: port443.pcap
    # Listen on:
    listen: 0.0.0.0:8124
    # SSL Listen:
    ssl:
      enabled: true
      # Self sign with:
      cn: test.example.com
      issuer: SomeCert
      org: ACME
    # Proxy to:
    target:
      host: 192.168.2.143:443
      # SSL target
      ssl:
        enabled: true

Run

$ ./tcptrap config.yaml
2023/10/22 06:59:08 Started proxy 80 - 0.0.0.0:8123 -> 127.0.0.1:8000
2023/10/22 06:59:08 Started proxy 443 - 0.0.0.0:8124 -> 192.168.4.143:443
2023/10/22 06:59:10 Proxying [::1]:55774 to 192.168.4.143:443

Has

  • IPv6
  • SSL Decrypt
  • Any TCP protocol
  • Cert generation

Needs

  • CNI?
  • Provide own certs

tcptrap's People

Contributors

gboddin avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.