A PHPwebshell checks the shell script

Source: Internet
Author: User
#! Binsh #************************************** * ******************** # WebshellCheckShellforphp #: neeao #2008717v1. 0 beta #************************************* * ********************* HOSTIP 'ifconfigeth0 | g

#! /Bin/sh

#*************************************** *********************

# Webshell Check ShellPhp

# By: Neeao

#2008/7/17 v1.0 beta

#*************************************** *********************

HOSTIP ='IfconfigEth0 |Grep'InetDdR' | awk '{print $2;}' |Cut-D:-f2'

# STR ='ExPr index $ HOSTIP "192.168 "'

# If [$ {STR}-eq 1]

# Then

# HOSTIP = 'ifconfig eth1 | grep' inet addr '| awk' {print $2;} '| cut-d:-f2'

# Fi

Echo $ HOSTIP

LogFile =/tmp/$ HOSTIP. log

Rm-Rf $ LogFile

Date+ % Y-% m-% d/% H: % M> $ LogFile

Echo-e "\ n" >>$ LogFile

Echo "success"> $ LogFile

Echo "| Executive Order fuNcTion: exec (\ | system (\ | passthru (\ | shell_exec (\ | popen (\ | proc_open (\ | pcntl_exec (| "> $ LogFile

Echo "success"> $ LogFile

Echo-e "\ n" >>$ LogFile

Grep-in 'exec (\ | system (\ | passthru (\ | shell_exec (\ | popen (\ | proc_open (\ | pcntl_exec ('-R * | grep-IV '_ exec '> $ LogFile

Echo-e "\ n" >>$ LogFile

Echo "success"> $ LogFile

Echo "| Deformation of the back door coding:Eval(\ | Base64_decode (\ | gzinflate (\ | gzunCompress(\ | Chr (| ">>$ LogFile

Echo "success"> $ LogFile

Echo-e "\ n" >>$ LogFile

Grep-in "eval (\ | base64_decode (\ | gzinflate (\ | gzuncompress (\ | chr ("-R *> $ LogFile

Echo-e "\ n" >>$ LogFile

Echo "success"> $ LogFile

Echo "| File operations function: dl (\ | fopen (\ | reaDfIle (\ |File(\ | File_get_contents (\ | opendir (\ | chdir (\ | fWrite(\ | Unlink (\ | glob (| "> $ LogFile

Echo "success"> $ LogFile

Echo-e "\ n" >>$ LogFile

Grep-in "dl (\ | fopen (\ | readfile (\ | file (\ | file_get_contents (\ | opendir (\ | chdir (\ | fwrite (\ | unlink (\ | glob ("-R *> $ LogFile

Echo-e "\ n" >>$ LogFile

Echo "----------------------------------"> $ LogFile

Echo "| Files inculde bug: include | require |"> $ LogFile

Echo "----------------------------------"> $ LogFile

Echo-e "\ n" >>$ LogFile

Grep-in "include. * \ $. \ | require. * \ $."-R *> $ LogFile

Echo-e "\ n" >>$ LogFile

Echo "---------------------------------------------------------"> $ LogFile

Echo "| Risk code Keyword: SQLyog \ | phpAdsNew \ | huanSuAn \ | fckEdItor | "> $ LogFile

Echo "--------------------------------------------------------"> $ LogFile

Echo-e "\ n" >>$ LogFile

Grep-in "SQLyog \ | phpAdsNew \ | huansuan \ | fckeditor"-R *> $ LogFile

Cd/Tmp

Tar-zcvf restart hostip.tar.gz $ HOSTIP. log

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.