summaryrefslogblamecommitdiffstats
path: root/sploitlog.py
blob: eab1fc76cf9151d478559e06cb2e7768ffe73377 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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)