~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[1] --- сканировать отделный порт
[2] --- сканировать список
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[scan]--> 2
←[32m[+] ←[0mHost --> habr.com
←[31m[!] ←[0mPort -- 0 -- [CLOSED]
←[31m[!] ←[0mPort -- 10 -- [CLOSED]
←[31m[!] ←[0mPort -- 20 -- [CLOSED]
←[31m[!] ←[0mPort -- 30 -- [CLOSED]
←[31m[!] ←[0mPort -- 40 -- [CLOSED]
←[31m[!] ←[0mPort -- 50 -- [CLOSED]
←[31m[!] ←[0mPort -- 60 -- [CLOSED]
←[31m[!] ←[0mPort -- 70 -- [CLOSED]
←[33m[!] ←[0mPort -- 80 -- [OPEN]
None
Traceback (most recent call last):
File "C:\piton\hack\portcheck.py", line 65, in <module>
fanc2()
File "C:\piton\hack\portcheck.py", line 51, in fanc2
f.write(open_p)
TypeError: write() argument must be str, not list
Process returned 1 (0x1) execution time : 16.708 s
Для продолжения нажмите любую клавишу . . .
if text_a == "1":
fanc1()
elif text_a == "2":
65 fanc2()
51 f.write(open_p)