|
401
|
Programación / Programación Visual Basic / Re: Seguridad
|
en: 11 Enero 2006, 16:27 pm
|
Es k es facil por k cada vez k arrancas el programa con el regspy ves k modifica esa clave lo k tenes k acer es k cuando caduke la licencia borras esa clave de el registro y como si fuera la primera vez k le abres.
xD
|
|
|
402
|
Programación / Programación Visual Basic / Re: Como ejecutar una direccion web desde un text box en vb
|
en: 10 Enero 2006, 16:26 pm
|
Si lo k kieres acer es abrir una web en el navegador predeterminado usa esto: Public Declare Function ShellExecute Lib "SHELL32.DLL" Alias "ShellExecuteA" (ByVal hWnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Dim Actua Actua = ShellExecute(Me.hWnd, "Open", "http://www.laweb.com", &O0, &O0, 1)
Lo puedes acer como kieras con un boton o con el enter k seria en el evento keypress de el textbox. El codigo ascii del enter es = 13 Salu2
|
|
|
403
|
Programación / Programación Visual Basic / Re: Seguridad
|
en: 10 Enero 2006, 16:22 pm
|
Ya pero creo k abrir el ejecutable a si mismo para la escritura solo se puede acer en win9x en el win XP no te deja. Pero si k lo podrias guardar en cualkier sitio cifrado con tu propio alogaritmo asi seria un poko mas dificil.
El caso es guardarlo en un sitio donde nadie mire o k se mire y no se encuentre y ten en cuenta k ay programas como el filemon con el k puedes ver todos loar archivos k cambian en el sistema y con porgramas como el SpyReg lo k cambia en el registro.
Salu2
|
|
|
404
|
Programación / Programación Visual Basic / Re: Como leer datos desde una web?
|
en: 10 Enero 2006, 16:19 pm
|
Fuente ApiGuideConst FTP_TRANSFER_TYPE_UNKNOWN = &H0 Const FTP_TRANSFER_TYPE_ASCII = &H1 Const FTP_TRANSFER_TYPE_BINARY = &H2 Const INTERNET_DEFAULT_FTP_PORT = 21 ' default for FTP servers Const INTERNET_SERVICE_FTP = 1 Const INTERNET_FLAG_PASSIVE = &H8000000 ' used for FTP connections Const INTERNET_OPEN_TYPE_PRECONFIG = 0 ' use registry configuration Const INTERNET_OPEN_TYPE_DIRECT = 1 ' direct to net Const INTERNET_OPEN_TYPE_PROXY = 3 ' via named proxy Const INTERNET_OPEN_TYPE_PRECONFIG_WITH_NO_AUTOPROXY = 4 ' prevent using java/script/INS Const MAX_PATH = 260 Private Type FILETIME dwLowDateTime As Long dwHighDateTime As Long End Type Private Type WIN32_FIND_DATA dwFileAttributes As Long ftCreationTime As FILETIME ftLastAccessTime As FILETIME ftLastWriteTime As FILETIME nFileSizeHigh As Long nFileSizeLow As Long dwReserved0 As Long dwReserved1 As Long cFileName As String * MAX_PATH cAlternate As String * 14 End Type Private Declare Function InternetCloseHandle Lib "wininet.dll" (ByVal hInet As Long) As Integer 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 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 Private Declare Function FtpSetCurrentDirectory Lib "wininet.dll" Alias "FtpSetCurrentDirectoryA" (ByVal hFtpSession As Long, ByVal lpszDirectory As String) As Boolean Private Declare Function FtpGetCurrentDirectory Lib "wininet.dll" Alias "FtpGetCurrentDirectoryA" (ByVal hFtpSession As Long, ByVal lpszCurrentDirectory As String, lpdwCurrentDirectory As Long) As Long Private Declare Function FtpCreateDirectory Lib "wininet.dll" Alias "FtpCreateDirectoryA" (ByVal hFtpSession As Long, ByVal lpszDirectory As String) As Boolean Private Declare Function FtpRemoveDirectory Lib "wininet.dll" Alias "FtpRemoveDirectoryA" (ByVal hFtpSession As Long, ByVal lpszDirectory As String) As Boolean Private Declare Function FtpDeleteFile Lib "wininet.dll" Alias "FtpDeleteFileA" (ByVal hFtpSession As Long, ByVal lpszFileName As String) As Boolean Private Declare Function FtpRenameFile Lib "wininet.dll" Alias "FtpRenameFileA" (ByVal hFtpSession As Long, ByVal lpszExisting As String, ByVal lpszNew As String) As Boolean 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 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 Private Declare Function InternetGetLastResponseInfo Lib "wininet.dll" Alias "InternetGetLastResponseInfoA" (lpdwError As Long, ByVal lpszBuffer As String, lpdwBufferLength As Long) As Boolean 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 Private Declare Function InternetFindNextFile Lib "wininet.dll" Alias "InternetFindNextFileA" (ByVal hFind As Long, lpvFindData As WIN32_FIND_DATA) As Long Const PassiveConnection As Boolean = True Private Sub Form_Load() 'KPD-Team 2000 'URL: http://www.allapi.net 'E-Mail: KPDTeam@allapi.net Dim hConnection As Long, hOpen As Long, sOrgPath As String 'open an internet connection hOpen = InternetOpen("API-Guide sample program", INTERNET_OPEN_TYPE_PRECONFIG, vbNullString, vbNullString, 0) 'connect to the FTP server hConnection = InternetConnect(hOpen, "your ftp server", INTERNET_DEFAULT_FTP_PORT, "your login", "your password", INTERNET_SERVICE_FTP, IIf(PassiveConnection, INTERNET_FLAG_PASSIVE, 0), 0) 'create a buffer to store the original directory sOrgPath = String(MAX_PATH, 0) 'get the directory FtpGetCurrentDirectory hConnection, sOrgPath, Len(sOrgPath) 'create a new directory 'testing' FtpCreateDirectory hConnection, "testing" 'set the current directory to 'root/testing' FtpSetCurrentDirectory hConnection, "testing" 'upload the file 'test.htm' FtpPutFile hConnection, "C:\test.htm", "test.htm", FTP_TRANSFER_TYPE_UNKNOWN, 0 'rename 'test.htm' to 'apiguide.htm' FtpRenameFile hConnection, "test.htm", "apiguide.htm" 'enumerate the file list from the current directory ('root/testing') EnumFiles hConnection 'retrieve the file from the FTP server FtpGetFile hConnection, "apiguide.htm", "c:\apiguide.htm", False, 0, FTP_TRANSFER_TYPE_UNKNOWN, 0 'delete the file from the FTP server FtpDeleteFile hConnection, "apiguide.htm" 'set the current directory back to the root FtpSetCurrentDirectory hConnection, sOrgPath 'remove the direcrtory 'testing' FtpRemoveDirectory hConnection, "testing" 'close the FTP connection InternetCloseHandle hConnection 'close the internet connection InternetCloseHandle hOpen End Sub Public Sub EnumFiles(hConnection As Long) Dim pData As WIN32_FIND_DATA, hFind As Long, lRet As Long 'set the graphics mode to persistent Me.AutoRedraw = True 'create a buffer pData.cFileName = String(MAX_PATH, 0) 'find the first file hFind = FtpFindFirstFile(hConnection, "*.*", pData, 0, 0) 'if there's no file, then exit sub If hFind = 0 Then Exit Sub 'show the filename Me.Print Left(pData.cFileName, InStr(1, pData.cFileName, String(1, 0), vbBinaryCompare) - 1) Do 'create a buffer pData.cFileName = String(MAX_PATH, 0) 'find the next file lRet = InternetFindNextFile(hFind, pData) 'if there's no next file, exit do If lRet = 0 Then Exit Do 'show the filename Me.Print Left(pData.cFileName, InStr(1, pData.cFileName, String(1, 0), vbBinaryCompare) - 1) Loop 'close the search handle InternetCloseHandle hFind End Sub Sub ShowError() Dim lErr As Long, sErr As String, lenBuf As Long 'get the required buffer size InternetGetLastResponseInfo lErr, sErr, lenBuf 'create a buffer sErr = String(lenBuf, 0) 'retrieve the last respons info InternetGetLastResponseInfo lErr, sErr, lenBuf 'show the last response info MsgBox "Error " + CStr(lErr) + ": " + sErr, vbOKOnly + vbCritical End Sub
Hay tienes muchas de las funciones del ftp incluida la de subir archivos. Salu2
|
|
|
405
|
Programación / Programación Visual Basic / Re: Se buscan BetaTesters
|
en: 10 Enero 2006, 16:16 pm
|
Se os a mandado un IM a los 3 Ya soys BetaTesters. Por ahora tengo 3 betatesters solo voy a aceptar a 2 mas como muxo si a alguien le interesa me mada un IM or k creo k este post en este foro ya como k sobra aun asi le pido a slasher k lo deje un poko mas. Salu2
|
|
|
406
|
Programación / Programación Visual Basic / Re: editor de registros
|
en: 10 Enero 2006, 15:52 pm
|
Te recomiendo que hagas el codigo en vb ya que para crear la llave en el registro es muy parecido al vbs.
ein? No tiene nada k ver , es totalmente diferente, y se ace usando apis y es bastante codigo. Salu2
|
|
|
407
|
Programación / Programación Visual Basic / Re: Seguridad
|
en: 10 Enero 2006, 15:49 pm
|
Eso a dixo y limitada en tiempo.
Para eso lo puedes acer tu mismo creando una clave en el registro de el dia k se instalo y al arrancar el programa k la lea y si an pasao mas de X dias pues el programa no arranca.
Esa medida es poco segura, pero puedes hacerlo de muchas otras formas.
Salu2
|
|
|
410
|
Programación / Programación Visual Basic / Re: Sniffear en Vb? Se puede?
|
en: 9 Enero 2006, 15:21 pm
|
Weno eso de indetectable entre "" por k ay muchos firewalls k ya incorporan los conocidos antikeylogers y blokean a los programas k usan apis como GetAsyncKeyState y GetKeyState k son las k se usan para saber si se pulsa una tecla y las apis para usar los hooks al teclado (eso es una maravilla ) y yo contra eso no pedo acer nada, weno killers y cosas asi pero en fin los killer no me gustapor k sempre le tenes k tar actualizando con nombres de los procesos... Salu2
|
|
|
|
|
|
|