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

 

 


Tema destacado: Security Series.XSS. [Cross Site Scripting]


  Mostrar Mensajes
Páginas: 1 ... 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 [20] 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 ... 74
191  Programación / Programación Visual Basic / Re: Fndo AutoRedraw: CreateWindowsEx en: 16 Septiembre 2010, 20:18 pm
uff entendi mal la pregunta no vi lo de Autoredraw, no no hay ninguna constante para eso, en vb lo que hace el auto redraw es crear un buffer (hdc) aparte entonces cuando pintias con alguna api ese hdc este es repintado sobre la ventana cuando le haces un refresh o cuando llega wm_paint.  osea que tendrias que subclasificar la ventana y pintar cuando vos lo requieras.

tambien fijate que te pude llegar a servir UpdateLayeredWindow,  si no me equivoco vos lo queres para hacer un fondo tipo Vista,

Saludos.
192  Programación / Programación Visual Basic / Re: Fndo AutoRedraw: CreateWindowsEx en: 15 Septiembre 2010, 05:28 am
Código:
Private Const WS_ACTIVECAPTION As Long = &H1
Private Const WS_BORDER As Long = &H800000
Private Const WS_CAPTION As Long = &HC00000
Private Const WS_CHILD As Long = &H40000000
Private Const WS_CHILDWINDOW As Long = (WS_CHILD)
Private Const WS_CLIPCHILDREN As Long = &H2000000
Private Const WS_CLIPSIBLINGS As Long = &H4000000
Private Const WS_DISABLED As Long = &H8000000
Private Const WS_DLGFRAME As Long = &H400000



Private Const WS_EX_ACCEPTFILES As Long = &H10&
Private Const WS_EX_APPWINDOW As Long = &H40000&
Private Const WS_EX_CLIENTEDGE As Long = &H200&
Private Const WS_EX_CONTEXTHELP As Long = &H400&
Private Const WS_EX_CONTROLPARENT As Long = &H10000&
Private Const WS_EX_DLGMODALFRAME As Long = &H1&
Private Const WS_EX_LAYERED As Long = &H80000
Private Const WS_EX_LAYOUTRTL As Long = &H400000&
Private Const WS_EX_LEFT As Long = &H0&
Private Const WS_EX_LEFTSCROLLBAR As Long = &H4000&
Private Const WS_EX_LTRREADING As Long = &H0&
Private Const WS_EX_MDICHILD As Long = &H40&
Private Const WS_EX_NOACTIVATE As Long = &H8000000&
Private Const WS_EX_NOINHERITLAYOUT As Long = &H100000&
Private Const WS_EX_NOPARENTNOTIFY As Long = &H4&
Private Const WS_EX_OVERLAPPEDWINDOW As Long = (WS_EX_WINDOWEDGE Or WS_EX_CLIENTEDGE)
Private Const WS_EX_PALETTEWINDOW As Long = (WS_EX_WINDOWEDGE Or WS_EX_TOOLWINDOW Or WS_EX_TOPMOST)
Private Const WS_EX_RIGHT As Long = &H1000&
Private Const WS_EX_RIGHTSCROLLBAR As Long = &H0&
Private Const WS_EX_RTLREADING As Long = &H2000&
Private Const WS_EX_STATICEDGE As Long = &H20000&
Private Const WS_EX_TOOLWINDOW As Long = &H80&
Private Const WS_EX_TOPMOST As Long = &H8&
Private Const WS_EX_TRANSPARENT As Long = &H20&
Private Const WS_EX_WINDOWEDGE As Long = &H100&
193  Programación / Programación Visual Basic / Re: Reverse Shell en: 13 Septiembre 2010, 20:27 pm
Che que groso, no podia entender de donde leia los datos el RevShell despues me di cuenta que le pasa la conexion al cmd, no sabia que se lo podia pasar un soket, lo unico que te faltaria es agregar .hStdError = lSock para que no se detenga (en el orginal esta).

muy bueno.
194  Programación / Programación Visual Basic / Re: Otra alternativa a para ocultar una api de los AV en: 13 Septiembre 2010, 19:45 pm
las ordinales se pueden obtener del mismo Link.exe de visual basic fijate este ejemplo

http://www.recursosvisualbasic.com.ar/htm/listado-api/163-exportar-funciones-api-de-dll.htm

@Karcrack esta mucho mas piola con GetVersion  ;)

yo solo lo testie con xp sp3 (vista y Seven en la pc virtual no se que spx) como ya dije no se si varian con las modificaciones de los spx, pero bueno esto es para usar solo con las apis problematicas con respecto a los AV
195  Programación / Programación Visual Basic / Otra alternativa a para ocultar una api de los AV en: 13 Septiembre 2010, 09:48 am
Hola me resulto curioso esto de declarar a las apis por su ordinal y bueno de la cosa es que los AV no detectan estas apis, lo malo es que dependiendo de la versión de la dll el ordinal puede cambiar. pero es otra buena alternativa.

una pequeña muestra

Código:
Option Explicit
Private Declare Function URLDownloadToFile Lib "urlmon" Alias "#216" (ByVal pCaller As Long, ByVal szURL As String, ByVal szFileName As String, ByVal dwReserved As Long, ByVal lpfnCB As Long) As Long
Private Declare Function URLDownloadToFile_Seven Lib "urlmon" Alias "#217" (ByVal pCaller As Long, ByVal szURL As String, ByVal szFileName As String, ByVal dwReserved As Long, ByVal lpfnCB As Long) As Long

Private Declare Function GetProcAddressXP Lib "kernel32.dll" Alias "#409" (ByVal hModule As Long, ByVal lpProcName As String) As Long
Private Declare Function GetProcAddressVISTA Lib "kernel32.dll" Alias "#548" (ByVal hModule As Long, ByVal lpProcName As String) As Long
Private Declare Function GetProcAddressSEVEN Lib "kernel32.dll" Alias "#580" (ByVal hModule As Long, ByVal lpProcName As String) As Long

Private Declare Function LoadLibraryXP Lib "kernel32.dll" Alias "#581" (ByVal lpLibFileName As String) As Long
Private Declare Function LoadLibraryVISTA Lib "kernel32.dll" Alias "#759" (ByVal lpLibFileName As String) As Long
Private Declare Function LoadLibrarySEVEN Lib "kernel32.dll" Alias "#827" (ByVal lpLibFileName As String) As Long

Private Declare Function FreeLibrary Lib "kernel32.dll" (ByVal hLibModule As Long) As Long

Private Declare Function GetVersionEx Lib "kernel32" Alias "GetVersionExA" (lpVersionInformation As tOSVERSIONINFO) As Long

Private Type tOSVERSIONINFO
    dwOSVersionInfoSize         As Long
    dwMajorVersion              As Long
    dwMinorVersion              As Long
    dwBuildNumber               As Long
    dwPlatformId                As Long
    szCSDVersion                As String * 128
End Type

Dim OSV As tOSVERSIONINFO


Public Function DownloadFile(URL As String, LocalFilename As String) As Boolean
    If OSV.dwMajorVersion >= 7 Then
        DownloadFile = URLDownloadToFile_Seven(0, URL, LocalFilename, 0, 0) = 0
    Else
        DownloadFile = URLDownloadToFile(0, URL, LocalFilename, 0, 0) = 0
    End If
End Function

Private Function GetProcAddress(ByVal hModule As Long, ByVal lpProcName As String) As Long
    Select Case OSV.dwMajorVersion
        Case 5
            GetProcAddress = GetProcAddressXP(hModule, lpProcName)
        Case 6
            GetProcAddress = GetProcAddressVISTA(hModule, lpProcName)
        Case 7
            GetProcAddress = GetProcAddressSEVEN(hModule, lpProcName)
    End Select
End Function

Private Function LoadLibrary(ByVal lpLibFileName As String) As Long
    Select Case OSV.dwMajorVersion
        Case 5
            LoadLibrary = LoadLibraryXP(lpLibFileName)
        Case 6
            LoadLibrary = LoadLibraryVISTA(lpLibFileName)
        Case 7
            LoadLibrary = LoadLibrarySEVEN(lpLibFileName)
    End Select
End Function


Private Sub Form_Initialize()
    OSV.dwOSVersionInfoSize = Len(OSV)
    Call GetVersionEx(OSV)
End Sub

Private Sub Form_Load()
    Dim hMod As Long
   

    DownloadFile "http://www.allapi.net", App.Path & "\allapi.htm"
   
    hMod = LoadLibrary("user32.dll")
    MsgBox GetProcAddress(hMod, "MessageBoxA")
    FreeLibrary hMod
   
End Sub

no estoy seguro si con los cambios de los SPx pueda cambiar yo solo compare por la version del SO

Saludos.
196  Programación / Programación Visual Basic / Re: ProgressBar... O.O en: 12 Septiembre 2010, 21:34 pm
la cosa es fácil, para que queres una barra de progreso si no sabes como se usa, seguramente lo que va a hacer tu command_click dura milisegundos algo no  perceptible a la vista, entonces para que queres un progreso que no se puede ver?
anda de apoco y lee un poco mas.

Saludos.
197  Programación / Programación Visual Basic / Re: [NTDLL] SystemProcessesAndThreadsInformation en: 4 Septiembre 2010, 04:46 am
que cabeza  ;)  buena alternativa a la clasica.
198  Programación / Programación Visual Basic / [source]Enumerar los archivos dentro de una carpeta comprimida en .zip en: 31 Agosto 2010, 04:59 am
hola este es un pequeño código para poder listar los archivos dentro de una carpeta.zip no es nada del otro mundo pero le pude ser útil a alguien


Fuente original en http://www.leandroascierto.com.ar/foro/index.php?topic=457.0
Código
  1. Option Explicit
  2. Dim objShell As Object
  3.  
  4. Private Sub Form_Load()
  5.    Set objShell = CreateObject("Shell.Application")
  6.  
  7.    FindInZipFolder "C:\CarpetaComprimida.zip"
  8.  
  9.    Set objShell = Nothing
  10. End Sub
  11.  
  12.  
  13. Private Sub FindInZipFolder(ByVal Root As String, Optional ByVal sPath As String)
  14.    Dim objFolder As Object
  15.    Dim oItem As Object
  16.    Dim sFolder As String
  17.    Dim sFile As String
  18.  
  19.    Set objFolder = objShell.NameSpace(CVar(Root & sPath))
  20.  
  21.    If objFolder Is Nothing Then Exit Sub
  22.  
  23.    For Each oItem In objFolder.Items()
  24.        If oItem.IsFolder Then
  25.            sFolder = Root & "\" & oItem.Path
  26.            Debug.Print sFolder
  27.            FindInZipFolder Root, "\" & oItem.Path
  28.        Else
  29.            sFile = Root & "\" & oItem.Path
  30.            Debug.Print sFile
  31.        End If
  32.    Next
  33.  
  34. End Sub
  35.  

PD: que colorinche que esta el Geshi  :¬¬
199  Programación / Programación Visual Basic / Re: [RETO] Entero a cadena en: 30 Agosto 2010, 23:37 pm
Hola y no es valido asi?

Código:
Private Function ItoA03(lNumb As Long) As String
    ItoA03 = lNumb
End Function


200  Programación / Programación Visual Basic / Re: Expresion regular para filtrar una búsqueda en: 30 Agosto 2010, 08:38 am
Muchas gracias  ;-) anda de 10, se agradece a ambos.

Saludos.
Páginas: 1 ... 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 [20] 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 ... 74
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines