Page 1 of 1

cant get a shell script to run

PostPosted: Sun May 05, 2002 6:04 pm
by micromacro
im trying to get a shell script (ssh-brute.sh) to run. ive tried everything. chmod 777, chmod +x and cping it to the /bin but nothing is working im doing all of these in root termnial using pseudo. [img]images/icons/confused.gif"%20border="0[/img]

Re: cant get a shell script to run

PostPosted: Wed May 08, 2002 12:47 pm
by orange1
ummm
if you you've got a root terminal, you don't need sudo.

what's the command you're using to run the script?

Re: cant get a shell script to run

PostPosted: Wed May 08, 2002 5:21 pm
by micromacro
what i mean is, that i drop the terminal program into psudo the program for osx. ive been ./'n it and just trying the command ssh-brute

Re: cant get a shell script to run

PostPosted: Thu May 09, 2002 6:43 pm
by orange1
well, most of what you said didn't make any sense whatsoever. maybe try some punctuation, and this:
sh <script>

or, if it's a tcsh script:
tcsh <script>

consequently, if it's a bash script:
bash <script>

and again, it's "sudo", not "psudo" or "pseudo". two of those will give you a command not found error.

Re: cant get a shell script to run

PostPosted: Sun May 19, 2002 11:41 am
by matthewg42
Please post a little more info:

your shell (echo $SHELL)
your PATH
the output of head -1 [scriptname]

I had one thought:

If the script starts with a
#!...
line that doesn't point towards an executable shell on your system, you'll get a message like one of these, depending on your shell (my test script is called "test", executed using
./test)

in ksh:
ksh: ./test: No such file or directory

in bash:
bash: ./test: bad interpreter: No such file or directory

in tcsh:
./test: Command not found.

in zsh:
zsh: no such file or directory: ./test

Good luck.

Re: cant get a shell script to run

PostPosted: Tue Jul 16, 2002 1:16 am
by <pkl33>
Hmm. It seems ssh-brute is an Expect script that uses a dictionary to apply a brute force attack on an ssh server. While it does have legit uses, I somehow doubt our friend is a sysadmin trying to test the security of his network . . .

Nice try, Micromacro.