What is shell script ?

Discussion in 'Security' started by astrohope, Mar 30, 2010.

  1. #1
    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 ???
     
    astrohope, Mar 30, 2010 IP
  2. chrisy

    chrisy Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    A shell script is a script written for the shell, or command line interpreter, of an operating system. It is often considered a simple domain-specific programming language. Typical operations performed by shell scripts include file manipulation, program execution, and printing text.
    Many shell script interpreters double as command line interface, such as the various Unix shells, Windows PowerShell or the MS-DOS COMMAND.COM. Others, such as AppleScript or the graphical Windows Script Host (WScript.exe), add scripting capability to computing environments without requiring a command line interface. Other examples of programming languages primarily intended for shell scripting include DCL and JCL...
     
    chrisy, Apr 1, 2010 IP
  3. SecureCP

    SecureCP Guest

    Messages:
    226
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hey, what chrisy provided is half right. We call all scripts that we in the industry write to automate our jobs on *nix boxs shell scripts. I believe this may be what your referring to:
    [​IMG]
     
    SecureCP, Apr 2, 2010 IP
  4. ChrisMiller

    ChrisMiller Prominent Member

    Messages:
    1,934
    Likes Received:
    81
    Best Answers:
    0
    Trophy Points:
    315
    #4
    A majority of shell scripts like r57 / c99 tend to pop up alot on my servers but I am protected from them for disabling certain functions, since these scripts are mainly used by hackers to try to gain access to your server / send out spam or deface your site.
     
    ChrisMiller, Apr 5, 2010 IP
  5. FavouritesBlog

    FavouritesBlog Peon

    Messages:
    846
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Shellcode;

    If you are running PHP scripts, you may have RFI vulnerabilities depending on if your script(s) are vulnerable and/or you have not disabled essential functions which are vulnerable to attack.

    RFI - Remote File Inclusion. Allows an attacker to get your insecure php file, to upload some of his own code - e.g c99 shell shown above.

    The shell then allows the attacker to gain passwd files, backups of DB's, apply more malicious code to gain more access.

    Ensure all your php files have the correct ownership and permissions.

    Disable un-required php functions in servers php.ini.

    Apply the recommended apache server security mods - e.g suphp, mod_security.
     
    FavouritesBlog, Apr 15, 2010 IP
  6. Actaviosan

    Actaviosan Guest

    Messages:
    216
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I assume one of the ways you used is enabling Safe Mode?
    Still, some hackers by some ways succeed in bypassing Safe Mode.
    Be careful.
     
    Actaviosan, May 5, 2010 IP
  7. crashus

    crashus Active Member

    Messages:
    90
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    53
    #7
    usually simple bash script
     
    crashus, May 11, 2010 IP