Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8b4f723

Browse files
committed
Adding (for now hidden) option --binary (works like -C but deliberately retrieves data in hex format and displays in hex format)
1 parent 1d42aba commit 8b4f723

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

lib/core/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ def nullAndCastField(self, field):
344344
else:
345345
nulledCastedField = rootQuery.isnull.query % nulledCastedField
346346

347-
if conf.hexConvert:
347+
if conf.hexConvert or conf.binary and field in conf.binary.split(','):
348348
nulledCastedField = self.hexConvertField(nulledCastedField)
349349

350350
return nulledCastedField

lib/parse/cmdline.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,9 @@ def cmdLineParser():
665665
parser.add_option("--profile", dest="profile", action="store_true",
666666
help=SUPPRESS_HELP)
667667

668+
parser.add_option("--binary", dest="binary",
669+
help=SUPPRESS_HELP)
670+
668671
parser.add_option("--cpu-throttle", dest="cpuThrottle", type="int",
669672
help=SUPPRESS_HELP)
670673

0 commit comments

Comments
 (0)