forked from Adastra-thw/ExploitSerie
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMacroTest.asm
More file actions
51 lines (31 loc) · 843 Bytes
/
Copy pathMacroTest.asm
File metadata and controls
51 lines (31 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
.386
.model flat, stdcall
option casemap :none
include C:\masm32\include\windows.inc
include C:\masm32\include\masm32.inc
include C:\masm32\include\kernel32.inc
includelib \masm32\lib\masm32.lib
includelib \masm32\lib\kernel32.lib
; Definir MACRO PrintOnScreen
PrintOnScreen MACRO location
invoke StdOut, location
ENDM
; Definir MACRO Exit
Exit MACRO
invoke ExitProcess, 0
ENDM
.data
EnterNumber db "Ingresar un numero : ",0
numeroIngresado db 50 DUP(0)
.code
start:
invoke StdOut, addr EnterNumber
invoke StdIn, addr numeroIngresado, 49
; Invocar al Macro
PrintOnScreen addr numeroIngresado
mov eax, 0
test eax, eax
PrintOnScreen addr numeroIngresado
; Exit the program
Exit
end start