-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathterbuild.sh
More file actions
70 lines (55 loc) · 2.34 KB
/
Copy pathterbuild.sh
File metadata and controls
70 lines (55 loc) · 2.34 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/bin/bash
set -e
# Bu script, Termux'ta 'intconsole' komutu için bir alias oluşturur ve ~/.bashrc dosyasına ekler.
chmod +x terbuild.sh
# İlk çalıştırma için bir kontrol dosyası oluşturun.
if [ ! -f "$HOME/intframework/.install_done" ]; then
python3 "$HOME/intframework/installintconsole.py"
touch "$HOME/intframework/.install_done"
echo "Kurulum tamamlandı."
fi
# Gerekli Python paketlerini yükleyin
pip3 install -r requirements.txt
echo "Gerekli Python paketleri yüklendi."
cd ~
# intconsole dosyasına çalıştırma izni ver ve PATH'e ekle
chmod +x ~/intframework/intconsole
mv ~/intframework/intconsole $PREFIX/bin/
mv ~/intframework $PREFIX/opt/
echo "intconsole dosyası taşındı."
# Zsh kurulumu, isteğe bağlı olarak
read -p "Zsh kurmak istiyor musunuz? (e/h): " choice
if [ "$choice" == "e" ]; then
pkg install zsh
fi
# .bashrc dosyasına alias ekleyin
SHELLRC="$HOME/.bashrc"
if ! grep -q "export INTFRAMEWORK_PATH" $SHELLRC; then
echo "export INTFRAMEWORK_PATH=$PREFIX/opt/intframework" >> $SHELLRC
fi
echo "alias ll='ls -la'" >> $SHELLRC
echo "alias intupdate='apt update && apt upgrade -y && rm -rf ~/intframework && git clone https://github.com/Intikam21kurucu/intframework'" >> $SHELLRC
echo "export INTDIR=$PREFIX/opt/" >> $SHELLRC
echo "alias intframework=\$INTFRAMEWORK_PATH" >> $SHELLRC
echo "alias c='clear'" >> $SHELLRC
echo "alias gs='git status'" >> $SHELLRC
# intconsole fonksiyonunu ekleyin
echo 'intconsole() { ORIGINAL_DIR=$(pwd); cd $INTFRAMEWORK_PATH; python3 intconsoleV4.py; cd $ORIGINAL_DIR; }; alias intconsole="intconsole"' >> $SHELLRC
# Diğer alias'ları ekleyin
echo "alias introjan='python3 \$INTFRAMEWORK_PATH/introjan.py'" >> $SHELLRC
echo "alias intvenom='python3 \$INTFRAMEWORK_PATH/intvenom.py'" >> $SHELLRC
echo "alias intofficial='python3 \$INTFRAMEWORK_PATH/intcam.py'" >> $SHELLRC
echo "alias intninja='python3 \$INTFRAMEWORK_PATH/intninja.py'" >> $SHELLRC
echo "alias intmail='python3 \$INTFRAMEWORK_PATH/intmail.py'" >> $SHELLRC
echo "alias intmeterpreter='python3 \$INTFRAMEWORK_PATH/intmeterpreter.py'" >> $SHELLRC
# ~/.bashrc dosyasını yeniden yükleyin.
source $SHELLRC
# Ekstra kurulumlar
chmod +x oip
mkdir -p ~/intmodules
mv oip ~/intmodules/
mv ~/intmodules/ $PREFIX/opt/
echo 'export PATH=$PREFIX/opt/intmodules:$PATH' >> ~/.profile
source ~/.profile
oip -h
cd $PREFIX/opt/intframework