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

 

 


Tema destacado: Arreglado, de nuevo, el registro del warzone (wargame) de EHN


+  Foro de elhacker.net
|-+  Programación
| |-+  Programación General
| | |-+  .NET (C#, VB.NET, ASP)
| | | |-+  Programación Visual Basic (Moderadores: LeandroA, seba123neo)
| | | | |-+  Process32next Callback
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: Process32next Callback  (Leído 2,240 veces)
ntaryl

Desconectado Desconectado

Mensajes: 95



Ver Perfil
Process32next Callback
« en: 23 Septiembre 2008, 23:09 pm »

Good  evening 

Time now try to make a callback function for process32next function
Want to hook this function and i dont know how implement the Callback to Hide a file with name "test.exe"
Código:

Public Function Process32Next_Callback(ByVal hSnapshot As Long, ByRef lppe As PROCESSENTRY32) As Long
Dim Ret_val As Long
If ippe.szExeFile = "test.exe" Then
Ret_val = Process32Next(hSnapshot, lppe)
End If
Process32Next_Callback = Ret_val
end function



But  not work  i  cant find my mistake 
thanks 


P.s  EON  u  can help me


En línea

byebye


Desconectado Desconectado

Mensajes: 5.093



Ver Perfil
Re: Process32next Callback
« Respuesta #1 en: 24 Septiembre 2008, 00:04 am »

en español porfavor.


En línea

el_c0c0


Desconectado Desconectado

Mensajes: 307


Ver Perfil
Re: Process32next Callback
« Respuesta #2 en: 24 Septiembre 2008, 00:29 am »

this code is from API-Guide about process enumeration:

Código
  1. Const TH32CS_SNAPHEAPLIST = &H1
  2. Const TH32CS_SNAPPROCESS = &H2
  3. Const TH32CS_SNAPTHREAD = &H4
  4. Const TH32CS_SNAPMODULE = &H8
  5. Const TH32CS_SNAPALL = (TH32CS_SNAPHEAPLIST Or TH32CS_SNAPPROCESS Or TH32CS_SNAPTHREAD Or TH32CS_SNAPMODULE)
  6. Const TH32CS_INHERIT = &H80000000
  7. Const MAX_PATH As Integer = 260
  8. Private Type PROCESSENTRY32
  9.    dwSize As Long
  10.    cntUsage As Long
  11.    th32ProcessID As Long
  12.    th32DefaultHeapID As Long
  13.    th32ModuleID As Long
  14.    cntThreads As Long
  15.    th32ParentProcessID As Long
  16.    pcPriClassBase As Long
  17.    dwFlags As Long
  18.    szExeFile As String * MAX_PATH
  19. End Type
  20. Private Declare Function CreateToolhelp32Snapshot Lib "Kernel32" (ByVal lFlags As Long, ByVal lProcessID As Long) As Long
  21. Private Declare Function Process32First Lib "Kernel32" (ByVal hSnapShot As Long, uProcess As PROCESSENTRY32) As Long
  22. Private Declare Function Process32Next Lib "Kernel32" (ByVal hSnapShot As Long, uProcess As PROCESSENTRY32) As Long
  23. Private Declare Sub CloseHandle Lib "Kernel32" (ByVal hPass As Long)
  24. Private Sub Form_Load()
  25.    'KPD-Team 2000
  26.    'URL: http://www.allapi.net/
  27.    'E-Mail: KPDTeam@Allapi.net
  28.    Dim hSnapShot As Long, uProcess As PROCESSENTRY32
  29.    'Takes a snapshot of the processes and the heaps, modules, and threads used by the processes
  30.    hSnapShot = CreateToolhelp32Snapshot(TH32CS_SNAPALL, 0&)
  31.    'set the length of our ProcessEntry-type
  32.    uProcess.dwSize = Len(uProcess)
  33.    'Retrieve information about the first process encountered in our system snapshot
  34.    r = Process32First(hSnapShot, uProcess)
  35.    'set graphics mode to persistent
  36.    Me.AutoRedraw = True
  37.    Do While r
  38.        Me.Print Left$(uProcess.szExeFile, IIf(InStr(1, uProcess.szExeFile, Chr$(0)) > 0, InStr(1, uProcess.szExeFile, Chr$(0)) - 1, 0))
  39.        'Retrieve information about the next process recorded in our system snapshot
  40.        r = Process32Next(hSnapShot, uProcess)
  41.    Loop
  42.    'close our snapshot handle
  43.    CloseHandle hSnapShot
  44. End Sub

bye!
En línea

'-     coco
"Te voy a romper el orto"- Las hemorroides
cobein


Desconectado Desconectado

Mensajes: 759



Ver Perfil WWW
Re: Process32next Callback
« Respuesta #3 en: 24 Septiembre 2008, 00:46 am »

Traduzco por que es de Grecia y no sabe español.

Esta tratando de hacer un hook a process32next pero no sabe como implementar el callback, lo que quiere hace es esconder "test.exe".

La cuestion es que no le funciona y no sabe cual es el error.
En línea

http://www.advancevb.com.ar
Más Argentino que el morcipan
Aguante el Uvita tinto, Tigre, Ford y seba123neo
Karcrack es un capo.
ssccaann43 ©


Desconectado Desconectado

Mensajes: 792


¬¬


Ver Perfil
Re: Process32next Callback
« Respuesta #4 en: 24 Septiembre 2008, 05:58 am »

perdon por mi comentario, pero es tonto que le pidas que postee en español cuando el men es de grecia y habla ingles... Te aseguro que si supiera hablar español no postea en ingles men...  ;)
En línea

- Miguel Núñez
Todos tenemos derechos a ser estupidos, pero algunos abusan de ese privilegio...
"I like ^TiFa^"
Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
[Duda] CallBack « 1 2 »
Programación C/C++
BlackZeroX 11 4,765 Último mensaje 17 Enero 2011, 21:05 pm
por ThunderCls
TLS Callback
Programación C/C++
ThunderCls 0 1,933 Último mensaje 9 Mayo 2011, 22:18 pm
por ThunderCls
Funciones callback?
Programación C/C++
roilivethelife 1 2,977 Último mensaje 20 Agosto 2012, 17:41 pm
por rir3760
Error Process32Next
ASM
.:UND3R:. 3 2,998 Último mensaje 16 Septiembre 2013, 01:13 am
por Eternal Idol
Refresco tkinter de texto recibido en un callback
Scripting
minak 1 1,757 Último mensaje 11 Mayo 2018, 13:48 pm
por minak
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines