Jump to content

Willkommen Gast

Navigation

Links

Als Gast hast du nur eingeschränkten Zugriff!


Sign In 

Create Account

Du bist nicht angemeldet und hast somit nur einen sehr eingeschränkten Zugriff auf die Features unserer Community.
Um vollen Zugriff zu erlangen musst du dir einen Account erstellen. Der Vorgang sollte nicht länger als 1 Minute dauern.

  • Antworte auf Themen oder erstelle deine eigenen.
  • Schalte dir alle Downloads mit Highspeed & ohne Wartezeit frei.
  • Erhalte Zugriff auf alle Bereiche und entdecke interessante Inhalte.
  • Tausche dich mich anderen Usern in der Shoutbox oder via PN aus.
 

   

Photo

[C#] Download [WinAPI]

* * * * * 5  ( 1 votes )

  • Please log in to reply
No replies to this topic

#1
Rastajan

Rastajan

    Malware Experte

  • Members
  • PipPipPipPipPipPipPip
  • Likes
    200
  • 101 posts
  • 299 Bedankt
  • 652959
  • Android, Android [root]
  • Windows, Linux
Ein simples Besipiel für einen Donwload via WinAPI --> urlmon.dll


using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;

/*
* If result is 0 then download was successful
* Regards, Rastajan
*/

namespace Download
{
class Download
{
[DllImport("urlmon.dll", CharSet = CharSet.Auto, SetLastError = true)]
static extern Int32 URLDownloadToFile(
[MarshalAs(UnmanagedType.IUnknown)] object pCaller,
[MarshalAs(UnmanagedType.LPWStr)] string szURL,
[MarshalAs(UnmanagedType.LPWStr)] string szFileName,
Int32 dwReserved,
IntPtr lpfnCB);

public static int WinAPIDownload(string URL, string Destination)
{
return URLDownloadToFile(null, URL, Destination, 0, IntPtr.Zero);
}
}
}


Gruß, Rastajan.
  • juPP and seven8 like this
â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘
░░░░░░░█░█▀▀░░█▀█░░█░░█░█▀░░
░░░░░░░█░▀▀█░░█▀█░░█░░█░█▀░░
░▀░▀░▀░▀░▀▀▀░░▀░▀░░▀▀░▀░▀▀░░
â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘



  Topic Forum Started By Stats Last Post Info

user(s) are reading this topic

members, guests, anonymous users


This topic has been visited by 45 user(s)


    Aaron, adramax, Alexxy, Ar@m!s, banan, bbking, Becks, Binary1337, Born2Hack, C0rr0nA, C64, coketroll, Crax, Cube, dd34t0r, Fr0nz, Framerater, hikhack7, Iron, Janjij, juPP, kiwitone, M4x1k1ng2014, makaun, Matze1169, Mk3E, ObbedCoder, ooo12, paulaner, Phesii, PHIPU, Ragevalley, Rastajan, Red Hat, SAR, scrack, seven8, smc2014, Smn, terratec1991, uel888, umarex, webpanel0815, x1z0ng, Xenio
Die besten Hacking Tools zum downloaden : Released, Leaked, Cracked. Größte deutschsprachige Hacker Sammlung.