top | item 32161089 (no title) sshd | 3 years ago +1 on this. Would love to see this using bash built-ins if possible. /dev/tcp might be a start. discuss order hn newest BenjiWiebe|3 years ago I believe the issue is that bash has no built-in method for creating a listening socket / accepting connections./dev/tcp can only connect to a listening socket, not create one. rascul|3 years ago There's a loadable for that.http://git.savannah.gnu.org/cgit/bash.git/tree/examples/load... EddySchauHai|3 years ago I definitely want to try work this out but I couldn't find much in the way of documentation, I'll give it a go when I have more time :) arjvik|3 years ago That only works for outgoing connections, sadly
BenjiWiebe|3 years ago I believe the issue is that bash has no built-in method for creating a listening socket / accepting connections./dev/tcp can only connect to a listening socket, not create one. rascul|3 years ago There's a loadable for that.http://git.savannah.gnu.org/cgit/bash.git/tree/examples/load...
rascul|3 years ago There's a loadable for that.http://git.savannah.gnu.org/cgit/bash.git/tree/examples/load...
EddySchauHai|3 years ago I definitely want to try work this out but I couldn't find much in the way of documentation, I'll give it a go when I have more time :)
BenjiWiebe|3 years ago
/dev/tcp can only connect to a listening socket, not create one.
rascul|3 years ago
http://git.savannah.gnu.org/cgit/bash.git/tree/examples/load...
EddySchauHai|3 years ago
arjvik|3 years ago