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

-bash: !/bin/bash\nphp: event not found during binary installation #108

Open
kintaro1981 opened this issue Aug 26, 2024 · 0 comments
Open

Comments

@kintaro1981
Copy link

I'm trying to use it as binary but following the instructions I'm getting this error:

[10:49][root@mycomputer PHP-Antimalware-Scanner]# wget https://raw.githubusercontent.com/marcocesarato/PHP-Antimalware-Scanner/master/dist/scanner -O /usr/bin/awscan.phar && \
> printf "#!/bin/bash\nphp /usr/bin/awscan.phar \$@" > /usr/bin/awscan && \
-bash: !/bin/bash\nphp: event not found
> chmod u+x,g+x /usr/bin/awscan.phar && \
> chmod u+x,g+x /usr/bin/awscan && \
> export PATH=$PATH":/usr/bin"
--2024-08-26 10:49:17--  https://raw.githubusercontent.com/marcocesarato/PHP-Antimalware-Scanner/master/dist/scanner
Resolving raw.githubusercontent.com... 2606:50c0:8001::154, 2606:50c0:8003::154, 2606:50c0:8002::154, ...
Connecting to raw.githubusercontent.com|2606:50c0:8001::154|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 820141 (801K) [application/octet-stream]
Saving to: ‘/usr/bin/awscan.phar’

/usr/bin/awscan.phar                        100%[==========================================================================================>] 800.92K  --.-KB/s    in 0.003s

2024-08-26 10:49:17 (266 MB/s) - ‘/usr/bin/awscan.phar’ saved [820141/820141]

chmod: cannot access ‘/usr/bin/awscan’: No such file or directory
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