python实现端口扫描

python实现端口扫描

import socketfrom sys import exec_prefix import timefrom scapy.all import *import optparsedef tcpscan(host,port): try: conn = socket.socket(socket.AF_INET,socket.SOCK_STREAM) conn.connect((h...
Python2 暴力破解zip密码

Python2 暴力破解zip密码

#coding=utf-8import zipfileimport optparsefrom threading import Threaddef bruteZip(zFile,password): try: zFile.extractall(pwd=password) print('[+] Found password ' + password + '\n') ...
Python多线程暴力破解FTP

Python多线程暴力破解FTP

#coding=utf-8# 引入ftplib模块import ftplib# 从threading模块中引入Thread 多线程模块from threading import Thread# 定义一个暴力破解的函数def ftpLogin(host,port,username,password): ftp = ftplib.FTP() t...