mirror of
				https://gitea.augustin64.fr/piair/MsRewards-Reborn.git
				synced 2025-11-03 23:23:53 +01:00 
			
		
		
		
	uéuéué
This commit is contained in:
		
							
								
								
									
										6
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@@ -1,4 +1,4 @@
 | 
				
			|||||||
/old
 | 
					
 | 
				
			||||||
geckodriver.log
 | 
					geckodriver.log
 | 
				
			||||||
.vscode/
 | 
					.vscode/
 | 
				
			||||||
/Git
 | 
					/Git
 | 
				
			||||||
@@ -7,8 +7,8 @@ screenshot.png
 | 
				
			|||||||
login.csv
 | 
					login.csv
 | 
				
			||||||
data
 | 
					data
 | 
				
			||||||
**/__pycache__
 | 
					**/__pycache__
 | 
				
			||||||
/user_data
 | 
					user_data/*
 | 
				
			||||||
install.sh
 | 
					install.sh
 | 
				
			||||||
nohup.out
 | 
					nohup.out
 | 
				
			||||||
points.csv
 | 
					points.csv
 | 
				
			||||||
/dev
 | 
					file.png
 | 
				
			||||||
							
								
								
									
										15
									
								
								V6.py
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								V6.py
									
									
									
									
									
								
							@@ -25,14 +25,14 @@ def firefox_driver(mobile=False, headless=False):
 | 
				
			|||||||
        "CriOS/107.0.5060.64 Mobile/15E148 Safari/604.1"
 | 
					        "CriOS/107.0.5060.64 Mobile/15E148 Safari/604.1"
 | 
				
			||||||
    )
 | 
					    )
 | 
				
			||||||
    chrome_options = webdriver.ChromeOptions()
 | 
					    chrome_options = webdriver.ChromeOptions()
 | 
				
			||||||
    if mobile:
 | 
					    #if mobile:
 | 
				
			||||||
        chrome_options.add_argument(f"--user-agent={PC_USER_AGENT}")
 | 
					    #    chrome_options.add_argument(f"--user-agent={PC_USER_AGENT}")
 | 
				
			||||||
    else :
 | 
					    #else :
 | 
				
			||||||
        chrome_options.add_argument(f"--user-agent={MOBILE_USER_AGENT}")
 | 
					    #    chrome_options.add_argument(f"--user-agent={MOBILE_USER_AGENT}")
 | 
				
			||||||
 | 
					    ## disabled as it may cause detection
 | 
				
			||||||
    if g.proxy_enabled:
 | 
					    if g.proxy_enabled:
 | 
				
			||||||
        PROXY = f"{g.proxy_address}:{g.proxy_port}" # IP:PORT or HOST:PORT
 | 
					        PROXY = f"{g.proxy_address}:{g.proxy_port}" # IP:PORT or HOST:PORT
 | 
				
			||||||
        chrome_options.add_argument(f'--proxy-server={PROXY}')
 | 
					        chrome_options.add_argument(f'--proxy-server={PROXY}')
 | 
				
			||||||
 | 
					 | 
				
			||||||
    driver = uc.Chrome(options=chrome_options)
 | 
					    driver = uc.Chrome(options=chrome_options)
 | 
				
			||||||
    return(driver)
 | 
					    return(driver)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -278,6 +278,10 @@ def all_cards():
 | 
				
			|||||||
                            log_error(f"Cart completion - log - 3 - after 10 sec", driver)
 | 
					                            log_error(f"Cart completion - log - 3 - after 10 sec", driver)
 | 
				
			||||||
                            try:
 | 
					                            try:
 | 
				
			||||||
                                try_play(driver.title) # go back to the main page
 | 
					                                try_play(driver.title) # go back to the main page
 | 
				
			||||||
 | 
					                                try :
 | 
				
			||||||
 | 
					                                    close_tab(driver.window_handles[1], driver.window_handles[1])
 | 
				
			||||||
 | 
					                                except:
 | 
				
			||||||
 | 
					                                    pass
 | 
				
			||||||
                            except :
 | 
					                            except :
 | 
				
			||||||
                                driver.get("https://rewards.bing.com")
 | 
					                                driver.get("https://rewards.bing.com")
 | 
				
			||||||
                except :
 | 
					                except :
 | 
				
			||||||
@@ -834,6 +838,7 @@ else:
 | 
				
			|||||||
        if g.discord_enabled_error:
 | 
					        if g.discord_enabled_error:
 | 
				
			||||||
            webhookFailure.send(f"Updated to {g.update_version}", username="UPDATE", avatar_url="https://cdn-icons-png.flaticon.com/512/1688/1688988.png")
 | 
					            webhookFailure.send(f"Updated to {g.update_version}", username="UPDATE", avatar_url="https://cdn-icons-png.flaticon.com/512/1688/1688988.png")
 | 
				
			||||||
    for cred in g._cred:
 | 
					    for cred in g._cred:
 | 
				
			||||||
 | 
					        if cred != "":
 | 
				
			||||||
            g._mail = cred[0]
 | 
					            g._mail = cred[0]
 | 
				
			||||||
            g._password = cred[1]
 | 
					            g._password = cred[1]
 | 
				
			||||||
            if cred[2] != '':
 | 
					            if cred[2] != '':
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										2
									
								
								build.sh
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								build.sh
									
									
									
									
									
								
							@@ -3,4 +3,4 @@
 | 
				
			|||||||
echo "Enter the name of the instance"
 | 
					echo "Enter the name of the instance"
 | 
				
			||||||
read name
 | 
					read name
 | 
				
			||||||
 | 
					
 | 
				
			||||||
sudo docker build -t msrewards . && sudo docker run -p 1234:1234 --shm-size=2gb --name $name msrewards 
 | 
					sudo docker build -t msrewards . && sudo docker run -p 1234:1234 -p 2345:2345 --shm-size=2gb --name $name msrewards 
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										4
									
								
								user_data/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								user_data/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
				
			|||||||
 | 
					# Ignore everything in this directory
 | 
				
			||||||
 | 
					*
 | 
				
			||||||
 | 
					# Except this file
 | 
				
			||||||
 | 
					!.gitignore
 | 
				
			||||||
		Reference in New Issue
	
	Block a user