简体   繁体   English

linux命令正常运行时间的输出与命令nmap的输出不同

[英]The output of linux command uptime is different from that of command nmap

In my linux box the command uptime tells me 800 days. 在我的linux框中,命令正常运行时间告诉我800天。 However the command nmap says 48 days (in the Uptime line of its output). 但是,命令nmap表示48天(在其输出的正常运行时间行中)。 Should these 2 UPTIMEs be same? 这两个正常运行时间应该相同吗? If not what each really means? 如果不是,那么每个人真正意味着什么?

There is a reason why nmap prints Uptime guess . nmap打印Uptime guess是有原因的。 nmap detects the uptime by sending multiple consecutive SYN/ACK TCP and checks if there is timestamps option or a counter value, etc. Also the incremental rate may vary from OS to OS . nmap检测通过发送多个连续的正常运行时间的SYN/ACK TCP和检查是否有时间戳选项或计数器值等。此外增量速率可以变化从OSOS Finally, some OS -es start the counter with a random value which complicates the uptime detection algorithm. 最后,某些OS使用一个随机值来启动计数器,这会使正常运行时间检测算法复杂化。

Best is to go and read the documentation on the topic on nmap 's webpage: Nmap: Remote OS Detection 最好去阅读nmap网页上有关该主题的文档: Nmap:远程操作系统检测

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM