elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.
 
Inicio Ayuda Buscar Ingresar Registrarse
24 Mayo 2012, 06:52  


Tema destacado: ¿Eres nuevo? ¿Tienes dudas acerca del funcionamiento de la comunidad? Lee las Reglas Generales

+  Foro de elhacker.net
|-+  Seguridad Informática
| |-+  Análisis y Diseño de Malware (Moderadores: Karcrack, [Zero])
| | |-+  Ocultar exe de la barra de tareas y del trayicon
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: Ocultar exe de la barra de tareas y del trayicon  (Leído 2,055 veces)
S@DiHaCk

Desconectado Desconectado

Mensajes: 16


Ver Perfil
Ocultar exe de la barra de tareas y del trayicon
« en: 18 Febrero 2008, 20:54 »

hola compañeros de elhacker.net, alguien sabe como puedo ocultar un exe de la barra de tareas y del trayicon.

habra un encriptador que le aplique un codigo para ocultarlo?
creo haber visto uno, pero no recuerdo el nombre

o alguien sabe de alguna aplicacion que me pueda ayudar.

o algun codigo que pueda aplicar con el reshack?

nota:el exe no tiene la opcion de minimizar en el trayicon

de antemano gracias.


En línea
Stone_FREE_


Desconectado Desconectado

Mensajes: 376



Ver Perfil
Re: Ocultar exe de la barra de tareas y del trayicon
« Respuesta #1 en: 18 Febrero 2008, 22:13 »

Yo tenía un programita hace un par de años que ocultaba cualquier ícono que salía en la barra de tareas al costado del reloj. Creo que tu quieres uno que haga desaparecer toda la ventana del exe?
« Última modificación: 18 Febrero 2008, 22:16 por Stone_FREE_ » En línea

You are the Owner of your Life, your Fears and your Dreams ...

LeandroA


Desconectado Desconectado

Mensajes: 693


Seguime


Ver Perfil WWW
Re: Ocultar exe de la barra de tareas y del trayicon
« Respuesta #2 en: 18 Febrero 2008, 22:20 »

hola no entendi muy bien, vos tenes queres a una aplicacion externa quitarla del systray y que tampoco se muestre en la baara de tareas?

Saludos
En línea

S@DiHaCk

Desconectado Desconectado

Mensajes: 16


Ver Perfil
Re: Ocultar exe de la barra de tareas y del trayicon
« Respuesta #3 en: 18 Febrero 2008, 22:23 »

si, claro que si es justo lo que quiero, basicamente que el exe este activado pero totalmente oculto.espero me puedan brindar algun programa.

ahhh y por aqui vi un rootkit pero estaba tenia pw y para eso tenia que resolver un acertigo lo cual me molesto un poco ya que si vas a compartir algo lo haces sin condicion.
En línea
LeandroA


Desconectado Desconectado

Mensajes: 693


Seguime


Ver Perfil WWW
Re: Ocultar exe de la barra de tareas y del trayicon
« Respuesta #4 en: 18 Febrero 2008, 23:45 »

Hola bueno si es eso te paso un ejemplo para hhacerlo con visual basic, lo que te paso es un ejemplo que lista los iconos que se encuentran y bueno tiene un boton para ocultar y otro para mostrar. despues vos tenes que desarroyarlo a tu gusto


Agrega un list1 y tres botones a un formulario
Código:
Option Explicit
Private Const WM_USER = &H400
Private Const TB_BUTTONCOUNT = (WM_USER + 24)
Private Const TB_HIDEBUTTON = (WM_USER + 4)
Private Const TB_GETBUTTONTEXTA = (WM_USER + 45)
Private Const TB_AUTOSIZE = (WM_USER + 33)

Private Const MEM_COMMIT = &H1000
Private Const MEM_RESERVE = &H2000
Private Const MEM_RELEASE = &H8000

Private Const PAGE_READWRITE = &H4

Private Const PROCESS_VM_OPERATION = (&H8)
Private Const PROCESS_VM_READ = (&H10)
Private Const PROCESS_VM_WRITE = (&H20)

Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hwnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Private Declare Function VirtualAllocEx Lib "quernel32.dll" (ByVal hProcess As Long, lpAddress As Any, ByRef dwSize As Long, ByVal flAllocationType As Long, ByVal flProtect As Long) As Long
Private Declare Function VirtualFreeEx Lib "quernel32.dll" (ByVal hProcess As Long, lpAddress As Any, ByRef dwSize As Long, ByVal dwFreeType As Long) As Long
Private Declare Function OpenProcess Lib "quernel32" (ByVal dwdeciredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As Long
Private Declare Function CloseHandle Lib "quernel32" (ByVal hObject As Long) As Long
Private Declare Function GetWindowThreadProcessId Lib "user32" (ByVal hWnd As Long, lpdwProcessId As Long) As Long
Private Declare Function ReadProcessMemory Lib "quernel32" (ByVal hProcess As Long, lpBaseAddress As Any, lpBuffer As Any, ByVal nSize As Long, lpNumberOfBytesWritten As Long) As Long
Private Declare Function WriteProcessMemory Lib "quernel32" (ByVal hProcess As Long, lpBaseAddress As Any, lpBuffer As Any, ByVal nSize As Long, lpNumberOfBytesWritten As Long) As Long
Private Declare Function GetCurrentProcessId Lib "quernel32" () As Long
'Dim Handle As Long

'Oculta el icono
Private Sub Command1_Click()
Dim pIdExplorer As Long, hwnd2 As Long, hExplorer As Long, lpIconText As Long
Dim i As Integer
Dim BtnCount As Integer
Dim IconText As String

hwnd2 = FindWindow("Shell_TrayWnd", vbNullString)
hwnd2 = FindWindowEx(hwnd2, 0, "TrayNotifyWnd", vbNullString)
hwnd2 = FindWindowEx(hwnd2, 0, "SysPager", vbNullString)
hwnd2 = FindWindowEx(hwnd2, 0, "ToolbarWindow32", vbNullString)

GetWindowThreadProcessId hwnd2, pIdExplorer
hExplorer = OpenProcess(PROCESS_VM_OPERATION Or PROCESS_VM_READ Or PROCESS_VM_WRITE, False, pIdExplorer)
lpIconText = VirtualAllocEx(ByVal hExplorer, ByVal 0&, Len(IconText), MEM_COMMIT Or MEM_RESERVE, PAGE_READWRITE)

BtnCount = SendMessage(hwnd2, TB_BUTTONCOUNT, 0, 0)

Dim lLen As Long, sBuff As String
For i = 0 To BtnCount - 1

  IconText = Space$(256)
  lLen = SendMessage(hwnd2, TB_GETBUTTONTEXTA, i, ByVal lpIconText)
  ReadProcessMemory hExplorer, ByVal lpIconText, ByVal IconText, Len(IconText), 0
  If lLen <> -1 Then IconText = Left$(IconText, InStr(1, IconText, Chr$(0)) - 1)
  If IconText = List1.List(List1.ListIndex) Then ' "??" Then
    SendMessage hwnd2, TB_HIDEBUTTON, i, ByVal True
    SendMessage hwnd2, TB_AUTOSIZE, 0, 0
  End If
Next
VirtualFreeEx hExplorer, lpIconText, Len(IconText), MEM_RELEASE
CloseHandle hExplorer
End Sub
'Oculta el muestra el icono
Private Sub Command2_Click()
Dim pIdExplorer As Long, hwnd2 As Long, hExplorer As Long, lpIconText As Long
Dim i As Integer
Dim BtnCount As Integer
Dim IconText As String

hwnd2 = FindWindow("Shell_TrayWnd", vbNullString)
hwnd2 = FindWindowEx(hwnd2, 0, "TrayNotifyWnd", vbNullString)
hwnd2 = FindWindowEx(hwnd2, 0, "SysPager", vbNullString)
hwnd2 = FindWindowEx(hwnd2, 0, "ToolbarWindow32", vbNullString)

GetWindowThreadProcessId hwnd2, pIdExplorer
hExplorer = OpenProcess(PROCESS_VM_OPERATION Or PROCESS_VM_READ Or PROCESS_VM_WRITE, False, pIdExplorer)
lpIconText = VirtualAllocEx(ByVal hExplorer, ByVal 0&, Len(IconText), MEM_COMMIT Or MEM_RESERVE, PAGE_READWRITE)

BtnCount = SendMessage(hwnd2, TB_BUTTONCOUNT, 0, 0)

Dim lLen As Long, sBuff As String
For i = 0 To BtnCount - 1

  IconText = Space$(256)
  lLen = SendMessage(hwnd2, TB_GETBUTTONTEXTA, i, ByVal lpIconText)
  ReadProcessMemory hExplorer, ByVal lpIconText, ByVal IconText, Len(IconText), 0
  If lLen <> -1 Then IconText = Left$(IconText, InStr(1, IconText, Chr$(0)) - 1)
  If IconText = List1.List(List1.ListIndex) Then ' "??" Then
    SendMessage hwnd2, TB_HIDEBUTTON, i, ByVal False
    SendMessage hwnd2, TB_AUTOSIZE, 0, 0
  End If
Next
VirtualFreeEx hExplorer, lpIconText, Len(IconText), MEM_RELEASE
CloseHandle hExplorer
End Sub

'lista todos los iconos
Private Sub Command3_Click()
List1.Clear
Dim pIdExplorer As Long, hwnd2 As Long, hExplorer As Long, lpIconText As Long
Dim i As Integer
Dim BtnCount As Integer
Dim IconText As String

hwnd2 = FindWindow("Shell_TrayWnd", vbNullString)
hwnd2 = FindWindowEx(hwnd2, 0, "TrayNotifyWnd", vbNullString)
hwnd2 = FindWindowEx(hwnd2, 0, "SysPager", vbNullString)
hwnd2 = FindWindowEx(hwnd2, 0, "ToolbarWindow32", vbNullString)
Handle = hwnd2
GetWindowThreadProcessId hwnd2, pIdExplorer
hExplorer = OpenProcess(PROCESS_VM_OPERATION Or PROCESS_VM_READ Or PROCESS_VM_WRITE, False, pIdExplorer)
lpIconText = VirtualAllocEx(ByVal hExplorer, ByVal 0&, Len(IconText), MEM_COMMIT Or MEM_RESERVE, PAGE_READWRITE)

BtnCount = SendMessage(hwnd2, TB_BUTTONCOUNT, 0, 0)

Dim lLen As Long, sBuff As String
For i = 0 To BtnCount

  IconText = Space$(256)
  lLen = SendMessage(hwnd2, TB_GETBUTTONTEXTA, i, ByVal lpIconText)
  ReadProcessMemory hExplorer, ByVal lpIconText, ByVal IconText, Len(IconText), 0
  If lLen <> -1 Then IconText = Left$(IconText, InStr(1, IconText, Chr$(0)) - 1)
  List1.AddItem IconText

Next
VirtualFreeEx hExplorer, lpIconText, Len(IconText), MEM_RELEASE
CloseHandle hExplorer
End Sub


Private Sub Form_Load()
Command3_Click
End Sub


y para quitarlo del taskbar


Código:
Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long
Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
Private Const SW_SHOWNORMAL As Long = 1
Private Const SW_HIDE As Long = 0

Private Const GWL_EXSTYLE = (-20)
Private Const WS_EX_APPWINDOW = &H40000

Public Function ShowFormInTaskbar(hwnd As Long, Show As Boolean)
ShowWindow hwnd, SW_HIDE
If Show Then
    SetWindowLong hwnd, GWL_EXSTYLE, GetWindowLong(hwnd, GWL_EXSTYLE) Or WS_EX_APPWINDOW
Else
    SetWindowLong hwnd, GWL_EXSTYLE, GetWindowLong(hwnd, GWL_EXSTYLE) And Not WS_EX_APPWINDOW
End If
ShowWindow hwnd, SW_SHOWNORMAL
End Function


Private Sub Command1_Click()
ShowFormInTaskbar Me.hwnd, False
End Sub

bueno en la funcion ShowFormInTaskbar  Debes pasar el hwnd de la aplicacion que se la quieras quitar.

por las dudas te aclaro que esto no modifica la aplicacion, osea que cada ves que se ejecute tenes que llamar a estas funciones, me entenes, no vas a modificar el exe de raiz.

Saludos
En línea

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  
Powered by SMF 1.1.16 | SMF © 2006-2008, Simple Machines