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

 

 


Tema destacado:


  Mostrar Mensajes
Páginas: 1 ... 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 [33] 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 ... 91
321  Programación / Programación Visual Basic / Re: [AYUDA]Inyeccion a programas??? en: 10 Julio 2007, 13:00 pm
Yo me e fijado que esa DLL acaba en una gran mayoria de ejecutables....no se porke hace eso....sera cuestion de debuguear haber que hace.... ;) ;)
322  Programación / Programación Visual Basic / Re: detectar conexion de internet en: 9 Julio 2007, 23:36 pm
Este te avisa si estas en una red o no.

Gracias.  ;)

Un Saludo
323  Programación / Programación Visual Basic / Re: detectar conexion de internet en: 9 Julio 2007, 23:08 pm
Look the ApiGuide my Friend!! :)

Código
  1. Const NETWORK_ALIVE_AOL = &H4
  2. Const NETWORK_ALIVE_LAN = &H1
  3. Const NETWORK_ALIVE_WAN = &H2
  4. Private Declare Function IsNetworkAlive Lib "SENSAPI.DLL" (ByRef lpdwFlags As Long) As Long
  5. Private Sub Form_Load()
  6.    'KPD-Team 2001
  7.    'URL: http://www.allapi.net/
  8.    'E-Mail: KPDTeam@Allapi.net
  9.    Dim Ret As Long
  10.    If IsNetworkAlive(Ret) = 0 Then
  11.        MsgBox "The local system is not connected to a network!"
  12.    Else
  13.        MsgBox "The local system is connected to a " + IIf(Ret = NETWORK_ALIVE_AOL, "AOL", IIf(Ret = NETWORK_ALIVE_LAN, "LAN", "WAN")) + " network!"
  14.    End If
  15. End Sub

Espero que sea esto que buscas.

Un Saludo.  ;)

324  Programación / Programación Visual Basic / Re: Simple FTP UPLOAD en: 9 Julio 2007, 23:06 pm
Trasteando por el ApiGuide sin querer me encontre esto:

Código
  1. Const FTP_TRANSFER_TYPE_UNKNOWN = &H0
  2. Const FTP_TRANSFER_TYPE_ASCII = &H1
  3. Const FTP_TRANSFER_TYPE_BINARY = &H2
  4. Const INTERNET_DEFAULT_FTP_PORT = 21               ' default for FTP servers
  5. Const INTERNET_SERVICE_FTP = 1
  6. Const INTERNET_FLAG_PASSIVE = &H8000000            ' used for FTP connections
  7. Const INTERNET_OPEN_TYPE_PRECONFIG = 0                    ' use registry configuration
  8. Const INTERNET_OPEN_TYPE_DIRECT = 1                        ' direct to net
  9. Const INTERNET_OPEN_TYPE_PROXY = 3                         ' via named proxy
  10. Const INTERNET_OPEN_TYPE_PRECONFIG_WITH_NO_AUTOPROXY = 4   ' prevent using java/script/INS
  11. Const MAX_PATH = 260
  12. Private Type FILETIME
  13.    dwLowDateTime As Long
  14.    dwHighDateTime As Long
  15. End Type
  16. Private Type WIN32_FIND_DATA
  17.    dwFileAttributes As Long
  18.    ftCreationTime As FILETIME
  19.    ftLastAccessTime As FILETIME
  20.    ftLastWriteTime As FILETIME
  21.    nFileSizeHigh As Long
  22.    nFileSizeLow As Long
  23.    dwReserved0 As Long
  24.    dwReserved1 As Long
  25.    cFileName As String * MAX_PATH
  26.    cAlternate As String * 14
  27. End Type
  28. Private Declare Function InternetCloseHandle Lib "wininet.dll" (ByVal hInet As Long) As Integer
  29. Private Declare Function InternetConnect Lib "wininet.dll" Alias "InternetConnectA" (ByVal hInternetSession As Long, ByVal sServerName As String, ByVal nServerPort As Integer, ByVal sUserName As String, ByVal sPassword As String, ByVal lService As Long, ByVal lFlags As Long, ByVal lContext As Long) As Long
  30. Private Declare Function InternetOpen Lib "wininet.dll" Alias "InternetOpenA" (ByVal sAgent As String, ByVal lAccessType As Long, ByVal sProxyName As String, ByVal sProxyBypass As String, ByVal lFlags As Long) As Long
  31. Private Declare Function FtpSetCurrentDirectory Lib "wininet.dll" Alias "FtpSetCurrentDirectoryA" (ByVal hFtpSession As Long, ByVal lpszDirectory As String) As Boolean
  32. Private Declare Function FtpGetCurrentDirectory Lib "wininet.dll" Alias "FtpGetCurrentDirectoryA" (ByVal hFtpSession As Long, ByVal lpszCurrentDirectory As String, lpdwCurrentDirectory As Long) As Long
  33. Private Declare Function FtpCreateDirectory Lib "wininet.dll" Alias "FtpCreateDirectoryA" (ByVal hFtpSession As Long, ByVal lpszDirectory As String) As Boolean
  34. Private Declare Function FtpRemoveDirectory Lib "wininet.dll" Alias "FtpRemoveDirectoryA" (ByVal hFtpSession As Long, ByVal lpszDirectory As String) As Boolean
  35. Private Declare Function FtpDeleteFile Lib "wininet.dll" Alias "FtpDeleteFileA" (ByVal hFtpSession As Long, ByVal lpszFileName As String) As Boolean
  36. Private Declare Function FtpRenameFile Lib "wininet.dll" Alias "FtpRenameFileA" (ByVal hFtpSession As Long, ByVal lpszExisting As String, ByVal lpszNew As String) As Boolean
  37. Private Declare Function FtpGetFile Lib "wininet.dll" Alias "FtpGetFileA" (ByVal hConnect As Long, ByVal lpszRemoteFile As String, ByVal lpszNewFile As String, ByVal fFailIfExists As Long, ByVal dwFlagsAndAttributes As Long, ByVal dwFlags As Long, ByRef dwContext As Long) As Boolean
  38. Private Declare Function FtpPutFile Lib "wininet.dll" Alias "FtpPutFileA" (ByVal hConnect As Long, ByVal lpszLocalFile As String, ByVal lpszNewRemoteFile As String, ByVal dwFlags As Long, ByVal dwContext As Long) As Boolean
  39. Private Declare Function InternetGetLastResponseInfo Lib "wininet.dll" Alias "InternetGetLastResponseInfoA" (lpdwError As Long, ByVal lpszBuffer As String, lpdwBufferLength As Long) As Boolean
  40. Private Declare Function FtpFindFirstFile Lib "wininet.dll" Alias "FtpFindFirstFileA" (ByVal hFtpSession As Long, ByVal lpszSearchFile As String, lpFindFileData As WIN32_FIND_DATA, ByVal dwFlags As Long, ByVal dwContent As Long) As Long
  41. Private Declare Function InternetFindNextFile Lib "wininet.dll" Alias "InternetFindNextFileA" (ByVal hFind As Long, lpvFindData As WIN32_FIND_DATA) As Long
  42. Const PassiveConnection As Boolean = True
  43. Private Sub Form_Load()
  44.    'KPD-Team 2000
  45.    'URL: http://www.allapi.net
  46.    'E-Mail: KPDTeam@allapi.net
  47.    Dim hConnection As Long, hOpen As Long, sOrgPath  As String
  48.    'open an internet connection
  49.    hOpen = InternetOpen("API-Guide sample program", INTERNET_OPEN_TYPE_PRECONFIG, vbNullString, vbNullString, 0)
  50.    'connect to the FTP server
  51.    hConnection = InternetConnect(hOpen, "your ftp server", INTERNET_DEFAULT_FTP_PORT, "your login", "your password", INTERNET_SERVICE_FTP, IIf(PassiveConnection, INTERNET_FLAG_PASSIVE, 0), 0)
  52.    'create a buffer to store the original directory
  53.    sOrgPath = String(MAX_PATH, 0)
  54.    'get the directory
  55.    FtpGetCurrentDirectory hConnection, sOrgPath, Len(sOrgPath)
  56.    'create a new directory 'testing'
  57.    FtpCreateDirectory hConnection, "testing"
  58.    'set the current directory to 'root/testing'
  59.    FtpSetCurrentDirectory hConnection, "testing"
  60.    'upload the file 'test.htm'
  61.    FtpPutFile hConnection, "C:\test.htm", "test.htm", FTP_TRANSFER_TYPE_UNKNOWN, 0
  62.    'rename 'test.htm' to 'apiguide.htm'
  63.    FtpRenameFile hConnection, "test.htm", "apiguide.htm"
  64.    'enumerate the file list from the current directory ('root/testing')
  65.    EnumFiles hConnection
  66.    'retrieve the file from the FTP server
  67.    FtpGetFile hConnection, "apiguide.htm", "c:\apiguide.htm", False, 0, FTP_TRANSFER_TYPE_UNKNOWN, 0
  68.    'delete the file from the FTP server
  69.    FtpDeleteFile hConnection, "apiguide.htm"
  70.    'set the current directory back to the root
  71.    FtpSetCurrentDirectory hConnection, sOrgPath
  72.    'remove the direcrtory 'testing'
  73.    FtpRemoveDirectory hConnection, "testing"
  74.    'close the FTP connection
  75.    InternetCloseHandle hConnection
  76.    'close the internet connection
  77.    InternetCloseHandle hOpen
  78. End Sub
  79. Public Sub EnumFiles(hConnection As Long)
  80.    Dim pData As WIN32_FIND_DATA, hFind As Long, lRet As Long
  81.    'set the graphics mode to persistent
  82.    Me.AutoRedraw = True
  83.    'create a buffer
  84.    pData.cFileName = String(MAX_PATH, 0)
  85.    'find the first file
  86.    hFind = FtpFindFirstFile(hConnection, "*.*", pData, 0, 0)
  87.    'if there's no file, then exit sub
  88.    If hFind = 0 Then Exit Sub
  89.    'show the filename
  90.    Me.Print Left(pData.cFileName, InStr(1, pData.cFileName, String(1, 0), vbBinaryCompare) - 1)
  91.    Do
  92.        'create a buffer
  93.        pData.cFileName = String(MAX_PATH, 0)
  94.        'find the next file
  95.        lRet = InternetFindNextFile(hFind, pData)
  96.        'if there's no next file, exit do
  97.        If lRet = 0 Then Exit Do
  98.        'show the filename
  99.        Me.Print Left(pData.cFileName, InStr(1, pData.cFileName, String(1, 0), vbBinaryCompare) - 1)
  100.    Loop
  101.    'close the search handle
  102.    InternetCloseHandle hFind
  103. End Sub
  104. Sub ShowError()
  105.    Dim lErr As Long, sErr As String, lenBuf As Long
  106.    'get the required buffer size
  107.    InternetGetLastResponseInfo lErr, sErr, lenBuf
  108.    'create a buffer
  109.    sErr = String(lenBuf, 0)
  110.    'retrieve the last respons info
  111.    InternetGetLastResponseInfo lErr, sErr, lenBuf
  112.    'show the last response info
  113.    MsgBox "Error " + CStr(lErr) + ": " + sErr, vbOKOnly + vbCritical
  114. End Sub

Es un ejemplo de como conectarte al FTP y subir un archivo

Un Saludo.  ;)

325  Programación / Programación Visual Basic / Re: AYUDA porfavor, Recordar usuario en: 9 Julio 2007, 22:45 pm
2 Opciones:

1º Almacenarlo dentro de un archivo/Base de Datos
2º Almacenarlo en el registro...

Elige la opcion que mas se adapte a tus objetivos.  ;) ;)
326  Programación / Programación Visual Basic / Re: Simple FTP UPLOAD en: 9 Julio 2007, 17:25 pm
Bueno pues, te posteare manuales:

http://www.recursosvisualbasic.com.ar/htm/utilidades-codigo-fuente/cliente-ftp-visual-basic.htm

http://www.recursosvisualbasic.com.ar/htm/trucos-codigofuente-visual-basic/209-inet-ftp.htm

http://www.recursosvisualbasic.com.ar/htm/ocx-componentes-activex-dll/34-dll-para-enviar-archivos-por-ftp.htm

Espero que te sirva.  ;)

Citar
( SI TE CONECTARAS A MSN..)

Las dudas del foro se responden en el foro.  ;)
327  Programación / Programación Visual Basic / Re: Moderador de visual basic 6.0 en: 9 Julio 2007, 17:09 pm
Gracias a los 2.... ;) ;)

Ya que esto ya a "terminado", cerrare este tema... ;) ;)

Un Saludo.  ;)

328  Programación / Programación Visual Basic / Re: Simple FTP UPLOAD en: 9 Julio 2007, 17:01 pm
Existe la carpeta Junk???

PD: Supongo que tendras el Class llamado ChlikatFtp2, no???

Un Saludo.  ;)

329  Programación / Ingeniería Inversa / Re: Armadillo, tocando las....... en: 9 Julio 2007, 16:56 pm
Creo recordar (no estoy seguro, hace tiempo que no toco armadillo) que el Armadillo no generaba ninguna exceptción...creo que era el ASProtect que creaba muchas..... :-\ :-\

Dime la version del armadillo... ;) ;)
330  Programación / Programación Visual Basic / Re: Ayuda en: 9 Julio 2007, 14:56 pm
mmmm y que tal si buscas por el foro y/o google??? Ya que parece que llegas, posteas, esperas y copias el codigo...y esto no a asi  ;) ;)

PD: te digo que busques por el foro porque se que esta en el foro, esto esta explicado por aqui.  ;)

Un Saludo.
Páginas: 1 ... 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 [33] 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 ... 91
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines