Information Technology Grimoire

Version .0.0.1

IT Notes from various projects because I forget, and hopefully they help you too.

Traceroute

Tracing Routes

Traceroute 443

traceroute -T -p 443 8.8.8.8

Netcat

nc -Czvw 5 1.2.3.4 9100
nc 1.2.3.4 9100 -z -v

Powershell

Test-NetConnection -ComputerName google.com -TraceRoute | Select -ExpandProperty TraceRoute

tcptraceroute

yum -y install tcptraceroute
apt install tcptraceroute -y
brew install tcptraceroute
tcptraceroute 1.2.4.5 443

MTR (Linux)

There is a cli version and a gui version that works on many platforms. Some are installed by default.

mtr -4 8.8.8.8
                             My traceroute  [v0.92]
dns.google (8.8.8.8)                              2021-05-16T07:25:42-0500
Keys:  Help   Display mode   Restart statistics   Order of fields   quit
                                       Packets               Pings
 Host                                Loss%   Snt   Last   Avg  Best  Wrst StDev
 1. 107.170.36.254                    0.0%    69    0.4   2.2   0.3  21.8   4.6
 2. 138.197.248.146                   0.0%    68    0.3   1.7   0.3  58.5   7.3
 3. 138.197.248.135                   0.0%    68    0.4   1.3   0.3  19.5   2.7
 4. 162.243.191.243                  14.7%    68    0.5   1.4   0.4  25.6   3.5
 5. 108.170.248.97                    0.0%    68    0.8   0.8   0.7   1.0   0.1
 6. 142.250.46.197                    0.0%    68    1.5   2.1   1.2  14.5   2.4
 7. dns.google                        0.0%    68    0.8   0.7   0.7   0.8   0.0

Pathping (Windows)

pathping x.x.x.x

or

pathping -n -w 1 -h 1 -q 1 x.x.x.x
C:\>pathping 8.8.8.8

Tracing route to dns.google [8.8.8.8]
over a maximum of 30 hops:
  0  JamesDell2 [192.168.7.20]
  1  192.168.7.1
  2  2.5.6.9.dlls.tx.bidensucks.net [2.5.6.9]
  3  172.102.52.98
  4  ae7---0.scr01.dlls.tx.frontiernet.net [74.40.3.17]
  5  ae0---0.cbr03.dlls.tx.frontiernet.net [45.52.201.113]
  6  74.40.26.234
  7  142.251.248.217
  8  172.253.78.227
  9  dns.google [8.8.8.8]

Computing statistics for 225 seconds...
            Source to Here   This Node/Link
Hop  RTT    Lost/Sent = Pct  Lost/Sent = Pct  Address
  0                                           JamesDell2 [192.168.7.20]
                                0/ 100 =  0%   |
  1    1ms     0/ 100 =  0%     0/ 100 =  0%  192.168.7.1
                                0/ 100 =  0%   |
  2    3ms     0/ 100 =  0%     0/ 100 =  0%  2.5.6.9.bidensucks.net [2.5.6.9]
                                0/ 100 =  0%   |
  3    6ms     0/ 100 =  0%     0/ 100 =  0%  172.102.52.98
                                0/ 100 =  0%   |
  4    4ms     0/ 100 =  0%     0/ 100 =  0%  ae7---0.scr01.dlls.tx.frontiernet.net [74.40.3.17]
                                0/ 100 =  0%   |
  5    7ms     0/ 100 =  0%     0/ 100 =  0%  ae0---0.cbr03.dlls.tx.frontiernet.net [45.52.201.113]
                                0/ 100 =  0%   |
  6    4ms     0/ 100 =  0%     0/ 100 =  0%  74.40.26.234
                                0/ 100 =  0%   |
  7    4ms     0/ 100 =  0%     0/ 100 =  0%  142.251.248.217
                                0/ 100 =  0%   |
  8  ---     100/ 100 =100%   100/ 100 =100%  172.253.78.227
                                0/ 100 =  0%   |
  9    4ms     0/ 100 =  0%     0/ 100 =  0%  dns.google [8.8.8.8]

Pingplotter (Windows)

httping

This is a binary in cygwin, but also on most linux systems or can be installed.

httping -g https://somesite.com/foo/bar -r -p 443 -f
Auto enabling SSL due to https-URL
PING somesite.com:443 (/):
connected to 3.4.5.6:443 (353 bytes), seq=0 time=844.19 ms
connected to 3.4.5.6:443 (353 bytes), seq=1 time=488.18 ms
connected to 3.4.5.6:443 (353 bytes), seq=2 time=297.56 ms
connected to 3.4.5.6:443 (353 bytes), seq=3 time=263.83 ms

Or graphically through ncurses (and some other info):

httping -g https://site.com -p 443 -f -l -s -S -K