Commit Graph

7 Commits

Author SHA1 Message Date
nichogenius
86be84e8b6 Organizing, categorizing and prioritizing patterns
There's enough raw patterns in here to justify organizing the file.
Now that whitespace and comments are supported, I've been dividing it into sections

More critical problems should be near the top as I would rather the script identify a file as a backdoor instead of as a spammer.

I don't know the history behind a lot of these or the implication of the code, so I'm sure I mis-categorized many.  There are also many that I have not done yet.
2017-07-26 01:27:53 -06:00
nichogenius
32e8992b50 preg_replace b64 sample shortened to 'replace'
preg_replace should be shortened to just replace as it will also match str_replace, str_ireplace, ereg_replace, eregi_replace and many others I'm sure.  Should increase number of hits.  

'preg_replace' base64 strings: (removed)
cHJlZ19yZXBsYWNl
ByZWdfcmVwbGFjZ
wcmVnX3JlcGxhY2

'replace' base64 strings: (added)
cmVwbGFjZ
JlcGxhY2
yZXBsYWNl
2017-07-24 22:32:57 -06:00
nichogenius
34e6238a19 Minor correction to base64 sample
JHZpc2l0Y291bnQgPSAkSFRUUF9DT09LSUVf is correct.  encoded version of "$visitcount = $HTTP_COOKIE_"
I seem to have added a couple of extra characters than what I should have.  Not sure where they came from.
2017-07-24 21:51:43 -06:00
nichogenius
6b55cfd8b3 Added Equivalent base64 pattern samples
Because base64 converts from an 8 bit to a 6 bit character system, you can get 3 unique base64 strings from a single ascii string depending on the position of the first character.

for example:
base64_encode("system");
base64_encode(" system");
base64_encode("(  system");

The above 3 input strings all produce very different base64 signatures even though they all contain the same keyword 'system'.  This is because the first letter of system, 's' fall on indices 0,1,2 respectively.

I updated several of the base64 samples to include their offset counterparts as the originals would only catch about 1 in 3 of the actual present matches.
2017-07-24 12:23:39 -06:00
Gabor Gyorvari
00bc3c1336 Pattern update according to japanese seo hack 2017-02-27 12:47:34 +01:00
Gabor Gyorvari
18929a47aa Japanese keywoard SEO hack
More info at https://developers.google.com/webmasters/hacked/docs/fixing_the_japanese_keyword_hack
2017-02-22 14:01:44 +01:00
Gabor Gyorvari
cd78f4a8ac Separate patterns from code 2017-02-22 13:56:09 +01:00