🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.admin.peering
Article #3763

Re: filter_nnrpd.pl - v0.0.3 - testing

#3763
From: Billy G.
Date: Wed, 06 Aug 2025 16:20
89 lines
4091 bytes
On 05.08.25 00:57, Billy G. wrote:
> On 05.08.25 00:35, Sn!pe wrote:
>> Billy G. <no-reply@no.spam> wrote:
>>
>>> On 04.08.25 23:55, Billy G. wrote:
>>>> ## ?? **How to Fix These Issues**
>>>>
>>>> Would you like me to create a secured version that:
>>>> 1. Validates and sanitizes all file paths
>>>> 2. Uses proper shell escaping or avoids shell calls entirely
>>>> 3. Implements secure temporary file generation
>>>> 4. Adds comprehensive input validation
>>>> 5. Uses prepared statements/safer execution methods
>>>>
>>>> This code is **extremely dangerous** in its current state and should 
>>>> not
>>>> be deployed without these security fixes!
>>>
>>> Billy prompts:
>>> yes go ahead, we should not have any varis hitting the filesystem.
>>> better use any kind of (weak) hashing.
>>>
>>> AI answers:
>>> Absolutely!
>>> Let me create a secured version that uses hashing for all filesystem
>>> operations and eliminates the security vulnerabilities. [...]
>>>
>>
>> This no-nothing user is *very* impressed!  Does it work?
>>
> 
> published here: https://github.com/go-while/inn2-filter
> 
> I'll iterate and test it.
> 

   import nntplib
Connecting to reader-nyc.newsdeef.eu:563 (SSL: True)...
✓ Connected to reader-nyc.newsdeef.eu
Server welcome: 200 reader-nyc.newsdeef.eu InterNetNews NNRP server INN 
2.7.2 (20240212 prerelease) ready (no posting)
Authenticating as b8VoEHuUR0lX...
✓ Authentication successful
✓ Newsgroup rocksolid.shared.test: 29 articles (range 1-29)

Posting message...
From: "Billy G. <no-reply@no.spam>"
Subject: test Mi 6. Aug 16:16:41 UTC 2025
Newsgroups: rocksolid.shared.test
Message-ID: <1754497002.369953@reader-nyc.newsdeef.eu>
Body length: 436 characters
✓ Post successful: 240 Article received 
<982fa0cc8c030e379e74787ada701810f36f010c@reader-nyc.newsdeef.eu>

✓ Message posted successfully!
✓ Disconnected from server

.... sleep 30s ...

Connecting to reader-nyc.newsdeef.eu:563 (SSL: True)...
✓ Connected to reader-nyc.newsdeef.eu
Server welcome: 200 reader-nyc.newsdeef.eu InterNetNews NNRP server INN 
2.7.2 (20240212 prerelease) ready (no posting)
Authenticating as b8VoEHuUR0lX...
✓ Authentication successful
✓ Newsgroup rocksolid.shared.test: 30 articles (range 1-30)

Posting message...
From: "Billy G. <no-reply@no.spam>"
Subject: test Mi 6. Aug 16:17:13 UTC 2025
Newsgroups: rocksolid.shared.test
Message-ID: <1754497034.175065@reader-nyc.newsdeef.eu>
Body length: 436 characters
✗ Posting failed: 441 User Rate Limit Reached (wait 00:28)

✗ Message posting failed!
✓ Disconnected from server


https://github.com/go-while/inn2-filter


-- 
.......
Billy G. (go-while)
https://pugleaf.net
@Newsgroup: rocksolid.nodes.help
irc.pugleaf.net:6697 (SSL) #lounge
discord: https://discord.gg/rECSbHHFzp
Technical Details
Message-ID: <bcdc283915aea0981ced0038cec87b745f58c247@reader-nyc.newsdeef.eu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.pugleaf.net!ygg-srl.newsdeef.eu!srl.newsdeef.eu!reader-nyc.newsdeef.eu!.POSTED!not-for-mail
References: <106qp4f$qu2g$3@reader-nyc.newsdeef.eu> <106rdpj$qu2g$4@reader-nyc.newsdeef.eu> <106rers$qu2g$5@reader-nyc.newsdeef.eu> <1rgkhkl.1a81n9b16f955pN%snipeco.2@gmail.com> <106rhfs$qu2g$6@reader-nyc.newsdeef.eu>

Show Full Headers
Complete Article Headers
Message-ID: <bcdc283915aea0981ced0038cec87b745f58c247@reader-nyc.newsdeef.eu>
Subject: Re: filter_nnrpd.pl - v0.0.3 - testing
Date: Wed, 6 Aug 2025 17:20:31 +0100
From: "Billy G." <no-reply@no.spam>
References: <106qp4f$qu2g$3@reader-nyc.newsdeef.eu> <106rdpj$qu2g$4@reader-nyc.newsdeef.eu> <106rers$qu2g$5@reader-nyc.newsdeef.eu> <1rgkhkl.1a81n9b16f955pN%snipeco.2@gmail.com> <106rhfs$qu2g$6@reader-nyc.newsdeef.eu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.pugleaf.net!ygg-srl.newsdeef.eu!srl.newsdeef.eu!reader-nyc.newsdeef.eu!.POSTED!not-for-mail
Newsgroups: news.admin.peering
Organization: github.com/go-while
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 6 Aug 2025 16:20:37 -0000 (UTC)
Injection-Info: reader-nyc.newsdeef.eu; posting-account="sys-operator";
 logging-data="18169"; mail-complaints-to="abuse@newsdeef.eu";
 posting-account="YcL6EtHVTNDsFbpXS1xxQERCexCS4HTu82Jfq2mYRcI";
User-Agent: Mozilla Thunderbird
In-Reply-To: <106rhfs$qu2g$6@reader-nyc.newsdeef.eu>
Content-Language: en-US