Skip to content

Commit 7a34d90

Browse files
author
zocomputer
committed
Fix vuln_analysis command calling wrong function
The vuln_analysis menu option was calling static_analysis() instead of vuln_analysis(). Also fixed variable name from language_used to scan_type which is more appropriate for vulnerability analysis.
1 parent 8112ff8 commit 7a34d90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hackbot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,10 +262,10 @@ def main() -> None:
262262
pass
263263
elif prompt_in == 'vuln_analysis':
264264
print(Markdown('----------'))
265-
language_used = Prompt.ask('Scan Type > ')
265+
scan_type = Prompt.ask('Scan Type > ')
266266
file_path = Prompt.ask('File Path > ')
267267
print(Markdown('----------'))
268-
print(static_analysis(language_used, file_path, AI_OPTION))
268+
print(vuln_analysis(scan_type, file_path, AI_OPTION))
269269
pass
270270
elif prompt_in == 'contact_dev':
271271
console.print(Panel(

0 commit comments

Comments
 (0)