1. IUS Community Project의 리포지토리를 yum의 리포지토리에 추가$ yum install -y https://centos7.iuscommunity.org/ius-release.rpm 2. Python 3.6을 확인$ yum search python36 $ yum search python35 ← Python 3.5를 확인 3. Python 3.6을 설치$ yum install -y python36u python36u-libs python36u-devel python36u-pip $ python3.6 -V ← 설치 확인Python 3.6.0 $ which python3.6 ← 설치 장소 확인/usr/bin/python3.6 4. Alias 설정현재 python 커맨드는 2.7로 설정 되어..
#!/usr/bin/env python import nmap # import nmap.py module nm = nmap.PortScanner() # instantiate nmap.PortScanner object nm.scan('127.0.0.1', '22-443') # scan host 127.0.0.1, ports from 22 to 443 nm.command_line() # get command line used for the scan : nmap -oX - -p 22-443 127.0.0.1 nm.scaninfo() # get nmap scan informations {'tcp': {'services': '22-443', 'method': 'connect'}} nm.all_hosts() # ge..
쩜투파