Subdomain Posts
ASM (NASM) | 3 days ago
ASM (NASM) | 7 days ago
ASM (NASM) | 17 days ago
ABAP | 25 days ago
ASM (NASM) | 51 days ago
ASM (NASM) | 54 days ago
ASM (NASM) | 94 days ago
ASM (NASM) | 109 days ago
None | 399 days ago
ASM (NASM) | 731 days ago
Recent Posts
Bash | 4 sec ago
None | 5 sec ago
XML | 7 sec ago
Bash | 11 sec ago
Python | 13 sec ago
mIRC | 31 sec ago
XML | 33 sec ago
None | 1 min ago
None | 1 min ago
None | 1 min ago
Sitereport
Find cool info about any domain on the internet?
visit sitereport
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
Learn a little bit about the new Pastebin.com on our help page. hide message
By tekhammer on the 14th of Feb 2009 01:53:42 AM Download | Raw | Embed | Report
  1. section .bss
  2.         buf     resb    64
  3. section .data
  4. %define bufsize         64
  5. %define sys_getcwd      183
  6. %define sys_exit        1
  7. %define sys_write       4
  8.         lf      db      10
  9.  
  10. section .text
  11.         global _start
  12. _start:
  13.         mov     eax,sys_getcwd
  14.         lea     ebx,[buf]
  15.         mov     ecx,bufsize
  16.         int     80h
  17.  
  18.         mov     eax,sys_write
  19.         mov     ebx,1
  20.         lea     ecx,[buf]
  21.         mov     edx,bufsize
  22.         int     80h
  23.  
  24.         call    linefd
  25.  
  26.         mov     eax,sys_exit
  27.         mov     ebx,0
  28.         int     80h
  29.  
  30. linefd  push    eax                             ; save values of registers to stack
  31.         push    ebx
  32.         push    ecx
  33.         push    edx
  34.         mov     eax,sys_write
  35.         mov     ebx,1
  36.         mov     ecx,lf
  37.         mov     edx,1
  38.         int     80h
  39.  
  40.         pop     edx                             ; return values to normal
  41.         pop     ecx
  42.         pop     ebx
  43.         pop     eax
  44.         ret
Submit a correction or amendment below. Make A New Post
To highlight particular lines, prefix each line with @h@
Syntax highlighting:
Post expiration:
Post exposure:
Name / Title:
Email: