mirror of
https://github.com/yv1ing/MollyAudit.git
synced 2025-09-16 14:55:50 +08:00
Complete the basic process of code audit
This commit is contained in:
23
main.py
Normal file
23
main.py
Normal file
@@ -0,0 +1,23 @@
|
||||
import os
|
||||
import warnings
|
||||
from audit import Audit
|
||||
|
||||
|
||||
warnings.simplefilter('ignore', FutureWarning)
|
||||
|
||||
os.environ['OPENAI_API_BASE'] = 'https://yunwu.ai/v1'
|
||||
os.environ['OPENAI_API_KEY'] = 'sk-SQhmr2wNQa2BpohUrxgJOFIDY9ODSxUkLQLWWlPD9qDNVsN1'
|
||||
|
||||
|
||||
def result_callback(result):
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
src_root = r'C:\Users\yvling\Desktop\PHP-Vuln'
|
||||
language = 'php'
|
||||
|
||||
audit = Audit()
|
||||
audit.load_source_files(src_root, language)
|
||||
audit.audit(result_callback)
|
||||
|
||||
Reference in New Issue
Block a user