File size: 13,100 Bytes
21bc372
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
# 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.")