Devilzc0de Forum Follow @devilzc0de
  • Home
  • Hacking
  • Networking
  • Programming
  • O.S
  • Server
  • Tweets
  • Search
  • Member List
  • Calendar
Current time: 05-26-2013, 05:27 AM Hello There, Guest! (Login — Register)
Devilzc0de Forum › Information Technology › Programming › Assembly v
1 2 3 Next »

getpriv.s kodingan iseng2

Home General Computer Multimedia Business Lounge

Post Reply 
Tweet
Threaded Mode | Linear Mode
getpriv.s kodingan iseng2
01-14-2012, 07:45 AM
Post: #1
ev1lut10n Offline
./Devilz Officer
Posts: 239
Joined: Aug 2011
Reputation: 82
getpriv.s kodingan iseng2
iseng dikit
kompile:
as -o getpriv.o getpriv.s
ld -o getpriv getpriv.o

==============
#getpriv.s
#c0d3r: ev1lut10n
#a simple code to check our privilege
#for: freebsd 32 bit

.section .rodata
w00t:
.ascii "w00t we g0t r00t privilege\n"
blew00t = . - w00t
n0_r00t:
.ascii "S0rry we're n0t r00t\n"
blen0_r00t = . - n0_r00t

.globl _start
_start:

pr3p4r3_0pt:
pushl %ebx
pushl %esi
pushl %edi
pushl %ebp
jmp utama

get_privilege:
pushl %ebp
movl %esp, %ebp
movl $24,%eax
pushl %eax
int $0x80

cmpb $0,%al
jz g0tr00t
jmp n0tr00t
movl %ebp, %esp
popl %ebp
lret

utama:
pushl %ebp
movl %esp, %ebp


call get_privilege

movl %ebp, %esp
popl %ebp

g0tr00t:
pushl %ebp
movl %esp, %ebp
pushl $blew00t
pushl $w00t
pushl $1
movl $4,%eax
pushl %eax
int $0x80
movl %ebp, %esp
popl %ebp
jmp out

n0tr00t:
pushl %ebp
movl %esp, %ebp
pushl $blen0_r00t
pushl $n0_r00t
pushl $1
movl $4,%eax
pushl %eax
int $0x80
movl %ebp, %esp
popl %ebp
jmp out

out:
movl $1, %eax
pushl $0
pushl %eax
int $0x80
================
Find all posts by this user
Quote this message in a reply
 Reputed by :  ketek(+1)
01-14-2012, 09:16 AM
Post: #2
chaer.newbie Offline
--------------------------
*****
Dewa
Posts: 5,288
Joined: Dec 2009
Reputation: 184
RE: getpriv.s kodingan iseng2
ini bakal apaan dom? gw bisa jadi heker ga kalo runing program ini hah
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Topic Tools
Topic Link :
BBCode :
HTML Code :
View a Printable Version Send Thread to a Friend Subscribe to this thread
Submit Google Submit Face book Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Jeqq

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  kodingan iseng-iseng syn_attack 3 442 10-06-2012 12:14 AM
Last Post: 1st_N3iCs

Users Browsing
1 Guest(s)

  • Contact Us
  • devilzc0de
  • Return to Top
  • Mobile Version
  • RSS Syndication
  • Help
Current time: 05-26-2013, 05:27 AM Powered By MyBB, © 2002-2013 MyBB Group. Theme created by Justin S. | Mixed By Chaer.Newbie | Fixed By Aditya

USING THIS SITE INDICATES THAT YOU HAVE READ AND ACCEPT OUR TERMS. IF YOU DO NOT ACCEPT THESE TERMS, YOU ARE NOT AUTHORIZED TO USE THIS SITE