Post New Topic  Post A Reply
my profile | register | search | faq | forum home
  next oldest topic   next newest topic
» MacOSX - forked.net   » General Discussion   » cant get a shell script to run

UBBFriend: Email this page to someone!    
Author Topic: cant get a shell script to run
micromacro
Junior Member
Member # 407

posted May 05, 2002 11:04 AM      Profile for micromacro   Email micromacro   Send New Private Message      Edit/Delete Post  Reply With Quote 
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.
Posts: 3 | From: USA | Registered: Apr 2002  |  IP: Logged
willy wonka
Member
Member # 32

posted May 08, 2002 05:47 AM      Profile for willy wonka   Author's Homepage        Edit/Delete Post  Reply With Quote 
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


Posts: 92 | Registered: Aug 2001  |  IP: Logged
micromacro
Junior Member
Member # 407

posted May 08, 2002 10:21 AM      Profile for micromacro   Email micromacro   Send New Private Message      Edit/Delete Post  Reply With Quote 
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
Posts: 3 | From: USA | Registered: Apr 2002  |  IP: Logged
willy wonka
Member
Member # 32

posted May 09, 2002 11:43 AM      Profile for willy wonka   Author's Homepage        Edit/Delete Post  Reply With Quote 
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


Posts: 92 | Registered: Aug 2001  |  IP: Logged
Matthew Gates
Junior Member
Member # 428

posted May 19, 2002 04:41 AM      Profile for Matthew Gates   Email Matthew Gates   Send New Private Message      Edit/Delete Post  Reply With Quote 
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.


Posts: 3 | From: Düsseldorf, Germany / UK | Registered: May 2002  |  IP: Logged
<pkl33>
unregistered

posted July 15, 2002 06:16 PM           Edit/Delete Post  Reply With Quote 
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.


IP: Logged

All times are Pacific Time  

Post New Topic  Post A Reply Close Topic    Move Topic    Delete Topic next oldest topic   next newest topic
Hop To:

Contact Us | macosx.forked.net

Powered by Infopop Corporation
Ultimate Bulletin BoardTM 6.1.0.2