cant get a shell script to run

Everything else.

cant get a shell script to run

Postby micromacro » Sun May 05, 2002 6:04 pm

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]
micromacro
 
Posts: 3
Joined: Sat Apr 20, 2002 7:00 pm
Location: USA

Re: cant get a shell script to run

Postby orange1 » Wed May 08, 2002 12:47 pm

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?
--
-willy
Freedom will henceforth be compulsory. -Random Party Manifesto
orange1
 
Posts: 92
Joined: Tue Aug 21, 2001 7:00 pm

Re: cant get a shell script to run

Postby micromacro » Wed May 08, 2002 5:21 pm

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
micromacro
 
Posts: 3
Joined: Sat Apr 20, 2002 7:00 pm
Location: USA

Re: cant get a shell script to run

Postby orange1 » Thu May 09, 2002 6:43 pm

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.
--
-willy
Freedom will henceforth be compulsory. -Random Party Manifesto
orange1
 
Posts: 92
Joined: Tue Aug 21, 2001 7:00 pm

Re: cant get a shell script to run

Postby matthewg42 » Sun May 19, 2002 11:41 am

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.
matthewg42
 
Posts: 3
Joined: Sun May 19, 2002 7:00 pm
Location: Düsseldorf, Germany / UK

Re: cant get a shell script to run

Postby <pkl33> » Tue Jul 16, 2002 1:16 am

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.
<pkl33>
 


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 2 guests

cron