Rocksolid Light

Welcome to Rocksolid Light

register   nodelist   faq  


rocksolid / rocksolid.programming / Re: vichan to do list

SubjectAuthor
* vichan to do listAnonymous
+- threadsAnonymous
+* subjectAnonymous
|`* Re: subjectRetro Guy
| `* Re: subjectRetro Guy
|  `* Re: subjectRetro Guy
|   `- Re: subjectanon
+* status updateAnonymous
|`* Re: status updateRetro Guy
| `* Re: status updateRetro Guy
|  +- Re: status updateRetro Guy
|  `* Re: status updateanon
|   +* Re: status updateanon
|   |`* Re: status updateRetro Guy
|   | `* Re: status updateanon
|   |  `* Re: status updateanon
|   |   `* Re: status updateRetro Guy
|   |    +- Re: status updateRetro Guy
|   |    `* Re: status updateanon
|   |     `* Re: status updateRetro Guy
|   |      `- Re: status updateRetro Guy
|   `- Re: status updateRetro Guy
+* Re: vichan to do listanon
|+- Re: vichan to do listRetro Guy
|`* Re: vichan to do listanon
| `* Re: vichan to do listRetro Guy
|  `* Re: vichan to do listRetro Guy
|   `* Re: vichan to do listRetro Guy
|    `* Re: vichan to do listanonymous
|     `* Re: vichan to do listRetro Guy
|      `* Re: vichan to do listanon
|       `* Re: vichan to do listRetro Guy
|        `* Re: vichan to do listRetro Guy
|         `* Re: vichan to do listRetro Guy
|          `* Re: vichan to do listanon
|           +- Re: vichan to do listanon
|           `* Re: vichan to do listRetro Guy
|            `* Re: vichan to do listRetro Guy
|             `* Re: vichan to do listanonymous
|              `* Re: vichan to do listanonymous
|               +- Re: vichan to do listanonymous
|               `- Re: vichan to do listRetro Guy
+* Re: vichan to do listanon
|`* Re: vichan to do listanon
| `- Re: vichan to do listMarc SCHAEFER
+* Re: vichan to do listanon
|`- Re: vichan to do listRetro Guy
+* i just uploaded my code hereAnonymous
|`- Re: i just uploaded my code hereRetro Guy
+- so far seems to workAnonymous
+- alright, multi server updateAnonymous
+* posting to new serverAnonymous
|`- Re: posting to new serverRetro Guy
+- errorAnonymous
+* posting articlesAnonymous
|`- Re: posting articlesRetro Guy
+* alright, i have it goingAnonymous
|`* Re: alright, i have it goingRetro Guy
| `- Re: alright, i have it goingRetro Guy
+* overchanAnonymous
|`- Re: overchanRetro Guy
+- send to rslightAnonymous
+- btw, what about your vichan ?Anonymous
+* jsonAnonymous
|`- Re: jsonMarc SCHAEFER
+- jsonAnonymous
+- date problemsAnonymous
+- ok, fixed the dateAnonymous
+* almost donetrw
|`- Re: almost doneRetro Guy
+- almost doneAnonymous
`* latest codeAnonymous
 `* Re: latest codeRetro Guy
  `* Re: latest codeRetro Guy
   `* Re: latest codeanon
    `* Re: latest codeRetro Guy
     `* Re: latest codeanon
      `* Re: latest codeanon
       `* Re: latest codeanon
        `- Re: latest codeanon

Subject: Re: status update
From: Retro Guy@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.programming
Organization: Rocksolid Light
Date: Thu, 4 Jun 2020 09:10 UTC
anon wrote:


It's basically message_read separate from newsportal

you mean i could just include this without all the rest of newsportal (like a standalone function or class) ? that would be wonderful.

That "should" be how it works. I ran it numerous times on my test site, and also ran it quite a few times through the nntp server, and I have not noticed any issues.

Retro Guy

--
Posted on: Rocksolid Light
www.novabbs.com



Subject: Re: status update
From: Retro Guy@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.programming
Organization: Rocksolid Light
Date: Thu, 4 Jun 2020 09:27 UTC
Retro Guy wrote:

anon wrote:


It's basically message_read separate from newsportal

you mean i could just include this without all the rest of newsportal (like a standalone function or class) ? that would be wonderful.

That "should" be how it works. I ran it numerous times on my test site, and also ran it quite a few times through the nntp server, and I have not noticed any issues.

I should say I ran it as a standalone script:
$msg = shell_exec("/etc/rslight/scripts/vichan.php ".$command[1]." ".$group);

It's basically 'vichan.php <article_number> <group>' Right now it echos a serialzed output, that can easily be changed back to the class with unserialize(...);

Again, if you do this you'll need to not hardcode the directories, etc.

Retro Guy



--
Posted on: Rocksolid Light
www.novabbs.com



Subject: Re: vichan to do list
From: anon@anon.com (anon)
Newsgroups: rocksolid.programming
Organization: def5
Date: Thu, 4 Jun 2020 11:47 UTC

It's basically 'vichan.php <article_number> <group>' Right now it echos a serialzed output, that can easily be changed back to the class with unserialize(...);

the main thing for me is if i can get the text part of the message and the files nicely separated (bonus points for file detection and decoding of course).
what is the representation of the data when there is an attachment ?
and where can i find the script :-) ?

cheers

trw

Posted on def4


Subject: Re: vichan to do list
From: Retro Guy@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.programming
Organization: Rocksolid Light
Date: Thu, 4 Jun 2020 10:45 UTC
anon wrote:


It's basically 'vichan.php <article_number> <group>' Right now it echos a serialzed output, that can easily be changed back to the class with unserialize(...);

the main thing for me is if i can get the text part of the message and the files nicely separated (bonus points for file detection and decoding of course).
what is the representation of the data when there is an attachment ?
and where can i find the script :-) ?

I attached the script to an earlier post, but I just put it on the rslight download site 'vichan.php.txt'.

The output is exactly what message_read would output, just it's serialized so it's one big string. 'unserialze()' will change it back to a class. You should be able to modify it to output whatever format you want.

If I understand correctly, vichan was using the output of message_read, and you should be able to get that same output with this script. You may want another way to introduce the message to the script, but processing should be the same as in rslight.

Retro Guy

--
Posted on: Rocksolid Light
www.novabbs.com



Subject: Re: vichan to do list
From: anon@anon.com (anon)
Newsgroups: rocksolid.programming
Organization: def5
Date: Thu, 4 Jun 2020 12:11 UTC

cm6lpdymfvvndq3wxpu676m7wd2cjimhy7axdlebdejbv7uk3hcq.b32.i2p

200 Rocksolid Light NNTP Server ready (no posting)
group rocksolid.shared.test
211 170 1 170 rocksolid.shared.test
vichan 90

this gives me syntax error. but i appreciate this:

help
100 Sorry, can't help

lol

Posted on def4


Subject: Re: vichan to do list
From: Retro Guy@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.programming
Organization: Rocksolid Light
Date: Thu, 4 Jun 2020 10:52 UTC
anon wrote:


cm6lpdymfvvndq3wxpu676m7wd2cjimhy7axdlebdejbv7uk3hcq.b32.i2p

200 Rocksolid Light NNTP Server ready (no posting)
group rocksolid.shared.test
211 170 1 170 rocksolid.shared.test
vichan 90

this gives me syntax error. but i appreciate this:

help
100 Sorry, can't help

lol

Oh, I removed the VICHAN command from the nntp server after you mentioned you didn't want to use different commands. I can put it back if you like.



--
Posted on: Rocksolid Light
www.novabbs.com



Subject: Re: vichan to do list
From: Retro Guy@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.programming
Organization: Rocksolid Light
Date: Thu, 4 Jun 2020 10:57 UTC
Retro Guy wrote:

anon wrote:


cm6lpdymfvvndq3wxpu676m7wd2cjimhy7axdlebdejbv7uk3hcq.b32.i2p

200 Rocksolid Light NNTP Server ready (no posting)
group rocksolid.shared.test
211 170 1 170 rocksolid.shared.test
vichan 90

this gives me syntax error. but i appreciate this:

help
100 Sorry, can't help

lol

Oh, I removed the VICHAN command from the nntp server after you mentioned you didn't want to use different commands. I can put it back if you like.

Just added it back if you would like to check it out:

200 Rocksolid Light NNTP Server ready (no posting)
group rocksolid.shared.test
211 176 1 176 rocksolid.shared.test
vichan 90
O:11:"messageType":2:{s:6:"header";O:10:"headerType":26:{s:6:"number";N;s:2:"id";s:24:"<ts.338.39ms37@anon.com>";s:4:"from";s:15:"poster@anon.com";s:4:"name";s:9:"Anonymous";s:7:"subject";s:3:"yes";s:10:"newsgroups";s:21:"rocksolid.shared.test";s:8:"followup";N;s:4:"date";i:1590584048;s:11:"date_thread";N;s:12:"organization";s:16:"i2pn2 (i2pn.org)";s:10:"xnoarchive";N;s:10:"references";a:1:{i:0;s:59:"<635faa159efe9999f6f2b469d70207e6$1@z5bqfv5v75kxy7pj.onion>";}s:13:"bestreference";N;s:25:"content_transfer_encoding";s:4:"8bit";s:12:"mime_version";N;s:12:"content_type";a:1:{i:0;s:10:"text/plain";}s:20:"content_type_charset";a:1:{i:0;s:5:"utf-8";}s:17:"content_type_name";a:1:{i:0;s:7:"unnamed";}s:21:"content_type_boundary";N;s:19:"content_type_format";a:1:{i:0;s:5:"fixed";}s:7:"answers";N;s:8:"isAnswer";b:0;s:8:"username";s:6:"poster";s:10:"user_agent";N;s:7:"isReply";N;s:10:"threadsize";N;}s:4:"body";a:1:{i:0;s:18:"all still working
";}}

Retro Guy


--
Posted on: Rocksolid Light
www.novabbs.com



Subject: Re: vichan to do list
From: Retro Guy@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.programming
Organization: Rocksolid Light
Date: Thu, 4 Jun 2020 11:02 UTC
Retro Guy wrote:

Retro Guy wrote:

anon wrote:


cm6lpdymfvvndq3wxpu676m7wd2cjimhy7axdlebdejbv7uk3hcq.b32.i2p

200 Rocksolid Light NNTP Server ready (no posting)
group rocksolid.shared.test
211 170 1 170 rocksolid.shared.test
vichan 90

this gives me syntax error. but i appreciate this:

help
100 Sorry, can't help

lol

Oh, I removed the VICHAN command from the nntp server after you mentioned you didn't want to use different commands. I can put it back if you like.

Just added it back if you would like to check it out:

200 Rocksolid Light NNTP Server ready (no posting)
group rocksolid.shared.test
211 176 1 176 rocksolid.shared.test
vichan 90
O:11:"messageType":2:{s:6:"header";O:10:"headerType":26:{s:6:"number";N;s:2:"id";s:24:"<ts.338.39ms37@anon.com>";s:4:"from";s:15:"poster@anon.com";s:4:"name";s:9:"Anonymous";s:7:"subject";s:3:"yes";s:10:"newsgroups";s:21:"rocksolid.shared.test";s:8:"followup";N;s:4:"date";i:1590584048;s:11:"date_thread";N;s:12:"organization";s:16:"i2pn2 (i2pn.org)";s:10:"xnoarchive";N;s:10:"references";a:1:{i:0;s:59:"<635faa159efe9999f6f2b469d70207e6$1@z5bqfv5v75kxy7pj.onion>";}s:13:"bestreference";N;s:25:"content_transfer_encoding";s:4:"8bit";s:12:"mime_version";N;s:12:"content_type";a:1:{i:0;s:10:"text/plain";}s:20:"content_type_charset";a:1:{i:0;s:5:"utf-8";}s:17:"content_type_name";a:1:{i:0;s:7:"unnamed";}s:21:"content_type_boundary";N;s:19:"content_type_format";a:1:{i:0;s:5:"fixed";}s:7:"answers";N;s:8:"isAnswer";b:0;s:8:"username";s:6:"poster";s:10:"user_agent";N;s:7:"isReply";N;s:10:"threadsize";N;}s:4:"body";a:1:{i:0;s:18:"all still working
";}}

Retro Guy

This calls the vichan.php script I put up for download, and sends out the result in reply to the ViCHAN command. This command is not in the nntp.php I have on the download site. If you want it I'll send this copy also. It will require vichan.php to be in the scripts/ directory.

It's there now as vichan_nntp.php,txt. You'll need to rename it to 'nntp.php'.

Retro Guy


Retro Guy


--
Posted on: Rocksolid Light
www.novabbs.com



Subject: Re: vichan to do list
From: anon@anon.com (anon)
Newsgroups: rocksolid.programming
Organization: def5
Date: Thu, 4 Jun 2020 12:27 UTC

actually, the messages are mime encoded so vichan should be able to parse them if they are sent correctly. that would be the best way imo (to let vichan do the parsing).
if i could just read the code that was used to upload.

Posted on def4


Subject: Re: vichan to do list
From: anon@anon.com (anon)
Newsgroups: rocksolid.programming
Organization: def5
Date: Thu, 4 Jun 2020 13:22 UTC

i will try that soon. meanwhile, here is what a request to vichans post.php looks like:

POST /post.php HTTP/1.1
Host: xxxxxxxxxxxxxxxx.onion
User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:68.0) Gecko/20100101 Firefox/68.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://xxxxxxxxxxxxxxxx.onion/ts/index.html
Content-Type: multipart/form-data; boundary=---------------------------234374660515071969761262837861
Content-Length: 16935
Connection: keep-alive
Upgrade-Insecure-Requests: 1

-----------------------------234374660515071969761262837861
Content-Disposition: form-data; name="nke73c⛻lgoujxyd8⛆4asvr6wf92ih0t"

♦M+<Q4]#(X7J☳FLzh*q,⛻-x8'⚜☯AHac☀IS
-----------------------------234374660515071969761262837861
Content-Disposition: form-data; name="q"

M3Ce⚋tv+&hA `!>1j;q
-----------------------------234374660515071969761262837861
Content-Disposition: form-data; name="board"

ts
-----------------------------234374660515071969761262837861
Content-Disposition: form-data; name="t82o♁kq5970cs3♠dpujmbwvz"

66873
-----------------------------234374660515071969761262837861
Content-Disposition: form-data; name="page"

1
-----------------------------234374660515071969761262837861
Content-Disposition: form-data; name="lastname"


-----------------------------234374660515071969761262837861
Content-Disposition: form-data; name="subject"

testing some
-----------------------------234374660515071969761262837861
Content-Disposition: form-data; name="post"

Post
-----------------------------234374660515071969761262837861
Content-Disposition: form-data; name="url"

♊TK@!mr2=QM4J:).0I65ny,⛳oWa
-----------------------------234374660515071969761262837861
Content-Disposition: form-data; name="body"

here is some text
-----------------------------234374660515071969761262837861
Content-Disposition: form-data; name="text"

2nP.e0mZ_C{,)E?Q>d!1♭b@V|J7<
-----------------------------234374660515071969761262837861
Content-Disposition: form-data; name="file"; filename="woman-e1590571316950-380x214.jpg"
Content-Type: image/jpeg

<FF><D8><FF><E0>^@^PJFIF^@^A^A^A^@H^@H^@^@<FF><DB>^@C^@^H^F^F^G^F^E^H^G^G^G            ^L^T^M^L^K^K^L^Y^R^S^O^T^]^Z^_^^^]^Z^\^\ $.' ",#^\^\
|
|cut out the rest here
|

-----------------------------234374660515071969761262837861
Content-Disposition: form-data; name="password"


-----------------------------234374660515071969761262837861
Content-Disposition: form-data; name="hash"

9f9927bd6ca11c6b4379c17b9273cab58fadefb3
-----------------------------234374660515071969761262837861--


note all the fields that are disregarded later, just to catch spambots. :-)

if i can rewrite that with php and send it as raw http i think we might be able to use the native post.php of vichan (with some minor adaptions).
but for shortterm, i will try your script soon.

cheers

trw

Posted on def4


Pages:12345678
rocksolid light 0.6.5e
clearnet i2p tor