Question:
what is shell script ?
?
2010-03-30 02:29:41 UTC
any one tell me what is shell script and what it is use for ?
i have in linux web hosting and my website have php files in that and my site attacked many times with malware and block by google did you thing it have some thing to do what shell script ???
Five answers:
Tizio 008
2010-03-30 02:55:07 UTC
a shell script is a script (an interpreted program, so to say) for the shell, the right shell definition can be found on wikipedia; from your pov, the shell is just an interpreter for the script (normally a shell is interactive, it's the thing that "makes" the command line).

the script is clear text.

shell script can be used to run programs, do administrative tasks (like renaming files, moving files, deleting files, creating folders, killing tasks, finding files, dearchiving archives, and so on), and with the use of a proper program (as said, you can run any program through the shell) you can also connect, attack, download ... ...

a shell script can also be programmed so that it can work as a cgi script... briefly, a good shell like bash provides a real programming language taht can be used to do everything (or so)



the explanation of what's going on in your site is not clear. more likely the problem could be some PHP code that allowed an attacker to exploit your site, maybe injecting malicious files on your server? I can't know it! we need details to say more
?
2017-01-18 20:00:49 UTC
With ordinary compiled languages like C or C++, or the pc does no longer examine out the truly code you write whilst executing this technique. extremely, there is yet another software suggested as a 'compiler' that takes the code you write and interprets it into gadget code, that's understood rapidly by way of the processor. because of the fact no translation is occurring at runtime, this technique is waiting to execute very speedy. With ordinary scripting languages (additionally general as interpreted languages) like Javascript or SH, there isn't any compiler. extremely, there's a software or technique suggested as an 'interpreter' that reads over the script code and performs the desired operations one line at a time. extremely than new gadget code being generated, the interpreter in simple terms executes gadget code it already has counting on what it reads from the script. Java is a particular case. it truly is a compiled language, in spite of the undeniable fact that it does not actual collect into gadget code. extremely, it compiles into something suggested as 'Java bytecode', that's then interpreted something like a script. this enables Java courses to share various the advantages and downsides of the two compiled languages and scripting languages.
dj_mrnoisy
2010-03-30 03:06:51 UTC
Shell scripts are programs that can be written in the "shell" of a linux operating system. If you site was attacked it may well be vulnerabilities in your PHP coding, hacker could use URL manipulation and inject some scripting or even upload some scripting files.



I google searched "common php vulnerabilities"



http://www.symantec.com/connect/articles/five-common-web-application-vulnerabilities



http://www.eweek.com/c/a/Security/Common-PHP-Security-Mistakes-and-What-You-Can-Do-About-Them-427112/



For general overview of shell scripting



http://en.wikipedia.org/wiki/Shell_script
Mukesh K
2014-09-06 14:39:40 UTC
Shells script is an interpreted program which can be written into shell of linux/unix.

It can be use in lot of technical operation ,handling processes and automate them .



if you beginner just look on shells example one by one on following :

http://mytpoints.blogspot.in/p/shells-scripting.html



:-)
hamza
2014-03-24 06:04:29 UTC
red this book

http://free-ebooks2013.blogspot.com/2014/03/linux-shell-scripting-cookbook-2nd.html


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...