Commit Graph
76 Commits
Author SHA1 Message Date
nichogeniusandGitHub b138ce1707 Added generic base64 long string pattern
Added some comments to the file and added a generic base64 string regex for long base64 strings.
2017-07-26 00:26:29 -06:00
nichogeniusandGitHub 8122d11eff Whitespace and Comment handling for pattern files
The pattern files are large and complex enough to justify some whitespace and comments to explain what each entry is.

Added logic to check if the line is empty or if the first character is equal to '#' before using it as a pattern.  Simply skips over empty and commented lines.
2017-07-25 23:55:37 -06:00
nichogeniusandGitHub a371961928 Two-key sorting is better
cat php-malware-scanner-master/whitelist.txt | sort -k 2,2 -k 1,1 | less
More of an OCD thing than anything, but might as well sort primarily by file path, secondarily by hash value.
2017-07-25 23:50:42 -06:00
nichogeniusandGitHub bdb375441b Sorted this file by column 2
cat whitelist.txt | sort -k 2 | less
No reason this shouldn't be sorted perfectly to keep like files together.
No white list rules changed... just plain sorting.
2017-07-25 21:29:10 -06:00
nichogeniusandGitHub 9931821ec5 added wordfence whitelist
wp-content/plugins/wordfence/lib/wordfenceURLHoover.php
checksum verified with fresh download.
2017-07-25 06:38:23 -06:00
nichogeniusandGitHub 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
nichogeniusandGitHub 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
nichogeniusandGitHub deb569cd11 contact-form-7 welcome-panel.php whitelist
contact-form-7 welcome-panel.php whitelist
confirmed md5 checksum from wordpress.org download.
2017-07-24 12:33:00 -06:00
nichogeniusandGitHub 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 be8bc7448a Fix LICENSE file 2017-02-22 13:58:07 +01:00
Gabor Gyorvari cd78f4a8ac Separate patterns from code 2017-02-22 13:56:09 +01:00
Gabor Gyorvari acb58f1c2e New ignore argument to exclude files and folders with glob style matching 2017-01-11 19:10:59 +01:00
Gabor Gyorvari b522a23a74 Case insensitive extension check, removed problematic whitelist 2016-12-29 08:31:27 +01:00
Gabor Gyorvari 5675fb8e79 New arguments to follow symlinked directories, default is not to follow 2016-12-27 17:51:39 +01:00
Gabor Gyorvari 1f6efc124b Patterns update from manul samples 2016-12-27 17:45:47 +01:00
Gabor Gyorvari 91174b5a60 Remove too regular patterns 2016-12-27 15:48:48 +01:00
screwloose83andGyőrvári Gábor 608caf6d5e Removed unneeded time zone and comment. 2016-12-10 16:09:29 +01:00
screwloose83andGyőrvári Gábor dd78eee67a Added --extra-check Adds GoogleBot and htaccess to Scan List. 2016-12-10 16:09:29 +01:00
screwloose83andGyőrvári Gábor e8ee36b534 Update Whitelist
Updated white list
2016-12-10 16:09:29 +01:00
screwloose83andGyőrvári Gábor d12f5982b2 Added Extra Patterns for Scanning.
Added Extra Patterns for scanning from samples i found on my server.
Added extra-check it checks for googlebot and htaccess useful for cleaning up left over files.
2016-12-10 16:09:29 +01:00
Gabor Gyorvari 4f41362a46 extending patterns and whitelists 2016-08-15 15:07:23 +02:00
Gabor Gyorvari dbeec3d29e extending patterns and whitelists 2016-08-12 21:39:10 +02:00
Gabor Gyorvari 5783ead57a extending patterns from 3rd samples source 2016-05-05 07:42:39 +02:00
Gabor Gyorvari 7e06f846ae first commit 2016-05-05 07:35:23 +02:00