1 Star 0 Fork 8

张子雪/chthonian

forked from openKylin/chthonian 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Chthonian.py 1.48 KB
一键复制 编辑 原始数据 按行查看 历史
宋帮诚晋 提交于 2022-10-09 15:21 . 111
import os
import signal
from gevent import monkey
monkey.patch_all(threaded=False)
from settings import banner
from lib.log import logger as log
from lib.core.prepare import prepare
from core.PocManager import PoCManager
from lib.core.cmdparser import cmdline_parse
import checkKernel
def main():
init_signal()
options, args = cmdline_parse()
try :
if options.Vuls:
val=options.Vuls
if val =='all':
fb=checkKernel.kernelcheck.dispose(self='')
else:
print('暂时只支持all参数')
except:
try:
if options.argus:
if options.argus=='all':
os.system('python3 argus/argus.py')
else:
print('暂时只支持all参数')
except:
try:
if options.fuzz:
if options.fuzz == 'dbus':
print('fuzz 正在完善')
else:
print('暂时只支持all参数')
except:
fb = prepare(options)
start(fb)
def init_signal():
os.setpgrp()
signal.signal(
signal.SIGTERM,
lambda *_: os.kill(0, signal.SIGKILL))
def start(fb):
print(banner)
poc_manager = PoCManager(fb)
results = poc_manager.run()
if fb.console:
return results if results else None
else:
if results: log.result(results)
if __name__ == "__main__":
main()
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhang-zixue/chthonian.git
[email protected]:zhang-zixue/chthonian.git
zhang-zixue
chthonian
chthonian
master

搜索帮助