Skip to main content

Chrome OS : Ways to Bypass Kernel protections

Chrome OS : Ways to Bypass Kernel protections

*First Protection to Bypass : NX (Never eXecute)*

Programs usually don't need to put their code on stack, so, it's logical to prevent them from doing it and executing content from there. NX is a protection option coming from processor used to control execution rights from some pages and used by Linux kernel. In this way, the operating system can use this facility to define what pages will have code and what others will have data.

So, with this protection, we still can store our shellcode in the stack, but, we can't execute it. How to check it ?

We need to ask for the CPU features of our current machine though 'flags' and founf that >NX< flag is active, it means NX protection is on.

We can bypass this protection using something called ret2libc only if another protection called ASLR (Address Space Layout Randomization) is not used (ASLR works as like sharm on 64bits processors and not so good on 32bits). A more extended and better way is to use ROP (Return Oriented Programming) because it can use any library you got as far as you know it very well and have the conditions required (actually, ret2libc is a basic form of ROP).

Also, just for the records, stack-smashing protection will help to prevent this kind of attacks too.

Comments

Popular posts from this blog

Physical Teleportation Theoretical method to do It!

Teleportation is the ability of moving matter from one point in time and space to another point in time and space instantaneously. There are different types of teleportation available at this time both visual and physical teleportation are possible and we use visual teleportation as our starting point. Types Visual body teleportation Astral body teleportation The different types of visual teleportation are. visual body or astral body teleportation , or visual object teleportation but before we can master teleportation we must first learn the art of Telekinesis/Psychokinesis and Clairsentience and the higher state of consciousness the seventh sense. Other abilities useful in teleportation are Tele-Visualization and ESP (Extrasensory Perception). The ability of teleportation is used in Time travel, Interstellar travel, and Dimensional travel. Teleportation is the near instantaneous transport of the Psychic from one location to another and there is no other fo...

Professional Tips ON How To Be A Great Guitar Player

Professional Tips ON How To Be  A Great Guitar Player Everyone has their favourite and everyone loves their favourite for a different reason. When I was 13 I didn't play guitar, but my favourite guitar player was Slash  from  GN'R . Why? because he looked like the best guitar player in the world, he wore cool clothes, played his guitar in a cool way, wore a cool hat and was in a cool band. When I learned to play guitar I found and affection for playing blues music and then  Stevie Ray Vaughn became my favourite guitarist. I liked him the best because he could play fast, sound soulful and wore a cool hat. Everyone likes their heroes for different reasons, so what makes a great player great? I mean  Eric Clapton  is considered to be a great and so is Randy Rhoads , but they have distincly different styles, so what makes us consider them both to be greats? I have attempted to compile a list of criteria that guitarists fit to be a great. Some fit into mor...

All UBUNTU keyboard Shortcuts

All UBUNTU keyboard Shortcuts UBUNTU is one of the popular operating system based on LINUX. It has a good number of users after fedora. I have already posted keyboard shortcuts for different web browsers and operating system. Today i am posting keyboard shortcuts for UBUNTU which will help you to work faster. Ctrl + A = Select all Ctrl + C = Copy the highlighted content to clipboard Ctrl + V = Paste the clipboard content Ctrl + N = New (Create a new document, not in terminal) Ctrl + O = Open a document Ctrl + S = Save the current document Ctrl + P = Print the current document Ctrl + W = Close the close document Ctrl + Q = Quit the current applicationKeyb­oard shortcuts for GNOME desktopCtrl + Alt + F1 = Switch to the first virtual terminal Ctrl + Alt + F2(F3)(F4)(F5)(F6) = Select the different virtual terminals Ctrl + Alt + F7 = Restore back to the current terminal session with X Ctrl + Alt + Backspace = Restart GNOME Alt + Tab = Switch between open programs Ctrl + ...