第1个回答 2018-09-20
#test.py
import ospath = '/Users/frankslg/tools/sqlmap/'os.chdir(path)
find_sqlmap = os.listdir(path)
num = len(find_sqlmap)for sql in find_sqlmap: if sql == 'sqlmap.py':
sqlmap_path = path + sql
comm = input('please enter the command parameters:')os.system(sqlmap_path + ' ' + comm)本回答被网友采纳