GitHub PushEvent at 2014-12-01 13:04:39
Repository: fail2ban
Actor: sebres
Payload: {"shas":[["ba44ff312b45502647c7ab367bcdff0a6609ac92","3d022b27e7c3ceed93ede6af9d913a53a02d1be2@gmail.com","grep IP at the start of lines\n\nI'm not sure if this regex works best, so I'm patching this single file as a sample.\r\n\r\nDon't forget to update `mail-whois-lines.conf` after this patch got merged.\r\n\r\nFor the following logs, `grep '[^0-9]199.48.161.87[^0-9]'` will output nothing, while `grep '\\([^0-9]\\|^\\)199.48.161.87[^0-9]'` works:\r\n<pre>199.48.161.87 - - [09/Sep/2014:13:38:54 +0800] \"POST /wp-login.php HTTP/1.1\" 403 4674 \"-\" \"Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0\" - hitsjapan.com\r\n199.48.161.87 - - [09/Sep/2014:13:38:56 +0800] \"POST /wp-login.php HTTP/1.1\" 403 4674 \"-\" \"Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0\" - hitsjapan.com\r\n199.48.161.87 - - [09/Sep/2014:13:38:58 +0800] \"POST /wp-login.php HTTP/1.1\" 403 4674 \"-\" \"Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0\" - hitsjapan.com\r\n199.48.161.87 - - [09/Sep/2014:13:39:00 +0800] \"POST /wp-login.php HTTP/1.1\" 403 4674 \"-\" \"Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0\" - hitsjapan.com\r\n199.48.161.87 - - [09/Sep/2014:13:39:05 +0800] \"POST /wp-login.php HTTP/1.1\" 403 4674 \"-\" \"Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0\" - hitsjapan.com\r\n199.48.161.87 - - [09/Sep/2014:13:39:05 +0800] \"POST /wp-login.php HTTP/1.1\" 403 4674 \"-\" \"Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0\" - hitsjapan.com\r\n199.48.161.87 - - [09/Sep/2014:13:39:13 +0800] \"POST /wp-login.php HTTP/1.1\" 403 4674 \"-\" \"Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0\" - hitsjapan.com\r\n199.48.161.87 - - [09/Sep/2014:13:39:21 +0800] \"POST /wp-login.php HTTP/1.1\" 403 4674 \"-\" \"Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0\" - hitsjapan.com\r\n199.48.161.87 - - [09/Sep/2014:13:39:32 +0800] \"POST /wp-login.php HTTP/1.1\" 403 4674 \"-\" \"Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0\" - hitsjapan.com\r\n199.48.161.87 - - [09/Sep/2014:13:39:34 +0800] \"POST /wp-login.php HTTP/1.1\" 403 4674 \"-\" \"Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0\" - hitsjapan.com\r\n199.48.161.87 - - [09/Sep/2014:13:39:34 +0800] \"POST /wp-login.php HTTP/1.1\" 403 168 \"-\" \"Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0\" - hitsjapan.com\r\n199.48.161.87 - - [09/Sep/2014:13:39:34 +0800] \"POST /wp-login.php HTTP/1.1\" 403 168 \"-\" \"Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0\" - hitsjapan.com\r\n199.48.161.87 - - [09/Sep/2014:13:39:35 +0800] \"POST /wp-login.php HTTP/1.1\" 403 168 \"-\" \"Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0\" - hitsjapan.com\r\n199.48.161.87 - - [09/Sep/2014:13:39:35 +0800] \"POST /wp-login.php HTTP/1.1\" 403 168 \"-\" \"Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0\" - hitsjapan.com\r\n199.48.161.87 - - [09/Sep/2014:13:39:35 +0800] \"POST /wp-login.php HTTP/1.1\" 403 168 \"-\" \"Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0\" - hitsjapan.com</pre>","Dean Lee",false],["595edc8d4698fd7b27630328470903b85220cb8f","f56bbee599e874c4111e9b53554c9095385197f2@sebres.de","increase code coverage","sebres",true],["518cc92ccc0866c1b82bedbf8b48f9a603b5c737","f56bbee599e874c4111e9b53554c9095385197f2@sebres.de","actions: bug fix in lambdas in checkBan, because getBansMerged could return None (purge resp. asynchronous addBan), make the logic all around more stable;\ntest cases: extended with test to check action together with database functionality (ex.: to verify lambdas in checkBan);\ndatabase: getBansMerged should work within lock, using reentrant lock (cause call of getBans inside of getBansMerged);","sebres",false],["8dbc04aa06e0cbcb951f489393e81638c150e577","f56bbee599e874c4111e9b53554c9095385197f2@sebres.de","Test cases fixed:\n\ttestFail2BanExceptHook - use local sys.__excepthook__ to check was really executed and prevent write error in stderr.","sebres",false],["36abb5ed969d537bbdb5ab4959826f1ef23c2ae1","a6eb4d9d7f99ca47abe56f3220597663cf37ca4a@onerussian.com","BF: fix $ for % in jail.conf. Debian bug #767255","Yaroslav Halchenko",false],["46a8899f20b6513036bb62faf5d0eb7b02b0ad00","f56bbee599e874c4111e9b53554c9095385197f2@sebres.de","code review","sebres",false],["92ba5ae09c54aebd0a244fab634e301045610628","59bd0a3ff43b32849b319e645d4798d8a5d1e889@sebres.de","few confusing merge info helper","sebres",false],["01b2673e3406b770882b4c246e8f44a5582f4d6f","091e17a9b3e16e0ce475fc93693b3549fb1cc7e8@cora.nwra.com","Use multiport for firewallcmd-new","Orion Poplawski",false],["6d345a13f0efa77348580fe414ebf07d04b84f31","a6eb4d9d7f99ca47abe56f3220597663cf37ca4a@onerussian.com","Merge pull request #840 from opoplawski/firewallcmd-multiport\n\nUse multiport for firewallcmd-new","Yaroslav Halchenko",false],["efbf5064a1420260c0297d5d2370de07feec62e4","a6eb4d9d7f99ca47abe56f3220597663cf37ca4a@onerussian.com","Merge pull request #807 from xslidian/patch-1\n\ngrep IP at the start of lines","Yaroslav Halchenko",false],["967485c2d00d9aff91aea535d2909deab0ed1ba4","a6eb4d9d7f99ca47abe56f3220597663cf37ca4a@onerussian.com","improving grepping","Yaroslav Halchenko",false],["21be98362070210fc12660370eafe2dd2e7f0b63","091e17a9b3e16e0ce475fc93693b3549fb1cc7e8@cora.nwra.com","ChangeLog for firewallcmd-new multiport support","Orion Poplawski",false],["a44cfba9ae67be3a608158b177026eafcb966d14","a6eb4d9d7f99ca47abe56f3220597663cf37ca4a@onerussian.com","Merge pull request #841 from opoplawski/firewallcmd-multiport\n\nChangeLog for firewallcmd-new multiport support","Yaroslav Halchenko",false],["6dfddbcdf62553d56483d4990e84261845f46508","59bd0a3ff43b32849b319e645d4798d8a5d1e889@sebres.de","Bug fix in formatJournalEntry, gh-851\n\n Unhandled exception in fail2ban 0.9.1 #851","Serg G. Brester",false],["b379f5d51bd40308222e04ffc2eee2b56f1c338d","a6eb4d9d7f99ca47abe56f3220597663cf37ca4a@onerussian.com","Merge pull request #852 from sebres/patch-1\n\nBug fix in formatJournalEntry, gh-851","Yaroslav Halchenko",false],["9269664350656bbdbab0131754322a2a7b4a9739","e0fc2075dc6230ebd578bd6e150c6b4522932092@gmail.com","Add ignoreregex to avoid warning on start","Guillaume FRANCOIS",false],["a6a2dc868b13be57fc986ca7c6986dac6e06185d","e0fc2075dc6230ebd578bd6e150c6b4522932092@gmail.com","Add ignoreregex to avoid warning on start","Guillaume FRANCOIS",false],["72370d2574e3dde210eee45a1f90c3ac8e6ccc58","a6eb4d9d7f99ca47abe56f3220597663cf37ca4a@onerussian.com","Merge pull request #858 from g1franc/master\n\nAdd ignoreregex to avoid warning on start","Yaroslav Halchenko",false],["d8867807f560838e70375cc9ca90585179700fe6","091e17a9b3e16e0ce475fc93693b3549fb1cc7e8@cora.nwra.com","Separate php-url-fopen logpath by newline","Orion Poplawski",false],["4a620aa2ba15da9d24357bf83e58c28e94632cc2","a6eb4d9d7f99ca47abe56f3220597663cf37ca4a@onerussian.com","Merge pull request #869 from opoplawski/logpath\n\nSeparate php-url-fopen logpath by newline","Yaroslav Halchenko",false]],"size":23,"ref":"refs/heads/ban-time-incr","head":"5dc1a583b4a545e1bdc1d2aa76eec025f37912fb"}