[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Logging into a Proxy with FTPAPI



   I was able to log in! Here is the code I wrote to get it to work:
   [1]https://gist.github.com/0c469a1a51445c4d20a4. Please give me
   feedback as to what is needed for it to be incorporated into the base
   code. I can clean up whatever needs to be cleaned. I am not set on the
   name either, just what I choose to make it work. Now to getting the
   next part working....

   --
   Mike Wills
   [2]http://mikewills.me

   On Mon, Aug 8, 2011 at 11:49 AM, Mike Wills <[3]mike@xxxxxxxxxxxx>
   wrote:

   It looks like the API is trying to pull information before it sends
   the log in. I am out of my comfort zone for the terminology. My guess
   is that this works on the initial log in because it is looking for the
   connected message first. The second log in doesn't have that message
   waiting and times out looking for one.

   I forgot about modifying the log in subprocedure as talked about in a
   previous discussion when I wrote this (hey, it WAS almost midnight).
   I'll attempt that next and see if I can get it to work that way. I
   WILL get it to work. I will then post the code for inclusion into the
   core.

     --
     Mike Wills
     [4]http://mikewills.me

   On Mon, Aug 8, 2011 at 10:32 AM, Mike Krebs
   <[5]mkrebs@xxxxxxxxxxxxxxxxxx> wrote:

     Mike,
     It looks like you got logged in to the proxy. Now you are trying to
     get logged in to the mailbox system. We don't have quite enough
     information to help you as you went to the problem line but not how
     you got there. What code are you running at the getfiles level?
     The Reply(wwSock) procedure is what reads stuff coming back from
     the server. From the log, not sure you sent it a user/password. So
     you go to reply without sending something...nothing to receive and
     eventually a timeout. Does control come back to getfiles after the
     230 User authenticated to proxy?

   -----Original Message-----
   From: [6]ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
   [mailto:[7]ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Mike
   Wills
   Sent: Sunday, August 07, 2011 11:21 PM
   To: HTTPAPI and FTPAPI Projects
   Subject: Logging into a Proxy with FTPAPI
   I am working through the code on my login problem (vacation, and
   Windows VM problems caused my delays).
   The first point of MY problem starts at the line in FTP_LoginLong:
   eval      wwReply = Reply(wwSock)
   I get a large delay, then the problem exits from here.
   The whole stack of where it exits:
   Reply():
   if        RecvLine(peSocket: wwLine) < 0
   RecvLine():
   c                   callp     select(peSocket+1: %addr(wwSet): *NULL:
   c                                *NULL: p_timeval)
   takes a long time to run, then
   c                   eval      rc = recv(peSocket: p_char: 1: 0)
   fails to run with a -1 returned.
   FTP Log
   call getfiles
   Job 110824/MIKEW/MIKEPCB1 held by user MIKEW with option SPLFILE(*NO).
   Job 110824/MIKEW/MIKEPCB1 released by user MIKEW.
   0: 220-
   0:  ********************************* WARNING
    *****************************
   0:            This system is for use by authorized users only.
   0:
    *********************************************************************
   **
   0:  All activities on this system are recorded and may be monitored
   for
    the
   0:  purpose of tracking down intruders.  In the course of monitoring
    individuals
   0:  improperly using this system or during system maintenance, the
    activities of
   0:  authorized users may also be monitored.
   0:  Anyone using this system expressly consents to such monitoring and
   is
    advised
   0:  that if such monitoring reveals possible evidence of criminal
    activity,
   0:  system personnel may provide the evidence of such monitoring to
   law
   0:  enforcement officials.
   0:
   0:  GXS, Inc. 9711 Washingtonian Blvd, MD 20878  ********************
   0:  ***************************************************
   0: 220 Proxy first requires authentication
   0: > USER pnet1898
   0: 331 Please specify the password.
   0: > PASS **********
   0: 230 User authenticated to proxy.
   A connection with a remote socket was reset by that socket.
   0: > QUIT
   /*      */
   I am still trying to grasp what all this is doing. Do you have any
   suggestions of where I can begin my adventure? All I see right now is
   a dark room with a door to the north, south, east, and west.

     -------------------------------------------------------------------
     ----
     This is the FTPAPI mailing list.  To unsubscribe, please go to:
     [8]http://www.scottklement.com/mailman/listinfo/ftpapi
     -------------------------------------------------------------------
     ----
     -------------------------------------------------------------------
     ----
     This is the FTPAPI mailing list.  To unsubscribe, please go to:
     [9]http://www.scottklement.com/mailman/listinfo/ftpapi
     -------------------------------------------------------------------
     ----

References

   1. https://gist.github.com/0c469a1a51445c4d20a4
   2. http://mikewills.me/
   3. mailto:mike@xxxxxxxxxxxx
   4. http://mikewills.me/
   5. mailto:mkrebs@xxxxxxxxxxxxxxxxxx
   6. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
   7. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
   8. http://www.scottklement.com/mailman/listinfo/ftpapi
   9. http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------