Sploitus

Exploit for tools-for

kitploit · 2026-08-26

Exploit Code

MARKDOWN60 lines
## https://sploitus.com/exploit?id=KITPLOIT:TOOLS-GITHUB-USERNAMEID0-TOOLS-FOR-CVE-2018-1000001
# CVE-2018-1000001 के लिए उपकरण

## भेद्यता जाँचें:

root@kitploit:~
    
    
    $ cat /proc/sys/kernel/unprivileged_userns_clone
    

आउटपुट:

root@kitploit:~
    
    
    1
    

यदि फ़ाइल "/proc/sys/kernel/unprivileged_userns_clone" मौजूद नहीं है:

root@kitploit:~
    
    
    $ unshare -mU /bin/sh -c "sleep 5" & /bin/sh -c "sleep 1; cd /proc/$!/cwd; realpath .; kill -9 $!"
    

आउटपुट में '/' से पहले "(unreachable)" स्ट्रिंग होना चाहिए:

root@kitploit:~
    
    
    [1] 12345
    (unreachable)/home/user
    

## tool.so

विकल्प पर्यावरण चरों के माध्यम से पास किए जाते हैं:

root@kitploit:~
    
    
    TRACE_DEBUG=1  - Value for printing debug information (Default: 0)
    STACK_SIZE=100 - Size output data of stack (Default: 100)
    

चलाने का तरीका:

root@kitploit:~
    
    
    $ make
    $ cp /bin/umount .
    $ LD_PRELOAD="$(realpath tool.so)" TRACE_DEBUG=1 STACK_SIZE=100 ./umount /root
    

## अधिक

https://www.halfdog.net/Security/2017/LibcRealpathBufferUnderflow/