Posted on May 23, 2015
SSG Derek Scheller
9.86K
0
6
0
0
0
I am working on a certification and I am trying to get Root access on a VM, it is an outdated copy of RHEL. The problem is the exploit I need to use is written in C programming and well my C is really rusty. I am hoping some of my cyber fellows know C and can help me out. From what I know it is a syntax issue and is really only missing one character possibly 2. If you can help it would be greatly appreciated. The code is from https://www.exploit-db.com/exploits/778/ again any help would be much appreciated. Thank you.
Edited >1 y ago
Avatar feed
Responses: 1
SSG Human Resources Specialist
0
0
0
is it telling you what line number the error is occurring at?
(0)
Comment
(0)
SSG Human Resources Specialist
SSG (Join to see)
>1 y
Looking over the code, it appears to be sound. However the exploit runs on the 2.4 series, are you using an earlier RHEL series?
(0)
Reply
(0)
SSG Derek Scheller
SSG Derek Scheller
>1 y
Yea it's the 2.4 kernel and I thought the code was sound too that's what I'm asking for another set of eyes because I can't get it to compile.
(0)
Reply
(0)
SSG Derek Scheller
SSG Derek Scheller
>1 y
It comes back with a ton of errors, though after a discussion with my instructor who told me to use it, he makes it sound like it is just one character that is problematic where something isn't terminated properly, like a branch or statement. I can't seem to figure out which though.

"Well if you remember the concepts of opening and closing statements, branches, etc, you'll figure it out. It might to put it into sometype of studio or development suite thy shows you errors in code syntax"

^^^That is what he told me, and I have used Netbeans and some others and nothing is helping with where the issue lies.
(0)
Reply
(0)
SSG Human Resources Specialist
SSG (Join to see)
>1 y
quick question, are you using java too?
(0)
Reply
(0)
Avatar small

Join nearly 2 million former and current members of the US military, just like you.

close