Skip to content

Commit

Permalink
dankware.onrender.com
Browse files Browse the repository at this point in the history
  • Loading branch information
SirDank committed Feb 5, 2025
1 parent b0408a0 commit 9948be0
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@

## ♦️ Anonymous Suggestions ♦️

- [Suggest new modules for the dank.tool!](https://dank-site.onrender.com/dank-tool-suggestions)
- [Suggest new modules for the dank.tool!](https://dankware.onrender.com/dank-tool-suggestions)

<p>&nbsp;</p>

Expand Down Expand Up @@ -134,7 +134,7 @@
- Generates the specified amount of IPs and scans the default Minecraft server port 25565 (java) / 19132 (bedrock)
- IPs are crafted in such a way that it is unique and avoids IPs that aren't valid / local IPs / will not have mc servers hosted on them
- Prints server info including IP, version, number of players online, latency in ms, host city, host org, host domain, server description (gamemode, map, motd on bedrock)
- You automatically contribute to the minecraft [java](https://dank-site.onrender.com/minecraft-java-servers) and [bedrock](https://dank-site.onrender.com/minecraft-bedrock-servers) server lists by scanning!
- You automatically contribute to the minecraft [java](https://dankware.onrender.com/minecraft-java-servers) and [bedrock](https://dankware.onrender.com/minecraft-bedrock-servers) server lists by scanning!

## ♦️ To Do ♦️

Expand Down
4 changes: 2 additions & 2 deletions __modules__/dank.chatroom.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
def chatroom_login():

global username
url = "https://dank-site.onrender.com/chatroom-login"
url = "https://dankware.onrender.com/chatroom-login"

while True:

Expand Down Expand Up @@ -241,7 +241,7 @@ def enable_notifications():
executor = ThreadPoolExecutor(5)
while running:
try:
sio.connect('https://dank-site.onrender.com', {'UUID': uuid}, retry=False)
sio.connect('https://dankware.onrender.com', {'UUID': uuid}, retry=False, wait_timeout=10)
# rm_line()
break
except:
Expand Down
2 changes: 1 addition & 1 deletion __modules__/dank.minecraft-server-builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ def file_downloader(url, file_name):
print(clr(f" - {translate('Downloaded')} [ {file_name} ] [ {size} MB ]\n"))
else:
print(clr(f" - {translate('BROKEN DOWNLOAD')} [ {file_name} ]\n",2))
requests.post("https://dank-site.onrender.com/dank-tool-errors", headers=headers, timeout=3, data={"text": f"```<--- 🚨 ---> 𝚍𝚊𝚗𝚔.𝚖𝚒𝚗𝚎𝚌𝚛𝚊𝚏𝚝-𝚜𝚎𝚛𝚟𝚎𝚛-𝚋𝚞𝚒𝚕𝚍𝚎𝚛\n\n[ BROKEN DOWNLOAD ]\n{url}\n{file_name}```"})
requests.post("https://dankware.onrender.com/dank-tool-errors", headers=headers, timeout=3, data={"text": f"```<--- 🚨 ---> 𝚍𝚊𝚗𝚔.𝚖𝚒𝚗𝚎𝚌𝚛𝚊𝚏𝚝-𝚜𝚎𝚛𝚟𝚎𝚛-𝚋𝚞𝚒𝚕𝚍𝚎𝚛\n\n[ BROKEN DOWNLOAD ]\n{url}\n{file_name}```"})

# disabled due to repeated error reports

Expand Down
8 changes: 4 additions & 4 deletions __modules__/dank.minecraft-server-scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def check(ip, server):
json['city'] = response['city']
json['org'] = response['connection']['org']
json['domain'] = response['connection']['domain']
executor.submit(requests.post, f"https://dank-site.onrender.com/minecraft-{server_type}-servers", headers={"User-Agent": "dank.tool"}, json=json) # pylint: disable=used-before-assignment
executor.submit(requests.post, f"https://dankware.onrender.com/minecraft-{server_type}-servers", headers={"User-Agent": "dank.tool"}, json=json) # pylint: disable=used-before-assignment
except: pass

if server_type == "java":
Expand Down Expand Up @@ -132,10 +132,10 @@ def main():
banner = '\n\n _ _ \n | | | | \n _ | | ____ ____ | | _ ____ ____ ___ ___ ____ ____ ____ ____ ____ ____ \n / || |/ _ | _ \\| | / ) | \\ / ___|___)___)/ ___) _ | _ \\| _ \\ / _ )/ ___)\n( (_| ( ( | | | | | |< ( _| | | ( (___ |___ ( (__( ( | | | | | | | ( (/ /| | \n \\____|\\_||_|_| |_|_| \\_|_)_|_|_|\\____) (___/ \\____)_||_|_| |_|_| |_|\\____)_| \n\n'
console = Console(highlight=False)
console.print(Align.center(banner), style="blink red")
print(clr(f"\n - Java Server List: https://dank-site.onrender.com/minecraft-java-servers\n\n - Bedrock Server List: https://dank-site.onrender.com/minecraft-bedrock-servers\n\n - {translate('You can use the above links to get a list of servers that have been found by the users of this tool!')}"))
print(clr(f"\n - Java Server List: https://dankware.onrender.com/minecraft-java-servers\n\n - Bedrock Server List: https://dankware.onrender.com/minecraft-bedrock-servers\n\n - {translate('You can use the above links to get a list of servers that have been found by the users of this tool!')}"))
match input(clr("\n - 1: Open Java Server List | 2: Open Bedrock Server List | ENTER: Skip\n\n > Choice [1/2/ENTER]: ") + red):
case "1": os.system("start https://dank-site.onrender.com/minecraft-java-servers")
case "2": os.system("start https://dank-site.onrender.com/minecraft-bedrock-servers")
case "1": os.system("start https://dankware.onrender.com/minecraft-java-servers")
case "2": os.system("start https://dankware.onrender.com/minecraft-bedrock-servers")

cls(); console.print(Align.center(banner), style="blink red")
print(clr(f"\n - {translate('Start with 100 threads and note the performance impact.')}\n\n - {translate('Generally should be smooth upto 500 threads, you might notice some performance impact above this value!')}\n\n - {translate('Test it for the first time with 50000 IPs, it will take a few seconds to generate.')}"))
Expand Down
16 changes: 8 additions & 8 deletions __src__/dank.tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def dank_tool_installer():
try: exec(code)
except:
err_message = err(sys.exc_info())
try: requests.post("https://dank-site.onrender.com/dank-tool-errors", headers=headers, timeout=3, data={"text": f"```<--- 🚨🚨🚨 ---> Version: {DANK_TOOL_VERSION}\n\n{err_message}```"})
try: requests.post("https://dankware.onrender.com/dank-tool-errors", headers=headers, timeout=3, data={"text": f"```<--- 🚨🚨🚨 ---> Version: {DANK_TOOL_VERSION}\n\n{err_message}```"})
except: pass
input(clr(f"{err_message}\n\n > Press [ENTER] to EXIT... ",2))
sys.exit(err_message)
Expand Down Expand Up @@ -98,8 +98,8 @@ def get_menu_request_responses(task_id, request_key):
match task_id:
case 0 | 1: # get global runs
match task_id:
case 0: url = "https://dank-site.onrender.com/counter?id=dankware&hit=false"
case 1: url = "https://dank-site.onrender.com/counter?id=dank.tool&hit=false"
case 0: url = "https://dankware.onrender.com/counter?id=dankware&hit=false"
case 1: url = "https://dankware.onrender.com/counter?id=dank.tool&hit=false"
menu_request_responses[request_key] = f"{red_normal}⚠️"
try:
result = requests.get(url, headers=headers, timeout=3).content.decode().replace('<pre>','').replace('</pre>','')
Expand All @@ -118,7 +118,7 @@ def get_menu_request_responses(task_id, request_key):

case 3: # get chatroom user count
try:
result = requests.get("https://dank-site.onrender.com/chatroom-users", headers=headers, timeout=3).content.decode()
result = requests.get("https://dankware.onrender.com/chatroom-users", headers=headers, timeout=3).content.decode()
if result.isdigit():
if result != "0": menu_request_responses[request_key] = result
else: menu_request_responses[request_key] = "1"
Expand Down Expand Up @@ -1196,16 +1196,16 @@ def patch():

match _choice['project']:
case "Discord Server":
os.system('start https://dank-site.onrender.com/discord')
os.system('start https://dankware.onrender.com/discord')
continue
case "Telegram Group":
os.system('start https://t.me/+18tWHJ_g2g4yZWI1')
continue
case "YouTube":
os.system('start https://dank-site.onrender.com/youtube')
os.system('start https://dankware.onrender.com/youtube')
continue
case "Website":
os.system('start https://dank-site.onrender.com/')
os.system('start https://dankware.onrender.com/')
continue

TITLE = _choice['title']
Expand Down Expand Up @@ -1318,7 +1318,7 @@ def patch():
elif ONLINE_MODE: # and not LOCAL_MODULE (removed to report all errors)
while True:
try:
requests.post("https://dank-site.onrender.com/dank-tool-errors", headers=headers, timeout=3, data={"text": f"```<--- 🚨 ---> {TITLE}\n\n{err_message}```"}) # pylint: disable=used-before-assignment
requests.post("https://dankware.onrender.com/dank-tool-errors", headers=headers, timeout=3, data={"text": f"```<--- 🚨 ---> {TITLE}\n\n{err_message}```"}) # pylint: disable=used-before-assignment
break
except Exception as exc:
input(clr(f"\n > {_translate(f'Failed to post error report! {exc} | Press [ENTER] to try again...')} ",2))
Expand Down

0 comments on commit 9948be0

Please sign in to comment.