Results 1 to 12 of 12

Threaded View

  1. #1
    kotentopf's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    602
    Reputation
    26
    Thanks
    251

    [Source] Down-/Upload via FTP

    [PHP]void Upload(wchar_t *Domain, wchar_t *User, wchar_t *Pass, wchar_t *FTPPath, wchar_t *HDDPath)
    {
    HINTERNET hOpen, hConnection;

    hOpen = InternetOpen(L"Everything", INTERNET_OPEN_TYPE_DIRECT, NULL, NULL, 0);

    hConnection = InternetConnect(hOpen, Domain, INTERNET_DEFAULT_FTP_PORT,
    User, Pass, INTERNET_SERVICE_FTP, 0, 0);

    FtpPutFile(hConnection, HDDPath, FTPPath,
    FTP_TRANSFER_TYPE_BINARY, 0);

    InternetCloseHandle(hConnection);
    InternetCloseHandle(hOpen);
    }
    void Download(wchar_t *Domain, wchar_t *User, wchar_t *Pass, wchar_t *FTPPath, wchar_t *HDDPath)
    {

    HINTERNET hOpen, hConnection;

    hOpen = InternetOpen(L"Everything", INTERNET_OPEN_TYPE_DIRECT, NULL, NULL, 0);

    hConnection = InternetConnect(hOpen, Domain), INTERNET_DEFAULT_FTP_PORT,
    User, Pass , INTERNET_SERVICE_FTP, 0, NULL);

    FtpGetFile(hConnection, FTPPath, HDDPath,0,0,
    FTP_TRANSFER_TYPE_BINARY, 0);

    InternetCloseHandle(hConnection);
    InternetCloseHandle(hOpen);
    }[/PHP]

    The needed datas are not crypted so u can see they with a debugger

    found ur own way to make it unvisibel

    have fun with it

  2. The Following 2 Users Say Thank You to kotentopf For This Useful Post:

    Stephen (09-27-2010),whit (09-27-2010)

Similar Threads

  1. Upload to FTP
    By Sixx93 in forum Coders Lounge
    Replies: 10
    Last Post: 11-26-2011, 07:49 AM
  2. [Source]Hooking via forced exception
    By Void in forum C++/C Programming
    Replies: 10
    Last Post: 10-03-2010, 08:15 AM
  3. (REQUEST)Drop down menu source code?
    By IownzDAworldz in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 13
    Last Post: 06-18-2010, 09:29 AM
  4. ftp upload by php?
    By teun95 in forum PHP Programming
    Replies: 3
    Last Post: 02-23-2010, 12:14 PM
  5. CS Source Clan/Server
    By Dave84311 in forum General
    Replies: 20
    Last Post: 10-04-2006, 12:21 PM