diff --git a/README.md b/README.md index 7f86b00..f3c1ffc 100644 --- a/README.md +++ b/README.md @@ -206,7 +206,12 @@ You can also contribute with a beer IRL or via Github Sponsor button. ### Thanks to the contributors -- [ttffdd](https://github.com/ttffdd) +

+ + + +

+ ## Inspired by diff --git a/modules/readfiles.py b/modules/readfiles.py index b9c775a..ee05a07 100644 --- a/modules/readfiles.py +++ b/modules/readfiles.py @@ -12,12 +12,24 @@ class exploit(): def __init__(self, requester, args): logging.info(f"Module '{name}' launched !") - self.files = args.targetfiles.split(',') if args.targetfiles != None else ["/etc/passwd", "/etc/lsb-release", "/etc/shadow", "/etc/hosts", "\/\/etc/passwd", "/proc/self/environ", "/proc/self/cmdline", "/proc/self/cwd/index.php", "/proc/self/cwd/application.py", "/proc/self/cwd/main.py", "/proc/self/exe"] + self.files = args.targetfiles.split(',') if args.targetfiles != None else [ + "/etc/passwd", + "/etc/lsb-release", + "/etc/shadow", + "/etc/hosts", + "\/\/etc/passwd", + "/proc/self/environ", + "/proc/self/cmdline", + "/proc/self/cwd/index.php", + "/proc/self/cwd/application.py", + "/proc/self/cwd/main.py", + "/proc/self/exe" + ] self.file_magic = {'elf' : bytes([0x7f, 0x45, 0x4c, 0x46])} r = requester.do_request(args.param, "") - if r != None: + if r is not None: default = r.text # Create directory to store files