Jump to content

leaks.ro discord rpc [source-code & executable]


Guest MrReacher
 Share

Recommended Posts

Guest MrReacher

discord rich presence client - leaks.ro
source-code:
v1 + v2 (outdated - out of use)
v3 (current)

 

from pypresence import Presence
from threading import Thread
import requests
import time
import sys
import json

client_id = '452187710812323843'
rpc = Presence(client_id, pipe=0)
sys.stdout.write("connecting..\r")
rpc.connect()

"""
############################################
#                                          #
#  Discord RPC - leaks.ro v3 by MrReacher  #
#                                          #
############################################
"""

def animation():
	while 1:
		text = "leaks.ro - rich presence running"
		text_no = 0
		for _ in range(len(text)+1):
			sys.stdout.write("\t\t\t\t\t\r"+text[:text_no])
			sys.stdout.flush()
			time.sleep(0.1)
			text_no += 1
		time.sleep(3)

def update_rpc():
	is_active = []
	while 1:
		try:
			resp = requests.get("http://understandable.xyz:80/leaksromania")
			resp2 = requests.get("http://understandable.xyz:80/leaks-rpc-dynamic-response")
		except Exception as e:
			print(e)
			sys.exit()
		if not "internal error" in resp.text.lower():
			response = resp.text.split()
			total = response[0]
			online = response[1]
			announcer = None
		else:
			announcer = "error"
		if not is_active:
			t2 = Thread(target=animation)
			t2.start()
			is_active.append(t2)
		first_try = json.dumps(resp2.json())
		second_try = json.loads(first_try)
		rpc.update(large_image="leaks" if not announcer == "error" else "error", large_text="Leaks România" if not announcer == "error" else "INTERNAL SERVER ERROR", details=second_try['line1'] if second_try['line1'] is not None else ("Total membri: {}".format(total) if not announcer == "error" else "ERROR 204"), state=second_try['line2'] if second_try['line2'] is not None else ("Membri online: {}".format(online) if not announcer == "error" else "Contact MrReacher#1337"))
		time.sleep(120)

def main():
	t1 = Thread(target=update_rpc)
	t1.start()

if __name__ == "__main__":
	main()

requirements:
python3.6+
pypresence
requests
pyinstaller

building:

pyinstaller --onefile --icon=icon.ico rpc.py

executable:
http://www.mediafire.com/file/f70baofdcauiv01/rpc.zip
https://www.virustotal.com/#/file/b9b2f24d8dc6f2026a03723298bea40078174b9893e4d48dbd6a4de11b48e6ae/detection
(in caz ca nu va incredeti in aplicatie, aveti posibilitatea sa va compilati singuri)

In arhiva se vor gasi fisierele necesare compilarii, precum icon-ul si source-code-ul.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...