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

syntax error near unexpected token `newline' #64

Open
Madefoka opened this issue Aug 7, 2022 · 3 comments
Open

syntax error near unexpected token `newline' #64

Madefoka opened this issue Aug 7, 2022 · 3 comments

Comments

@Madefoka
Copy link

Madefoka commented Aug 7, 2022

I got this error after executing:

""" ./LinEnum.sh: line 8: syntax error near unexpected token `newline' """

""" ./LinEnum.sh: line 8: `' """

@askanton71
Copy link

Same thing

@Dalemaunder
Copy link

Dalemaunder commented Mar 5, 2023

Make sure you are downloading the script and not the source for the webpage when you do a 'wget'.

I expect you've done this:
wget https://github.com/rebootuser/LinEnum/blob/master/LinEnum.sh
This will download a copy of the web-page's source code, not the source code of the script itself.

If you navigate to the file you wish to download insite the github repository, in the top right corner of the source code you will see a button that says "Raw", click on that button and it will take you to a page that has nothing but the source code of the file you were viewing; Using wget on this new web-page will work as you expected it to.

So, to get the source code of the LinEnum.sh file, you'd then be running this:
wget https://raw.githubusercontent.com/rebootuser/LinEnum/master/LinEnum.sh

I hope this helps anyone else who comes across this issue.

@sh471
Copy link

sh471 commented Mar 5, 2023 via email

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

4 participants