def main( help, top, auto_commit, mail_by_github, mail_smtp, mail_user, mail_pass, ): if help: log.info(help_info()) else: all_cves = {} srcs = [Cert360(), NsFocus(), QiAnXin(), RedQueen(), AnQuanKe(), Vas()] for src in srcs: cve_list = src.cves() if cve_list: to_log(cve_list) all_cves[src] = cve_list if all_cves: page.to_page(top) mail.to_mail(mail_by_github, all_cves, mail_smtp, mail_user, mail_pass) if auto_commit: git.auto_commit()
def main(help, top, auto_commit, gtk, mail_smtp, mail_user, mail_pass, qq_user, qq_pass): if help: log.info(help_info()) else: all_cves = {} srcs = [ Cert360(), Nsfocus(), QiAnXin(), RedQueen(), AnQuanKe(), Vas(), NVD(), CNVD(), CNNVD(), Tenable() ] for src in srcs: cves = src.cves() if cves: to_log(cves) all_cves[src] = cves if all_cves: page.to_page(top) mail.to_mail(gtk, all_cves, mail_smtp, mail_user, mail_pass) qq.to_group(all_cves, qq_user, qq_pass) wechat.to_wechat(all_cves) if auto_commit: git.auto_commit()