mirror of
https://github.com/Pakobbix/passive-income.git
synced 2025-11-09 14:59:40 +00:00
Compare commits
3 Commits
4746e4e57f
...
e463d963ba
| Author | SHA1 | Date | |
|---|---|---|---|
| e463d963ba | |||
| d15b1919cf | |||
| 1df6f685a0 |
83
gui_start.sh
83
gui_start.sh
@ -53,6 +53,9 @@ inputbox() {
|
|||||||
whiptail --title "$1" --inputbox "$2" 30 100 3>&1 1>&2 2>&3
|
whiptail --title "$1" --inputbox "$2" 30 100 3>&1 1>&2 2>&3
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ebesucher_folder_root="/root/ebesucher"
|
||||||
|
ebesucher_folder_user="/home/"$linux_user"/ebesucher/"
|
||||||
|
|
||||||
# get the last logged in User
|
# get the last logged in User
|
||||||
linux_user=$(w | awk '{print $1}' | tail -n1)
|
linux_user=$(w | awk '{print $1}' | tail -n1)
|
||||||
|
|
||||||
@ -150,7 +153,7 @@ Traffmonetizer. Vermiete deine IP-Adresse als Proxy
|
|||||||
https://traffmonetizer.com/?aff=607897" 32 80
|
https://traffmonetizer.com/?aff=607897" 32 80
|
||||||
|
|
||||||
# Selection menu.
|
# Selection menu.
|
||||||
einzurichten=$(whiptail --title "Was möchtest du Einrichten?" --separate-output --checklist "Wähle was du einrichten möchtest:\n\nMit Leertaste haken entfernen/hinzufügen.\nMit Enter bestätigen" 18 100 7 "Ebesucher" "Ruft werbepartner links auf und Zahlt dich in Punkten aus " ON "Honeygain" "Vermiete deine IP-Adresse als Proxy" ON "Peer2Profit" "Vermiete deine IP-Adresse als Proxy" ON "EarnAPP" "Vermiete deine IP-Adresse als Proxy" ON "Packetstream" "Vermiete deine IP-Adresse als Proxy" ON "Pawns.app" "Vermiete deine IP-Adresse als Proxy" ON "Traffmonetizer" "Vermiete deine IP-Adresse als Proxy" ON 3>&1 1>&2 2>&3)
|
einzurichten=$(whiptail --title "Was möchtest du Einrichten?" --separate-output --checklist "Wähle was du einrichten möchtest:\n\nMit Leertaste haken entfernen/hinzufügen.\nMit Enter bestätigen" 18 100 7 "Ebesucher" "Ruft werbepartner links auf und Zahlt dich in Punkten aus " ON "Honeygain" "Vermiete deine IP-Adresse als Proxy" ON "Peer2Profit" "Vermiete deine IP-Adresse als Proxy" ON "EarnAPP" "Vermiete deine IP-Adresse als Proxy" ON "Packetstream" "Vermiete deine IP-Adresse als Proxy" ON "Pawns.app" "Vermiete deine IP-Adresse als Proxy" ON "Traffmonetizer" "Vermiete deine IP-Adresse als Proxy" ON "Repocket" "Vermiete deine IP-Adresse als Proxy" ON 3>&1 1>&2 2>&3)
|
||||||
if [ -z "$einzurichten" ]; then
|
if [ -z "$einzurichten" ]; then
|
||||||
echo "Nichts wurde ausgewählt"
|
echo "Nichts wurde ausgewählt"
|
||||||
exit
|
exit
|
||||||
@ -188,7 +191,10 @@ else
|
|||||||
#######################
|
#######################
|
||||||
EarnAPP)
|
EarnAPP)
|
||||||
wget -qO- https://brightdata.com/static/earnapp/install.sh >/tmp/earnapp.sh
|
wget -qO- https://brightdata.com/static/earnapp/install.sh >/tmp/earnapp.sh
|
||||||
RandomID=$(tr -dc A-Za-z0-9 </dev/urandom | head -c 32 ; echo '')
|
RandomID=$(
|
||||||
|
tr -dc A-Za-z0-9 </dev/urandom | head -c 32
|
||||||
|
echo ''
|
||||||
|
)
|
||||||
chmod +x /tmp/earnapp.sh
|
chmod +x /tmp/earnapp.sh
|
||||||
sed -i "s/RID=.*/RID=$RandomID/g" /tmp/earnapp.sh
|
sed -i "s/RID=.*/RID=$RandomID/g" /tmp/earnapp.sh
|
||||||
echo "yes" | sudo bash /tmp/earnapp.sh
|
echo "yes" | sudo bash /tmp/earnapp.sh
|
||||||
@ -234,6 +240,15 @@ else
|
|||||||
fehler "TraffMonetizer konnte nicht eingerichtet werden"
|
fehler "TraffMonetizer konnte nicht eingerichtet werden"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
Repocket)
|
||||||
|
repocketmail=$(whiptail --title "Repocket E-Mail" --inputbox "Gebe deine Repocket E-Mail adresse an: " 20 70 3>&1 1>&2 2>&3)
|
||||||
|
repocketspass=$(whiptail --title "Repocket Password" --passwordbox "Gebe dein Repocket Passwort ein: " 20 70 3>&1 1>&2 2>&3)
|
||||||
|
if docker rm -f repocket || true && docker run -d --name repocket -e RP_MAIL="$repocketmail" -e RP_PASSWORD="$repocketspass" --restart always repocket/repocket; then
|
||||||
|
erfolg "Repocket wurde eingerichtet"
|
||||||
|
else
|
||||||
|
fehler "Repocket konnte nicht eingerichtet werden"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
#########################
|
#########################
|
||||||
# Ebesucher Einrichtung #
|
# Ebesucher Einrichtung #
|
||||||
#########################
|
#########################
|
||||||
@ -308,30 +323,30 @@ Gebe in das Feld deinen Ebesucher Nutzernamen ein und mache einen Haken bei Priv
|
|||||||
erstelle ich eine Sicherung der Firefox-Konfiguration"
|
erstelle ich eine Sicherung der Firefox-Konfiguration"
|
||||||
{
|
{
|
||||||
echo 10
|
echo 10
|
||||||
if [ -f /root/ebesucher/config.zip ]; then
|
if [ -f $ebesucher_folder_root/config.zip ]; then
|
||||||
# delete blank config.zip
|
# delete blank config.zip
|
||||||
rm -f /root/ebesucher/config.zip
|
rm -f $ebesucher_folder_root/config.zip
|
||||||
fi
|
fi
|
||||||
echo 15
|
echo 15
|
||||||
docker stop ebesucher
|
docker stop ebesucher
|
||||||
echo 20
|
echo 20
|
||||||
cd /root/ebesucher/ || exit
|
cd $ebesucher_folder_root || exit
|
||||||
echo 30
|
echo 30
|
||||||
# pack config folder into new config.zip
|
# pack config folder into new config.zip
|
||||||
sudo zip -r config.zip config/
|
sudo zip -r config.zip config/
|
||||||
echo 40
|
echo 40
|
||||||
# download restart script
|
# download restart script
|
||||||
wget -O /root/ebesucher/restart.sh https://raw.githubusercontent.com/Pakobbix/passive-income/master/restart.sh
|
wget -O $ebesucher_folder_root/restart.sh https://raw.githubusercontent.com/Pakobbix/passive-income/master/restart.sh
|
||||||
echo 60
|
echo 60
|
||||||
# make restart skript executable
|
# make restart skript executable
|
||||||
chmod +x /root/ebesucher/restart.sh
|
chmod +x $ebesucher_folder_root/restart.sh
|
||||||
echo 70
|
echo 70
|
||||||
# add username to restart skript
|
# add username to restart skript
|
||||||
sed -i "s/username=/&$nutzername/g" /root/ebesucher/restart.sh
|
sed -i "s/username=/&$nutzername/g" $ebesucher_folder_root/restart.sh
|
||||||
echo 80
|
echo 80
|
||||||
sed -i "s/CPUcores=/CPUcores=$CPUSet/g" /root/ebesucher/restart.sh
|
sed -i "s/CPUcores=/CPUcores=$CPUSet/g" $ebesucher_folder_root/restart.sh
|
||||||
echo 90
|
echo 90
|
||||||
bash /root/ebesucher/restart.sh
|
bash $ebesucher_folder_root/restart.sh
|
||||||
echo 100
|
echo 100
|
||||||
} | whiptail --gauge "Erstelle Sicherung und Lade Restarter Skript herunter" 6 50 0
|
} | whiptail --gauge "Erstelle Sicherung und Lade Restarter Skript herunter" 6 50 0
|
||||||
# Export current crontab
|
# Export current crontab
|
||||||
@ -339,8 +354,8 @@ erstelle ich eine Sicherung der Firefox-Konfiguration"
|
|||||||
# check if restart script is already configured
|
# check if restart script is already configured
|
||||||
if ! grep -q "ebesucher/restart.sh" "/tmp/ebesucher"; then
|
if ! grep -q "ebesucher/restart.sh" "/tmp/ebesucher"; then
|
||||||
# add restart script, reboot and update to crontab
|
# add restart script, reboot and update to crontab
|
||||||
echo "0 * * * * /bin/bash /root/ebesucher/restart.sh
|
echo "0 * * * * /bin/bash -x /root/ebesucher/restart.sh > /var/log/ebesucher_restart.log 2>&1
|
||||||
@reboot /bin/bash /root/ebesucher/restart.sh
|
@reboot /bin/bash /root/ebesucher/restart.sh > /var/log/ebesucher_restart.log 2>&1
|
||||||
0 0 * * 0 reboot
|
0 0 * * 0 reboot
|
||||||
0 4 * * * /bin/bash /root/update_system.sh" >>/tmp/ebesucher
|
0 4 * * * /bin/bash /root/update_system.sh" >>/tmp/ebesucher
|
||||||
# Let cron reload the new configured crontab
|
# Let cron reload the new configured crontab
|
||||||
@ -351,35 +366,35 @@ erstelle ich eine Sicherung der Firefox-Konfiguration"
|
|||||||
else
|
else
|
||||||
# Ebesucher Configuration if user != root
|
# Ebesucher Configuration if user != root
|
||||||
# Check if ebesucher folder already exists
|
# Check if ebesucher folder already exists
|
||||||
if [ -d /home/"$linux_user"/ebesucher ]; then
|
if [ -d $ebesucher_folder_user ]; then
|
||||||
skip "Ordner ebesucher exestiert bereits"
|
skip "Ordner ebesucher exestiert bereits"
|
||||||
# check if config exists, if yes, ask to overwrite
|
# check if config exists, if yes, ask to overwrite
|
||||||
if [ -f /home/"$linux_user"/ebesucher/config.zip ]; then
|
if [ -f $ebesucher_folder_user/config.zip ]; then
|
||||||
if whiptail --title "Alte config gefunden" --yesno "Es wurde bereits ein Firefox Profil angelegt, soll dieses gelöscht und überschrieben werden?" 20 100; then
|
if whiptail --title "Alte config gefunden" --yesno "Es wurde bereits ein Firefox Profil angelegt, soll dieses gelöscht und überschrieben werden?" 20 100; then
|
||||||
# remove old config
|
# remove old config
|
||||||
rm -f /home/"$linux_user"/ebesucher/config.zip
|
rm -f $ebesucher_folder_user/config.zip
|
||||||
# download blank config
|
# download blank config
|
||||||
wget -O /home/"$linux_user"/ebesucher/config.zip https://github.com/Pakobbix/passive-income/raw/master/config.zip
|
wget -O $ebesucher_folder_user/config.zip https://github.com/Pakobbix/passive-income/raw/master/config.zip
|
||||||
# unpack config
|
# unpack config
|
||||||
unzip -o /home/"$linux_user"/ebesucher/config.zip -d /home/"$linux_user"/ebesucher/
|
unzip -o $ebesucher_folder_user/config.zip -d $ebesucher_folder_user
|
||||||
else
|
else
|
||||||
# unpack config
|
# unpack config
|
||||||
unzip -o /home/"$linux_user"/ebesucher/config.zip -d /home/"$linux_user"/ebesucher/
|
unzip -o $ebesucher_folder_user/config.zip -d $ebesucher_folder_user
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# Create ebesucher folder
|
# Create ebesucher folder
|
||||||
if [ -d /home/"$linux_user"/ebesucher ]; then
|
if [ -d $ebesucher_folder_user ]; then
|
||||||
# download config
|
# download config
|
||||||
wget -O /home/"$linux_user"/ebesucher/config.zip https://github.com/Pakobbix/passive-income/raw/master/config.zip
|
wget -O $ebesucher_folder_user/config.zip https://github.com/Pakobbix/passive-income/raw/master/config.zip
|
||||||
# unpack config
|
# unpack config
|
||||||
unzip -o /home/"$linux_user"/ebesucher/config.zip -d /home/"$linux_user"/ebesucher/
|
unzip -o $ebesucher_folder_user/config.zip -d /home/"$linux_user"/ebesucher/
|
||||||
fi
|
fi
|
||||||
if mkdir /home/"$linux_user"/ebesucher; then
|
if mkdir $ebesucher_folder_user; then
|
||||||
# download config
|
# download config
|
||||||
wget -O /home/"$linux_user"/ebesucher/config.zip https://github.com/Pakobbix/passive-income/raw/master/config.zip
|
wget -O $ebesucher_folder_user/config.zip https://github.com/Pakobbix/passive-income/raw/master/config.zip
|
||||||
# unpack config
|
# unpack config
|
||||||
unzip -o /home/"$linux_user"/ebesucher/config.zip -d /home/"$linux_user"/ebesucher/
|
unzip -o $ebesucher_folder_user/config.zip -d /home/"$linux_user"/ebesucher/
|
||||||
erfolg "Ordner für ebesucher konnte erstellt werden"
|
erfolg "Ordner für ebesucher konnte erstellt werden"
|
||||||
else
|
else
|
||||||
fehler "Der Ordner für ebesucher konnte nicht angelegt werden"
|
fehler "Der Ordner für ebesucher konnte nicht angelegt werden"
|
||||||
@ -416,14 +431,14 @@ Gebe in das Feld deinen Ebesucher Nutzernamen ein und mache einen Haken bei Priv
|
|||||||
erstelle ich eine Sicherung der Firefox-Konfiguration"
|
erstelle ich eine Sicherung der Firefox-Konfiguration"
|
||||||
{
|
{
|
||||||
echo 10
|
echo 10
|
||||||
if [ -f /home/"$linux_user"/ebesucher/config.zip ]; then
|
if [ -f $ebesucher_folder_user/config.zip ]; then
|
||||||
# delete blank config.zip
|
# delete blank config.zip
|
||||||
sudo rm -f /home/"$linux_user"/ebesucher/config.zip 2>/dev/null
|
sudo rm -f $ebesucher_folder_user/config.zip 2>/dev/null
|
||||||
fi
|
fi
|
||||||
echo 15
|
echo 15
|
||||||
docker stop ebesucher
|
docker stop ebesucher
|
||||||
echo 20
|
echo 20
|
||||||
cd /home/"$linux_user"/ebesucher/ || exit
|
cd $ebesucher_folder_user || exit
|
||||||
echo 30
|
echo 30
|
||||||
# pack config folder into new config.zip
|
# pack config folder into new config.zip
|
||||||
zip -r config.zip config/ 2>/dev/null
|
zip -r config.zip config/ 2>/dev/null
|
||||||
@ -431,17 +446,17 @@ erstelle ich eine Sicherung der Firefox-Konfiguration"
|
|||||||
# Give rights back to user
|
# Give rights back to user
|
||||||
sudo chown "$linux_user":"$linux_user" config.zip
|
sudo chown "$linux_user":"$linux_user" config.zip
|
||||||
# download restart script
|
# download restart script
|
||||||
wget -O /home/"$linux_user"/ebesucher/restart.sh https://raw.githubusercontent.com/Pakobbix/passive-income/master/restart.sh
|
wget -O $ebesucher_folder_user/restart.sh https://raw.githubusercontent.com/Pakobbix/passive-income/master/restart.sh
|
||||||
echo 50
|
echo 50
|
||||||
# add username to restart skript
|
# add username to restart skript
|
||||||
sed -i "s/username=/&$nutzername/g" /home/"$linux_user"/ebesucher/restart.sh
|
sed -i "s/username=/&$nutzername/g" $ebesucher_folder_user/restart.sh
|
||||||
echo 60
|
echo 60
|
||||||
# Add RAM and CPU Settings to restart script
|
# Add RAM and CPU Settings to restart script
|
||||||
sed -i "s/CPUcores=/CPUcores=$CPUSet/g" /home/"$linux_user"/ebesucher/restart.sh
|
sed -i "s/CPUcores=/CPUcores=$CPUSet/g" $ebesucher_folder_user/restart.sh
|
||||||
# make restart skript executable
|
# make restart skript executable
|
||||||
chmod +x /home/"$linux_user"/ebesucher/restart.sh
|
chmod +x $ebesucher_folder_user/restart.sh
|
||||||
echo 80
|
echo 80
|
||||||
bash /home/"$linux_user"/ebesucher/restart.sh
|
bash $ebesucher_folder_user/restart.sh
|
||||||
echo 100
|
echo 100
|
||||||
} | whiptail --gauge "Erstelle Sicherung und Lade Restarter Skript herunter" 6 50 0
|
} | whiptail --gauge "Erstelle Sicherung und Lade Restarter Skript herunter" 6 50 0
|
||||||
# Export current crontab
|
# Export current crontab
|
||||||
@ -449,8 +464,8 @@ erstelle ich eine Sicherung der Firefox-Konfiguration"
|
|||||||
# check if restart script is already configured
|
# check if restart script is already configured
|
||||||
if ! grep -q "ebesucher/restart.sh" "/tmp/ebesucher"; then
|
if ! grep -q "ebesucher/restart.sh" "/tmp/ebesucher"; then
|
||||||
# add restart script
|
# add restart script
|
||||||
echo "0 * * * * /bin/bash /home/$linux_user/ebesucher/restart.sh
|
echo "0 * * * * /bin/bash -x /home/$linux_user/ebesucher/restart.sh > /var/log/ebesucher_restart.log 2>&1
|
||||||
@reboot /bin/bash /home/$linux_user/ebesucher/restart.sh" >>/tmp/ebesucher
|
@reboot /bin/bash /home/$linux_user/ebesucher/restart.sh > /var/log/ebesucher_restart.log 2>&1" >>/tmp/ebesucher
|
||||||
# Let cron reload the new configured crontab
|
# Let cron reload the new configured crontab
|
||||||
crontab /tmp/ebesucher
|
crontab /tmp/ebesucher
|
||||||
# delete the export
|
# delete the export
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user