Here are several different ways to test a TCP port without telnet.
BASH (man page)
$ cat < /dev/tcp/127.0.0.1/22
SSH-2.0-OpenSSH_5.3
^C
$ cat < /dev/tcp/127.0.0.1/23
| # Open in IE: https://boxstarter.org/package/url?https://gist.github.com/dangmai/f3c30a601099bb0e6ee0dc24b2713180/raw/boxstarter.ps1 | |
| # Prompt for inputs | |
| $pcName = Read-Host 'Specify PC Name' | |
| $jumpcloudconnectKey = Read-Host 'Specify JumpCloud Connect Key' | |
| #---- TEMPORARY --- | |
| Disable-UAC | |
| #--- Windows Settings --- |
Here are several different ways to test a TCP port without telnet.
$ cat < /dev/tcp/127.0.0.1/22
SSH-2.0-OpenSSH_5.3
^C
$ cat < /dev/tcp/127.0.0.1/23
| IP=8.8.8.8;echo -e "Host $IP\n KexAlgorithms +diffie-hellman-group1-sha1" >> ~/.ssh/config |
| # Source: https://serverfault.com/questions/361421/dump-nginx-config-from-running-process | |
| # Set pid of nginx master process here | |
| pid=8192 | |
| # generate gdb commands from the process's memory mappings using awk | |
| cat /proc/$pid/maps | awk '$6 !~ "^/" {split ($1,addrs,"-"); print "dump memory mem_" addrs[1] " 0x" addrs[1] " 0x" addrs[2] ;}END{print "quit"}' > gdb-commands | |
| # use gdb with the -x option to dump these memory regions to mem_* files | |
| gdb -p $pid -x gdb-commands |
| echo 0 > /sys/class/vtconsole/vtcon1/bind | |
| rmmod nouveau |
| Get-MessageTrackingLog -Start "04/12/2018 00:00:00" -End "04/25/2018 23:59:00" -Sender [email protected] -Recipients [email protected] | ft Timestamp,Recipients, MessageSubject | more |