题目: 题解:
# The isBadVersion API is already defined for you.
# def isBadVersion(version: int) -> bool:class Solution:def firstBadVersion(self, n: int) -> int:left, right 1, nwhile left < right:mid left (right - left) //…
信息收集
IP AddressOpening Ports192.168.101.160TCP:22,80,111,46606
$ nmap -p- 192.168.101.160 --min-rate 1000 -sC -sV
PORT STATE SERVICE VERSION
22/tcp open ssh OpenSSH 6.7p1 Debian 5deb8u4 (protocol 2.0)
| ssh-hostkey:
| 1024 26:81:c1:f…