Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rarc2 #8

Closed
voxsim opened this issue Aug 3, 2012 · 11 comments
Closed

rarc2 #8

voxsim opened this issue Aug 3, 2012 · 11 comments

Comments

@voxsim
Copy link

voxsim commented Aug 3, 2012

Hi,

Anyone can you explain why rarc2 is dismissed?

There is any way to do the command: echo 'main@global(,64){printf("hello world\n");}' | rarc2 -s > hello.S in the radare2?

Thanks in advance,
Simon

@radare
Copy link
Collaborator

radare commented Aug 3, 2012

Rarc has been integrated in r_egg and it's available in ragg2.

See manpage for details.

On Aug 3, 2012, at 9:28, Simon Vocellareply@reply.github.com wrote:

Hi,

Anyone can you explain why rarc2 is dismissed?

There is any way to do the command: echo 'main@global(,64){printf("hello world\n");}' | rarc2 -s > hello.S in the radare2?

Thanks in advance,
Simon


Reply to this email directly or view it on GitHub:
#8

@voxsim
Copy link
Author

voxsim commented Aug 3, 2012

Hi radare (or do you have another name?),

Thanks for you answer, I read the manpages of ragg2 and ragg2-cc and I do some tries:

-- Try number 1 -> Works
ragg2-cc hi.c
./hi.c.bin
Hello

-- Try number 2 -> Don't work
ragg2-cc -s hi.c
gcc hi.c.s
Error:
/tmp/ccfxkrgr.o: In function __x86.get_pc_thunk.bx': hi.c:(.text+0x41): multiple definition of__x86.get_pc_thunk.bx'
/usr/lib/gcc/i686-pc-linux-gnu/4.7.1/../../../crti.o:(.gnu.linkonce.t.__x86.get_pc_thunk.bx+0x0): first defined here
collect2: error: ld returned 1 exit status

-- Try numer 3 -> Don't work
ragg2 -O -F hi.r
./hi
Error: Segmentation fault

-- Try number 4 -> Don't work
ragg2 hi.c

Error:
WARNING: No room in the static stackframe! (0 must be 7)
Cannot assemble 'call int main'
fail assembling
r_egg_assemble: invalid assembly

I don't want bother you, but I have some problems as you can see :D

Have I done something wrong?

I have an Archlinux installation, if he can be useful, I can help to fix these problems!

greetings,
Simon

@radare
Copy link
Collaborator

radare commented Aug 3, 2012

You can call me 'pancake' :)

There are several known issues in ragg2 and r_egg. I'm aware of some of them, but its hard to fix them all because of the number of supported platforms (os/arch) and now it used rasm2 and rbin instead of gcc to compile final code. Which can result on magic bugs in several layers of the stack.

I want to get it fully working before r2 1.0 so i'll happily accept patches and ideas for it. Afaik you are the first person interested on using it :)

I use archlinux and osx. But it will be great if you can contribute with some patches here. I have many TODOs right now before checking r_egg.

Thanks!

On Aug 3, 2012, at 14:47, Simon Vocellareply@reply.github.com wrote:

Hi radare (or do you have another name?),

Thanks for you answer, I read the manpages of ragg2 and ragg2-cc and I do some tries:

-- Try number 1 -> Works
ragg2-cc hi.c
./hi.c.bin
Hello

-- Try number 2 -> Don't work
ragg2-cc -s hi.c
gcc hi.c.s
Error:
/tmp/ccfxkrgr.o: In function __x86.get_pc_thunk.bx': hi.c:(.text+0x41): multiple definition of__x86.get_pc_thunk.bx'
/usr/lib/gcc/i686-pc-linux-gnu/4.7.1/../../../crti.o:(.gnu.linkonce.t.__x86.get_pc_thunk.bx+0x0): first defined here
collect2: error: ld returned 1 exit status

-- Try numer 3 -> Don't work
ragg2 -O -F hi.r
./hi
Error: Segmentation fault

-- Try number 4 -> Don't work
ragg2 hi.c

Error:
WARNING: No room in the static stackframe! (0 must be 7)
Cannot assemble 'call int main'
fail assembling
r_egg_assemble: invalid assembly

I don't want bother you, but I have some problems as you can see :D

Have I done something wrong?

I have an Archlinux installation, if he can be useful, I can help to fix these problems!

greetings,
Simon


Reply to this email directly or view it on GitHub:
#8 (comment)

@voxsim
Copy link
Author

voxsim commented Aug 4, 2012

Hi pancake :)

I know this project thanks to smashthestak challenge, do you know?
In the level05 of io.smashthestack there is a presentation about radare for buffer overflow exploiting.
I read your TODO and yeah, you have much work XD
Tomorrow I'm going to holyday, but when I return I'll see these bugs and I'll try to fix it ;)
If is not a problem, I leave the issue open and when I'll solved the bugs, I'll pull request from my fork and close ;)

greetings,
Simon

@radare
Copy link
Collaborator

radare commented Aug 4, 2012

Yes, I know the challenge and some of the guys ruling it asked me for using radare there :)

I'm back from holidays in monday. I plan to release before september, so it will be great to get this working too.

There is a test suite that is checked out when running 'make tests' you can put your tests there.. But i think there are several bugs to fix before writing more tests :)

Thanks an enjoy your holidays!

On Aug 4, 2012, at 12:01, Simon Vocellareply@reply.github.com wrote:

Hi pancake :)

I know this project thanks to smashthestak challenge, do you know?
In the level05 of io.smashthestack there is a presentation about radare for buffer overflow exploiting.
I read your TODO and yeah, you have much work XD
Tomorrow I'm going to holyday, but when I return I'll see these bugs and I'll try to fix it ;)
If is not a problem, I leave the issue open and when I'll solved the bugs, I'll pull request from my fork and close ;)

greetings,
Simon


Reply to this email directly or view it on GitHub:
#8 (comment)

@voxsim
Copy link
Author

voxsim commented Aug 4, 2012

Ok! thanks for the informations ;)

@voxsim
Copy link
Author

voxsim commented Aug 20, 2012

Hi pancake! I'm back ;) can I contact you with the email pancake@nopcode.org?

@radare
Copy link
Collaborator

radare commented Aug 20, 2012

sure :) you can also join the irc.freenode.net #radare

On 08/20/12 14:10, Simon Vocella wrote:

Hi pancake! I'm back ;) can I contact you with the email
pancake@nopcode.org mailto:pancake@nopcode.org?


Reply to this email directly or view it on GitHub
#8 (comment).

@radare
Copy link
Collaborator

radare commented Aug 30, 2012

@voxsim Hello? :)

@voxsim
Copy link
Author

voxsim commented Aug 30, 2012

Hi pancake! Excuse me! I have to do to many things in the same time!
I have seen the test suite but I have some tests that don't work, maybe I need some support.
Saturday or Sunday if I have time I'll retry to see this and my tests on ragg2/ragg2-cc and I'll reply all here!

@radare
Copy link
Collaborator

radare commented Sep 7, 2012

I'm closing this bug as long as the problem has been fixed in git. Please open new bugs for other ragg2 related issues.

@radare radare closed this as completed Sep 7, 2012
@ghost ghost mentioned this issue Oct 22, 2013
@ghost ghost mentioned this issue Nov 12, 2013
@radare radare mentioned this issue Feb 17, 2014
@radare radare mentioned this issue Sep 27, 2014
@radare radare mentioned this issue Sep 5, 2018
@ghost ghost mentioned this issue Feb 2, 2019
@radare radare mentioned this issue Mar 12, 2019
yossizap pushed a commit to yossizap/radare2 that referenced this issue Dec 30, 2019
for some reason I do not understand, this is necessary for AUTOUIC
to be able to recognize the file.
This was referenced Mar 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants