downfb / start.sh
nicholaslewishub5884's picture
Update start.sh
5beef4e verified
Raw
History Blame Contribute Delete
529 Bytes
#!/bin/bash
git clone "$REPO" .
npm install
# Tạo một file resolv.conf ảo ở thư mục bạn có quyền ghi
echo -e "nameserver 1.1.1.1\nnameserver 8.8.8.8" > /tmp/fake_resolv.conf
# Kích hoạt thư viện LD_PRELOAD để ghi đè Kernel API
export LD_PRELOAD=libresolv_wrapper.so
export RESOLV_WRAPPER_CONF=/tmp/fake_resolv.conf
echo "Đã đánh lừa toàn bộ ứng dụng đọc DNS từ fake_resolv.conf!"
# Chạy ứng dụng Node.js của bạn
cat /etc/resolv.conf
node index && cat /etc/resolv.conf