Network Scanning - exercises!
Find TCP Ports connections
-
Connect to master
-
Find All TCP Ports connections
-
save it
-
-
Find All UDP Ports connections
-
save it
-
-
run
cd /project/courses/fluentd
# run
./fluentd.yml.sh
-
Find All TCP Ports connections
-
save it
-
-
Find All UDP Ports connections
-
save it
-
try to find the differences between them! |
SSH connect
ssh docker@[IP]
SSH exec remote command
Run command using the following syntax:
## user syntax ##
ssh -t docker@192.168.128.3 'ip a'
## sudo syntax ##
ssh -t docker@192.168.128.3 'echo docker | sudo -S cat /etc/passwd'
# ^^^^^ USER ^^^ IP ^^^^^^^ sudo password ^^^^^^^^ COMMAND
## su syntax ##
ssh docker@nas01 su -c "/path/to/command1 arg1 arg2"