1) This bot on my server overwrites file index.php through line of code:
require( dirname( __FILE__ ) .'/confings.php' );
2) creates a file named: confings.php
3) creates a directory named: bak
4) creates a file named: suffix.txt
it contains an entry: .aBF or .HsC differently
Example of operation:
Code: Select all
68.180.230.155 - - [28/Dec/2017:09:49:45 +0100] "GET /kZCVisX/LAJ.aBF HTTP/1.1" 200 28432 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)" 376 28641 justin 4 2 0 0
68.180.230.155 - - [28/Dec/2017:09:50:00 +0100] "GET /MK-m/j/Uqk9bsm4jP/by1-OTkzb-weVZ.HsC HTTP/1.1" 200 26325 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)" 397 26534 justin 4 5 0 0
68.180.230.155 - - [28/Dec/2017:09:50:02 +0100] "GET /mT3L3-1zS HTTP/1.1" 200 28546 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)" 370 28755 justin 4 2 0 0
68.180.230.155 - - [28/Dec/2017:09:50:04 +0100] "GET /ZRVMjyG8-x2e2U_GD9YD9/5Sy HTTP/1.1" 200 43698 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)" 386 43907 justin 4 2 0 0
68.180.230.155 - - [28/Dec/2017:09:50:05 +0100] "GET /BydS3Lf6-UyWfDJ1Iu7Er1s4jH.HsC HTTP/1.1" 200 23552 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)" 391 23761 justin 4 1 0 0
68.180.230.155 - - [28/Dec/2017:09:50:08 +0100] "GET /ZkohG.HsC HTTP/1.1" 200 27460 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)" 370 27669 justin 2 6 0 0
68.180.230.155 - - [28/Dec/2017:09:50:16 +0100] "GET /6jMgEBX7/YQWm16rTdlwfPv5Lr5a3Q.aBF HTTP/1.1" 200 32112 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)" 395 32321 justin 1 4 0 0
68.180.230.155 - - [28/Dec/2017:09:50:20 +0100] "GET /4XaROnjeiAToiiYJC.aBF HTTP/1.1" 200 30335 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)" 382 30544 justin 2 5 0 0
68.180.230.155 - - [28/Dec/2017:09:50:23 +0100] "GET /KZ5pBc4cVzpMotW4IKFR_hEDF5y.aBF HTTP/1.1" 200 94442 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)" 392 94652 justin 4 1 0 0
68.180.230.155 - - [28/Dec/2017:09:50:24 +0100] "GET /l3F6Z2iFy/0bBypZ4UiPsP84wKKGDjj HTTP/1.1" 200 23284 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)" 392 23493 justin 3 2 0 0
68.180.230.155 - - [28/Dec/2017:09:50:24 +0100] "GET /QYFwSLV66j188B8A6jGCKST/.aBF HTTP/1.1" 200 31090 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)" 389 31300 justin 13 13 0 0
68.180.230.155 - - [28/Dec/2017:09:50:29 +0100] "GET /tDOWl0YIFvnA.aBF HTTP/1.1" 200 39029 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)" 377 39238 justin 1 5 0 0
68.180.230.155 - - [28/Dec/2017:09:50:29 +0100] "GET /exNqXCzTAlyFleXNPn4jBlPFMxj-I.aBF HTTP/1.1" 200 21253 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)" 394 21462 justin 2 3 0 0
How to effectively protect a script from overwriting and creating files, directories
During one stay,can on the server take 500/600 Mb area.
I am asking for constructive suggestions
Regards
Bogdan