elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Rompecabezas de Bitcoin, Medio millón USD en premios


+  Foro de elhacker.net
|-+  Programación
| |-+  Programación General
| | |-+  .NET (C#, VB.NET, ASP)
| | | |-+  Programación Visual Basic (Moderadores: LeandroA, seba123neo)
| | | | |-+  [SRC] Nod 32 Downloader 1.6.1
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: [SRC] Nod 32 Downloader 1.6.1  (Leído 1,859 veces)
Elemental Code


Desconectado Desconectado

Mensajes: 622


Im beyond the system


Ver Perfil
[SRC] Nod 32 Downloader 1.6.1
« en: 12 Julio 2010, 06:41 am »

Nod 32 Downloader
=================

¿Para que Sirve?
Sirve?
Para descargar versiones comerciales de los antivirus de ESET hace falta acceder de la siguiente manera:
http://User:pass@URLDeDescarga
Esto obtiene el user y password y lo descarga sin intervencion.

¿Como lo hace?
Se conecta a internet, obtiene el codigo fuente de nod321, lo recorta para sacar los user y password, y con un control INET descarga el archivo.

ScreenShot


Descarga
Código:
http://depositfiles.com/files/906myehgc


Sinceramente, de lo unico que dudo es sobre el control inet en la descarga.
Fue la unica descarga con progressbar que encontre.


En línea

I CODE FOR $$$
Programo por $$$
Hago tareas, trabajos para la facultad, lo que sea en VB6.0

Mis programas
BlackZeroX
Wiki

Desconectado Desconectado

Mensajes: 3.158


I'Love...!¡.


Ver Perfil WWW
Re: [SRC] Nod 32 Downloader 1.6.1
« Respuesta #1 en: 12 Julio 2010, 08:08 am »


Esta bonito pero la vdd que ver un ProgressBAr y no cuanto va pues como que me desiluiona asi que solo edite un poco el código:

Solo Reemplacen la funcion y listo!¡.

Código
  1.  
  2. Public Sub DownloadFile(strURL As String, strDestination As String) 'As Boolean
  3. Const CHUNK_SIZE        As Long = 1024
  4. Dim intFile             As Integer
  5. Dim lngBytesReceived    As Long
  6. Dim lngFileLength       As Long
  7. Dim strHeader           As String
  8. Dim b()                 As Byte
  9. Dim i                   As Integer
  10. Dim AntSecond           As Integer
  11. Dim Velocidad           As Long
  12. Dim AntBytes            As Long
  13.    With Inet1
  14.        .URL = strURL
  15.        .Execute , "GET", , "Range: bytes=" & CStr(lngBytesReceived) & "-" & vbCrLf
  16.        While .StillExecuting
  17.            DoEvents
  18.        Wend
  19.        strHeader = .GetHeader
  20.    End With
  21.    strHeader = Inet1.GetHeader("Content-Length")
  22.    lngFileLength = Val(strHeader)
  23.    DoEvents
  24.    lngBytesReceived = 0
  25.    intFile = FreeFile()
  26.    Open strDestination For Binary Access Write As intFile
  27.        AntSecond = Second(Time)
  28.        Do
  29.            b = Inet1.GetChunk(CHUNK_SIZE, icByteArray)
  30.            Put intFile, , b
  31.            lngBytesReceived = lngBytesReceived + UBound(b, 1) + 1
  32.            lblEstado.Caption = Velocidad / 1024 & " kb/s (" & lngBytesReceived / 1024 & " kb-" & lngFileLength / 1024 & " kb)"
  33.            If AntSecond <> Second(Time) Then
  34.                Velocidad = lngBytesReceived - AntBytes
  35.                AntBytes = lngBytesReceived
  36.                AntSecond = Second(Time)
  37.            End If
  38.            DownloadProgress (Round((lngBytesReceived / lngFileLength) * 100))
  39.            DoEvents
  40.        Loop While UBound(b, 1) > 0
  41.    Close intFile
  42. End Sub
  43.  
  44.  

Sangriento Infierno Lunar!¡.


En línea

The Dark Shadow is my passion.
Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
[C++] Downloader « 1 2 »
Programación C/C++
kiriost 10 7,987 Último mensaje 2 Noviembre 2011, 20:59 pm
por Belial & Grimoire
[C#] DH Downloader 1.0
.NET (C#, VB.NET, ASP)
BigBear 2 2,262 Último mensaje 20 Septiembre 2014, 21:31 pm
por XresH
algun downloader en asm
Análisis y Diseño de Malware
Borito30 1 2,178 Último mensaje 8 Marzo 2018, 20:12 pm
por xv0
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines