mirror of
https://github.com/Pakobbix/passive-income.git
synced 2025-11-09 14:59:40 +00:00
Compare commits
No commits in common. "e463d963bad97023a9c895558b5f6d16b95dc4f3" and "4746e4e57fac3b68bb6da5faecb914c169e2af40" have entirely different histories.
e463d963ba
...
4746e4e57f
83
gui_start.sh
83
gui_start.sh
@ -53,9 +53,6 @@ inputbox() {
|
||||
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
|
||||
linux_user=$(w | awk '{print $1}' | tail -n1)
|
||||
|
||||
@ -153,7 +150,7 @@ Traffmonetizer. Vermiete deine IP-Adresse als Proxy
|
||||
https://traffmonetizer.com/?aff=607897" 32 80
|
||||
|
||||
# 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 "Repocket" "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 3>&1 1>&2 2>&3)
|
||||
if [ -z "$einzurichten" ]; then
|
||||
echo "Nichts wurde ausgewählt"
|
||||
exit
|
||||
@ -191,10 +188,7 @@ else
|
||||
#######################
|
||||
EarnAPP)
|
||||
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
|
||||
sed -i "s/RID=.*/RID=$RandomID/g" /tmp/earnapp.sh
|
||||
echo "yes" | sudo bash /tmp/earnapp.sh
|
||||
@ -240,15 +234,6 @@ else
|
||||
fehler "TraffMonetizer konnte nicht eingerichtet werden"
|
||||
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 #
|
||||
#########################
|
||||
@ -323,30 +308,30 @@ Gebe in das Feld deinen Ebesucher Nutzernamen ein und mache einen Haken bei Priv
|
||||
erstelle ich eine Sicherung der Firefox-Konfiguration"
|
||||
{
|
||||
echo 10
|
||||
if [ -f $ebesucher_folder_root/config.zip ]; then
|
||||
if [ -f /root/ebesucher/config.zip ]; then
|
||||
# delete blank config.zip
|
||||
rm -f $ebesucher_folder_root/config.zip
|
||||
rm -f /root/ebesucher/config.zip
|
||||
fi
|
||||
echo 15
|
||||
docker stop ebesucher
|
||||
echo 20
|
||||
cd $ebesucher_folder_root || exit
|
||||
cd /root/ebesucher/ || exit
|
||||
echo 30
|
||||
# pack config folder into new config.zip
|
||||
sudo zip -r config.zip config/
|
||||
echo 40
|
||||
# download restart script
|
||||
wget -O $ebesucher_folder_root/restart.sh https://raw.githubusercontent.com/Pakobbix/passive-income/master/restart.sh
|
||||
wget -O /root/ebesucher/restart.sh https://raw.githubusercontent.com/Pakobbix/passive-income/master/restart.sh
|
||||
echo 60
|
||||
# make restart skript executable
|
||||
chmod +x $ebesucher_folder_root/restart.sh
|
||||
chmod +x /root/ebesucher/restart.sh
|
||||
echo 70
|
||||
# add username to restart skript
|
||||
sed -i "s/username=/&$nutzername/g" $ebesucher_folder_root/restart.sh
|
||||
sed -i "s/username=/&$nutzername/g" /root/ebesucher/restart.sh
|
||||
echo 80
|
||||
sed -i "s/CPUcores=/CPUcores=$CPUSet/g" $ebesucher_folder_root/restart.sh
|
||||
sed -i "s/CPUcores=/CPUcores=$CPUSet/g" /root/ebesucher/restart.sh
|
||||
echo 90
|
||||
bash $ebesucher_folder_root/restart.sh
|
||||
bash /root/ebesucher/restart.sh
|
||||
echo 100
|
||||
} | whiptail --gauge "Erstelle Sicherung und Lade Restarter Skript herunter" 6 50 0
|
||||
# Export current crontab
|
||||
@ -354,8 +339,8 @@ erstelle ich eine Sicherung der Firefox-Konfiguration"
|
||||
# check if restart script is already configured
|
||||
if ! grep -q "ebesucher/restart.sh" "/tmp/ebesucher"; then
|
||||
# add restart script, reboot and update to crontab
|
||||
echo "0 * * * * /bin/bash -x /root/ebesucher/restart.sh > /var/log/ebesucher_restart.log 2>&1
|
||||
@reboot /bin/bash /root/ebesucher/restart.sh > /var/log/ebesucher_restart.log 2>&1
|
||||
echo "0 * * * * /bin/bash /root/ebesucher/restart.sh
|
||||
@reboot /bin/bash /root/ebesucher/restart.sh
|
||||
0 0 * * 0 reboot
|
||||
0 4 * * * /bin/bash /root/update_system.sh" >>/tmp/ebesucher
|
||||
# Let cron reload the new configured crontab
|
||||
@ -366,35 +351,35 @@ erstelle ich eine Sicherung der Firefox-Konfiguration"
|
||||
else
|
||||
# Ebesucher Configuration if user != root
|
||||
# Check if ebesucher folder already exists
|
||||
if [ -d $ebesucher_folder_user ]; then
|
||||
if [ -d /home/"$linux_user"/ebesucher ]; then
|
||||
skip "Ordner ebesucher exestiert bereits"
|
||||
# check if config exists, if yes, ask to overwrite
|
||||
if [ -f $ebesucher_folder_user/config.zip ]; then
|
||||
if [ -f /home/"$linux_user"/ebesucher/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
|
||||
# remove old config
|
||||
rm -f $ebesucher_folder_user/config.zip
|
||||
rm -f /home/"$linux_user"/ebesucher/config.zip
|
||||
# download blank config
|
||||
wget -O $ebesucher_folder_user/config.zip https://github.com/Pakobbix/passive-income/raw/master/config.zip
|
||||
wget -O /home/"$linux_user"/ebesucher/config.zip https://github.com/Pakobbix/passive-income/raw/master/config.zip
|
||||
# unpack config
|
||||
unzip -o $ebesucher_folder_user/config.zip -d $ebesucher_folder_user
|
||||
unzip -o /home/"$linux_user"/ebesucher/config.zip -d /home/"$linux_user"/ebesucher/
|
||||
else
|
||||
# unpack config
|
||||
unzip -o $ebesucher_folder_user/config.zip -d $ebesucher_folder_user
|
||||
unzip -o /home/"$linux_user"/ebesucher/config.zip -d /home/"$linux_user"/ebesucher/
|
||||
fi
|
||||
fi
|
||||
else
|
||||
# Create ebesucher folder
|
||||
if [ -d $ebesucher_folder_user ]; then
|
||||
if [ -d /home/"$linux_user"/ebesucher ]; then
|
||||
# download config
|
||||
wget -O $ebesucher_folder_user/config.zip https://github.com/Pakobbix/passive-income/raw/master/config.zip
|
||||
wget -O /home/"$linux_user"/ebesucher/config.zip https://github.com/Pakobbix/passive-income/raw/master/config.zip
|
||||
# unpack config
|
||||
unzip -o $ebesucher_folder_user/config.zip -d /home/"$linux_user"/ebesucher/
|
||||
unzip -o /home/"$linux_user"/ebesucher/config.zip -d /home/"$linux_user"/ebesucher/
|
||||
fi
|
||||
if mkdir $ebesucher_folder_user; then
|
||||
if mkdir /home/"$linux_user"/ebesucher; then
|
||||
# download config
|
||||
wget -O $ebesucher_folder_user/config.zip https://github.com/Pakobbix/passive-income/raw/master/config.zip
|
||||
wget -O /home/"$linux_user"/ebesucher/config.zip https://github.com/Pakobbix/passive-income/raw/master/config.zip
|
||||
# unpack config
|
||||
unzip -o $ebesucher_folder_user/config.zip -d /home/"$linux_user"/ebesucher/
|
||||
unzip -o /home/"$linux_user"/ebesucher/config.zip -d /home/"$linux_user"/ebesucher/
|
||||
erfolg "Ordner für ebesucher konnte erstellt werden"
|
||||
else
|
||||
fehler "Der Ordner für ebesucher konnte nicht angelegt werden"
|
||||
@ -431,14 +416,14 @@ Gebe in das Feld deinen Ebesucher Nutzernamen ein und mache einen Haken bei Priv
|
||||
erstelle ich eine Sicherung der Firefox-Konfiguration"
|
||||
{
|
||||
echo 10
|
||||
if [ -f $ebesucher_folder_user/config.zip ]; then
|
||||
if [ -f /home/"$linux_user"/ebesucher/config.zip ]; then
|
||||
# delete blank config.zip
|
||||
sudo rm -f $ebesucher_folder_user/config.zip 2>/dev/null
|
||||
sudo rm -f /home/"$linux_user"/ebesucher/config.zip 2>/dev/null
|
||||
fi
|
||||
echo 15
|
||||
docker stop ebesucher
|
||||
echo 20
|
||||
cd $ebesucher_folder_user || exit
|
||||
cd /home/"$linux_user"/ebesucher/ || exit
|
||||
echo 30
|
||||
# pack config folder into new config.zip
|
||||
zip -r config.zip config/ 2>/dev/null
|
||||
@ -446,17 +431,17 @@ erstelle ich eine Sicherung der Firefox-Konfiguration"
|
||||
# Give rights back to user
|
||||
sudo chown "$linux_user":"$linux_user" config.zip
|
||||
# download restart script
|
||||
wget -O $ebesucher_folder_user/restart.sh https://raw.githubusercontent.com/Pakobbix/passive-income/master/restart.sh
|
||||
wget -O /home/"$linux_user"/ebesucher/restart.sh https://raw.githubusercontent.com/Pakobbix/passive-income/master/restart.sh
|
||||
echo 50
|
||||
# add username to restart skript
|
||||
sed -i "s/username=/&$nutzername/g" $ebesucher_folder_user/restart.sh
|
||||
sed -i "s/username=/&$nutzername/g" /home/"$linux_user"/ebesucher/restart.sh
|
||||
echo 60
|
||||
# Add RAM and CPU Settings to restart script
|
||||
sed -i "s/CPUcores=/CPUcores=$CPUSet/g" $ebesucher_folder_user/restart.sh
|
||||
sed -i "s/CPUcores=/CPUcores=$CPUSet/g" /home/"$linux_user"/ebesucher/restart.sh
|
||||
# make restart skript executable
|
||||
chmod +x $ebesucher_folder_user/restart.sh
|
||||
chmod +x /home/"$linux_user"/ebesucher/restart.sh
|
||||
echo 80
|
||||
bash $ebesucher_folder_user/restart.sh
|
||||
bash /home/"$linux_user"/ebesucher/restart.sh
|
||||
echo 100
|
||||
} | whiptail --gauge "Erstelle Sicherung und Lade Restarter Skript herunter" 6 50 0
|
||||
# Export current crontab
|
||||
@ -464,8 +449,8 @@ erstelle ich eine Sicherung der Firefox-Konfiguration"
|
||||
# check if restart script is already configured
|
||||
if ! grep -q "ebesucher/restart.sh" "/tmp/ebesucher"; then
|
||||
# add restart script
|
||||
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 > /var/log/ebesucher_restart.log 2>&1" >>/tmp/ebesucher
|
||||
echo "0 * * * * /bin/bash /home/$linux_user/ebesucher/restart.sh
|
||||
@reboot /bin/bash /home/$linux_user/ebesucher/restart.sh" >>/tmp/ebesucher
|
||||
# Let cron reload the new configured crontab
|
||||
crontab /tmp/ebesucher
|
||||
# delete the export
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user