r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[Rebol School] Rebol School

Vladimir
30-Oct-2008
[717]
user name is "visaprom.com"
Total commander is set up simply...
use passive is ON...
here is what is happening with ftp/passive: true:

Net-log: "215 UNIX Type: L8"
Net-log: ["PWD" "25"]
Net-log: {257 "/" is your current location}
Net-log: ["PASV" "227"]
Net-log: "227 Entering Passive Mode (194,9,94,127,235,183)"
Net-log: [["CWD" port/path] ["25" "200"]]

this is where it pauses and then:

Net-log: "Closing cmd port 3565 21"
** Access Error: Network timeout
** Where: confirm
** Near: to-port: open/binary/new/direct server/:file
Pekr
30-Oct-2008
[718x2]
so username contains .com? Not sure it is allowed or that url parser 
handless it correctly, but I might be wrong ...
do you have any other account to try?
Anton
30-Oct-2008
[720]
He got passed the login stage - that's not the problem.
Vladimir
30-Oct-2008
[721]
just a sec...
Pekr
30-Oct-2008
[722]
ok, so port/path? What is the path you are trying to access?
Anton
30-Oct-2008
[723]
FTP runs over TCP, not UDP.
Vladimir
30-Oct-2008
[724]
as I said... it works from other connections.... only problem is 
this new one in this office.... it has to be something with router.... 
Im looking configuration pages for two days now... :(
Anton
30-Oct-2008
[725]
Does the FTP server identify itself anywhere in the log ?
Pekr
30-Oct-2008
[726]
So the same script works from other locations, right? Hmm, that is 
really weird ...
Vladimir
30-Oct-2008
[727x2]
here is script result...
to-port: open/binary/new/direct server/:file

URL Parse: visaprom.com password ftp.visaprom.com none apl/ ik104.zip
Net-log: ["Opening" "tcp" "for" "FTP"]
Net-log: [none ["220" "230"]]

Net-log: {220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------}
Net-log: "220-You are user number 188 of 400 allowed."
Net-log: "220-Local time is now 11:33. Server port: 21."
Net-log: "220-This is a private system - No anonymous login"
Net-log: {220-IPv6 connections are also welcome on this server.}

Net-log: {220 You will be disconnected after 15 minutes of inactivity.}
Net-log: [["USER" port/user] "331"]
Net-log: "331 User visaprom.com OK. Password required"
Net-log: [["PASS" port/pass] "230"]
Net-log: {230-User visaprom.com has group access to:  www     }
Net-log: "230 OK. Current restricted directory is /"
Net-log: ["SYST" "*"]
Net-log: "215 UNIX Type: L8"
Net-log: ["PWD" "25"]
Net-log: {257 "/" is your current location}
Net-log: ["PASV" "227"]
Net-log: "227 Entering Passive Mode (194,9,94,127,216,138)"
Net-log: [["CWD" port/path] ["25" "200"]]
Pekr
30-Oct-2008
[729]
Vladimir - IIRC, FTP is strange beast, and network admins don't like 
it. FTP uses port 21 to establish connection, but to transfer data, 
other port is used  - 20 IIRC.
Vladimir
30-Oct-2008
[730x4]
path is simply  one directory name....
thats what is bugging me.... ftp from windows command line works...
from commander works...
even my script works up to the point....
Pekr
30-Oct-2008
[734]
You also should be sure, that you use passive mode. So check your 
firewall, if port 20 is opened. But usually all ports going to WAN 
are opened ...
Vladimir
30-Oct-2008
[735x4]
[["CWD" port/path] ["25" "200"]]
what does it mean?
port 25?
Ill try to open port 25 ?
Pekr
30-Oct-2008
[739]
here's list from my system:

connecting to: www.jablunkovsko.cz
Net-log: [none ["220" "230"]]
Net-log: "220 (vsFTPd 1.2.1)"
Net-log: [["USER" port/user] "331"]
Net-log: "331 Please specify the password."
Net-log: [["PASS" port/pass] "230"]
Net-log: "230 Login successful."
Net-log: ["SYST" "*"]
Net-log: "215 UNIX Type: L8"
Net-log: ["PWD" "25"]
Net-log: {257 "/"}
Net-log: "Opening listen port 50061"
Net-log: [["PORT" port/locals/active-check] "200"]
Net-log: "200 PORT command successful. Consider using PASV."
Net-log: "Type: dir"
Net-log: ["TYPE A" "200"]
Net-log: "200 Switching to ASCII mode."
Net-log: ["LIST" ["150" "125"]]
Net-log: "150 Here comes the directory listing."
Net-log: "Closing listen port 50061"
Net-log: "Closing data port 193.85.151.2 50061 20"
Net-log: [none ["226" "250"]]
Net-log: "226 Directory send OK."
Net-log: "Caching cmd-port www.jablunkovsko.cz 50060 21"
Anton
30-Oct-2008
[740x2]
Check here to understand FTP return codes:
http://en.wikipedia.org/wiki/Ftp#FTP_return_codes
2xx: Positive Completion reply
  so you can see the 200 codes when things went well.
Pekr
30-Oct-2008
[742]
Vladimir: does simple one liner as print read ftp://user:[pass-:-ftp-:-domain-:-com] 
fails too?
Vladimir
30-Oct-2008
[743x2]
Ill try... in a minute
hey guys thanks for helping ! :)
Anton
30-Oct-2008
[745]
Well, it looks like the PureFTPd server likes passive mode less than 
it likes active mode.
Graham
30-Oct-2008
[746]
[["CWD" port/path] ["25" "200"]]
doesn't that mean, match the next response against 25*
Vladimir
30-Oct-2008
[747x2]
print read ftp://visaprom.com:[pass-:-ftp-:-visaprom-:-com]
URL Parse: visaprom.com 8ofhjo99 ftp.visaprom.com none none none
Net-log: ["Opening" "tcp" "for" "FTP"]
Net-log: [none ["220" "230"]]

Net-log: {220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------}
Net-log: "220-You are user number 210 of 400 allowed."
Net-log: "220-Local time is now 11:43. Server port: 21."
Net-log: "220-This is a private system - No anonymous login"
Net-log: {220-IPv6 connections are also welcome on this server.}

Net-log: {220 You will be disconnected after 15 minutes of inactivity.}
Net-log: [["USER" port/user] "331"]
Net-log: "331 User visaprom.com OK. Password required"
Net-log: [["PASS" port/pass] "230"]
Net-log: {230-User visaprom.com has group access to:  www     }
Net-log: "230 OK. Current restricted directory is /"
Net-log: ["SYST" "*"]
Net-log: "215 UNIX Type: L8"
Net-log: ["PWD" "25"]
Net-log: {257 "/" is your current location}
Net-log: ["PASV" "227"]
Net-log: "227 Entering Passive Mode (194,9,94,127,232,3)"
Net-log: "Type: dir"
Net-log: ["TYPE A" "200"]
Net-log: "Closing cmd port 3783 21"
** Access Error: Network timeout
** Where: confirm
** Near: print read ftp://visaprom.com:[8ofhjo99-:-ftp-:-visaprom-:-com]
here is what simple print read ftp does... :)
Pekr
30-Oct-2008
[749]
ouch, password leaked here ;-)
Graham
30-Oct-2008
[750]
the server is closing the port ..
Pekr
30-Oct-2008
[751]
I tried it here, here's where it starts to differ:

Net-log: ["TYPE A" "200"]
Net-log: "200 TYPE is now ASCII"
Net-log: ["LIST" ["150" "125"]]
Net-log: "150 Accepted data connection"
Net-log: "Closing data port 194.9.94.127 50078 56405"
Net-log: [none ["226" "250"]]
Net-log: "226-Options: -a -l "
Net-log: "226 11 matches total"
Net-log: "Caching cmd-port 194.9.94.127 50077 21"

apl/ apl101/ apl104/ apl105/ apl201/ apl202/ apl204/ apl206/ visaprom.com/
Vladimir
30-Oct-2008
[752]
never mind ..... :) you are good guys :)
Graham
30-Oct-2008
[753x2]
yep, works for me too ....
must be your router
Vladimir
30-Oct-2008
[755]
so where to look for error?
Pekr
30-Oct-2008
[756]
There seems to be problem with cmd port. But that runs on port 21, 
whereas data usually runs on 20. Have you tried with system/schemes/ftp/passive: 
true   ?
Graham
30-Oct-2008
[757x4]
tried that
it's not a server problem ...
as it works for us
have you tried puting your PC into the DMZ ?
Pekr
30-Oct-2008
[761]
Dunno how FTP works, but if not in passive mode, then ftp server 
tries to open data port on your side, but that might not be true. 
Definitely some issue on the router ...
Graham
30-Oct-2008
[762]
ps, this group is web public .. better change your password now!
Pekr
30-Oct-2008
[763x2]
Do you have statefull firewall enabled? What kind of router do you 
have?
Graham: good catch! Vladimir - you better change your password ...
Anton
30-Oct-2008
[765x2]
Graham, yes. "Confirm pairs of stimuli to their expected responses"
Graham, I mean, No.