PDA

View Full Version : [ubuntu] (D)DoS Deflate


AADude
July 27th, 2009, 12:55 PM
Whenever I try to run it, I get:

[: 85: /usr/local/ddos/ddos.conf: unexpected operator
DDoS-Deflate version 0.6
Copyright (C) 2005, Zaf <zaf@vsnl.com>

$CONF not found.


Yes, I do have the ddos.conf file (with text inside) located at /usr/local/ddos/.

AADude
July 27th, 2009, 10:00 PM
I suppose no one has any idea as to the solution :x

dragos2
July 28th, 2009, 01:40 AM
I suppose no one has any idea as to the solution :x


Please

ls -al /usr/local/ddos/ddos.conf

AADude
July 28th, 2009, 02:24 AM
Please

ls -al /usr/local/ddos/ddos.conf

The output:

-rwx------ 1 root root 987 2009-07-27 12:50 /usr/local/ddos/ddos.conf

The Tronyx
July 28th, 2009, 08:43 AM
[: 85: /usr/local/ddos/ddos.conf: unexpected operator


The first thing to notice is that it has a problem with something on line 85 if I am reading that correctly.

Next, it also says, "$CONF not found." That isn't necessarily saying that /usr/local/ddos/ddos.conf isn't found. $CONF indicates that it is looking for whatever it is that occupies the variable $CONF in the configuration file. My recommendation would first be to find the first occurrence of $CONF in the file and see what it is looking for. You should then check out what is happening on line 85. Lastly, check and see if there is a way that you can manually specify the location of the configuration file and if so, do it at startup.

AADude
July 28th, 2009, 10:04 AM
Line 85:

load_conf


which calls the function:

load_conf()
{
CONF="/usr/local/ddos/ddos.conf"
if [ -f "$CONF" ] && [ ! "$CONF" == "" ]; then
source $CONF
else
head
echo "\$CONF not found."
exit 1
fi
}


The CONF variable is set to the correct location.

Tiaquis
July 31st, 2009, 02:50 AM
Hi i had the same problem under jaunty, simple solution is to open /usr/local/ddos/ddos.sh

and change the shebang line from /bin/sh to /bin/bash so your first line in ddos.sh should be #!/bin/bash that worked for my afaik

I think the problem is that /bin/sh is linked to /bin/dash and the syntax is not the same as bash.

dragos2
July 31st, 2009, 07:38 AM
Hi i had the same problem under jaunty, simple solution is to open /usr/local/ddos/ddos.sh

and change the shebang line from /bin/sh to /bin/bash so your first line in ddos.sh should be #!/bin/bash that worked for my afaik

I think the problem is that /bin/sh is linked to /bin/dash and the syntax is not the same as bash.

Damn you beat me to it. You are right. ubuntu uses sh-> dash instead of sh-> bash.

He needs to rebuild the symbolic link and most likely will work.

envis
June 15th, 2010, 05:47 PM
Hi i had the same problem under jaunty, simple solution is to open /usr/local/ddos/ddos.sh

and change the shebang line from /bin/sh to /bin/bash so your first line in ddos.sh should be #!/bin/bash that worked for my afaik

I think the problem is that /bin/sh is linked to /bin/dash and the syntax is not the same as bash.


Thank you :!:

fher98
January 11th, 2011, 01:05 PM
Hello, I had this working for around a year, an today all of the sudden... im seen this error.. why?