1
0
Fork 0
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
Jonathan Hodgson 2958e7b48d Fix typo in makefile vor 4 Jahren
examples Checks that notify-send is available before running it vor 4 Jahren
LICENCE Adds licence as GPLv3 vor 4 Jahren
Makefile Fix typo in makefile vor 4 Jahren
README.md Adds a very simple readme vor 4 Jahren
main.go Initial Commit - basic functionality incorperated vor 4 Jahren

README.md

Resize NC Listener

This is designed to be used in place of a nc listener.

Usage

resize-netcat-listener 4444

This will listen on port 4444 for an incoming connection. Nothing ground breaking here. If you want it to listen on UDP, you can specify the -u flag.

The interesting part (in my opinion) is that you can specify a command to be run when the window is resized.

resize-netcat-listener -r examples/stty-resize-copy 4444

This example will determine the new size of the window and put an appropriate stty command on the clipboard. This is useful if you have got a reverse shell as the remote shell isn't able to listen for resize events.

Sources

Some code was taken from here: https://github.com/vfedoroff/go-netcat