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 | b33db8c57b0875904610ae5dec64a653332ac835 (patch) | |
tree | 433206bcd4d10173110a04641c08576380c2a12f /sploitlog.py | |
download | sploit-b33db8c57b0875904610ae5dec64a653332ac835.tar.gz sploit-b33db8c57b0875904610ae5dec64a653332ac835.zip |
Adding Initial Commit of the Sploit Tool
Signed-off-by: dusoleil <howcansocksbereal@gmail.com>
Diffstat (limited to 'sploitlog.py')
-rwxr-xr-x | sploitlog.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sploitlog.py b/sploitlog.py new file mode 100755 index 0000000..eab1fc7 --- /dev/null +++ b/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) |