Package ghidra.app.util.bin
Class ObfuscatedInputStream
java.lang.Object
java.io.InputStream
ghidra.app.util.bin.ObfuscatedInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
An
InputStream
wrapper that de-obfuscates the bytes being read from the underlying
stream.-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
ObfuscatedInputStream
Creates instance.- Parameters:
delegate
-InputStream
to wrap
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
main
Entry point to enable command line users to retrieve the contents of an obfuscated file.- Parameters:
args
- either ["--help"], or [ "input_filename", "output_filename" ]- Throws:
IOException
- if error
-