Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Used staples are good with SOY SAUCE!


rocksolid / Rocksolid Nodes Help / Re: fudforum quick hacks thread

SubjectAuthor
* fudforum quick hacks threadtrw
+* fudforum quick hacks threadRetro Guy
|`- fudforum quick hacks threadtrw
+* fudforum quick hacks threadtrw
|`* fudforum quick hacks threadtrw
| `* fudforum quick hacks threadRetro Guy
|  `* fudforum quick hacks threadtrw
|   `* fudforum quick hacks threadRetro Guy
|    `* fudforum quick hacks threadtrw
|     `* fudforum quick hacks threadtrw
|      +* fudforum quick hacks threadtrw
|      |`- fudforum quick hacks threadRetro Guy
|      `- fudforum quick hacks threadRetro Guy
+* udforum quick hacks threadAnonymous
|`- udforum quick hacks threadRetro Guy
`- found itAnonymous

1
fudforum quick hacks thread

<qm8n9e$7ie$1@i2pn2.org>

 copy mid   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: trw@i2pmail.org (trw)
Newsgroups: rocksolid.nodes.help
Subject: fudforum quick hacks thread
Date: Sun, 22 Sep 2019 16:58:08 -0400
Organization: Dancing elephants
Lines: 10
Message-ID: <qm8n9e$7ie$1@i2pn2.org>
Reply-To: trw <trw@i2pmail.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 22 Sep 2019 20:58:24 -0000 (UTC)
Injection-Info: i2pn2.org; posting-account="def.i2p";
logging-data="7758"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: FUDforum 3.0.7
X-FUDforum: 6666cd76f96956469e7be39d750cc7d9 <10295>
 by: trw - Sun, 22 Sep 2019 20:58 UTC

here i will collect all the info about fudforum i have/will find out, mostly how to adapt the software to the specific requirements of hosting in the darknets, or about my installation.

starting with the first little hack, which prevents users of posting their own session token when they post links from this forum. given the fact that we only work with url sessions now, this could attackers enable to take over the account (if the session should still be open at the point in time). a little regex prevents this, to be inserted in post.php, line 826 at the start of the function apply_custom_replace:

return preg_replace("/&S=(\w{32})/", "&S=replaced.session.token.for.opsec", $text);

this will shortcircuit the function to do only one replacement, which replaces the session token with a string.

cheers

trw
Posted on def3

Re: fudforum quick hacks thread

<83acd6a14ae12fd6dd0c4ee1b27a4279$1@www.rocksolidbbs.com>

 copy mid   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!rocksolid2!.POSTED.rocksolid3!not-for-mail
From: retro.guy@retrobbs.rocksolidbbs.com.remove-8ar-this (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Re: fudforum quick hacks thread
Date: Mon, 23 Sep 2019 09:23:33 +0000
Organization: RetroBBS
Message-ID: <83acd6a14ae12fd6dd0c4ee1b27a4279$1@www.rocksolidbbs.com>
References: <qm8n9e$7ie$1@i2pn2.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: novabbs.com; posting-account="rslight.i2p"; posting-host="rocksolid3:192.241.178.238";
logging-data="12111"; mail-complaints-to="usenet@novabbs.com"
User-Agent: rslight (http://news.novabbs.com)
To: trw
X-Comment-To: trw
In-Reply-To: <qm8n9e$7ie$1@i2pn2.org>
X-FTN-PID: Synchronet 3.17a-Linux Dec 29 2018 GCC 6.3.0
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on rocksolidbbs.com
X-Rslight-Site: $2y$10$UxU1nFwbcurBSGJ1x2D7eOXSI/GqQjxXu5yRI47xePGXrpN7RgwWK
X-Gateway: retrobbs.rocksolidbbs.com [Synchronet 3.17a-Linux NewsLink 1.110]
 by: Retro Guy - Mon, 23 Sep 2019 09:23 UTC

To: trw
trw wrote:

> here i will collect all the info about fudforum i have/will find out, mostly
how to adapt the software to the specific requirements of hosting in the
darknets, or about my installation.

Good idea. At some point we should collect the previous changes we made
(nntp.inc, etc) and put it all in one place.

We have made a few small changes to several files at this point (also,
I've written two plugins). I'll collect my stuff next week and we can
place this all somewhere.

BTW, nice work on your progress with the sessions!

Retro Guy

--
Posted on RetroBBS

Re: fudforum quick hacks thread

<qma9v6$soo$1@i2pn2.org>

 copy mid   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: trw@i2pmail.org (trw)
Newsgroups: rocksolid.nodes.help
Subject: Re: fudforum quick hacks thread
Date: Mon, 23 Sep 2019 07:23:06 -0400
Organization: Dancing elephants
Lines: 4
Message-ID: <qma9v6$soo$1@i2pn2.org>
References: <83acd6a14ae12fd6dd0c4ee1b27a4279$1@www.rocksolidbbs.com>
Reply-To: trw <trw@i2pmail.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 23 Sep 2019 11:24:08 -0000 (UTC)
Injection-Info: i2pn2.org; posting-account="def.i2p";
logging-data="29464"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: FUDforum 3.0.7
X-FUDforum: 6666cd76f96956469e7be39d750cc7d9 <10304>
 by: trw - Mon, 23 Sep 2019 11:23 UTC

>BTW, nice work on your progress with the sessions!

yeah, thanks. it's a load of my mind. and it makes ff much more usable and secure (for the server admin, anyway).

what plugins have you written for ff ? do you the auth and the spam killer ?
Posted on def3

Re: fudforum quick hacks thread

<qnd5hp$f7e$1@i2pn2.org>

 copy mid   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: trw@i2pmail.org (trw)
Newsgroups: rocksolid.nodes.help
Subject: Re: fudforum quick hacks thread
Date: Sun, 06 Oct 2019 12:42:37 -0400
Organization: Dancing elephants
Lines: 376
Message-ID: <qnd5hp$f7e$1@i2pn2.org>
References: <qm8n9e$7ie$1@i2pn2.org>
Reply-To: trw <trw@i2pmail.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 6 Oct 2019 16:42:37 -0000 (UTC)
Injection-Info: i2pn2.org; posting-account="def.i2p";
logging-data="15598"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: FUDforum 3.0.7
X-FUDforum: 6666cd76f96956469e7be39d750cc7d9 <10363>
 by: trw - Sun, 6 Oct 2019 16:42 UTC

and another quick'n'dirty one: the script below (hacked from pieces of admforum.php and admnntp.php) reads from a file called groups_to_create.txt in webroot/adm/, and creates all the forums listed in that file, plus the update rule to sync over nntp. it's very raw yet, and throws an exception for the display of the results, but the creation as such works.

<?php
/**
* copyright : (C) 2001-2013 Advanced Internet Designs Inc.
* email : mailto:forum@prohost.org
* $Id: admforum.php 5707 2013-10-12 11:05:47Z naudefj $
* * This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; version 2 of the License.
**/

/** Return PHP's maximum upload size in bytes. */
function get_max_upload_size()
{ $us = strtolower(ini_get('upload_max_filesize'));
$size = (int) $us;
if (strpos($us, 'm') !== false) {
$size *= 1024 * 1024;
} else if (strpos($us, 'k') !== false) {
$size *= 1024;
}
return $size;
}

/* main */
require('./GLOBALS.php');
fud_use('adm.inc', true);
fud_use('forum_adm.inc', true);
fud_use('cat.inc', true);
fud_use('widgets.inc', true);
fud_use('logaction.inc');

$tbl = $GLOBALS['DBHOST_TBL_PREFIX'];

// AJAX call to reorder forums.
if (!empty($_POST['ajax']) && $_POST['ajax'] == 'reorder') {
$new_order = 1;
foreach ($_POST['order'] as $id) {
q('UPDATE '. $tbl .'forum SET view_order = '. $new_order++ .' WHERE id = '. $id);
}
rebuild_forum_cat_order();
exit('Forums successfully reordered.'); // End AJAX call.
}
require($WWW_ROOT_DISK .'adm/header.php');
$max_upload_size = get_max_upload_size();

/* This is here so we get the cat_id parameter when cancel button is clicked. */
$cat_id = isset($_GET['cat_id']) ? (int)$_GET['cat_id'] : (isset($_POST['cat_id']) ? (int)$_POST['cat_id'] : '');
if (empty($cat_id)) { // Or get it from DB.
$cat_id = q_singleval('SELECT MIN(id) FROM '. $tbl .'cat');
}
$cat_name = q_singleval('SELECT name FROM '. $tbl .'cat WHERE id='. (int)$cat_id);

$edit = isset($_GET['edit']) ? (int)$_GET['edit'] : (isset($_POST['edit']) ? (int)$_POST['edit'] : '');
if (file_exists('groups_to_create.txt'))
{
echo 'opened file';
$file_handle = fopen("groups_to_create.txt", 'r') or die("File does not exist or you lack permission to open it");
$_POST['frm_parent']= '0';
$_POST['frm_url_redirect']= '';
$_POST['frm_tag_style']= '16';
$_POST['frm_passwd_posting']= '0';
$_POST['frm_post_passwd']= '';
$_POST['frm_moderated']= '0';
$_POST['frm_max_attach_size']= '2048';
$_POST['frm_max_file_attachments']= '2';
$_POST['frm_mod_attach']= '0';
$_POST['frm_mod_notify']= '0';
$_POST['frm_message_threshold']= '0';
$_POST['frm_forum_icon']= '';
$_POST['frm_pos']= 'LAST';
$_POST['frm_forum_opt'] = (int) $_POST['frm_mod_notify'] | (int) $_POST['frm_mod_attach'] | (int) $_POST['frm_moderated'] | (int) $_POST['frm_passwd_posting'] | (int) $_POST['frm_tag_style'];
$_POST['nntp_server']= 'my.server.ip';
$_POST['nntp_port']= 'my.server.port';
$_POST['nntp_login']= 'my.login';
$_POST['nntp_pass']= 'my.password';
$_POST['nntp_timeout']= '25';
$_POST['nntp_auth']= '128';
$_POST['nntp_imp_limit']= '5000';
$_POST['nntp_custom_sig']= '';
$_POST['nntp_nntp_post_apr']= '0';
$_POST['nntp_allow_frm_post']= '2';
$_POST['nntp_skip_non_forum_users']= '0';
$_POST['nntp_create_users']= '32';
$_POST['nntp_complex_reply_match']= '16';
$_POST['nntp_allow_nntp_attch']= '8';
$_POST['nntp_frm_post_apr']= '0';
fud_use('nntp_adm.inc', true);
while(! feof($file_handle))
{
$line = fgets($file_handle);
list($category, $forum, $description, $newsgroup) = explode(":", $line);
$cat_id = $category;
$_POST['frm_name']= $forum;
$_POST['frm_descr']= $description;
$frm = new fud_forum;
fud_use('groups_adm.inc', true);
fud_use('groups.inc');
$frm->cat_id = $cat_id;
$frm->add('LAST');
rebuild_forum_cat_order();
logaction(_uid, 'ADDFORUM', $frm->id);
echo successify('Forum was successfully created.');
$_POST['nntp_forum_id']= $frm->id;
$_POST['nntp_newsgroup']= $newsgroup;
$nntp_adm = new fud_nntp_adm;
$nntp_adm->add();
echo successify('Newsgroup rule successfully added (see <a href="#list">list</a> at bottom of page).');
}
}
else
{
echo 'groups_to_create.txt does not exist';
}
fclose($file_handle);
if ($edit && ($c = db_arr_assoc('SELECT * FROM '. $tbl .'forum WHERE id='. $edit))) {
foreach ($c as $k => $v) {
${'frm_'.$k} = $v;
}
} else {
$c = get_class_vars('fud_forum');
foreach ($c as $k => $v) {
${'frm_'.$k} = '';
}

/* Some default values for new forums. */
$frm_pos = 'LAST';
$frm_max_attach_size = floor($max_upload_size / 1024);
$frm_message_threshold = '0';
$frm_max_file_attachments = '5';
$frm_forum_opt = 16;
}

if (isset($_GET['chpos'], $_GET['newpos'])) {
frm_change_pos((int)$_GET['chpos'], (int)$_GET['newpos'], $cat_id);
rebuild_forum_cat_order();
unset($_GET['chpos'], $_GET['newpos']);
echo successify('Forum position was successfully set.');
} else if (isset($_GET['del'])) {
if (frm_move_forum((int)$_GET['del'], 0, $cat_id)) {
rebuild_forum_cat_order();
$frm_name = q_singleval('SELECT name FROM '. $tbl .'forum WHERE id='. (int)$_GET['del']);
logaction(_uid, 'FRMMARKDEL', (int)$_GET['del']);
echo successify('The <b>'. $frm_name .'</b> forum was moved to the <b><a href="admforumdel.php?'. __adm_rsid .'">trash bin</a></b>.');
}
} else if (isset($_POST['btn_chcat'], $_POST['frm_id'], $_POST['cat_id'], $_POST['dest_cat'])) {
if (frm_move_forum((int)$_POST['frm_id'], (int)$_POST['dest_cat'], $cat_id)) {
rebuild_forum_cat_order();
$r = db_saq('SELECT f.name, c1.name, c2.name FROM '. $tbl .'forum f INNER JOIN '. $tbl .'cat c1 ON c1.id='. $cat_id .' INNER JOIN '. $tbl .'cat c2 ON c2.id='. (int)$_POST['dest_cat'] .' WHERE f.id='. (int)$_POST['frm_id']);
logaction(_uid, 'CHCATFORUM', (int)$_POST['frm_id']);
echo successify('Forum was successfully moved.');
}
}

// Reorder forum display order.
if (isset($_GET['o'], $_GET['ot'])) {
if (in_array($_GET['ot'], array('name', 'descr', 'date_created'))) {
$i = 0;
$r = q('SELECT id FROM '. $tbl .'forum WHERE cat_id='. $cat_id .' ORDER BY '. $_GET['ot'] . ((int)$_GET['o'] ? ' ASC' : ' DESC'));
while ($o = db_rowarr($r)) {
q('UPDATE '. $tbl .'forum SET view_order='. ++$i .' WHERE id='. $o[0]);
}
rebuild_forum_cat_order();
}
}
// Get list of categories.
$cat_sel = create_cat_select('cat_id', $cat_id, 0);
?>
<h2>Forum Management System</h2>

<fieldset class="fieldtopic">
<legend><b>Change category:</b></legend>
<table width="100%">
<tr><td>
<?php
if (empty($cat_sel)) {
pf(errorify('Your forum doesn\'t have any categories.<br />Please use the Category Manager to create some before returning to this screen.'));
} else {
?>
<form method="post" action="admforum.php">
Manage forums in catagory:
<?php echo _hs; echo $cat_sel; ?> 
<input type="submit" name="frm_submit" value="Change" />
</form>
<?php } ?>
</td><td>
<nobr>[ <a title="List forums in the recycle bin" href="admforumdel.php?<?php echo __adm_rsid; ?>">Deleted Forums</a> ]</nobr>
</td></tr>
</table>
</fieldset>


Click here to read the complete article
Re: fudforum quick hacks thread

<qndg66$u85$1@i2pn2.org>

 copy mid   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: trw@i2pmail.org (trw)
Newsgroups: rocksolid.nodes.help
Subject: Re: fudforum quick hacks thread
Date: Sun, 06 Oct 2019 15:44:10 -0400
Organization: Dancing elephants
Lines: 0
Message-ID: <qndg66$u85$1@i2pn2.org>
References: <qnd5hp$f7e$1@i2pn2.org>
Reply-To: trw <trw@i2pmail.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 6 Oct 2019 19:44:07 -0000 (UTC)
Injection-Info: i2pn2.org; posting-account="def.i2p";
logging-data="30981"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: FUDforum 3.0.7
X-FUDforum: 6666cd76f96956469e7be39d750cc7d9 <40313>
 by: trw - Sun, 6 Oct 2019 19:44 UTC

this thing works, i have just created all the feeds with it. one was missing an entry, so the code is really not finished.
Posted on def3

Re: fudforum quick hacks thread

<20191006195945.62c0f9d4@desktop14.dt>

 copy mid   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: retro_guy@retrobbs.rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Re: fudforum quick hacks thread
Date: Sun, 6 Oct 2019 19:59:45 -0700
Organization: RetroBBS
Message-ID: <20191006195945.62c0f9d4@desktop14.dt>
References: <qnd5hp$f7e$1@i2pn2.org>
<qndg66$u85$1@i2pn2.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: i2pn2.org; posting-account="retrobbs1";
logging-data="17673"; mail-complaints-to="usenet@i2pn2.org"
X-Newsreader: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu)
 by: Retro Guy - Mon, 7 Oct 2019 02:59 UTC

On Sun, 06 Oct 2019 15:44:10 -0400
trw <trw@i2pmail.org> wrote:

> this thing works, i have just created all the feeds with it. one was
> missing an entry, so the code is really not finished. Posted on def3

Looks good. This will really help in building ff site, as it takes a
long time to create and configure a lot of groups at once. (It's really
boring!)

Thanks for this!

Retro Guy

Re: fudforum quick hacks thread

<qnsjf0$dpm$1@i2pn2.org>

 copy mid   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: trw@i2pmail.org (trw)
Newsgroups: rocksolid.nodes.help
Subject: Re: fudforum quick hacks thread
Date: Sat, 12 Oct 2019 09:12:19 -0400
Organization: Dancing elephants
Lines: 3
Message-ID: <qnsjf0$dpm$1@i2pn2.org>
References: <20191006195945.62c0f9d4@desktop14.dt>
Reply-To: trw <trw@i2pmail.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 12 Oct 2019 13:12:01 -0000 (UTC)
Injection-Info: i2pn2.org; posting-account="def.i2p";
logging-data="14134"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: FUDforum 3.0.7
X-FUDforum: 6666cd76f96956469e7be39d750cc7d9 <65108>
 by: trw - Sat, 12 Oct 2019 13:12 UTC

and the one that I used to jump over a certain message in comp.lang.python that had a subject with an encoding that caused the sql statement to crash:
insert in /Fudforum_data_dir/scripts/nntp.php in line 131:
$nntp->group_first = 1500;
which will set the counter of the group to 1500. of course, you will have to remove this line after the run, or before you use it for other groups. the easiest is to save the file under a new name and run it only once.
Posted on def3

Re: fudforum quick hacks thread

<8ec9d055607770c77cb91d9636a898cb$1@www.rocksolidbbs.com>

 copy mid   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!rocksolid2!.POSTED.rocksolid3!not-for-mail
From: retro.guy@retrobbs.rocksolidbbs.com.remove-5vl-this (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Re: fudforum quick hacks thread
Date: Sun, 13 Oct 2019 07:23:16 +0000
Organization: RetroBBS
Message-ID: <8ec9d055607770c77cb91d9636a898cb$1@www.rocksolidbbs.com>
References: <qnsjf0$dpm$1@i2pn2.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: novabbs.com; posting-account="rslight.i2p"; posting-host="rocksolid3:192.241.178.238";
logging-data="10245"; mail-complaints-to="usenet@novabbs.com"
User-Agent: rslight (http://news.novabbs.com)
To: trw
X-Comment-To: trw
In-Reply-To: <qnsjf0$dpm$1@i2pn2.org>
X-FTN-PID: Synchronet 3.17a-Linux Dec 29 2018 GCC 6.3.0
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on rocksolidbbs.com
X-Rslight-Site: $2y$10$T0UbisULH/uHrQECcnaQne1pcvwU/z1im74ZK/jmkl9kA6p/2l5Lm
X-Gateway: retrobbs.rocksolidbbs.com [Synchronet 3.17a-Linux NewsLink 1.110]
 by: Retro Guy - Sun, 13 Oct 2019 07:23 UTC

To: trw
trw wrote:

> and the one that I used to jump over a certain message in comp.lang.python
that had a subject with an encoding that caused the sql statement to crash:
> insert in /Fudforum_data_dir/scripts/nntp.php in line 131:
> $nntp->group_first = 1500;
> which will set the counter of the group to 1500. of course, you will have to
remove this line after the run, or before you use it for other groups. the
easiest is to save the file under a new name and run it only once.
> Posted on def3

I can't find anywhere in that loop that it breaks out for any reason (only
'continue', which is good). My nntp.php seems a little different than
yours, the line is 134 in mine.

Is it crashing execution of the file itself?

--
Posted on RetroBBS

Re: fudforum quick hacks thread

<qnun1g$pu$1@i2pn2.org>

 copy mid   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: trw@i2pmail.org (trw)
Newsgroups: rocksolid.nodes.help
Subject: Re: fudforum quick hacks thread
Date: Sun, 13 Oct 2019 04:25:41 -0400
Organization: Dancing elephants
Lines: 4
Message-ID: <qnun1g$pu$1@i2pn2.org>
References: <8ec9d055607770c77cb91d9636a898cb$1@www.rocksolidbbs.com>
Reply-To: trw <trw@i2pmail.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 13 Oct 2019 08:25:21 -0000 (UTC)
Injection-Info: i2pn2.org; posting-account="def.i2p";
logging-data="830"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: FUDforum 3.0.7
X-FUDforum: 6666cd76f96956469e7be39d750cc7d9 <65349>
 by: trw - Sun, 13 Oct 2019 08:25 UTC

>Is it crashing execution of the file itself?

it is this topic here: http://x5qrtsbiebrxj65t.onion/index.php?t=msg&th=46384&goto=63843&S=replaced.session.token.for.opsec#msg_63843

There is a call from nntp.php to a function, trying to determine if the message is a first in the thread or not. The sql statement in that function crashes if a message has certain characters (because this changes implicitly the encoding, or so it seems). When that function crahes, nntp.php stops to import that group, and goes to the next one.
Posted on def3

Re: fudforum quick hacks thread

<rgmjpm$tl1$1@def5.org>

 copy mid   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!rocksolid2!def5!.POSTED.bogusentry!not-for-mail
From: trw@i2pmail.org (trw)
Newsgroups: rocksolid.nodes.help
Subject: Re: fudforum quick hacks thread
Date: Sat, 08 Aug 2020 12:26:48 -0400
Organization: Dancing elephants
Lines: 22
Message-ID: <rgmjpm$tl1$1@def5.org>
References: <qnun1g$pu$1@i2pn2.org>
Reply-To: trw <trw@i2pmail.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 8 Aug 2020 16:27:34 -0000 (UTC)
Injection-Info: def5.org; posting-host="bogusentry:192.168.1.189";
logging-data="30369"; mail-complaints-to="usenet@def5.org"
User-Agent: FUDforum 3.0.7
X-FUDforum: 6666cd76f96956469e7be39d750cc7d9 <379704>
 by: trw - Sat, 8 Aug 2020 16:26 UTC

And another one: move the webroot of Fudforum to a different location.

This is mostly a note to myself, as I think I am the only one still using this :).

So, to move the webroot of Fudforum:

# cp -rv /your/forum/dir /your/new/forum/dir
# cp -rv /your/data/dir /your/new/data/dir
# chown -R www-data.www-data /your/new/forum/dir
# chown -R www-data.www-data /your/new/data/dir
# mv /your/forum/dir /your/forum/dir_backup
# mv /your/data/dir /your/data/dir_backup
# ln -s /your/new/forum/dir /your/forum/dir
# ln -s /your/new/data/dir /your/data/dir
# nano /your/new/data/dir/include/GLOBALS.php
(here you have to adapt the paths so that they point to the new absolute paths, php seems not to follow symlinks)
(make some testing)
# rm -rf /your/forum/dir_backup
# rm -rf /your/data/dir_backup

cheers

trw

--
Posted on def3

Re: fudforum quick hacks thread

<rgmjra$i7v$1@def5.org>

 copy mid   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!i2pn.org!rocksolid2!def5!.POSTED.bogusentry!not-for-mail
From: trw@i2pmail.org (trw)
Newsgroups: rocksolid.nodes.help
Subject: Re: fudforum quick hacks thread
Date: Sat, 08 Aug 2020 12:27:39 -0400
Organization: Dancing elephants
Lines: 0
Message-ID: <rgmjra$i7v$1@def5.org>
References: <rgmjpm$tl1$1@def5.org>
Reply-To: trw <trw@i2pmail.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 8 Aug 2020 16:28:26 -0000 (UTC)
Injection-Info: def5.org; posting-host="bogusentry:192.168.1.189";
logging-data="18687"; mail-complaints-to="usenet@def5.org"
User-Agent: FUDforum 3.0.7
X-FUDforum: 6666cd76f96956469e7be39d750cc7d9 <379709>
 by: trw - Sat, 8 Aug 2020 16:27 UTC

and btw, I hope this has fixed all this annoying 503s, they should have been because of low disk space.

--
Posted on def3

Re: fudforum quick hacks thread

<a6fdb6f601b1c4b90380649e8403b82b$1@www.novabbs.com>

 copy mid   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: retro.guy@rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Re: fudforum quick hacks thread
Date: Mon, 10 Aug 2020 09:46:41 +0000
Organization: novaBBS
Message-ID: <a6fdb6f601b1c4b90380649e8403b82b$1@www.novabbs.com>
References: <qnun1g$pu$1@i2pn2.org> <rgmjpm$tl1$1@def5.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org; posting-account="retrobbs1";
logging-data="26949"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: Rocksolid Light (news.novabbs.com/getrslight)
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on novabbs-new-nyc1
X-Rslight-Site: $2y$10$djzMQJnug8PumVi07HZ8E.oEX3eVRfKN8.zAIecWWFd3lZZrIM3cW
 by: Retro Guy - Mon, 10 Aug 2020 09:46 UTC

trw wrote:

> And another one: move the webroot of Fudforum to a different location.

> This is mostly a note to myself, as I think I am the only one still using this :).

Always a good idea to keep a log somewhere. Why not here :) (I do that also).

> So, to move the webroot of Fudforum:

> # cp -rv /your/forum/dir /your/new/forum/dir
> # cp -rv /your/data/dir /your/new/data/dir
> # chown -R www-data.www-data /your/new/forum/dir
> # chown -R www-data.www-data /your/new/data/dir
> # mv /your/forum/dir /your/forum/dir_backup
> # mv /your/data/dir /your/data/dir_backup
> # ln -s /your/new/forum/dir /your/forum/dir
> # ln -s /your/new/data/dir /your/data/dir
> # nano /your/new/data/dir/include/GLOBALS.php
> (here you have to adapt the paths so that they point to the new absolute paths, php seems not to follow symlinks)

Interesting. Symlinks for files, or directories? rslight has symlinked files without trouble, but haven't done so with directories.

> (make some testing)

Good idea!

> # rm -rf /your/forum/dir_backup
> # rm -rf /your/data/dir_backup

Always scary :)

Retro Guy

--
Posted on: novaBBS
www.novabbs.com

Re: fudforum quick hacks thread

<9e0aa929f0b1e2aad4148d1f9b1cfa05$1@www.novabbs.com>

 copy mid   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: retro.guy@rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Re: fudforum quick hacks thread
Date: Mon, 10 Aug 2020 09:57:19 +0000
Organization: novaBBS
Message-ID: <9e0aa929f0b1e2aad4148d1f9b1cfa05$1@www.novabbs.com>
References: <rgmjpm$tl1$1@def5.org> <rgmjra$i7v$1@def5.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org; posting-account="retrobbs1";
logging-data="28548"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: Rocksolid Light (news.novabbs.com/getrslight)
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on novabbs-new-nyc1
X-Rslight-Site: $2y$10$Sn/HTmIxqSew5jMAR4y27Oi.jV5oPIYUR7wppt88BRNp841th9ySm
 by: Retro Guy - Mon, 10 Aug 2020 09:57 UTC

trw wrote:

> and btw, I hope this has fixed all this annoying 503s, they should have been because of low disk space.

Damn non-infinite disks! I hate those :)

def3 really looks good. As you know, some of the css of rslight is copying some of the colour scheme of def3 because I like it.

On another ff note, I mentioned a while back the size of my ff database and how large it was. I was surprised then when I deleted ff from that server, the freed disk space was double the database size. The database was around 12G and once ff was completely deleted, it freed 24G of space. Not sure why that is as I really doubt it duplicates the entire database.

The rslight database for the same groups as ff had is currently 4.3G

Retro Guy

--
Posted on: novaBBS
www.novabbs.com

Re: udforum quick hacks thread

<nh.520.49lav4@anon.com>

 copy mid   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!rocksolid2!def5!.POSTED.bogusentry!not-for-mail
From: poster@anon.com (Anonymous)
Newsgroups: rocksolid.nodes.help
Subject: Re: udforum quick hacks thread
Date: Thu, 13 Aug 2020 14:56:18 -0700
Organization: def5
Message-ID: <nh.520.49lav4@anon.com>
References: <qm8n9e$7ie$1@i2pn2.org>
Content-Type: text/plain; charset=UTF-8
Injection-Info: def5.org; posting-host="bogusentry:192.168.1.189";
logging-data="7047"; mail-complaints-to="usenet@def5.org"
 by: Anonymous - Thu, 13 Aug 2020 21:56 UTC

>Interesting. Symlinks for files, or directories? rslight has symlinked files without trouble, but haven't done so with directories.

Wasn't sure that it would work, but lighttpd makes no trouble :-) . I will still change back to nginx soon, i think. The migration of the webroot solved almost all 503 errors, but it still happens from time to time. i think nginx is a little better in performance.

> # rm -rf /your/forum/dir_backup
> # rm -rf /your/data/dir_backup
>Always scary :)

Oh yes. Many hours spent ....nuff said

>def3 really looks good. As you know, some of the css of rslight is copying some of the colour scheme of def3 because I like it.

yeah, it is just a very nice color scheme (which I have not done, as you know. Probs go to the locals css genius, wonder if he's still around, btw).

>On another ff note, I mentioned a while back the size of my ff database and how large it was. I was surprised then when I deleted ff from that server, the freed disk space was double the database size. The database was around 12G and once ff was completely >deleted, it freed 24G of space. Not sure why that is as I really doubt it duplicates the entire database.

Thats funny. Would be really interesting to learn why this was the case. My sql files take some 1,9 GB for the whole ff install, but then I don't store the messages in the db, but as plain files.

>The rslight database for the same groups as ff had is currently 4.3G

ff is a ressource hog for sure. if def3 wasn't the most used of my three nodes (by far), i would have dumped ff by now. but the users (read: lurkers) seem to like it better than bbs or vichan. or maybe the other addresses are just not as well known as def3.

cheers

trw

PS: just as I wanted to post this on def3: guess what: 503 again, lol. ok, nginx it is.

--
Posted on def2

Re: udforum quick hacks thread

<32c2de710310bdaead1e5e1c0b2b6779$1@rslight.i2p>

 copy mid   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!rocksolid2!.POSTED.localhost!not-for-mail
From: retro.guy@rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Re: udforum quick hacks thread
Date: Fri, 14 Aug 2020 08:40:41 +0000
Organization: Rocksolid Light
Message-ID: <32c2de710310bdaead1e5e1c0b2b6779$1@rslight.i2p>
References: <qm8n9e$7ie$1@i2pn2.org> <nh.520.49lav4@anon.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: novabbs.org; posting-account="retrobbs1"; posting-host="localhost:127.0.0.1";
logging-data="12796"; mail-complaints-to="usenet@novabbs.org"
User-Agent: Rocksolid Light (news.novabbs.com/getrslight)
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on novabbs.org
X-Rslight-Site: $2y$10$yrCZX2xEqKCHdIQowuSTHuIF9LksrXweujvw1ohhqZ2wkECi3H6fS
 by: Retro Guy - Fri, 14 Aug 2020 08:40 UTC

Anonymous wrote:

>>Interesting. Symlinks for files, or directories? rslight has symlinked files without trouble, but haven't done so with directories.

> Wasn't sure that it would work, but lighttpd makes no trouble :-) . I will still change back to nginx soon, i think. The migration of the webroot solved almost all 503 errors, but it still happens from time to time. i think nginx is a little better in performance.

A while back I think I posted a few settings for nginx that deals with this issue. Seems nginx gives php a very short time to respond, and sends a 503 if php doesn't finish in time. I'm guessing lighttpd may have similar settings, but I don't know for sure.

> ff is a ressource hog for sure. if def3 wasn't the most used of my three nodes (by far), i would have dumped ff by now. but the users (read: lurkers) seem to like it better than bbs or vichan. or maybe the other addresses are just not as well known as def3.

That was my thinking also before dropping ff in clearnet. Many (most?) users find it familiar, similar to other forum software, and they understand it quickly.

Retro Guy

--
Posted on: Rocksolid Light
rslight.i2p

found it

<nh.522.1h1ocj@anon.com>

 copy mid   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: poster@anon.com (Anonymous)
Newsgroups: rocksolid.nodes.help
Subject: found it
Date: Fri, 14 Aug 2020 11:46:49 -0700
Organization: i2pn2 (i2pn.org)
Message-ID: <nh.522.1h1ocj@anon.com>
References: <qm8n9e$7ie$1@i2pn2.org>
Content-Type: text/plain; charset=UTF-8
Injection-Info: i2pn2.org; posting-account="def2";
logging-data="9488"; mail-complaints-to="usenet@i2pn2.org"
 by: Anonymous - Fri, 14 Aug 2020 18:46 UTC

>A while back I think I posted a few settings for nginx that deals with this issue. Seems nginx gives php a very short time to respond, and sends a 503 if php doesn't finish in time. I'm guessing lighttpd may have similar settings, but I don't know for sure.

I found the thread (n def3 :-)), have to play around a little. Thanks for the hint,

cheers

trw

--
Posted on def2

1
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor