Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Oct 2015
    Location
    US
    Posts
    176

    Simple scrip to Find Vulnerable PHP files.

    Script used to find vulnerable php files

    Code:
    #!/bin/bash
    shellpattern=’r0nin|m0rtix|upl0ad|r57|c99|shellbot|phpshell|void\.ru|phpremoteview|directmail|bash_history|vulnscan|spymeta|raslan58′
    for user in `/bin/ls /var/cpanel/users`
    do
    find /home/$user/public_html \( -name ‘*.php’ -o -name ‘*.cgi’ -o -name ‘*.inc’ \) -exec \
    egrep -il “$shellpattern” {} \;
    done
    ServerPoint.com, hosting thousands of customers since 1998
    Dedicated Server Hosting - Cloud VPS Hosting - Web Hosting
    Las Vegas / Silicon Valley / Dallas / Ashburn / Amsterdam / Singapore

  2. #2
    Member
    Join Date
    Apr 2016
    Posts
    29
    What does .inc stand for?

  3. #3
    Registered User
    Join Date
    Oct 2015
    Location
    US
    Posts
    176
    Quote Originally Posted by ServerHat View Post
    What does .inc stand for?
    .inc file can be seen in Drupal installations. Other extensions also can be added to the script.
    ServerPoint.com, hosting thousands of customers since 1998
    Dedicated Server Hosting - Cloud VPS Hosting - Web Hosting
    Las Vegas / Silicon Valley / Dallas / Ashburn / Amsterdam / Singapore

  4. #4
    Registered User euro-space's Avatar
    Join Date
    Dec 2014
    Posts
    191
    You may also add / run following piece of code, which will show potential backdoors:

    grep -ir 'eval(' /home/username/public_html/*

    as eval() is commonly used function by attackers, but sometimes it can also be "splitted" like this: <? eval/*somestring*/(... ?> so keep in mind this too.
    cPanel WordPress Hosting from €2.99 | Reseller Hosting from €9.99 | VPS Hosting from €7.99

    Our customer reviews at Trustpilot

    EURO-SPACE - Reliable Hosting Solutions Since 2007

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

  Find Web Hosting      
  Shared Web Hosting UNIX & Linux Web Hosting Windows Web Hosting Adult Web Hosting
  ASP ASP.NET Web Hosting Reseller Web Hosting VPS Web Hosting Managed Web Hosting
  Cloud Web Hosting Dedicated Server E-commerce Web Hosting Cheap Web Hosting


Premium Partners:


Visit forums.thewebhostbiz.com: to discuss the web hosting business, buy and sell websites and domain names, and discuss current web hosting tools and software.