Last active
December 5, 2024 21:11
-
-
Save sogful/119a816c47131205c8d554824e3dd3b3 to your computer and use it in GitHub Desktop.
UPDATE❗GAME POU INFINITY LIKEBOT 1.4.120 ||LIKE AND SUB
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import hashlib # the api of the game has been fully documented last year! really cool | |
| import requests # you can check it out here: https://github.com/DaniElectra/PouClients/wiki/ | |
| import time | |
| import json | |
| import os | |
| import tkinter | |
| from tkinter import Tk | |
| from tkinter.filedialog import askopenfilename | |
| from tkinter import messagebox | |
| def md5(string): | |
| return hashlib.md5(string.encode()).hexdigest() | |
| def select_file(): | |
| Tk().withdraw() | |
| file_path = askopenfilename(title="select a .txt file with the user:pass format:") | |
| if not file_path: | |
| root = tkinter.Tk() | |
| root.withdraw() | |
| messagebox.showinfo("", "WOW okay then") | |
| exit() | |
| return file_path | |
| login = "http://app.pou.me/ajax/site/login" | |
| others = [ | |
| "http://app.pou.me/ajax/user/visit", | |
| "http://app.pou.me/ajax/user/like" | |
| ] | |
| inputf = select_file() | |
| requestc = 0 | |
| delay = 500 # adjust this (ms) | |
| columnwidth = 60 | |
| startingline = 0 # and this (if you're continuing from a previous session) | |
| yourid = "89" # ..and this | |
| with open(inputf, "r") as file: | |
| for current_line, line in enumerate(file, start=1): | |
| if current_line < startingline: | |
| continue | |
| if ":" not in line: | |
| continue | |
| user, password = line.strip().split(":", 1) | |
| hash = md5(password) # app.pou.me uses http, so your password needs to be hashed before being sent | |
| # md5 is unsalted and should ONLY be used for verifying the integrity of data rather than securing it, | |
| query = { # but this was coded in over a decade ago so no blame to paul | |
| "e": user, "p": hash, | |
| "_a": 1, # access ⎫ | |
| "_c": 1, # ⎭ most of these | |
| "_v": 4, # client version ⎫ are required | |
| "_r": 256, # client revision ⎭ | |
| } | |
| loginout = requests.post(login, data = query) | |
| cookies = loginout.cookies.get_dict() | |
| requestc += 1 | |
| os.system(f"title {requestc} requests") | |
| if "unn_session" in cookies: | |
| cookieclean = cookies['unn_session'] | |
| result = f"{user.ljust(columnwidth)} | {cookieclean}" | |
| latestlike = None | |
| yay = 0 | |
| for url in others: # do the same request for both urls | |
| query2 = {"id": yourid, "_a": 1, "_c": 1, "_v": 4, "_r": 256} | |
| response = requests.post(url, data = query2, cookies = cookies) | |
| try: | |
| responsejson = response.json() | |
| except json.JSONDecodeError: | |
| responsejson = {} | |
| if responsejson.get("success"): | |
| yay += 1 | |
| if "nL" in responsejson: | |
| latestlike = f"{responsejson['nL']} likers" | |
| if latestlike: | |
| result += " | " + latestlike | |
| print(result) | |
| time.sleep(delay / 1000) # loop until everything is checked |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment