Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

A paranoid is a man who knows a little of what's going on. -- William S. Burroughs


rocksolid / Rocksolid Nodes / Re: hey, what do know ? vichan supports nntp

SubjectAuthor
* hey, what do know ? vichan supports nntpanon
+* hey, what do know ? vichan supports nntpanon
|`* hey, what do know ? vichan supports nntpRetro Guy
| `* hey, what do know ? vichan supports nntpanon
|  `* hey, what do know ? vichan supports nntpRetro Guy
|   `* hey, what do know ? vichan supports nntpanon
|    `* hey, what do know ? vichan supports nntpanon
|     `* hey, what do know ? vichan supports nntpRetro Guy
|      `* hey, what do know ? vichan supports nntpanon
|       `* hey, what do know ? vichan supports nntpanon
|        +* hey, what do know ? vichan supports nntpanon
|        |`* hey, what do know ? vichan supports nntpanonymous
|        | +* hey, what do know ? vichan supports nntpRetro Guy
|        | |`* hey, what do know ? vichan supports nntpanon
|        | | `* hey, what do know ? vichan supports nntpRetro Guy
|        | |  `* hey, what do know ? vichan supports nntpanonymous
|        | |   `* hey, what do know ? vichan supports nntpRetro Guy
|        | |    `* hey, what do know ? vichan supports nntpanonymous
|        | |     `* hey, what do know ? vichan supports nntpanon
|        | |      +* hey, what do you know: vichan supports nntpanon
|        | |      |+- hey, what do you know: vichan supports nntpRetro Guy
|        | |      |`* hey, what do you know: vichan supports nntpanon
|        | |      | `- hey, what do you know: vichan supports nntpRetro Guy
|        | |      `- hey, what do know ? vichan supports nntpRetro Guy
|        | `* hey, what do know ? vichan supports nntpRetro Guy
|        |  `* hey, what do know ? vichan supports nntpanonymous
|        |   `* hey, what do know ? vichan supports nntpanonymous
|        |    `* hey, what do know ? vichan supports nntpanonymous
|        |     +* hey, what do know ? vichan supports nntpanonymous
|        |     |`* hey, what do know ? vichan supports nntpanonymous
|        |     | `* hey, what do know ? vichan supports nntpanonymous
|        |     |  `* hey, what do know ? vichan supports nntpanonymous
|        |     |   `* hey, what do know ? vichan supports nntpRetro Guy
|        |     |    `* hey, what do know ? vichan supports nntpanonymous
|        |     |     `* hey, what do know ? vichan supports nntpanonymous
|        |     |      `* hey, what do know ? vichan supports nntpanonymous
|        |     |       `* hey, what do know ? vichan supports nntpanonymous
|        |     |        `* hey, what do know ? vichan supports nntpRetro Guy
|        |     |         `* hey, what do know ? vichan supports nntpanonymous
|        |     |          `* hey, what do know ? vichan supports nntpanonymous
|        |     |           `* hey, what do know ? vichan supports nntpRetro Guy
|        |     |            `* hey, what do know ? vichan supports nntpanonymous
|        |     |             `* hey, what do know ? vichan supports nntpanonymous
|        |     |              `* hey, what do know ? vichan supports nntpRetro Guy
|        |     |               `* hey, what do know ? vichan supports nntpanon
|        |     |                `* hey, what do know ? vichan supports nntpRetro Guy
|        |     |                 `* hey, what do know ? vichan supports nntpanonymous
|        |     |                  `* hey, what do know ? vichan supports nntpanonymous
|        |     |                   `* hey, what do know ? vichan supports nntpanonymous
|        |     |                    `* hey, what do know ? vichan supports nntpanonymous
|        |     |                     `* hey, what do know ? vichan supports nntpRetro Guy
|        |     |                      `* hey, what do know ? vichan supports nntpanonymous
|        |     |                       +* hey, what do know ? vichan supports nntpanonymous
|        |     |                       |+- hey, what do know ? vichan supports nntpanonymous
|        |     |                       |`- hey, what do know ? vichan supports nntpRetro Guy
|        |     |                       `* hey, what do know ? vichan supports nntpRetro Guy
|        |     |                        `- hey, what do know ? vichan supports nntpanonymous
|        |     `- hey, what do know ? vichan supports nntpRetro Guy
|        `- hey, what do know ? vichan supports nntpRetro Guy
+- hey, what do know ? vichan supports nntpanon
+* hey, what do know ? vichan supports nntpanon
|`* hey, what do know ? vichan supports nntpanonymous
| +- hey, what do you know....anon
| `* hey, what do know ? vichan supports nntpanonymous
|  `* hey, what do know ? vichan supports nntpRetro Guy
|   `- hey, what do know ? vichan supports nntpanon
+* basics are workingAnonymous
|`- basics are workingRetro Guy
+* guess i will open for business soonAnonymous
|+* guess i will open for business soonMei
||`- guess i will open for business soonRetro Guy
|`- guess i will open for business soonRetro Guy
+- opsec check is goodAnonymous
+- > goo to go.Anonymous
+* yes that should workAnonymous
|`- yes that should workRetro Guy
+* cron or not ?Anonymous
|`- cron or not ?Retro Guy
+- themes on def2.i2pAnonymous
`* ok, ok, i switched the default themeAnonymous
 `* ok, ok, i switched the default themeMei
  `- ok, ok, i switched the default themeanon

Pages:1234
hey, what do know ? vichan supports nntp

<7b6448e9ac3e8f40f5ff6b8fa9b433b6@def4>

 copy mid   Newsgroups: rocksolid.nodes
Path: i2pn2.org!rocksolid2!def5!POSTED.localhost!not-for-mail
From: anon@anon.com (anon)
Newsgroups: rocksolid.nodes
Message-ID: <7b6448e9ac3e8f40f5ff6b8fa9b433b6@def4>
Subject: hey, what do know ? vichan supports nntp
Date: Mon, 11 May 2020 22:03:23+0000
Organization: def5
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
 by: anon - Mon, 11 May 2020 22:03 UTC

see here:
https://github.com/vichan-devel/vichan/blob/master/inc/config.php
almost at the bottom of the page. I knew that overchan/nntpchan was build on vichan, but I never knew that this was also part of vichan itelf.
wouldn't it be nice if we could use vichan on rocksolid ?
ok, it is still php, and it is not developed anymore, but on the other hand it is a very mature code base, and the layout and feature list sits well with many users (and the code is less old than fudforum).
I smell a little coding project....

cheers

trw

Posted on def4

Re: hey, what do know ? vichan supports nntp

<c3e3639e54249f3bf3acf5e0e280a377@def4>

 copy mid   Newsgroups: rocksolid.nodes
Path: i2pn2.org!rocksolid2!def5!POSTED.localhost!not-for-mail
From: anon@anon.com (anon)
Newsgroups: rocksolid.nodes
Message-ID: <c3e3639e54249f3bf3acf5e0e280a377@def4>
Subject: Re: hey, what do know ? vichan supports nntp
Date: Tue, 12 May 2020 23:53:28+0000
Organization: def5
In-Reply-To: <7b6448e9ac3e8f40f5ff6b8fa9b433b6@def4>
References: <7b6448e9ac3e8f40f5ff6b8fa9b433b6@def4>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
 by: anon - Tue, 12 May 2020 23:53 UTC

the more I think about it, the more I like the idea. i mean, it is a lot easier and faster to just code the interface to nntp (and I believe I could base that on the work you have already done for rslight, or even just use the rslight code), and to remote control the post mechanism than to do something from scratch (like here with def4).
it should be really easy...

Posted on def4

Re: hey, what do know ? vichan supports nntp

<66b43408c1e4f14fb3c8f12e909482df@def4>

 copy mid   Newsgroups: rocksolid.nodes
Path: i2pn2.org!rocksolid2!def5!POSTED.localhost!not-for-mail
From: anon@anon.com (anon)
Newsgroups: rocksolid.nodes
Message-ID: <66b43408c1e4f14fb3c8f12e909482df@def4>
Subject: Re: hey, what do know ? vichan supports nntp
Date: Tue, 12 May 2020 23:55:26+0000
Organization: def5
In-Reply-To: <7b6448e9ac3e8f40f5ff6b8fa9b433b6@def4>
References: <7b6448e9ac3e8f40f5ff6b8fa9b433b6@def4>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
 by: anon - Tue, 12 May 2020 23:55 UTC

in total contrast to what i said in another thread, btw, where i stated that it would be easier to do a css and make everything look exactly like you wanted it to.

Posted on def4

Re: hey, what do know ? vichan supports nntp

<07ab056c777692e4a3059e65f52c6138$1@rslight.i2p>

 copy mid   Newsgroups: rocksolid.nodes
Path: i2pn2.org!.POSTED!not-for-mail
From: retroguy@retrobbs.rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes
Subject: Re: hey, what do know ? vichan supports nntp
Date: Tue, 12 May 2020 16:00:19 -0700
Organization: Rocksolid
Lines: 19
Message-ID: <07ab056c777692e4a3059e65f52c6138$1@rslight.i2p>
References: <7b6448e9ac3e8f40f5ff6b8fa9b433b6@def4> <c3e3639e54249f3bf3acf5e0e280a377@def4>
Mime-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7Bit
Injection-Info: i2pn2.org; posting-account="retrobbs1";
logging-data="6172"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: KNode/4.14.1
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on novabbs.com
 by: Retro Guy - Tue, 12 May 2020 23:00 UTC

anon wrote:

>
> the more I think about it, the more I like the idea. i mean, it is a lot
> easier and faster to just code the interface to nntp (and I believe I
> could base that on the work you have already done for rslight, or even
> just use the rslight code), and to remote control the post mechanism than
> to do something from scratch (like here with def4). it should be really
> easy...

A chan style interface to rocksolid would be great. def4 is very good, but
as you say it's probably not the way to go forward, modifying an existing
project like vichan shouldn't be too hard.

Yes, there is probably most of the the (php) nntp code necessary already in
rslight. We just extract what's needed, mod as necessary, etc. The rslight
nntp server also supports multiple methods of posting to it.

Retro Guy

Re: hey, what do know ? vichan supports nntp

<43e997a51b5b63e29f0b6cb98399682d@def4>

 copy mid   Newsgroups: rocksolid.nodes
Path: i2pn2.org!i2pn.org!rocksolid2!def5!POSTED.localhost!not-for-mail
From: anon@anon.com (anon)
Newsgroups: rocksolid.nodes
Message-ID: <43e997a51b5b63e29f0b6cb98399682d@def4>
Subject: Re: hey, what do know ? vichan supports nntp
Date: Wed, 13 May 2020 00:31:30+0000
Organization: def5
In-Reply-To: <07ab056c777692e4a3059e65f52c6138$1@rslight.i2p>
References: <07ab056c777692e4a3059e65f52c6138$1@rslight.i2p>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
 by: anon - Wed, 13 May 2020 00:31 UTC

that sounds really great. and has even more potential, btw, because i also discovered that vichan has a json api, so you could easily update several instances of it with each other without using nntp at all (or only on one instance, to make the connection to rocksolid). This would practically add one more protocol for rocksolid syncs (http).

I think I am going to start to work on this, right after my rslight is functional.

cheers

trw

Posted on def4

Re: hey, what do know ? vichan supports nntp

<f0ecda8bf6298c78f89a371706f0b0f3$1@rslight.i2p>

 copy mid   Newsgroups: rocksolid.nodes
Path: i2pn2.org!.POSTED!not-for-mail
From: retroguy@retrobbs.rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes
Subject: Re: hey, what do know ? vichan supports nntp
Date: Tue, 12 May 2020 16:44:27 -0700
Organization: Rocksolid
Lines: 13
Message-ID: <f0ecda8bf6298c78f89a371706f0b0f3$1@rslight.i2p>
References: <07ab056c777692e4a3059e65f52c6138$1@rslight.i2p> <43e997a51b5b63e29f0b6cb98399682d@def4>
Mime-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7Bit
Injection-Info: i2pn2.org; posting-account="retrobbs1";
logging-data="9606"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: KNode/4.14.1
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on novabbs.com
 by: Retro Guy - Tue, 12 May 2020 23:44 UTC

anon wrote:

>
> that sounds really great. and has even more potential, btw, because i also
> discovered that vichan has a json api, so you could easily update several
> instances of it with each other without using nntp at all (or only on one
> instance, to make the connection to rocksolid). This would practically add
> one more protocol for rocksolid syncs (http).
>
> I think I am going to start to work on this, right after my rslight is
> functional.
Nice! bbs, ff, rslight and vichan as choices of interfaces would be great.

Re: hey, what do know ? vichan supports nntp

<d6abb8c289a5f9ef20244ade5bd4b824@def4>

 copy mid   Newsgroups: rocksolid.nodes
Path: i2pn2.org!rocksolid2!def5!POSTED.localhost!not-for-mail
From: anon@anon.com (anon)
Newsgroups: rocksolid.nodes
Message-ID: <d6abb8c289a5f9ef20244ade5bd4b824@def4>
Subject: Re: hey, what do know ? vichan supports nntp
Date: Wed, 13 May 2020 22:10:25+0000
Organization: def5
In-Reply-To: <f0ecda8bf6298c78f89a371706f0b0f3$1@rslight.i2p>
References: <f0ecda8bf6298c78f89a371706f0b0f3$1@rslight.i2p>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
 by: anon - Wed, 13 May 2020 22:10 UTC

seems like this thing needs php7.0....my current version is 7.4..., and this seems to be a problem. of course i can just downgrade the package....

Posted on def4

Re: hey, what do know ? vichan supports nntp

<189d2d5e94b66eb3a12644ddfc478308@def4>

 copy mid   Newsgroups: rocksolid.nodes
Path: i2pn2.org!rocksolid2!def5!POSTED.localhost!not-for-mail
From: anon@anon.com (anon)
Newsgroups: rocksolid.nodes
Message-ID: <189d2d5e94b66eb3a12644ddfc478308@def4>
Subject: Re: hey, what do know ? vichan supports nntp
Date: Wed, 13 May 2020 23:19:53+0000
Organization: def5
In-Reply-To: <d6abb8c289a5f9ef20244ade5bd4b824@def4>
References: <d6abb8c289a5f9ef20244ade5bd4b824@def4>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
 by: anon - Wed, 13 May 2020 23:19 UTC

seems to be a real issue for the project, see here:
https://github.com/vichan-devel/vichan/issues/363

question is , is there any real issue to just stay on a specific php version forever ? i guess as long as critical bugs are still fixed in the older ones, one could do it that way...i would have to research a bit...for sure all the existing instances are either on older php versions or have done some individual fixing (like we did on ff, just the kind of thing i hoped to avoid...).
maybe better to invest dev time in something that is a little better maintained.
i had a good impression on maniwani. hmm....

cheers

trw

Posted on def4

Re: hey, what do know ? vichan supports nntp

<140437f8ef1c280813cc31d3fef0b1fb$1@rslight.i2p>

 copy mid   Newsgroups: rocksolid.nodes
Path: i2pn2.org!.POSTED!not-for-mail
From: retroguy@retrobbs.rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes
Subject: Re: hey, what do know ? vichan supports nntp
Date: Wed, 13 May 2020 20:53:25 -0700
Organization: Rocksolid
Lines: 40
Message-ID: <140437f8ef1c280813cc31d3fef0b1fb$1@rslight.i2p>
References: <d6abb8c289a5f9ef20244ade5bd4b824@def4> <189d2d5e94b66eb3a12644ddfc478308@def4>
Mime-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7Bit
Injection-Info: i2pn2.org; posting-account="retrobbs1";
logging-data="32615"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: KNode/4.14.1
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on novabbs.com
 by: Retro Guy - Thu, 14 May 2020 03:53 UTC

anon wrote:

>
> seems to be a real issue for the project, see here:
> https://github.com/vichan-devel/vichan/issues/363
>
> question is , is there any real issue to just stay on a specific php
> version forever ? i guess as long as critical bugs are still fixed in the
> older ones, one could do it that way...i would have to research a
> bit...for sure all the existing instances are either on older php versions
> or have done some individual fixing (like we did on ff, just the kind of
> thing i hoped to avoid...). maybe better to invest dev time in something
> that is a little better maintained. i had a good impression on maniwani.
> hmm....

Wow, and here I thought you were running older versions of Debian. The
newest I've tested rslight on is php 7.2.29. I'll need to try 7.4 when I get
a chance.

When I started rslight, which is really a fork of newsportal, I had to deal
with the fact that newsportal discontinued development while still trying to
clean up and support php 5.0. It simply would not work on anything newer
than 5.0, so that was probably my biggest challenge. In all the searching I
did for a decent web based newsreader, almost all of them were out of date
and needed major work to even just load a page. I just picked the one I
liked best and dove in. It took quite a while to get it to even show
articles.

rslight is probably unrecognizable now as newsportal, but it's taken many
hours of first, making it work at all, then only after that making changes
to it. I've made so many changes by now that it feels like my own software
and I don't worry about breaking the original code, as I usually just end up
changing it.

Point is, a nice chan interface might be worth the effort, and it sure is a
great way to get more familiar with php.

Now, I still need to try rslight on 7.4 :)

Retro Guy

Re: hey, what do know ? vichan supports nntp

<334946c5d9ff842f8a9e338e63adcb1a@def4>

 copy mid   Newsgroups: rocksolid.nodes
Path: i2pn2.org!rocksolid2!def5!POSTED.localhost!not-for-mail
From: anon@anon.com (anon)
Newsgroups: rocksolid.nodes
Message-ID: <334946c5d9ff842f8a9e338e63adcb1a@def4>
Subject: Re: hey, what do know ? vichan supports nntp
Date: Thu, 14 May 2020 09:02:10+0000
Organization: def5
In-Reply-To: <140437f8ef1c280813cc31d3fef0b1fb$1@rslight.i2p>
References: <140437f8ef1c280813cc31d3fef0b1fb$1@rslight.i2p>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
 by: anon - Thu, 14 May 2020 09:02 UTC

ok, it had nothing to do with the php version (although they do complain a lot about this in the thread that i linked).
i have a test installation running now, and it is handling nicely.

Posted on def4

Re: hey, what do know ? vichan supports nntp

<d1faafa624cda10417914a17419af431@def4>

 copy mid   Newsgroups: rocksolid.nodes
Path: i2pn2.org!rocksolid2!def5!POSTED.localhost!not-for-mail
From: anon@anon.com (anon)
Newsgroups: rocksolid.nodes
Message-ID: <d1faafa624cda10417914a17419af431@def4>
Subject: Re: hey, what do know ? vichan supports nntp
Date: Thu, 14 May 2020 15:15:02+0000
Organization: def5
In-Reply-To: <334946c5d9ff842f8a9e338e63adcb1a@def4>
References: <334946c5d9ff842f8a9e338e63adcb1a@def4>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
 by: anon - Thu, 14 May 2020 15:15 UTC

so vichan has a very simple to use api, see here for example:
https://lainchan.org/%CE%A9/catalog.json
so i guess all one needs to do is to write an interface from that json to ./post.php on rslight, generating and translating some information like threading and message id and so forth.
this would be to get messages from a vichan instance to a rslight instance.
for the other way round, i will first start with the buildin nntp option of vichan, and if it does not work, and replace it by the rslight nntp client code.
altogether this seems to be a simple excercise....

cheers

trw

Posted on def4

Re: hey, what do know ? vichan supports nntp

<a390a213fa3e1af81b3d8c884f62ef13@def4>

 copy mid   Newsgroups: rocksolid.nodes
Path: i2pn2.org!rocksolid2!def5!POSTED.localhost!not-for-mail
From: anon@anon.com (anon)
Newsgroups: rocksolid.nodes
Message-ID: <a390a213fa3e1af81b3d8c884f62ef13@def4>
Subject: Re: hey, what do know ? vichan supports nntp
Date: Thu, 14 May 2020 16:27:27+0000
Organization: def5
In-Reply-To: <d1faafa624cda10417914a17419af431@def4>
References: <d1faafa624cda10417914a17419af431@def4>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
 by: anon - Thu, 14 May 2020 16:27 UTC

https://github.com/vichan-devel/vichan/blob/master/inc/nntpchan/nntpchan.php

That one should take care of posting to an nntp server.

Posted on def4

Re: hey, what do know ? vichan supports nntp

<a4458e95f3eff77a31ee126a7152c46a$1@z5bqfv5v75kxy7pj.onion>

 copy mid   Newsgroups: rocksolid.nodes
Path: i2pn2.org!.POSTED!not-for-mail
From: anonymous@anon.com (anonymous)
Newsgroups: rocksolid.nodes
Subject: Re: hey, what do know ? vichan supports nntp
Date: Thu, 14 May 2020 20:47 UTC
Organization: def2
Message-ID: <a4458e95f3eff77a31ee126a7152c46a$1@z5bqfv5v75kxy7pj.onion>
References: <d1faafa624cda10417914a17419af431@def4> <a390a213fa3e1af81b3d8c884f62ef13@def4>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org; posting-account="def2";
logging-data="14402"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: Rocksolid Light (news.novabbs.com/getrslight)
X-Rslight-Site: $2y$10$oLmjoKhGTV.hKELo9hPPgOttSp.NTrGkw/zkbrdekVCuiz2Goj0cy
 by: anonymous - Thu, 14 May 2020 20:47 UTC

and here is where the hacking starts:

function nntp_publish($msg, $id) {
global $config;
$server = $config["nntpchan"]["server"];
$s = fsockopen("tcp://$server");
fgets($s);
fputs($s, "MODE STREAMrn");
fgets($s);
fputs($s, "TAKETHIS $idrn");
fputs($s, $msg);
fputs($s, "rn.rn");
fgets($s);
fputs($s, "QUITrn");
fclose($s);
}

they have no auth in this, and i seem to remember that this was solved by some ssl certificates or other (in the case of overchan). so if i just replace this function with the appropriate counterpart from rslight/post.php, that should be it.

I have an instance of vichan running on the same machine as rslight now, and it should be possible to just use the rslight news server directly.

cheers

trw
--
Posted on def2
z5bqfv5v75kxy7pj.onion

Re: hey, what do know ? vichan supports nntp

<c81221b1f4fd099c71053cf51bd60a72$1@rslight.i2p>

 copy mid   Newsgroups: rocksolid.nodes
Path: i2pn2.org!.POSTED!not-for-mail
From: retroguy@retrobbs.rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes
Subject: Re: hey, what do know ? vichan supports nntp
Date: Thu, 14 May 2020 23:55:05 -0700
Organization: Rocksolid
Lines: 6
Message-ID: <c81221b1f4fd099c71053cf51bd60a72$1@rslight.i2p>
References: <334946c5d9ff842f8a9e338e63adcb1a@def4> <d1faafa624cda10417914a17419af431@def4>
Mime-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7Bit
Injection-Info: i2pn2.org; posting-account="retrobbs1";
logging-data="13073"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: KNode/4.14.1
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on novabbs.com
 by: Retro Guy - Fri, 15 May 2020 06:55 UTC

anon wrote:

> work, and replace it by the rslight nntp client code. altogether this
> seems to be a simple excercise....

....said every programmer in history :)

Re: hey, what do know ? vichan supports nntp

<154276e6dcdb76f64a817816fa16fe6f$1@rslight.i2p>

 copy mid   Newsgroups: rocksolid.nodes
Path: i2pn2.org!.POSTED!not-for-mail
From: retroguy@retrobbs.rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes
Subject: Re: hey, what do know ? vichan supports nntp
Date: Fri, 15 May 2020 00:04:09 -0700
Organization: Rocksolid
Lines: 49
Message-ID: <154276e6dcdb76f64a817816fa16fe6f$1@rslight.i2p>
References: <d1faafa624cda10417914a17419af431@def4> <a390a213fa3e1af81b3d8c884f62ef13@def4> <a4458e95f3eff77a31ee126a7152c46a$1@z5bqfv5v75kxy7pj.onion>
Mime-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7Bit
Injection-Info: i2pn2.org; posting-account="retrobbs1";
logging-data="13783"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: KNode/4.14.1
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on novabbs.com
 by: Retro Guy - Fri, 15 May 2020 07:04 UTC

anonymous wrote:

> and here is where the hacking starts:
>
> function nntp_publish($msg, $id) {
> global $config;
> $server = $config["nntpchan"]["server"];
> $s = fsockopen("tcp://$server");
> fgets($s);
> fputs($s, "MODE STREAMrn");
> fgets($s);
> fputs($s, "TAKETHIS $idrn");
> fputs($s, $msg);
> fputs($s, "rn.rn");
> fgets($s);
> fputs($s, "QUITrn");
> fclose($s);
> }
>
>
> they have no auth in this, and i seem to remember that this was solved by
> some ssl certificates or other (in the case of overchan). so if i just
> replace this function with the appropriate counterpart from
> rslight/post.php, that should be it.

Yeah, no auth at all. It's a simple function it seems, so adding auth
shouldn't be difficult at all:

fputs($s,"AUTHINFO USER $server_auth_user\r\n");
$weg=line_read($s);
fputs($s,"AUTHINFO PASS $server_auth_pass\r\n");
$weg=line_read($s);
if (substr($weg,0,3) != "281" {
AUTH FAILED
can't do stuff...
} else {
IT DIDN"T FAIL, YAY!
do stuff...
}

> I have an instance of vichan running on the same machine as rslight now,
> and it should be possible to just use the rslight news server directly.

Do you know if this is sending one message at a time? If so, STREAM isn't
really necessary and could easily be MODE READER. If it's more than one
message, then I can add STREAM to nntp.php
rslight news server doesn't currently support MODE STREAM (I didn't need
it), but it can be added.

Retro Guy

Re: hey, what do know ? vichan supports nntp

<a7165d2fef4e3a1505130c7019fc3239@def4>

 copy mid   Newsgroups: rocksolid.nodes
Path: i2pn2.org!rocksolid2!def5!POSTED.localhost!not-for-mail
From: anon@anon.com (anon)
Newsgroups: rocksolid.nodes
Message-ID: <a7165d2fef4e3a1505130c7019fc3239@def4>
Subject: Re: hey, what do know ? vichan supports nntp
Date: Fri, 15 May 2020 10:14:31+0000
Organization: def5
In-Reply-To: <154276e6dcdb76f64a817816fa16fe6f$1@rslight.i2p>
References: <154276e6dcdb76f64a817816fa16fe6f$1@rslight.i2p>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
 by: anon - Fri, 15 May 2020 10:14 UTC

>Do you know if this is sending one message at a time?

from the way the code is written, i would say yes (post.php is called when you make a post), can't be sure though.
i will try around a little. if need be, i can also connect to one of the inn servers (i mean if i need stream right now).

cheers

trw

Posted on def4

Re: hey, what do know ? vichan supports nntp

<b9897bf89845aed7c76f8b685400444c$1@rslight.i2p>

 copy mid   Newsgroups: rocksolid.nodes
Path: i2pn2.org!.POSTED!not-for-mail
From: retroguy@retrobbs.rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes
Subject: Re: hey, what do know ? vichan supports nntp
Date: Fri, 15 May 2020 02:15:53 -0700
Organization: Rocksolid
Lines: 17
Message-ID: <b9897bf89845aed7c76f8b685400444c$1@rslight.i2p>
References: <154276e6dcdb76f64a817816fa16fe6f$1@rslight.i2p> <a7165d2fef4e3a1505130c7019fc3239@def4>
Mime-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7Bit
Injection-Info: i2pn2.org; posting-account="retrobbs1";
logging-data="29178"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: KNode/4.14.1
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on novabbs.com
 by: Retro Guy - Fri, 15 May 2020 09:15 UTC

anon wrote:

>
>>Do you know if this is sending one message at a time?
>
> from the way the code is written, i would say yes (post.php is called when
> you make a post), can't be sure though. i will try around a little. if
> need be, i can also connect to one of the inn servers (i mean if i need
> stream right now).

Sounds good. I'll add mode stream soon anyway so it's able to connect if it
really requires stream.

I need to get a copy of vichan (post.php really) and take a look at it. I
can do that in a few days.

Retro Guy

Re: hey, what do know ? vichan supports nntp

<8eb12a87505f8e551cbbfc7043ad2a24$1@z5bqfv5v75kxy7pj.onion>

 copy mid   Newsgroups: rocksolid.nodes
Path: i2pn2.org!.POSTED!not-for-mail
From: anonymous@anon.com (anonymous)
Newsgroups: rocksolid.nodes
Subject: Re: hey, what do know ? vichan supports nntp
Date: Fri, 15 May 2020 09:57 UTC
Organization: def2
Message-ID: <8eb12a87505f8e551cbbfc7043ad2a24$1@z5bqfv5v75kxy7pj.onion>
References: <154276e6dcdb76f64a817816fa16fe6f$1@rslight.i2p> <a7165d2fef4e3a1505130c7019fc3239@def4> <b9897bf89845aed7c76f8b685400444c$1@rslight.i2p>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org; posting-account="def2";
logging-data="818"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: Rocksolid Light (news.novabbs.com/getrslight)
X-Rslight-Site: $2y$10$cQ6rDsjrZzO3/OcpchOVBOsRdpVQShcHLbqcSuW/X0Od5EsBnTo2.
 by: anonymous - Fri, 15 May 2020 09:57 UTC

I can upload it somewhere, if you want me to. but you can also get everything from github (be sure to take the devel version, though).
If I understand post.php right, the inserting of messages (from another node into the vichan instance) is solved by using http. You just hand over all the parameters in a get request and post.php imports the message. That would be very nice (don't understand how attachments wor with that, yet).
So in this case you could post with wget or curl. Very nice.

Hope I can spend some time on this soon.

cheers

trw
--
Posted on def2
z5bqfv5v75kxy7pj.onion

Re: hey, what do know ? vichan supports nntp

<144d619b4538c15b850d245a2196303e$1@rslight.i2p>

 copy mid   Newsgroups: rocksolid.nodes
Path: i2pn2.org!.POSTED!not-for-mail
From: retroguy@retrobbs.rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes
Subject: Re: hey, what do know ? vichan supports nntp
Date: Fri, 15 May 2020 03:19:56 -0700
Organization: Rocksolid
Lines: 21
Message-ID: <144d619b4538c15b850d245a2196303e$1@rslight.i2p>
References: <154276e6dcdb76f64a817816fa16fe6f$1@rslight.i2p> <a7165d2fef4e3a1505130c7019fc3239@def4> <b9897bf89845aed7c76f8b685400444c$1@rslight.i2p> <8eb12a87505f8e551cbbfc7043ad2a24$1@z5bqfv5v75kxy7pj.onion>
Mime-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7Bit
Injection-Info: i2pn2.org; posting-account="retrobbs1";
logging-data="3599"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: KNode/4.14.1
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on novabbs.com
 by: Retro Guy - Fri, 15 May 2020 10:19 UTC

anonymous wrote:

> I can upload it somewhere, if you want me to. but you can also get
> everything from github (be sure to take the devel version, though). If I
> understand post.php right, the inserting of messages (from another node
> into the vichan instance) is solved by using http. You just hand over all
> the parameters in a get request and post.php imports the message. That
> would be very nice (don't understand how attachments wor with that, yet).
> So in this case you could post with wget or curl. Very nice.

I'll download it soon (the devel version) and take a look.

Sounds like a simple matter of maybe just one function to send via http, or
a simple script on the vichan end to pull articles via nntp, then just
forward them via http to vichan. spoolnews.php could be easily modified to
do that.

This would require no changes on the remote end, it doesn't even need to
care if it's vichan getting messages, or some other nntp server.

Retro Guy

Re: hey, what do know ? vichan supports nntp

<03feef1a9762e00c98c521184978c29d$1@z5bqfv5v75kxy7pj.onion>

 copy mid   Newsgroups: rocksolid.nodes
Path: i2pn2.org!.POSTED!not-for-mail
From: anonymous@anon.com (anonymous)
Newsgroups: rocksolid.nodes
Subject: Re: hey, what do know ? vichan supports nntp
Date: Fri, 15 May 2020 20:07 UTC
Organization: def2
Message-ID: <03feef1a9762e00c98c521184978c29d$1@z5bqfv5v75kxy7pj.onion>
References: <154276e6dcdb76f64a817816fa16fe6f$1@rslight.i2p> <a7165d2fef4e3a1505130c7019fc3239@def4> <b9897bf89845aed7c76f8b685400444c$1@rslight.i2p> <8eb12a87505f8e551cbbfc7043ad2a24$1@z5bqfv5v75kxy7pj.onion> <144d619b4538c15b850d245a2196303e$1@rslight.i2p>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org; posting-account="def2";
logging-data="10931"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: Rocksolid Light (news.novabbs.com/getrslight)
X-Rslight-Site: $2y$10$w4ndFV0eCydPfz0BS3XMteGocgvg3LKQXAftZHQB4kA.NgV1L2FnK
 by: anonymous - Fri, 15 May 2020 20:07 UTC

the big question for me is: push or pull ? I think pull makes more sense for this kind of deployment, it will have a higher latency, but be more reliable and not require any changes on any existing node (or newsserver).
so the installation instructions would be something like:
-get vichan to run
-get the rslight nntp server and spoolnews, and install them on the same machine
-set up a cronjob to update
-patch post.php (or replace it with some patched version)

that sound really nice.

trw
--
Posted on def2
z5bqfv5v75kxy7pj.onion

Re: hey, what do know ? vichan supports nntp

<4d8c8c1eecefe59c0b27e5a09370a4b1@def4>

 copy mid   Newsgroups: rocksolid.nodes
Path: i2pn2.org!rocksolid2!def5!POSTED.localhost!not-for-mail
From: anon@anon.com (anon)
Newsgroups: rocksolid.nodes
Message-ID: <4d8c8c1eecefe59c0b27e5a09370a4b1@def4>
Subject: Re: hey, what do know ? vichan supports nntp
Date: Fri, 15 May 2020 22:52:31+0000
Organization: def5
In-Reply-To: <03feef1a9762e00c98c521184978c29d$1@z5bqfv5v75kxy7pj.onion>
References: <03feef1a9762e00c98c521184978c29d$1@z5bqfv5v75kxy7pj.onion>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
 by: anon - Fri, 15 May 2020 22:52 UTC

if i enter MODE READER on the rslight nntp server, it says:
200 Rocksolid Light NNRP Server ready (no posting)
seems like posting in this mode does not work ?

Posted on def4

Re: hey, what do you know: vichan supports nntp

<e1cece3cd885d6d6e2fae84d9cf1d639@def4>

 copy mid   Newsgroups: rocksolid.nodes
Path: i2pn2.org!rocksolid2!def5!POSTED.localhost!not-for-mail
From: anon@anon.com (anon)
Newsgroups: rocksolid.nodes
Message-ID: <e1cece3cd885d6d6e2fae84d9cf1d639@def4>
Subject: Re: hey, what do you know: vichan supports nntp
Date: Fri, 15 May 2020 23:42:38+0000
Organization: def5
In-Reply-To: <4d8c8c1eecefe59c0b27e5a09370a4b1@def4>
References: <4d8c8c1eecefe59c0b27e5a09370a4b1@def4>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
 by: anon - Fri, 15 May 2020 23:42 UTC

fputs($s,"AUTHINFO USER $server_auth_user
");
$weg=line_read($s);
fputs($s,"AUTHINFO PASS $server_auth_pass
");
$weg=line_read($s);
if (substr($weg,0,3) != "281" {
AUTH FAILED
can't do stuff...
} else {
IT DIDN"T FAIL, YAY!
do stuff...
}

And I guess the "do stuff" would be some variant of message_post and message_post_with_attachment from /lib/post.inc.php. not sure it is better to just put that code into the vichan function, or to call some function in the rslight framework. i guess the latter, this way we can do minimal changes on the vichan code.
actually, the way this is done in vi might be superior, because the whole message is already composed and then sent in one go (instead of composing and sending the individual pieces).
now it gets a bit tricky, i have to read up a bit on nntp before i can continue.

cheers

trw

Posted on def4

Re: hey, what do know ? vichan supports nntp

<420a05414ef9458643668937286dd008$1@rslight.i2p>

 copy mid   Newsgroups: rocksolid.nodes
Path: i2pn2.org!.POSTED!not-for-mail
From: retroguy@retrobbs.rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes
Subject: Re: hey, what do know ? vichan supports nntp
Date: Fri, 15 May 2020 15:40:17 -0700
Organization: Rocksolid
Lines: 11
Message-ID: <420a05414ef9458643668937286dd008$1@rslight.i2p>
References: <03feef1a9762e00c98c521184978c29d$1@z5bqfv5v75kxy7pj.onion> <4d8c8c1eecefe59c0b27e5a09370a4b1@def4>
Mime-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7Bit
Injection-Info: i2pn2.org; posting-account="retrobbs1";
logging-data="29051"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: KNode/4.14.1
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on novabbs.com
 by: Retro Guy - Fri, 15 May 2020 22:40 UTC

anon wrote:

>
> if i enter MODE READER on the rslight nntp server, it says:
> 200 Rocksolid Light NNRP Server ready (no posting)
> seems like posting in this mode does not work ?

It doesn't actually change anything, it just sends the '200' reply.

You can post once authenticated. Try the same commands with an inn server
and you should see almost exactly the same response.

Re: hey, what do you know: vichan supports nntp

<1df84088c53e8cd94c39faee678d0046$1@rslight.i2p>

 copy mid   Newsgroups: rocksolid.nodes
Path: i2pn2.org!.POSTED!not-for-mail
From: retroguy@retrobbs.rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes
Subject: Re: hey, what do you know: vichan supports nntp
Date: Fri, 15 May 2020 15:48:59 -0700
Organization: Rocksolid
Lines: 69
Message-ID: <1df84088c53e8cd94c39faee678d0046$1@rslight.i2p>
References: <4d8c8c1eecefe59c0b27e5a09370a4b1@def4> <e1cece3cd885d6d6e2fae84d9cf1d639@def4>
Mime-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7Bit
Injection-Info: i2pn2.org; posting-account="retrobbs1";
logging-data="29482"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: KNode/4.14.1
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on novabbs.com
 by: Retro Guy - Fri, 15 May 2020 22:48 UTC

anon wrote:

>
> fputs($s,"AUTHINFO USER $server_auth_user
> ");
> $weg=line_read($s);
> fputs($s,"AUTHINFO PASS $server_auth_pass
> ");
> $weg=line_read($s);
> if (substr($weg,0,3) != "281" {
> AUTH FAILED
> can't do stuff...
> } else {
> IT DIDN"T FAIL, YAY!
> do stuff...
> }
>
> And I guess the "do stuff" would be some variant of message_post and
> message_post_with_attachment from /lib/post.inc.php. not sure it is better
> to just put that code into the vichan function, or to call some function
> in the rslight framework. i guess the latter, this way we can do minimal
> changes on the vichan code. actually, the way this is done in vi might be
> superior, because the whole message is already composed and then sent in
> one go (instead of composing and sending the individual pieces). now it
> gets a bit tricky, i have to read up a bit on nntp before i can continue.

Yes, rslight builds the message. I wouldn't use message_post with vichan,
it's not necessary. If the message is already built, it's easy to post
straight to the nntp server. See the 'post_articles' function in send.php.
It just sends messages sitting in a folder but as long as it has a message
it's a simple matter to send it:

if(!is_file($outgoing_dir.$message)) {
continue;
}
echo "Sending: ".$outgoing_dir.$message."\r\n";
fputs($ns, "MODE READER\r\n");
$response = line_read($ns);
if (strcmp(substr($response,0,3),"200") != 0) {
file_put_contents($logfile, "\n".format_log_date()." ".
$config_name." Unexpected response to MODE command: ".$respon
se, FILE_APPEND);
return $response;
}
fputs($ns, "POST\r\n");
$response = line_read($ns);
if (strcmp(substr($response,0,3),"340") != 0) {
file_put_contents($logfile, "\n".format_log_date()." ".$config_name."
Unexpected response to POST command: ".$response
, FILE_APPEND);
return $response;
}
$message_fp = fopen($outgoing_dir.$message, "rb");
while (($msgline = fgets($message_fp, 4096)) !== false) {
fputs($ns, $msgline);
}
fputs($ns, ".\r\n");
fclose($message_fp);
$response = line_read($ns);
if (strcmp(substr($response,0,3),"240") == 0) {
unlink($outgoing_dir.$message);
file_put_contents($logfile, "\n".format_log_date()." ".$config_name."
Posted: ".$message.": ".$response, FILE_APPEND);
} else {
file_put_contents($logfile, "\n".format_log_date()." ".$config_name."
Failed to POST: ".$message.": ".$response, FILE_
APPEND);
continue;
}

Re: hey, what do you know: vichan supports nntp

<76700fca6e0a633662cda718febde860@def4>

 copy mid   Newsgroups: rocksolid.nodes
Path: i2pn2.org!rocksolid2!def5!POSTED.localhost!not-for-mail
From: anon@anon.com (anon)
Newsgroups: rocksolid.nodes
Message-ID: <76700fca6e0a633662cda718febde860@def4>
Subject: Re: hey, what do you know: vichan supports nntp
Date: Sat, 16 May 2020 00:13:26+0000
Organization: def5
In-Reply-To: <e1cece3cd885d6d6e2fae84d9cf1d639@def4>
References: <e1cece3cd885d6d6e2fae84d9cf1d639@def4>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
 by: anon - Sat, 16 May 2020 00:13 UTC

>See the 'post_articles' function in send.php.

I don't have any send.php, ok, strike that, i found it.

why do need to put the scripts in /etc/rslight/ ? (rant over).

i guess in your example there would have to be some auth before ? and then you would need to import a whole bunch of libs again to do it in the rslight way ? or directly like you have written before.
maybe the easiest way is the best here: just drop the message in the spool, and let rslight take care of the rest ?

Posted on def4

Pages:1234
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor