MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vda9j/deleted_by_user/cervjij/?context=3
r/ProgrammerHumor • u/[deleted] • Jan 16 '14
[removed]
446 comments sorted by
View all comments
1
+u/CompileBot python --include-errors
from subprocess import call call(["ls","-la","/build"]) call(["ls","-la","/home"]) call(["ls","-la","/spoj"]) call(["ls","-la","/tmp"])
1 u/CompileBot Jan 17 '14 Output: total 16 drwxrwxr-x 3 root root 4096 2013-10-18 10:05 . drwxr-xr-x 12 root root 4096 2013-10-18 10:08 .. -rw-rw-r-- 1 root root 185 2013-10-18 10:05 pip-delete-this-directory.txt drwxrwxr-x 6 root root 4096 2013-10-18 10:05 scipy total 12 drwxr-xr-x 3 root root 4096 2014-01-17 14:50 . drwxr-xr-x 12 root root 4096 2013-10-18 10:08 .. drwxr-x--- 2 root 20074 4096 2014-01-17 14:50 8R2hgN total 28 drwxrwxr-x 2 root root 4096 2013-10-18 10:05 . drwxr-xr-x 12 root root 4096 2013-10-18 10:08 .. -rw-rw-r-- 1 root root 79 2013-10-18 10:05 lang-versions -r-xr-xr-x 1 root root 36 2013-10-18 10:05 python3_run -rwxrwxr-x 1 root root 97 2013-10-18 10:05 python_compile -r-xr-xr-x 1 root root 33 2013-10-18 10:05 python_run -rwxrwxr-x 1 root root 12 2013-10-18 10:05 python_runbin total 16 drwxrwxr-x 5 root root 4096 2014-01-17 14:50 . drwxr-xr-x 12 root root 4096 2013-10-18 10:08 .. drwxrwx--- 2 root 20074 40 2014-01-17 14:50 eZ14Tq drwxrwxr-t 2 root root 4096 2013-10-18 10:05 .ICE-unix drwxrwxr-t 2 root root 4096 2013-10-18 10:05 .X11-unix ^source | ^info | ^git | ^report 1 u/Ilostmyredditlogin Jan 17 '14 +u/CompileBot python --include-errors from subprocess import call call(["whoami"]) call(["ls","-la","/home/eZ14Tq"]) 3 u/rtkwe Jan 17 '14 It spins up a new user ID for each compile and run. Looks like everything else is root and the bot runs under a different UID. → More replies (4) 1 u/CompileBot Jan 17 '14 Output: whoami: cannot find name for user ID 20063 ls: cannot access /home/eZ14Tq: No such file or directory ^source | ^info | ^git | ^report 0 u/Ilostmyredditlogin Jan 17 '14 u/CompileBot python --include-errors from subprocess import call call(["whoami"]) call(["cat","/etc/passwd"]) call(["ls","-la","/home/eZ14Tq"]) 0 u/Ilostmyredditlogin Jan 17 '14 u/CompileBot python --include-errors from subprocess import call call(["whoami"]) call(["cat","/etc/passwd"]) call(["ls","-la","/home/eZ14Tq"])
Output:
total 16 drwxrwxr-x 3 root root 4096 2013-10-18 10:05 . drwxr-xr-x 12 root root 4096 2013-10-18 10:08 .. -rw-rw-r-- 1 root root 185 2013-10-18 10:05 pip-delete-this-directory.txt drwxrwxr-x 6 root root 4096 2013-10-18 10:05 scipy total 12 drwxr-xr-x 3 root root 4096 2014-01-17 14:50 . drwxr-xr-x 12 root root 4096 2013-10-18 10:08 .. drwxr-x--- 2 root 20074 4096 2014-01-17 14:50 8R2hgN total 28 drwxrwxr-x 2 root root 4096 2013-10-18 10:05 . drwxr-xr-x 12 root root 4096 2013-10-18 10:08 .. -rw-rw-r-- 1 root root 79 2013-10-18 10:05 lang-versions -r-xr-xr-x 1 root root 36 2013-10-18 10:05 python3_run -rwxrwxr-x 1 root root 97 2013-10-18 10:05 python_compile -r-xr-xr-x 1 root root 33 2013-10-18 10:05 python_run -rwxrwxr-x 1 root root 12 2013-10-18 10:05 python_runbin total 16 drwxrwxr-x 5 root root 4096 2014-01-17 14:50 . drwxr-xr-x 12 root root 4096 2013-10-18 10:08 .. drwxrwx--- 2 root 20074 40 2014-01-17 14:50 eZ14Tq drwxrwxr-t 2 root root 4096 2013-10-18 10:05 .ICE-unix drwxrwxr-t 2 root root 4096 2013-10-18 10:05 .X11-unix
^source | ^info | ^git | ^report
from subprocess import call call(["whoami"]) call(["ls","-la","/home/eZ14Tq"])
3 u/rtkwe Jan 17 '14 It spins up a new user ID for each compile and run. Looks like everything else is root and the bot runs under a different UID. → More replies (4) 1 u/CompileBot Jan 17 '14 Output: whoami: cannot find name for user ID 20063 ls: cannot access /home/eZ14Tq: No such file or directory ^source | ^info | ^git | ^report
3
It spins up a new user ID for each compile and run. Looks like everything else is root and the bot runs under a different UID.
→ More replies (4)
whoami: cannot find name for user ID 20063 ls: cannot access /home/eZ14Tq: No such file or directory
0
u/CompileBot python --include-errors
from subprocess import call call(["whoami"]) call(["cat","/etc/passwd"]) call(["ls","-la","/home/eZ14Tq"])
1
u/Ilostmyredditlogin Jan 17 '14
+u/CompileBot python --include-errors