找回密码
 现在就去注册!
搜索
热搜: 活动 交友 discuz
查看: 77|回复: 0

Hezhong AntiVirus 技术概括文档

[复制链接]
  • TA的每日心情
    慵懒
    2025-6-8 11:40
  • 签到天数: 14 天

    [LV.3]偶尔看看II

    35

    主题

    2

    回帖

    868

    积分

    官方人员

    积分
    868
    发表于 2024-7-22 17:56:14 | 显示全部楼层 |阅读模式
    本贴讲述有关Hezhong AntiVirus技术使用的文档 方便开发者进行开发。

    文档基于6.31.02版本。

    函数表:
    trans(text)
    plog(texttype, text)

    这些函数在导入最基本的库后就立即设定。
    writecfg(datatext, xx, xx2)
    virusnamedecode(name)
    softwareexit()
    softwest()
    softwaretp()
    在类 VirusScan 中:
    init
    predict(self, model, fn_list, label, filedata, batch_size=1, verbose=0)
    yarascan(self, rule, file, fdb)
    getrules(self, rulepath)

    md5_scan(self, path, database, fdb)
    cscan(self, md5)
    pescan(self, db, peo)

    loadprotect()
    process_monitor_scaner(seter, whitedb, rules, sc, model, proc=None, path=None, mot=False)

    process_monitor()

    monitor_files(path)

    process_string(s, a)

    runmonitor()

    在 show_noti(path, name) 中

    close_window()

    countdown(button, window, ti)
    在 show_noti2(name) 中

    close_window()


    countdown(button, window, ti)

    在类 Watch_FileMonitor(FileSystemEventHandler) 中:
    init
    on_created(self, event)

    on_modified(self, event)

    show_popup(self, file_path, virus_name)



    mbrmonitor()

    reg_mot2()

    reg_mot()


    在 setyq() 中:
    onheur()
    offheur()
    onyara()
    offyara()
    onfileprotect()
    offfileprotect()
    onprocessp()
    offprocessp()
    onmbr()
    offmbr()
    onscan_skip_big_file()

    offscan_skip_big_file()

    onregw()
    offregw()
    onpe()
    offpe()
    onc()
    offc()
    tw_down()
    gz_down()
    offdlw()
    ondlw)(
    lang_en()
    lang_cn()
    CloseEvent
    在类 guiscan 中:

    init
    getfilepathgui(self)

    setrun(self)

    find_lastfile(self, folder)

    geli(self)

    govirusscan(self, autostart=False, stpath=None)
    scan_a_file(file, model, md5db, yardb, Avscanclass, useyara, useheur, whitedb, usec, usepe)

    start_scan(stpaths='')

    scaners(fileer)

    update2check()

    update1check()

    geliqu()

    about()

    在类UpdateProtectText_1(PyQt5.QtCore.QThread)中:
    init
    run(self)

    在类UpdateProtectText_m(object)中:
    update(self, msg)



    maingui()
    cfbutton1()
    cfbutton1()

    cfbutton1()







    您需要登录后才可以回帖 登录 | 现在就去注册!

    本版积分规则

    QQ|Archiver|手机版|小黑屋|Hezhong |网站地图

    GMT+8, 2025-7-3 23:00 , Processed in 0.118826 second(s), 34 queries .

    Powered by Discuz! X3.5

    © 2001-2025 Discuz! Team.

    快速回复 返回顶部 返回列表