Skip to content

Instantly share code, notes, and snippets.

View yuempek's full-sized avatar
🎯
Focusing to change the future.

Yunus Emre Pektas yuempek

🎯
Focusing to change the future.
View GitHub Profile
@yuempek
yuempek / gist:8df66c83bf765d6643e2b927bc5f889a
Last active February 25, 2019 12:46 — forked from Khoulaiz/gist:41b387883a208d6e914b
Checking ports without telnet

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 &lt; /dev/tcp/127.0.0.1/23
@yuempek
yuempek / itoa.sh
Created May 14, 2018 07:39 — forked from jjarmoc/itoa.sh
IP to Integer and Integer to IP conversions in bash.
#Handy functions for .bashrc loading.
#
# $ atoi 192.168.1.1
# 3232235777
# $ itoa 3232235777
# 192.168.1.1
function atoi
{