It looks like you're new here. If you want to get involved, click one of these buttons!
# Hello_iexploit_gretting.s
# Semtex-Primed
.section .data # initialised data
welcome:
.ascii \"Hello iExploit\n\"
welcome_end:
greeting:
.ascii \"Welcome \"
greeting_end:
gtfo:
.ascii \"now GTFO my pc!\n\"
gtfo_end:
### LENGTHS OF VAR's ###
.equ greeting_len, greeting_end - greeting
.equ welcome_len, welcome_end - welcome
.equ gtfo_len, gtfo_end - gtfo
### SYSCALLS ###
.equ STDOUT, 1
.equ STDIN, 2
.equ EXIT, 1
.equ READ, 3
.equ WRITE, 4
.equ SYSCALL, 0x80
.section .bss # uninitialised data
.lcomm BUFF,100
.section .text
.globl _start #declaring program starts at '_start'
##program starts
_start:
# output welcome msg
movl $STDOUT, %ebx
movl $welcome, %ecx
movl $welcome_len, %edx
movl $WRITE, %eax
int $SYSCALL
# read into buffer
movl $READ, %eax
movl $STDIN, %ebx
movl $BUFF, %ecx
int $SYSCALL
# output greeting
movl $STDOUT, %ebx
movl $greeting, %ecx
movl $greeting_len, %edx
movl $WRITE, %eax
int $SYSCALL
# output contents of buffer to same line
movl $STDOUT, %ebx
movl $BUFF, %ecx
movl $WRITE, %eax
int $SYSCALL
# gtfo output
movl $STDOUT, %ebx
movl $gtfo, %ecx
movl $gtfo_len, %edx
movl $WRITE, %eax
int $SYSCALL
# program exit.
movl $0, %ebx
movl $EXIT, %eax
int $SYSCALL
I was but I picked up the new ubuntu 10.10 and just haven't been bothered to check out the latest mint. I probably will upgrade to another distro if I can sort out the acpi driver to work with my laptop.