-
Notifications
You must be signed in to change notification settings - Fork 2
/
GetAppid.sh
46 lines (42 loc) · 1.06 KB
/
GetAppid.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
apt-get install -y \
openbox \
xorg \
dbus-user-session \
curl \
unzip \
xvfb \
supervisor \
libnotify4 \
libnss3 \
xdg-utils \
libsecret-1-0 \
ffmpeg \
libgbm1 \
libasound2 \
fonts-wqy-zenhei \
gnutls-bin \
tzdata
# 安装关键依赖
apt-get install fluxbox -y
apt-get install x11vnc -y
# 安装QQ
curl -o linuxqq.deb $1
dpkg -i linuxqq.deb
apt-get -f install -y
rm linuxqq.deb
chmod 777 /opt/QQ/
#mv ./LoadDelay.js /opt/QQ/resources/app/LoadDelay.js
#sed -i 's/"main": ".\/application\/app_launcher\/index.js"/"main": ".\/LoadDelay.js"/' /opt/QQ/resources/app/package.json
# 启动QQ
dbus-daemon --config-file=/usr/share/dbus-1/system.conf --print-address &
Xvfb :1 -screen 0 1080x760x16 &
sleep 5 # 等待 Xvfb 启动
export DISPLAY=:1
fluxbox &
sleep 5 # 等待 fluxbox 启动
x11vnc -display :1 -noxrecord -noxfixes -noxdamage -forever -rfbauth ~/.vnc/passwd &
python -m pip install frida
#/opt/QQ/qq --no-sandbox --disable-gpu
sudo python GetAppid.py
# 输出所有名为qq的进程
ps -ef | grep qq