Noob question - Internet Explorer

c++ / delphi package - dll injection and api hooking
Post Reply
2knightmare
Posts: 5
Joined: Thu Dec 16, 2004 2:06 pm

Noob question - Internet Explorer

Post by 2knightmare »

Hi all!
I got some files which should be uploaded using the IE.
I know it's possible but i don't know how *g*
I need to upload them to a FTP server but the IE should do this for my app! How can is Hook the IE (inject a DLL or what) to upload files on my applications command?
Thanks! Bye
madshi
Site Admin
Posts: 10764
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

Why do you want to do that?
2knightmare
Posts: 5
Joined: Thu Dec 16, 2004 2:06 pm

Post by 2knightmare »

Hi!
I want to do that because I need to upload files via FTP to my server which checks the referrer..thats kind of anti-automation (blocks FTP tools) so i can't use the tool instead of IE itself!
I thought about sending the data via navigation link and safe it with a script but theres not enough space for everything and thats kind of unsafe for users.but this method maybe also...don't know!
But my qeustion wasn't why to use.
Thx!
sry 4 my english.
Have a nice evening!Bye
madshi
Site Admin
Posts: 10764
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

I don't know how the server checks which program tries to upload the file (FTP tool or not). Do you know how? The crucial to know if you want to solve the problem.
2knightmare
Posts: 5
Joined: Thu Dec 16, 2004 2:06 pm

Post by 2knightmare »

the server uses a php script which checks the referrer so u cannot upload things from other pages.. ftp tools dont have a referrer becuse they dont use html!
so back to my question.. i can create a thread, inject a dll and execute it or how to do it ?
madshi
Site Admin
Posts: 10764
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

I'm not internet expert. But why do you need to hook into the IE? Why don't you use TWebBrowser instead (when using Delphi)? I think that should be safer/cleaner than trying to do violence to IE.
2knightmare
Posts: 5
Joined: Thu Dec 16, 2004 2:06 pm

Post by 2knightmare »

of cause it would be cleaner.. but you cannot use ftp on twebbrowser..
thats the feature of the ie i need.. it switches automaticly between ftp and html..
madshi
Site Admin
Posts: 10764
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

Well, do you know which API the IE uses to do FTP? Otherwise I don't know to trigger it for your purpose.
2knightmare
Posts: 5
Joined: Thu Dec 16, 2004 2:06 pm

Post by 2knightmare »

i think it uses the same as it uses for http doesn't it ?
madshi
Site Admin
Posts: 10764
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

I've no idea. As I said, I'm not internet programming expert.
Post Reply