diff options
author | dusoleil <howcansocksbereal@gmail.com> | 2021-08-02 00:36:28 -0400 |
---|---|---|
committer | dusoleil <howcansocksbereal@gmail.com> | 2021-08-03 19:45:57 -0400 |
commit | aa9da0f6f27759f5f3201bafb0e52f41367f08ef (patch) | |
tree | d3f748eeb0112205bb7784bd353b22376ee827ae /tools/sploit/sploitlog.py | |
parent | 4338f0862dae3b33862bb32c5dd9fc2eb5f6f90a (diff) | |
download | lib-des-gnux-aa9da0f6f27759f5f3201bafb0e52f41367f08ef.tar.gz lib-des-gnux-aa9da0f6f27759f5f3201bafb0e52f41367f08ef.zip |
Adding Initial Commit of the Sploit Tool
Signed-off-by: dusoleil <howcansocksbereal@gmail.com>
Diffstat (limited to 'tools/sploit/sploitlog.py')
-rwxr-xr-x | tools/sploit/sploitlog.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/sploit/sploitlog.py b/tools/sploit/sploitlog.py new file mode 100755 index 0000000..eab1fc7 --- /dev/null +++ b/tools/sploit/sploitlog.py @@ -0,0 +1,17 @@ +#!/usr/bin/env python3 + +import os + +import sploitconfig as config + +#this function does not look at the run mode and will write to stdout regardless +#use sploitutil.log instead +def sploitlog(s): + if config.log_encoding != '': + s = s.decode(config.log_encoding) + print(s) + +if __name__ == '__main__': + stdin = os.fdopen(0,"rb") + for s in stdin: + sploitlog(s) |