Skip to content

Commit

Permalink
Merge pull request #18 from Martyx00/development
Browse files Browse the repository at this point in the history
added kernel functions
  • Loading branch information
Martyx00 authored Jan 7, 2021
2 parents 28dbdc9 + 8799cee commit 4f64805
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scanner/free_scanner3.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def __init__(self,bv):
self.current_view = bv
self.progress_banner = f"[VulnFanatic] Running the scanner ... looking for Use-after-free issues"
BackgroundTaskThread.__init__(self, self.progress_banner, True)
self.free_list = ["free","_free","_freea","freea","free_dbg","_free_dbg","free_locale","_free_locale","g_free","operator delete","operator delete[]"]
self.free_list = ["free","_free","_freea","freea","free_dbg","_free_dbg","free_locale","_free_locale","g_free","operator delete","operator delete[]","kfree","_kfree"]

def run(self):
#start = time.time()
Expand Down
4 changes: 4 additions & 0 deletions scanner/rules3.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@
{"function_name":"objc_msgSend", "trace_params":[1, 6, 2, 3]},
{"function_name":"popen", "trace_params":[0]},
{"function_name":"printf", "trace_params":[0]},
{"function_name":"printk", "trace_params":[0]},
{"function_name":"_printk", "trace_params":[0]},
{"function_name":"scanf", "trace_params":[0,"return"]},
{"function_name":"snprintf", "trace_params":[0, 2, 1,-3]},
{"function_name":"sprintf", "trace_params":[1,-2]},
Expand Down Expand Up @@ -296,6 +298,8 @@
"functions":[
"_printf",
"printf",
"printk",
"_printk",
"vprintf",
"_vprintf",
"scanf",
Expand Down

0 comments on commit 4f64805

Please sign in to comment.