Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何扫描所有的端口? #4

Open
feixiangdao opened this issue Oct 8, 2016 · 1 comment
Open

如何扫描所有的端口? #4

feixiangdao opened this issue Oct 8, 2016 · 1 comment

Comments

@feixiangdao
Copy link

试过-p 0-65535 失败

@ywolf
Copy link
Owner

ywolf commented Oct 9, 2016

把 get_port_list函数 替换为这个
def get_port_list(port): port_list = [] if '.ini' in port: port_config = open(port,'r') for port in port_config: port_list.append(port.strip()) port_config.close() elif '-' in port: port_start,port_end = port.split('-') for i in range(int(port_start),int(port_end)): port_list.append(i) else: port_list = port.split(',') return port_list

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants