da667 / Autosnort

Repo for autosnort scripts.
MIT License
157 stars 89 forks source link

Getting error autosnort-CentOS-03-31-2014.sh: line 6: '<!DOCTYPE html>' #24

Closed anshuman27 closed 10 years ago

anshuman27 commented 10 years ago

I am getting following error while I run the script autosnort script.

I am trying to run the script on the CentOS Linux version 2.6.32-279.5.2.el6.centos.plus.x86_64

Kindly look into this.

Regards, Anshuman

da667 commented 10 years ago

Anshuman

I've seen this problem before. This usually happens when someone tries to copy and paste the autosnort shell directly from github. You don't see it when copying and pasting the shell script, but there's html all over the page. The error you got looks exactly like an html doctype declaration.

Try downloading the autosnort-master.zip file or use 'git clone' to clone the scripts. Afterward copy the centos shell script and the shell script to install the event interface of your choice to /root.

The autosnort-master zip file is here: https://github.com/da667/Autosnort/archive/master.zip

Or you can install the 'git' client: Yum install git Git clone https://github.com/da667/Autosnort.git

Copy the autosnort-centos script, and the script for the output/alert interface you would like (e.g snorby, base, aanval, snortreport or syslog) to /root and run the autosnort-centos script.

Thanks,

Da_667 On Jun 5, 2014 5:41 AM, "anshuman27" notifications@github.com wrote:

I am getting following error while I run the script autosnort script.

I am trying to run the script on the CentOS Linux version 2.6.32-279.5.2.el6.centos.plus.x86_64

Kindly look into this.

Regards, Anshuman

— Reply to this email directly or view it on GitHub https://github.com/da667/Autosnort/issues/24.

anshuman27 commented 10 years ago

Thank you. By downloading the zip file my issue was resolved.