Skip to content

Commit

Permalink
fix a bug that allowed printing out empty potential dispatch functions
Browse files Browse the repository at this point in the history
  • Loading branch information
VoidSec committed Oct 27, 2021
1 parent 4e9c3e6 commit 1858671
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DriverBuddyReloaded/wdm.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,8 @@ def find_dispatch_function():
print("[>] Based off basic CFG analysis, potential dispatch functions are:")
for i in range(cfg_finds_to_print):
if cfg_funcs[i] != "__security_check_cookie":
print("\t- {}".format(cfg_funcs[i]))
if cfg_funcs[i] != "" and cfg_funcs[i] is not None:
print("\t- {}".format(cfg_funcs[i]))
elif len(index_funcs) == 1:
func = index_funcs.pop()
if func in cfg_funcs:
Expand Down

0 comments on commit 1858671

Please sign in to comment.