Thread View: alt.privacy.anon-server
8 messages
8 total messages
Started by Bergman Admin
Thu, 03 Jul 2014 03:08
Regex help
Author: Bergman Admin
Date: Thu, 03 Jul 2014 03:08
Date: Thu, 03 Jul 2014 03:08
33 lines
2522 bytes
2522 bytes
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 I am being regularly spammed by a Brazilian spammer. He sends his spam messages (all text, +600kb in length) from throwaway Gmail accounts. They are legitimate Gmail accounts, sent from Gmail's mail servers. He changes his email address with every spam run but his address always contains "ayuda". For example: ayuda7hastapar4todo@gmail.com todos6ayuda70muerta@gmail.com hastatodos.032ayuda@gmail.com I need a regular expression that would catch this nym-shifting Brazilian's email address. What would be a good regex match? - -- Bergman Remailer Admin 0x770251F2 Fingerprint: 8124 C17B 7FD9 1738 066F 4E29 4407 A967 7702 51F2 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iQEcBAEBCAAGBQJTtMkQAAoJEEQHqWd3AlHyzEAIAIk6w+LFFr3h9xStbL0ZB3q5 pxnc3aBR+9devqKf5gYkksHics3K2hpZcIJcIee1TwO0+5+HchDiUPQl6If+qYde b3zq+93SGaxufTlnIj/uS84HkmaFbIYwmCT7k/06mnixHqllPAUfB7JrX+5XhZoo pxZmXtj6gI1lTa6xHeMufcoZWOUP00DXhkx1FhSFOWaoZsGsDizBG+zL0ArVgbOa JbCI8SnTg8y0E8QtgH1tFWoPOY6r9bdu5nW0g54AcWNt+K5Yi61Fk55OfZTHJvO/ Wj8oZAuLaV/pTk9op+mFvEH0FZKMxHM9lk1UjUcX+9QfB2t4sXmW6URhwn73OEg= =PRCw -----END PGP SIGNATURE-----
Re: Regex help
Author: Jack Ryan
Date: Thu, 03 Jul 2014 03:24
Date: Thu, 03 Jul 2014 03:24
43 lines
2239 bytes
2239 bytes
In article <lp2hes$mir$1@solani.org> Bergman Admin <nobody@bergman.delphy.org> wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > I am being regularly spammed by a Brazilian spammer. He sends his spam > messages (all text, +600kb in length) from throwaway Gmail accounts. > They are legitimate Gmail accounts, sent from Gmail's mail servers. > > He changes his email address with every spam run but his address > always contains "ayuda". For example: > > ayuda7hastapar4todo@gmail.com > todos6ayuda70muerta@gmail.com > hastatodos.032ayuda@gmail.com > > I need a regular expression that would catch this nym-shifting > Brazilian's email address. What would be a good regex match? regex generator http://txt2re.com/ http://txt2re.com/index.php3?s=ayuda&submit=Show+Matches > - -- > > Bergman Remailer Admin 0x770251F2 > Fingerprint: 8124 C17B 7FD9 1738 066F 4E29 4407 A967 7702 51F2 > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.19 (GNU/Linux) > > iQEcBAEBCAAGBQJTtMkQAAoJEEQHqWd3AlHyzEAIAIk6w+LFFr3h9xStbL0ZB3q5 > pxnc3aBR+9devqKf5gYkksHics3K2hpZcIJcIee1TwO0+5+HchDiUPQl6If+qYde > b3zq+93SGaxufTlnIj/uS84HkmaFbIYwmCT7k/06mnixHqllPAUfB7JrX+5XhZoo > pxZmXtj6gI1lTa6xHeMufcoZWOUP00DXhkx1FhSFOWaoZsGsDizBG+zL0ArVgbOa > JbCI8SnTg8y0E8QtgH1tFWoPOY6r9bdu5nW0g54AcWNt+K5Yi61Fk55OfZTHJvO/ > Wj8oZAuLaV/pTk9op+mFvEH0FZKMxHM9lk1UjUcX+9QfB2t4sXmW6URhwn73OEg= > =PRCw > -----END PGP SIGNATURE-----
Re: Regex help
Author: Bergman Admin
Date: Thu, 03 Jul 2014 05:53
Date: Thu, 03 Jul 2014 05:53
29 lines
2241 bytes
2241 bytes
On 02/07/14 11:24 PM, Jack Ryan wrote: > ayuda7hastapar4todo@gmail.com > todos6ayuda70muerta@gmail.com > hastatodos.032ayuda@gmail.com > > I need a regular expression that would catch this nym-shifting > Brazilian's email address. What would be a good regex match? > >> regex generator > >> http://txt2re.com/ > >> http://txt2re.com/index.php3?s=ayuda&submit=Show+Matches Thanks. I tried that Web site already. I didn't really find what I wanted there. I don't need a Perl script or a PHP script. I just need one regex string to insert in a procmail recipe. Something like # Send ayuda spam to the bitbucket :0H * ^From: (.*)ayuda(.*)@gmail\.com /dev/null -- Bergman Remailer Admin 0x770251F2 Fingerprint: 8124 C17B 7FD9 1738 066F 4E29 4407 A967 7702 51F2
Re: Regex help
Author: Jack Ryan
Date: Thu, 03 Jul 2014 06:45
Date: Thu, 03 Jul 2014 06:45
61 lines
2627 bytes
2627 bytes
In article <lp2r57$o25$1@solani.org> Bergman Admin <nobody@bergman.delphy.org> wrote: > > On 02/07/14 11:24 PM, Jack Ryan wrote: > > > ayuda7hastapar4todo@gmail.com > > todos6ayuda70muerta@gmail.com > > hastatodos.032ayuda@gmail.com > > > > I need a regular expression that would catch this nym-shifting > > Brazilian's email address. What would be a good regex match? > > > >> regex generator > > > >> http://txt2re.com/ > > > >> http://txt2re.com/index.php3?s=ayuda&submit=Show+Matches > > Thanks. I tried that Web site already. I didn't really find what I > wanted there. I don't need a Perl script or a PHP script. I just need > one regex string to insert in a procmail recipe. Something like > > # Send ayuda spam to the bitbucket > :0H > * ^From: (.*)ayuda(.*)@gmail\.com > /dev/null Maybe you don't need to get that detailed? You could try a test with something like this: ^From: *ayuda@gmail\.com Pattern: ayuda Test String: ayuda@gmail.com Result: **Match** Matched string and sub-expressions: 00) ayuda If you mix up the letters in the sender name as shown below, it still works. Pattern: ayuda Test String: fffffayuda89bbbbb@gmail.com Result: **Match** Matched string and sub-expressions: 00) ayuda If you modify ayuda in the test string as shown below, it doesn't match. Pattern: ayuda Test String: fffffayuZZda89bbbbb@gmail.com Result: No match Matched string and sub-expressions: > -- > > Bergman Remailer Admin 0x770251F2 > Fingerprint: 8124 C17B 7FD9 1738 066F 4E29 4407 A967 7702 51F2
Re: Regex help
Author: Zax
Date: Thu, 03 Jul 2014 08:47
Date: Thu, 03 Jul 2014 08:47
64 lines
3151 bytes
3151 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On Wed, 02 Jul 2014 23:08:06 -0400, Bergman Admin wrote in
Message-Id: <lp2hes$mir$1@solani.org>:
>
> I am being regularly spammed by a Brazilian spammer. He sends his spam
> messages (all text, +600kb in length) from throwaway Gmail accounts.
> They are legitimate Gmail accounts, sent from Gmail's mail servers.
>
> He changes his email address with every spam run but his address
> always contains "ayuda". For example:
>
> ayuda7hastapar4todo@gmail.com
> todos6ayuda70muerta@gmail.com
> hastatodos.032ayuda@gmail.com
>
> I need a regular expression that would catch this nym-shifting
> Brazilian's email address. What would be a good regex match?
You could get postfix to handle it for you.
Make sure you have postfix-pcre installed.
In main.cf:-
header_checks = pcre:/etc/postfix/header_checks
Create a header_checks file:-
/^From: .*ayuda.*/ DISCARD
You should also be able to do it with Procmail:
:0
* ^From: .*ayuda.*@gmail\.com
/dev/null
Procmail uses egrep style expressions so you can test your regexs like
this:
echo 'ayuda7hastapar4todo@gmail.com' | egrep .*ayuda.*@gmail\.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCAAGBQJTtRi7AAoJEIBmv8lxNqHo4TIP+wSEEzHY7hw6tYiZ5sICmgLd
O07UOPYSddrP/vE/SsFRSGO3fGxSiHYRvKu6Y4ECj10joJpMd9YX9jeJsFUyt6Si
CbHT1uN1EEDRGZN3gH7KV07XuN1mOCzh5ME1oHkmfcLJysSDsda6a+nV9ZyN02xF
kgDZDTlbeYWTocqI9y1mqemWeu266a1CB+Np2jHsM2SvVPlRgZRHVvorjwmaVYCh
+Ty49P+hyspR9mDXuL9ObCP5iFZjaxgNoZ1FnfR3jPEysKJ7S06+0ZA8t9p2nBMc
ybDN/ho/TxYsx4VWhIp59WV+Rld9wc56XyDtvvq9kW0feEaqUULZ7J99M93pTws5
UY/cIPFQxV7d4pBLbB788+ECuaTHel6/RpqKQDeurg+oJ8rOuIwW8Cm3KA2I0H6f
7YoW9l8PlaMKG9dBN6H13C78aka1QeXZarGlX03FX0SJWwWYGLnXZDPiPQLaIeR+
9XnTo1RyY25UWoe10/dl86KLViQdWzAdiSFa1NpGgP67vTGMU55C7eCOmkHrMVek
Co/jPmJByB93H+LAsmax+M72x/FRgFnkgdKnV6kjRMUfTSfFqCpsOq9kZCkJxEmu
h66LjZfm5CoNvoqL/vwzMj977zxn7veZpjbuGXir4zvgmbRAoBB+dijKSbgYDc3B
GiS81OfLHxxAYfBquFsZ
=YRg3
-----END PGP SIGNATURE-----
--
pub 1024D/228761E7 2003-06-04 Steven Crook <steve@mixmin.net>
Key fingerprint = 1CD9 95E1 E9CE 80D6 C885 B7EB B471 80D5 2287 61E7
sub 4096R/4ABF07E3 2012-02-11 [expires: 2013-02-10]
Re: Regex help
Author: Bergman Admin
Date: Thu, 03 Jul 2014 16:15
Date: Thu, 03 Jul 2014 16:15
45 lines
2962 bytes
2962 bytes
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 03/07/14 02:45 AM, Jack Ryan wrote: > Maybe you don't need to get that detailed? > > You could try a test with something like this: > > ^From: *ayuda@gmail\.com > > Pattern: ayuda Test String: ayuda@gmail.com Result: **Match** > Matched string and sub-expressions: 00) ayuda > > If you mix up the letters in the sender name as shown below, it > still works. > > Pattern: ayuda Test String: fffffayuda89bbbbb@gmail.com Result: > **Match** Matched string and sub-expressions: 00) ayuda > > If you modify ayuda in the test string as shown below, it doesn't > match. > > Pattern: ayuda Test String: fffffayuZZda89bbbbb@gmail.com Result: > No match Matched string and sub-expressions: I see. Now I understand how to use txt2re.com I didn't get it until now. Thanks for your help. - -- Bergman Remailer Admin 0x770251F2 Fingerprint: 8124 C17B 7FD9 1738 066F 4E29 4407 A967 7702 51F2 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iQEcBAEBCAAGBQJTtYGOAAoJEEQHqWd3AlHyD+4IAJ8WWZTgG0//IIt6UOFYh217 Kgx2tDuxOv4Ku4dso8zOq+YAN0gMD9cQzbA6L8FSTlT5FfetVmyfUp7G8DYn1hTj 3XF8+KXiHgy2CaMzVJq0YaBaR2lU9qbhUX9uvpXu5/i8OqavJ2TmbmAkGbA2drd9 dd4LUb5BsnO4QmCYFRgYmozp5k1cp34mNazCl5o7KrpBB90KQ5qnNb9D91qHFbnb Kg82cidNKBCqV10m5viBFnHV/Fa1TljGZGmmVBupoE727lCR9Z+JH21JT3RIn0MI IONbb9Th+WBZxOaBHysGyQgoy79hXeIRqd4p9y0RtS4mW9I2usEUaJU8bltb1H0= =qUCr -----END PGP SIGNATURE-----
Re: Regex help
Author: Bergman Admin
Date: Thu, 03 Jul 2014 16:17
Date: Thu, 03 Jul 2014 16:17
29 lines
2144 bytes
2144 bytes
On 03/07/14 04:47 AM, Zax wrote: > You could get postfix to handle it for you. > > Make sure you have postfix-pcre installed. > > In main.cf:- > header_checks = pcre:/etc/postfix/header_checks > > Create a header_checks file:- > /^From: .*ayuda.*/ DISCARD > > > You should also be able to do it with Procmail: > > :0 > * ^From: .*ayuda.*@gmail\.com > /dev/null > > Procmail uses egrep style expressions so you can test your regexs like > this: > echo 'ayuda7hastapar4todo@gmail.com' | egrep .*ayuda.*@gmail\.com Thanks, Zax. 'Just what I needed. -- Bergman Remailer Admin 0x770251F2 Fingerprint: 8124 C17B 7FD9 1738 066F 4E29 4407 A967 7702 51F2
Re: Regex help
Author: Anonymous
Date: Thu, 03 Jul 2014 17:24
Date: Thu, 03 Jul 2014 17:24
12 lines
1291 bytes
1291 bytes
Bergman Admin <nobody@bergman.delphy.org> wrote: > I am being regularly spammed by a Brazilian spammer. He sends his spam > messages (all text, +600kb in length) from throwaway Gmail accounts. > They are legitimate Gmail accounts, sent from Gmail's mail servers. > > He changes his email address with every spam run but his address > always contains "ayuda". paranoia and cripto remailer have the same "problem" since some months, as suggested by zax I filter it through postfix.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads