🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #328169

Re: mail2usenet

#328169
From: Gabx
Date: Thu, 20 Mar 2025 06:38
30 lines
2379 bytes
Mini Mailer wrote:

> I am not aware of that, because a hashcash[1] token means that a user
> whishing to post via an m2n has to generate a token, which takes some
> time, to avoid spam, and then the m2n would check that token, and if
> it is valid the article gets postet.

def generate_hashcash(resource, bits=HASHCASH_BITS):
     version = "1"
     date = time.strftime("%y%m%d%H%M%S", time.gmtime())
     rand = 
''.join(random.choices("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", 
k=8))
     counter = 0
     target = "0" * (bits // 4)
     while True:
         stamp = f"{version}:{bits}:{date}:{resource}:::{rand}:{counter}"
         hash_val = hashlib.sha1(stamp.encode('utf-8')).hexdigest()
         if hash_val.startswith(target):
             return stamp
         counter += 1

hashcash_token = generate_hashcash(from_addr)hashcash_token = 
generate_hashcash(from_addr)

That said, i modified my python script also adding a function def 
renew_tor_identity(): but my posts are sent but not accepted 441 Too 
many errors for your IP.

Gabx
Technical Details
Message-ID: <m41reoFluujU1@mid.individual.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf8.newsdeef.eu!nnrp.usenet.blueworldhosting.com!!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <vrbv31$1jebr$1@paganini.bofh.team> <vrc1ok$1jh1c$1@paganini.bofh.team> <vrc533$1jnqr$1@paganini.bofh.team> <a8b813cec1.1742417380@eqxkb.yj>

Show Full Headers
Complete Article Headers
Message-ID: <m41reoFluujU1@mid.individual.net>
Subject: Re: mail2usenet
Date: Thu, 20 Mar 2025 07:38:14 +0100
From: Gabx <dogfromhell666@mail2tor.com>
References: <vrbv31$1jebr$1@paganini.bofh.team> <vrc1ok$1jh1c$1@paganini.bofh.team> <vrc533$1jnqr$1@paganini.bofh.team> <a8b813cec1.1742417380@eqxkb.yj>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf8.newsdeef.eu!nnrp.usenet.blueworldhosting.com!!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: alt.privacy.anon-server
Organization: Victor Hostile Communication Center
Lines: 30
Reply-To: personne@domain.invalid
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net k5c8APlVLlSZqQeqX7m1DAsIFakTECbut8T/rqvsDmzyDEHEHC
Cancel-Lock: sha1:HeAAD8y25hLkl7OhTESug0qAE6o= sha256:3h0xUt/BKQL/Vjf6mLz/kA95z4t05MKU2mjKi0+3rkk=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101
 Firefox/128.0 SeaMonkey/2.53.20
In-Reply-To: <a8b813cec1.1742417380@eqxkb.yj>