Class for search a web-shells.
Work principle - search of coincidence. In a base file words lie,
which meet in a web-shells. The class touches all files on your
web resource also searches there for coincidence to base
Variables:
- $base_file - a base file. The necessary format: txt
- $alternative_base - words for search. The necessary format: word1, word2
If this variable is defined, search will be carried out
Only by these words(word)
- $extension - expansion of files in which it is necessary to search
- $scan_dir - directory for check
- $chmod - if this variable is defined, search will be is made only
In those directories, if chmod 777
Example of start without parameters:
$check=new WSSClass_c();
print_r($check->check_dirs());
At such start - the current directory will be scanned
Scanning of the previous directory
- Only files with expansion php
- Words for search - system, cmd
- To search only in directories with chmod 777
$check=new WSSClass_c();
$check->alternative_base("system,cmd");
$check->extension="php";
$check->scan_dir="..";
$check->chmod=true;
print_r($check->check_dirs()); |