Skip to content

Commit

Permalink
Reintroduce reverted fragment
Browse files Browse the repository at this point in the history
  • Loading branch information
Arusekk committed Jun 14, 2020
1 parent 203ead1 commit 89d486e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pwnlib/commandline/constgrep.py 100644 → 100755
Expand Up @@ -104,7 +104,7 @@ def main(args):
continue

# Check the constant
if constant != None:
if constant is not None:
val = getattr(mod, k)
if args.mask_mode:
if constant & val != val:
Expand All @@ -124,7 +124,7 @@ def main(args):
# If we are in match_mode, then try to find a combination of
# constants that yield the exact given value
# We do not want to find combinations using the value 0.
if not (constant == None or constant == 0) and args.mask_mode:
if constant and args.mask_mode:
mask = constant
good = []
out = [(v, k) for v, k in out if v != 0]
Expand Down

0 comments on commit 89d486e

Please sign in to comment.