• exec/load/ftp.js

    From deuce@VERT to CVS commit on Saturday, April 04, 2020 00:40:13
    exec/load ftp.js NONE 1.1
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv1895

    Added Files:
    ftp.js
    Log Message:
    Add a BAJA-simple FTP client.

    var f = new FTP('vert.synchro.net');
    f.cwd('main');
    f.cwd('uploads');
    print(f.pwd());
    if (f.dir().search(/\scrackme/) !== -1) {
    f.get('crackme', '/home/derpy/todo');
    f.delete('crackme');
    }
    f.put('/etc/passwd', 'crackme');
    f.logout();




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Saturday, April 04, 2020 00:43:30
    exec/load ftp.js 1.1 1.2
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv2951

    Modified Files:
    ftp.js
    Log Message:
    Oh right, that's what dport was for...




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Saturday, April 04, 2020 00:53:52
    exec/load ftp.js 1.2 1.3
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv4873

    Modified Files:
    ftp.js
    Log Message:
    Fix exception string.




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Saturday, April 04, 2020 13:53:08
    exec/load ftp.js 1.3 1.4
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv16929

    Modified Files:
    ftp.js
    Log Message:
    Add account parameter... start going through the RFCs...




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Saturday, April 04, 2020 13:55:38
    exec/load ftp.js 1.4 1.5
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv17198

    Modified Files:
    ftp.js
    Log Message:
    CDUP and fix PASS derp.




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Saturday, April 04, 2020 14:12:10
    exec/load ftp.js 1.5 1.6
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv25324

    Modified Files:
    ftp.js
    Log Message:
    Support SMNT, Remove duplicate code by passing the command to data_socket()




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Saturday, April 04, 2020 14:14:08
    exec/load ftp.js 1.6 1.7
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv25602

    Modified Files:
    ftp.js
    Log Message:
    Return quoted part of PWD 257 response.




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Saturday, April 04, 2020 14:14:28
    exec/load ftp.js 1.7 1.8
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv25683

    Modified Files:
    ftp.js
    Log Message:
    Remove testing code.




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Saturday, April 04, 2020 14:21:14
    exec/load ftp.js 1.8 1.9
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv26639

    Modified Files:
    ftp.js
    Log Message:
    CDUP requires a response.




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Saturday, April 04, 2020 14:39:07
    exec/load ftp.js 1.9 1.10
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv29119

    Modified Files:
    ftp.js
    Log Message:
    Only use EPRT/EPSV if the contril connection is IPv6




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Saturday, April 04, 2020 16:15:45
    exec/load ftp.js 1.10 1.11
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv17417

    Modified Files:
    ftp.js
    Log Message:
    A bunch more commands.




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Saturday, April 04, 2020 16:27:25
    exec/load ftp.js 1.11 1.12
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv19530

    Modified Files:
    ftp.js
    Log Message:
    Alphabetize by FTP command.




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Tuesday, April 07, 2020 22:24:37
    exec/load ftp.js 1.12 1.13
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv15333

    Modified Files:
    ftp.js
    Log Message:
    When an invalid (unexpected) response is received from the server, include the invalid string in the exception message.
    When a file fails to open, include the error value in the exception message. When there is a socket error, include the error value in the exception message.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Wednesday, April 08, 2020 02:08:56
    exec/load ftp.js 1.13 1.14
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv18434/load

    Modified Files:
    ftp.js
    Log Message:
    Fix exception message in PASV response handling.




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Thursday, April 09, 2020 21:33:09
    exec/load ftp.js 1.14 1.15
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv1435/load

    Modified Files:
    ftp.js
    Log Message:
    If we get a 125 response, ensure the socket is, in fact, connected.




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Thursday, April 09, 2020 23:47:03
    exec/load ftp.js 1.15 1.16
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv17518/load

    Modified Files:
    ftp.js
    Log Message:
    Some fixes:
    1) Fix ACCT command
    2) RMD response is 250, not 221
    3) When sending a file, throw an exception if a 226 response is not received
    4) Before sending a command, if there is data available on the socket,
    log an error (don't throw an exception).




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Thursday, April 09, 2020 23:56:46
    exec/load ftp.js 1.16 1.17
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv21913/load

    Modified Files:
    ftp.js
    Log Message:
    Support response code 120 (expected delay) during connection.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Friday, April 10, 2020 00:11:19
    exec/load ftp.js 1.17 1.18
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv24166/load

    Modified Files:
    ftp.js
    Log Message:
    Fix some bugs, parse continuations more strictly...

    For example, this is a valid single response:
    220-I'm so clever
    221 Yes, yes I am
    220 So very clever




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Friday, April 10, 2020 20:20:53
    exec/load ftp.js 1.18 1.19
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv5560

    Modified Files:
    ftp.js
    Log Message:
    Move the Unexpected data warning thing so it only happens if there was a command to send.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Sunday, April 12, 2020 08:37:18
    exec/load ftp.js 1.19 1.20
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv14147/load

    Modified Files:
    ftp.js
    Log Message:
    Fix infinite loop when recvline() fails.




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Sunday, April 12, 2020 20:49:27
    exec/load ftp.js 1.20 1.21
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv10629

    Modified Files:
    ftp.js
    Log Message:
    Created a "revision" property so that apps can display/log the revision of this script file.
    Change wordage of recvline() returned null exception (it's a timeout).



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Sunday, April 12, 2020 21:55:47
    exec/load ftp.js 1.21 1.22
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv20946

    Modified Files:
    ftp.js
    Log Message:
    Give do_get() the same love that do_sendfile() got.




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Wednesday, May 20, 2020 18:56:45
    exec/load ftp.js 1.22 1.23
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv11401

    Modified Files:
    ftp.js
    Log Message:
    Move the telnet-IAC expansion of sent-commands where it will actually have an effect on the sent command (instead of the logged command). Nothing ever sends an FTP command with 0xFF in it, so this should have no effect on anything. Added more details to the exception messages thrown from the cmd() method (include the command that we're trying to send).



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net