[email protected]:~# netwox 170 -l sm -w 123
執行命令後沒有任何輸出資訊,但已經建立 Telnet 服務。[email protected]:~# netwox 99 -i 192.168.59.135
輸出資訊如下:Welcome 192.168.59.133 Login: sm #輸入登入Telnet服務的使用者名稱 Password: #輸入登入Telnet服務的密碼 You can enter a command. Examples: /bin/ls, /bin/sh -c "pwd;ls", cmd /c dir c:, /bin/bash -i Note: full path has to be specified Note: cannot use 'prog1 | prog2', 'program > file' or 'program < file' $其中,$ 表示 Telnet 用戶端已經成功登入 Telnet 伺服器。這時,可以輸入要執行的命令。
$ /sbin/ifconfig #遠端執行的命令 eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.59.135 netmask 255.255.255.0 broadcast 192.168.59.255 inet6 fe80::20c:29ff:feca:e466 prefixlen 64 scopeid 0x20<link> inet6 fd15:4ba5:5a2b:1008:193e:aeb1:2bf3:17f8 prefixlen 64 scopeid 0x0<global> inet6 fd15:4ba5:5a2b:1008:20c:29ff:feca:e466 prefixlen 64 scopeid 0x0<global> ether 00:0c:29:ca:e4:66 txqueuelen 1000 (Ethernet) RX packets 320730 bytes 454342096 (433.2 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 147561 bytes 8943252 (8.5 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0上述輸出資訊顯示了 Telnet 伺服器的網路設定資訊。例如,網路介面為 eth0,IP 地址為 192.168.59.135,MAC 地址為 00:0c:29:ca:e4:66 等。
[email protected]:~# netwox 100 -i 192.168.59.135 -l sm -w 123 /sbin/ifconfig
輸出資訊如下:eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.59.135 netmask 255.255.255.0 broadcast 192.168.59.255 inet6 fe80::20c:29ff:feca:e466 prefixlen 64 scopeid 0x20<link> inet6 fd15:4ba5:5a2b:1008:193e:aeb1:2bf3:17f8 prefixlen 64 scopeid 0x0<global> inet6 fd15:4ba5:5a2b:1008:20c:29ff:feca:e466 prefixlen 64 scopeid 0x0<global> ether 00:0c:29:ca:e4:66 txqueuelen 1000 (Ethernet) RX packets 321007 bytes 454360606 (433.3 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 147582 bytes 8946281 (8.5 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0