Discover Packages
github.com/jarpson/gotcpreply
command
module
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Mar 4, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
README
README
¶
gotcpreply
Copy Tcp Traffic and reply to other service
Function
Cap Input stream and reply to target address.
Create a forwarding connection for each input stream.
If there is a problem with the connection, try to reestablish the connection and write the bit to the header of a request before forwarding.
Usage
example:
./gotcpreply -level debug -device lo -filter "tcp dst port 6379" -target 127.0.0.1:6380
Usage of ./gotcpreply:
-device string
net device (default "lo0")
-filter string
cap filter (default "tcp dst port 6379")
-header string
filter header regexp (default "^\\*\\d+\\r\\n\\$")
-level string
log level, use: debug info warn error (default "info")
-sendmsg string
sed the message to each target conn (default "*3\r\n$6\r\nclient\r\n$5\r\nreply\r\n$3\r\noff\r\n")
-target string
transfer target address
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.