Discussion:
regex encore
Florent Faessel
2005-07-06 13:15:28 UTC
Permalink
Hello Utilisateurs,

On vient de me faire suivre une série de spams qui ont pour
caractéristique la présence d'un champ de la forme :

Received: from [104.68.232.50] (port=3120 helo=[Seth])
Received: from [85.61.148.190] (port=3472 helo=[Elton])
Received: from [195.227.232.219] (port=3284 helo=[Ulises])
Received: from [135.47.222.84] (port=3417 helo=[Gerard])
Received: from [106.155.41.141] (port=3551 helo=[Bennett])
Received: from [197.95.88.66] (port=3070 helo=[Devan])
Received: from [29.187.209.41] (port=3013 helo=[Grant])
Received: from [149.88.127.93] (port=3585 helo=[Coty])

Qui sont des champs, bien évidemment, forgés.

Pour rechercher la présence d'une chaîne de ce type dans le champ received,
l'expression suivante vous semble-t-elle correcte ?

from \ \[[1-9]+\.[1-9]+\.[1-9]+\.[1-9]+\]\ (port=[1-9]{4}\ hello=\[[A-Z][a-z]+\])


Deuxième cas

Je voudrai poubelliser tous les mails qui comportent 4 mots ou plus contenus
dans une liste:

[Nude,Schoogirl,Banging,Hardcor?,shows,sexy,hairy,asian,striking
,Teen,Double,Nurse,Hot,Teenies,DPed
,4some,Groupsex,Movies,Mature,Lesbians,Hardcore,Assfucked,Hot
,Teen,Ass,Fucked,horny,chick,suck ,Tied
Up,Amateur,Humilaition,butts,brutally,pounded ,Babe ,Fucking,Close
Up,Dirty,Black Teen,Big Tits,Fuck,Cumshot,Latina,Amateur,Chicks,Posing
Nude,Shows Pink,spreading,Pusy,Lips,in
action,Redhead,cocks,Petite,Doggystyle,Facial ,Blowjob,tailed,pussy
,enormous,anal,fuck fest]

Mais j'ai beau chercher dans les dos en ligne, je ne vois pas comment faire
ça.
--
Best regards,
Florent mailto:florent-m9sxA5/5/***@public.gmane.org
Ludovic LE MOAL
2005-07-07 14:07:46 UTC
Permalink
Bonjour,
Received: from [104.68.232.50] (port=3120 helo=[Seth]) [...]
Pour rechercher la présence d'une chaîne de ce type dans le champ received,
l'expression suivante vous semble-t-elle correcte ?
from \ \[[1-9]+\.[1-9]+\.[1-9]+\.[1-9]+\]\ (port=[1-9]{4}\ hello=\[[A-Z][a-z]+\])
Il me semble bien...
Je voudrai poubelliser tous les mails qui comportent 4 mots ou plus contenus
[Nude,Schoogirl,Banging,Hardcor?,shows,sexy,hairy,asian,striking
,Teen,Double,Nurse,Hot,Teenies,DPed
,4some,Groupsex,Movies,Mature,Lesbians,Hardcore,Assfucked,Hot
,Teen,Ass,Fucked,horny,chick,suck ,Tied
Up,Amateur,Humilaition,butts,brutally,pounded ,Babe ,Fucking,Close
Up,Dirty,Black Teen,Big
Tits,Fuck,Cumshot,Latina,Amateur,Chicks,Posing
Nude,Shows Pink,spreading,Pusy,Lips,in
action,Redhead,cocks,Petite,Doggystyle,Facial ,Blowjob,tailed,pussy
,enormous,anal,fuck fest]
J'aurais fait :

.*[motcle1|motcle2].*[motcle1|motcle2].*[motcle1|motcle2].*[motcle1|motcle2].*

Non ?
--
Ludovic LE MOAL
Utilise The Bat! 3.0.1.33 sur Windows 98 4.10
Florent Faessel
2005-07-07 14:57:31 UTC
Permalink
Hello Ludovic,
Non ?
Non, j'en veux 4 ou plus dans la liste.

Est-ce que :

.*[Nude|Schoogirl|Banging|Hardcor?|shows|sexy|hairy|asian|striking
|Teen|Double|Nurse|Hot|Teenies|DPed
|4some|Groupsex|Movies|Mature|Lesbians|Hardcore|Assfucked|Hot
|Teen|Ass|Fucked|horny|chick|suck|Tied
Up|Amateur|Humilaition|butts|brutally|pounded|Babe|Fucking|Close\
Up|Dirty|Black\ Teen|Big\ Tits|Fuck|Cumshot|Latina|Amateur|Chicks|Posing
Nude|Shows\ Pink|spreading|Pusy|Lips|in\
action|Redhead|cocks|Petite|Doggystyle|Facial|Blowjob|tailed|pussy
|enormous|anal|fuck\ fest]{4,}

conviendrait ?
--
Coin,
Florent mailto:tb-fr-m9sxA5/5/***@public.gmane.org
Ludovic LE MOAL
2005-07-07 16:10:50 UTC
Permalink
Bonjour,
Post by Florent Faessel
Non ?
Non, j'en veux 4 ou plus dans la liste.
Arf. Ça le fait, non ? Là, on en a 4 au moins, non ? Ça ne revient pas
à la même chose ?
--
Ludovic LE MOAL
Utilise The Bat! 3.0.1.33 sur Windows 98 4.10
Loading...