🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rocksolid.nodes
Article #246

Re: hey, what do know ? vichan supports nntp

#246
From: anonymous
Date: Thu, 14 May 2020 20:47
28 lines
1854 bytes
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
Technical Details
Message-ID: <a4458e95f3eff77a31ee126a7152c46a$1@z5bqfv5v75kxy7pj.onion>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!i2pn2.org!.POSTED!not-for-mail
References: <d1faafa624cda10417914a17419af431@def4> <a390a213fa3e1af81b3d8c884f62ef13@def4>

Show Full Headers
Complete Article Headers
Message-ID: <a4458e95f3eff77a31ee126a7152c46a$1@z5bqfv5v75kxy7pj.onion>
Subject: Re: hey, what do know ? vichan supports nntp
Date: Thu, 14 May 2020 20:47:00 +0000
From: anonymous@anon.com (anonymous)
References: <d1faafa624cda10417914a17419af431@def4> <a390a213fa3e1af81b3d8c884f62ef13@def4>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!i2pn2.org!.POSTED!not-for-mail
Newsgroups: rocksolid.nodes
Organization: def2
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