akn-dev / akn /Akeno /ping.py
randydev's picture
fix revert back and update
21bc372
# Credits by @xtdevs
import asyncio
import time
import requests
from random import choice
from datetime import datetime as dt
from pyrogram import *
from pyrogram.types import *
from akn import StartTime
from akn.utils.handler import *
from akn.utils.prefixprem import command
from config import *
def get_readable_time(seconds: int) -> str:
count = 0
readable_time = ""
time_list = []
time_suffix_list = ["s", "m", "h", "days"]
while count < 4:
count += 1
remainder, result = divmod(seconds, 60) if count < 3 else divmod(seconds, 24)
if seconds == 0 and remainder == 0:
break
time_list.append(int(result))
seconds = int(remainder)
for x in range(len(time_list)):
time_list[x] = str(time_list[x]) + time_suffix_list[x]
if len(time_list) == 4:
readable_time += f"{time_list.pop()}, "
time_list.reverse()
readable_time += ":".join(time_list)
return readable_time
custom_blue = "<emoji id=5328317370647715629>βœ…</emoji>"
custom_cat = "<emoji id=5352865784508980799>πŸ—Ώ</emoji>"
custom_pong = "<emoji id=5269563867305879894>πŸ—Ώ</emoji>"
custom_balon = "<emoji id=5407064810040864883>πŸ—Ώ</emoji>"
custom_owner = "<emoji id=5467406098367521267>πŸ—Ώ</emoji>"
@Akeno(
~filters.scheduled & command(["hack"]) & filters.me & ~filters.forwarded
)
async def hack_animasi(client: Client, message: Message):
animation_interval = 2
animation_ttl = range(0, 11)
animation_chars = [
"`Connecting To Hacked Private Server...`",
"`Target Selected.`",
"`Hacking... 0%\nβ–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’ `",
"`Hacking... 4%\nβ–ˆβ–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’ `",
"`Hacking... 8%\nβ–ˆβ–ˆβ–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’ `",
"`Hacking... 20%\nβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’ `",
"`Hacking... 36%\nβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’ `",
"`Hacking... 52%\nβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’ `",
"`Hacking... 84%\nβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–’β–’β–’β–’ `",
"`Hacking... 100%\nβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆHACKEDβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ `",
f"`Targeted Account Hacked...\n\nPay 9999$ To {message.from_user.mention} or gib a pizza party πŸ• To Remove This Hack`"]
for i in animation_ttl:
await asyncio.sleep(animation_interval)
await message.edit_text(animation_chars[i % 11])
@Akeno(
~filters.scheduled & command(["macos"]) & filters.me & ~filters.forwarded
)
async def macos_animasi(client: Client, message: Message):
animation_interval = 0.5
animation_ttl = range(0, 11)
animation_chars = [
"`Connecting To Hackintosh...`",
"`Initiating Hackintosh Login.`",
"`Loading Hackintosh... 0%\nβ–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’ `",
"`Loading Hackintosh... 4%\nβ–ˆβ–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’ `",
"`Loading Hackintosh... 8%\nβ–ˆβ–ˆβ–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’ `",
"`Loading Hackintosh... 20%\nβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’ `",
"`Loading Hackintosh... 36%\nβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’ `",
"`Loading Hackintosh... 52%\nβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’ `",
"`Loading Hackintosh... 84%\nβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–’β–’β–’β–’ `",
"`Loading Hackintosh... 100%\nβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ `",
"`Welcome...\n\nStock OS: Symbian OS\nCurrent OS: Hackintosh`\n\n**My PC Specs:**\n\n **CPU:**Β __2.9GHz Intel Core i9-8950HK (hexa-core, 12MB cache, up to 4.8GHz)__\n\n**Graphics:**Β __Nvidia GeForce GTX 1080 OC (8GB GDDR5X)__\n\n**RAM:**Β __32GB DDR4 (2,666MHz)__\n\n**Screen:**Β __17.3-inch, QHD (2,560 x 1,440) 120Hz G-Sync__\n\n**Storage:**Β __512GB PCIe SSD, 1TB HDD (7,200 rpm)__\n\n**Ports:**Β __2 x USB 3.0, 1 x USB-C 3.0, 1 x USB-C (Thunderbolt 3), HDMI, mini DisplayPort, Ethernet, headphone jack, microphone jack__\n\n**Connectivity:**Β __Killer 1550 802.11ac Wi-Fi, Bluetooth 5.0__\n\n**Camera:**Β __Alienware FHD camera, Tobii IR Eye-tracking with Windows Hello__\n\n**Size:**Β __16.7 x 13.1 x 1.18 inches (42.4 x 33.2 x 2.99cm; W x D x H)__"
]
for i in animation_ttl:
await asyncio.sleep(animation_interval)
await message.edit_text(animation_chars[i % 11])
@Akeno(
~filters.scheduled & command(["wahack"]) & filters.me & ~filters.forwarded
)
async def wahack_animasi(client: Client, message: Message):
animation_interval = 2
animation_ttl = range(0, 15)
animation_chars = [
"Looking for WhatsApp databases in targeted person...",
" User online: True\nTelegram access: True\nRead Storage: True ",
"Hacking... 0%\n[β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘]\n`Looking for WhatsApp...`\nETA: 0m, 20s",
"Hacking... 11.07%\n[β–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘]\n`Looking for WhatsApp...`\nETA: 0m, 18s",
"Hacking... 20.63%\n[β–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘]\n`Found folder C:/WhatsApp`\nETA: 0m, 16s",
"Hacking... 34.42%\n[β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘]\n`Found folder C:/WhatsApp`\nETA: 0m, 14s",
"Hacking... 42.17%\n[β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘]\n`Searching for databases`\nETA: 0m, 12s",
"Hacking... 55.30%\n[β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘]\n`Found msgstore.db.crypt12`\nETA: 0m, 10s",
"Hacking... 64.86%\n[β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘]\n`Found msgstore.db.crypt12`\nETA: 0m, 08s",
"Hacking... 74.02%\n[β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘]\n`Trying to Decrypt...`\nETA: 0m, 06s",
"Hacking... 86.21%\n[β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘]\n`Trying to Decrypt...`\nETA: 0m, 04s",
"Hacking... 93.50%\n[β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘]\n`Decryption successful!`\nETA: 0m, 02s",
"Hacking... 100%\n[β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ]\n`Scanning file...`\nETA: 0m, 00s",
"Hacking complete!\nUploading file...",
"Targeted Account Hacked...!\n\n βœ… File has been successfully uploaded to my server.\nWhatsApp Database:\n`./DOWNLOADS/msgstore.db.crypt12`"]
for i in animation_ttl:
await asyncio.sleep(animation_interval)
await message.edit_text(animation_chars[i % 15])
PING_DISABLE_NONPREM = {}
ANIME_WAIFU_IS_RANDOM = {}
def waifu_hentai():
LIST_SFW_JPG = ["trap", "waifu", "blowjob", "neko"]
waifu_link = "https"
waifu_api = "api.waifu.pics"
waifu_types = "nsfw"
waifu_category = choice(LIST_SFW_JPG)
waifu_param = f"{waifu_link}://{waifu_api}/{waifu_types}/{waifu_category}"
response = requests.get(waifu_param).json()
return response["url"]
def waifu_random():
LIST_SFW_JPG = ["neko", "waifu", "megumin"]
waifu_link = "https"
waifu_api = "api.waifu.pics"
waifu_types = "sfw"
waifu_category = choice(LIST_SFW_JPG)
waifu_param = f"{waifu_link}://{waifu_api}/{waifu_types}/{waifu_category}"
response = requests.get(waifu_param).json()
return response["url"]
@Akeno(
~filters.scheduled & command(["pingset"]) & filters.me & ~filters.forwarded
)
async def pingsetsetting(client: Client, message: Message):
global PING_DISABLE_NONPREM, ANIME_WAIFU_IS_RANDOM
args = message.text.lower().split()[1:]
chat = message.chat
if chat.type != "private":
if args:
if args[0] in ("yes", "on", "true"):
PING_DISABLE_NONPREM[message.from_user.id] = True
del ANIME_WAIFU_IS_RANDOM[message.from_user.id]
await message.reply_text("Turned on ping non premium.")
elif args[0] == "anime":
ANIME_WAIFU_IS_RANDOM[message.from_user.id] = {
"anime": True,
"hentai": False,
}
await message.reply_text(f"Turned on ping {args[0]}.")
elif args[0] == "hentai":
ANIME_WAIFU_IS_RANDOM[message.from_user.id] = {
"anime": False,
"hentai": True,
}
await message.reply_text(f"Turned on ping {args[0]}.")
elif args[0] in ("no", "off", "false"):
PING_DISABLE_NONPREM[message.from_user.id] = False
ANIME_WAIFU_IS_RANDOM[message.from_user.id] = {
"anime": False,
"hentai": False
}
await message.reply_text("Turned off ping automatic.")
else:
reply_text = f"Ping Mode: {'On' if PING_DISABLE_NONPREM.get(message.from_user.id) else 'Anime' if ANIME_WAIFU_IS_RANDOM.get(message.from_user.id) else 'Off'}"
await message.reply_text(reply_text)
@Akeno(
~filters.scheduled
& command(["cping"])
& filters.user(1191668125)
& ~filters.me
& ~filters.forwarded
)
@Akeno(
~filters.scheduled
& command(["ping"])
& filters.me
& ~filters.forwarded
)
async def custom_ping_handler(client: Client, message: Message):
uptime = get_readable_time((time.time() - StartTime))
start = dt.now()
lol = await message.reply_text("**Pong!!**")
await asyncio.sleep(1.5)
end = dt.now()
duration = (end - start).microseconds / 1000
if PING_DISABLE_NONPREM.get(message.from_user.id):
return await lol.edit_text(
f" **Pong !!** " f"`%sms` \n" f" **Uptime** - " f"`{uptime}` " % (duration)
)
is_anime = ANIME_WAIFU_IS_RANDOM.get(message.from_user.id)
if is_anime is None:
if client.me.is_premium:
caption = (
f"**TEST** β—Ž **PING**\n"
f"{custom_pong} **PΙͺɴɒᴇʀ :** "
f"`%sms` \n"
f"{custom_balon} **Uα΄˜α΄›Ιͺᴍᴇ :** "
f"`{uptime}` \n"
f"{custom_owner} **Oᴑɴᴇʀ :** `{client.me.mention}`" % (duration)
)
else:
caption = (
f" **Pong !!** " f"`%sms` \n" f" **Uptime** - " f"`{uptime}` " % (duration)
)
return await lol.edit_text(caption)
if is_anime.get("anime", False):
photo = waifu_random()
if client.me.is_premium:
caption = (
f"**TEST** β—Ž **PING**\n"
f"{custom_pong} **PΙͺɴɒᴇʀ :** "
f"`%sms` \n"
f"{custom_balon} **Uα΄˜α΄›Ιͺᴍᴇ :** "
f"`{uptime}` \n"
f"{custom_owner} **Oᴑɴᴇʀ :** `{client.me.mention}`" % (duration)
)
else:
caption = (
f" **Pong !!** " f"`%sms` \n" f" **Uptime** - " f"`{uptime}` " % (duration)
)
await message.reply_photo(photo, caption=caption)
await lol.delete()
return
if is_anime.get("hentai", False):
photo = waifu_hentai()
if client.me.is_premium:
caption = (
f"**TEST** β—Ž **PING**\n"
f"{custom_pong} **PΙͺɴɒᴇʀ :** "
f"`%sms` \n"
f"{custom_balon} **Uα΄˜α΄›Ιͺᴍᴇ :** "
f"`{uptime}` \n"
f"{custom_owner} **Oᴑɴᴇʀ :** `{client.me.mention}`" % (duration)
)
else:
caption = (
f" **Pong !!** " f"`%sms` \n" f" **Uptime** - " f"`{uptime}` " % (duration)
)
await message.reply_photo(photo, caption=caption)
await lol.delete()
return
if client.me.is_premium:
await lol.edit_text("**β–ˆβ–’β–’β–’β–’β–’β–’β–’β–’β–’**")
await lol.edit_text("**β–ˆβ–ˆβ–ˆβ–’β–’β–’β–’β–’β–’β–’**")
await lol.edit_text("**β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–’β–’β–’β–’β–’**")
await lol.edit_text("**β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–’β–’β–’**")
await lol.edit_text("**β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ**")
await lol.edit_text(
f"**TEST** β—Ž **PING**\n"
f"{custom_pong} **PΙͺɴɒᴇʀ :** "
f"`%sms` \n"
f"{custom_balon} **Uα΄˜α΄›Ιͺᴍᴇ :** "
f"`{uptime}` \n"
f"{custom_owner} **Oᴑɴᴇʀ :** `{client.me.mention}`" % (duration)
)
else:
await lol.edit_text(
f" **Pong !!** " f"`%sms` \n" f" **Uptime** - " f"`{uptime}` " % (duration)
)
module = modules_help.add_module("ping", __file__)
module.add_command("ping", "to testing ping.")