Jump to content
em

[Assembly] Generarea tuturor parolelor posibile de 6 caractere

Recommended Posts

Posted


; 20.02.2011 - em

.model small
.286
.stack
.data
brute db "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
lungi dw $-brute
.code
cout macro par
pusha
mov dl,par
mov ah,2
int 21h
popa
endm
start:
mov ax,@data
mov ds,ax
xor si,si
loop1:
push si
xor si,si
loop2:
push si
xor si,si
loop3:
push si
xor si,si
loop4:
push si
xor si,si
loop5:
push si
xor si,si
loop6:
pop bx
pop dx
pop cx
pop ax
pop di

xchg si,di
cout [si]
xchg si,di

xchg si,ax
cout [si]
xchg si,ax

xchg si,cx
cout [si]
xchg si,cx

xchg si,dx
cout [si]
xchg si,dx

cout [bx]

push di
push ax
push cx
push dx
push bx
cout [si]
cout 0ah

inc si
cmp si,lungi
jne loop6
pop si
inc si
cmp si,lungi
jne loop5
pop si
inc si
cmp si,lungi
jne loop4
pop si
inc si
cmp si,lungi
jne loop3
pop si
inc si
cmp si,lungi
je aici
jmp loop2
aici:
pop si
inc si
cmp si,lungi
je final
jmp loop1
final:

mov ah,4ch
int 21h
end start

EXE: aici (736 bytes)

- La ce e bun?

- La nimic, dar puteti incerca $ BRUTE.EXE > file.txt si sa vedeti in cat timp va ocupa tot spatiul de pe hdd. :) Sau poate sa il modificati si sa faceti ceva util cu el?

  • Upvote 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...