OVH Cloud OVH Cloud

Just a test :)

13 réponses
Avatar
Ivo Gandolfo
Happy testing!


--
Ivo Gandolfo

10 réponses

1 2
Avatar
Paganini Bot V2.0
Your test article was received here at the news gateway machine for
the Paganini Community in Turin, Italy, IT.
If you want to suppress this message in the future, include the word
"ignore" or "no reply" or "42" in the Subject: or header's of any subsequent articles posted
to *.test.
This bot has been created to spite Olivier Miakinen :) Thank's for the idea and betatesting ^_^
[quote] Date: Mon, 15 Oct 2018 12:53:42 +0200
Il semblerait qu'on n'ait plus de robot « floodeur » qui réponde dans le groupe à chaque message de test? Si c'est
vrai, voilà une excellente nouvelle. Les seuls robots vraiment utiles pour tester la propagation sont ceux qui
répondent par courriel (si tant est qu'ils ne le font pas plus d'une fois par jour, pour éviter une attaque de flood
justement).
--
Olivier Miakinen
[/quote]
The bot reply only at the thread start, no reply for all people reply to subsequent message. If you find a BUG please report to the admin's.
All headers from your original article are reproduced below for your perusal:
Path: paganini.bofh.team!.POSTED.185.48.52.216!not-for-mail
From: Ivo Gandolfo
Newsgroups: fr.test
Subject: Just a test :)
Date: Wed, 23 Jan 2019 16:32:09 +0100
Organization: To server and to protect...
Message-ID: <q2a1do$644$
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 23 Jan 2019 15:32:09 -0000 (UTC)
Injection-Info: paganini.bofh.team; posting-host="185.48.52.216";
logging-data="6276"; mail-complaints-to=""
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101
Thunderbird/60.4.0
Avatar
Ivo Gandolfo
Il 23/01/2019 16:32, Paganini Bot V2.0 ha scritto:
Your test article was received here at the news gateway machine for

Sorry Olivier :P
Happy spamming again xD
--
Ivo Gandolfo
Avatar
Olivier Miakinen
Le 23/01/2019 16:32, Paganini Bot V2.0 a écrit :
This bot has been created to spite Olivier Miakinen :)

:-(
Rendez-nous le robot qui répond par courriel !
--
Olivier Miakinen
Avatar
Ivo Gandolfo
Il 23/01/2019 23:56, Olivier Miakinen ha scritto:
Le 23/01/2019 16:32, Paganini Bot V2.0 a écrit :
This bot has been created to spite Olivier Miakinen :)

:-(
Rendez-nous le robot qui répond par courriel !

You dont' have understood. The bot reply via email, but only at the
thread starter, in this case my email (some user's complain with bot
reply at all post, not here but in other group. The bot it's setup to
reply to all *.test group). The other post are ignored (if contain
ignore, no reply, 42 or Reference: header).
This prevent to compulsive user's posting in *.test group to bee flooded
via email ;)
If u need reply to _all_ post you send here I can create a bot only for
you, than reply to your email ^_^ just ask...
(I have rewrite all the bot due to "bug" I cannot found in previous
version, the rate-limit don't work proprerly :/ This cause problem if
another person "impersonate" you and can flood your email. And my server
some time it's gone to SPAMHAUS or similar blocklist, and this it's not
great for my business ^_^").
If u have any idea send them to me, I evaluate and perform this if it's
ok. Speak with the hyerarchy leader's, any idea it's welcome ;)
If u wish (again) my bot it's under GPL license. I will send you if u
need to check the code. It's writted all in bash scripting (linux).
Cheers
Ivo
Avatar
Olivier Miakinen
Hello Ivo,
Le 24/01/2019 15:07, Ivo Gandolfo a écrit :
This bot has been created to spite Olivier Miakinen :)

:-(
Rendez-nous le robot qui répond par courriel !

You dont' have understood.

What I understand is the following.
I posted two messages in fr.test, without any of the keywords
ignore, no reply or 42, and without any References header.
These posts were on the same day, within a 3 minute interval.
The posts are the following :
Message-ID: <q2dehk$176d$ (1)
Message-ID: <q2den8$176d$ (2)
The correct behaviour of a response bot would have been :
- an email response to (1)
- *no* usenet response to (1)
- *no* email response to (2)
- *no* usenet response to (2)
The actual behaviour was :
- an email response to (1)
(Message-Id: )
- a usenet response to (1)
(Message-ID: <q2dehk$6l6$)
- an email response to (2)
(Message-Id: )
- a usenet response to (2)
(Message-ID: <q2den9$7gl$)
i.e. three inappropriate responses, one by mail, two on usenet.
If u wish (again) my bot it's under GPL license. I will send you if u
need to check the code. It's writted all in bash scripting (linux).

Yes, please. My address is valid (of course, since I received the
bot reponses by e-mail).
Best regards,
--
Olivier Miakinen
Avatar
Ivo Gandolfo
Hi Olivier
Il 24/01/2019 23:54, Olivier Miakinen ha scritto:
Hello Ivo,

...
What I understand is the following.
I posted two messages in fr.test, without any of the keywords
ignore, no reply or 42, and without any References header.
These posts were on the same day, within a 3 minute interval.
The posts are the following :
Message-ID: <q2dehk$176d$ (1)
Message-ID: <q2den8$176d$ (2)

Yeah, I have found it on the log's of my bot and my mail server. See
this link https://pastebin.com/NKiHa9Vz
The file it's ordered by time received from bot/server prospective.
The correct behaviour of a response bot would have been :
- an email response to (1)
- *no* usenet response to (1)
- *no* email response to (2)
- *no* usenet response to (2)
The actual behaviour was :
- an email response to (1)
(Message-Id: )
- a usenet response to (1)
(Message-ID: <q2dehk$6l6$)
- an email response to (2)
(Message-Id: )
- a usenet response to (2)
(Message-ID: <q2den9$7gl$)
i.e. three inappropriate responses, one by mail, two on usenet.

uhm?!!??!?! What? (FR: Erf?!?!?!? quoi?)
If u see the log's u see you have activated 6 time's the bot. Three have
response and three not.
First time: NO, have found "42" on the message (header + body), but have
same "References:" header (if fail first check for 42 keyword, the
header check fail due to presence). I have checked the message on my
server and contain 42 :) (probably bug but correct from bot prospective)
Second try: yes, new thread, subject='Test pour me rassurer', M-ID
<q2dehk$176d$, message here send, and email send.
Jan 24 23:34:29 (correct)
Third try: NO, Reference: header found, no reply. (correct)
Four try: YES, new thread, subject='Re: Suite du test', M-ID
<q2den8$176d$, message here send and email send.
Jan 24 23:37:29 (correct)
Fifth try: NO, reply to previous this message thread, found ignore, no
send anything (correct)
Six try: YES, new thread, Subject: Re:
=?UTF-8?Q?Essai_de_mise_en_défaut_du_robot?= M-ID
<q2dg6n$17e5$, yes, message here send, and email
send. Jan 25 00:02:47 (correct)
And in all case of YES your mail server have replied to my mail server
"OK, in queue.". For me you have received from the bot all reply need.
Any bug here? I don't see, sorry.
The bot it's created to respond to the _first_ initial message thread,
and ignore *anything* of the rest of the thread/message, OR if found
"ignore" "reply" or "42" in entire body/header. That's correct (from my
and bot prospective, but a little bug if 42 it's contained on the M-ID
for example). What's it's your complaint? I don't understand sorry ^_^"
If possible explain better ;)
Yes, please. My address is valid (of course, since I received the
bot reponses by e-mail).
Best regards,

Sure! Just give me time to clean the code and comment them properly, I
will send them to you as soon as possible ;)
Cheers
Ivo
Avatar
Olivier Miakinen
Le 25/01/2019 14:32, Ivo Gandolfo a écrit :
The correct behaviour of a response bot would have been :
- an email response to (1)
- *no* usenet response to (1)
- *no* email response to (2)
- *no* usenet response to (2)
The actual behaviour was :
- an email response to (1)
(Message-Id: )
- a usenet response to (1)
(Message-ID: <q2dehk$6l6$)
- an email response to (2)
(Message-Id: )
- a usenet response to (2)
(Message-ID: <q2den9$7gl$)
i.e. three inappropriate responses, one by mail, two on usenet.

uhm?!!??!?! What? (FR: Erf?!?!?!? quoi?)

You don't understand ?
1) The bot should reply *only* by email, and never on the newsgroup.
2) The bot should email only once per day to a given email address.
All this, in order to limit flood, both on usenet and by email.
If u see the log's u see you have activated 6 time's the bot. Three have
response and three not.

Ok. Let's see.
First time: NO, have found "42" on the message (header + body), but have
same "References:" header (if fail first check for 42 keyword, the
header check fail due to presence). I have checked the message on my
server and contain 42 :) (probably bug but correct from bot prospective)

Probably a bug. The "42" thing was a joke, don't look for it because
it can be anywhere (in the Date, the Message-ID, the From, etc.). Look
only for "ignore", "noreply" or "no reply" strings, and only in Subject
field or in the first few lines of the body.
In my message <q2arfe$d6o$ it was in the X-Trace
"cabale.usenet-fr.net 1548284206 13528 77.205.38.91"
----------------------------^^
Second try: yes, new thread, subject='Test pour me rassurer', M-ID
<q2dehk$176d$, message here send, and email send.
Jan 24 23:34:29 (correct)

The email send is correct, the message here is not. Please don't respond
in the newsgroup.
Third try: NO, Reference: header found, no reply. (correct)

Correct.
Four try: YES, new thread, subject='Re: Suite du test', M-ID
<q2den8$176d$, message here send and email send.
Jan 24 23:37:29 (correct)

Incorrect. There should be no message sent in the newsgroup. And no
email sent, because there was one already the same day to the same
address.
here is a script which can help, please use it within your bot. I just
created it, and I place it into the GPL licence.
Of course, you can choose a BOT_DATA_DIR which better suits your needs.
======================================================================== #
# The function first_time_today() is used in order to ensure that we
# don't send more than one confirmation email per day to a given email
# address.
#
# The list of email addresses (or rather a hash of them) is stored
# under the directory ${BOT_DATA_DIR}, in a file whose name contains
# the current day. The date changes according to Universal time (UTC)
# so that it doesn't depend on the timezone of the machine where the
# script resides: this is easier to explain for usenet users all over
# the globe.
#
# Usage :
# if first_time_today "${email}" ; then
# ... send email
# else
# ... don't send email
# fi
#
BOT_DATA_DIR="/tmp/bot_data_dir"
BOT_DATA_PREFIX="${BOT_DATA_DIR}/day-"
BOT_DATA_SUFFIX="-db"
first_time_today() {
# If the directory ${BOT_DATA_DIR} doesn't exist, create it
if [ ! -d "${BOT_DATA_DIR}" ] ; then
mkdir -p "${BOT_DATA_DIR}"
fi
# Date at UTC time, with format YYYY-MM-DD (e.g. 2019-01-25)
today=$(date -u +%F)
# Database filename, e.g. $BOT_DATA_DIR/day-2019-01-25-db
database="${BOT_DATA_PREFIX}${today}${BOT_DATA_SUFFIX}"
# If the file doesn't exist, e.g. when the day changed, remove
# any old database file, then create the new one
if [ ! -f "${database}" ] ; then
rm -f "${BOT_DATA_PREFIX}"*"${BOT_DATA_SUFFIX}"
touch "${database}"
fi
# Create a 64-byte hash for the email.
email="$1"
hash=$(printf '%s' "${email}" | sha256sum | cut -c 1-64)
# If the hash exists in database, it means than an email was
# already sent today: we don't want to send another one, so that
# our bot can't be used for flooding addresses.
if grep "${hash}" "${database}" >/dev/null ; then
return 1
fi
# Otherwise, add the hash to the database and return OK.
printf '%sn' "${hash}" >> "${database}"
return 0
}
========================================================================
Best regards,
--
Olivier Miakinen
Avatar
Ivo Gandolfo
Il 25/01/2019 20:08, Olivier Miakinen ha scritto:
You don't understand ?
1) The bot should reply *only* by email, and never on the newsgroup.

Oh, understood. You very *hate* the reply on the group's :D But this is
the reason I have modified the V1.0 of the bot and created V2.0 :P
Seem's HTTRACK have shutdown own news server.
For the reply via email see below.
2) The bot should email only once per day to a given email address.
[cut]
Incorrect. There should be no message sent in the newsgroup. And no
email sent, because there was one already the same day to the same
address.
here is a script which can help, please use it within your bot. I just
created it, and I place it into the GPL licence.
[cut]

Yep, it's condivisible your idea. You have write a nice code, and the
initial version of the bot have similar code (not equal), but newer
worked, or work with a "bug", and I don't understand why (you have
areally noticed of them in previous test's in this year's). I have
tested your code in this day, but seem's have same problem of my code.
In debug mode the problem seem's to be the delay time from read/write
time and feeder mode of INN, and it's not possible to solve them, not in
script mode (the script was called every time receive a feed from *.test
group, other group it's not feeded to the script, and in my log's I
found it's called and write log's in parallel mode)
I have tempt to rewrite them as daemon to solve this problem but it's a
*lot* of work, and I don't have time now for this.
Another idea it's to reply to initial message (mail + news same at now),
save them for future scan in the log's (same at now), ignore all reply
(same at now) and send email (not news message, news message only in
thread start) if "force" keyword it's present in Subject header. This
solve partially your problem, but if you start a new thread you will
receive a new email/reply here from the bot.
And don't ask for remove reply in the group's, it's a "nice" feature.
Please xD
I'm waiting for your reply/idea :)
Cheers
Ivo
Avatar
Olivier Miakinen
Le 27/01/2019 11:49, Ivo Gandolfo a écrit :
1) The bot should reply *only* by email, and never on the newsgroup.

Oh, understood. You very *hate* the reply on the group's

Yes, because besides the fact that it pollutes the group, it is
completely useless. Let me show why, and I will answer later to
the rest of your message.
--
Olivier Miakinen
Avatar
Ivo Gandolfo
Il 27/01/2019 12:36, Olivier Miakinen ha scritto:
Yes, because besides the fact that it pollutes the group, it is
completely useless. Let me show why, and I will answer later to
the rest of your message.

Any feedback/idea's it's appreciated :)
Cheers
Ivo
1 2