#!/bin/bash # /usr/local/bin/bashocket # https://crystalfaeries.net/posix/bin/bashocket # celeste:crystalfaery BAsHocket 2017-07-21 22:12:09+00:00 # https://unix.stackexchange.com/questions/181183/opening-a-socket-in-kali-linux-using-bash-scripts # first (and so far only) argument is remote (web)-domain to probe # example usage: bashocket google.com exec 3<>/dev/tcp/${1}/80 echo -e "GET / HTTP/1.1\n\r" >&3 cat <&3