From 6518df15dd12b26fecab4868aa7f571a26cb4dbc Mon Sep 17 00:00:00 2001 From: P3run Date: Sun, 12 Mar 2023 23:58:09 +0100 Subject: [PATCH 1/2] Add wykop.pl --- README.md | 1 + holehe/core.py | 2 +- holehe/modules/social_media/wykop.py | 56 ++++++++++++++++++++++++++++ 3 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 holehe/modules/social_media/wykop.py diff --git a/README.md b/README.md index 114c89b4..e560e326 100644 --- a/README.md +++ b/README.md @@ -220,6 +220,7 @@ Built for educational purposes only. | vsco | vsco.co | register | ✘ | | wattpad | wattpad.com | register | ✔ | | wordpress | wordpress | login | ✘ | +| wykop | wykop.pl | register | ✔ | | xing | xing.com | register | ✘ | | xnxx | xnxx.com | register | ✔ | | xvideos | xvideos.com | register | ✘ | diff --git a/holehe/core.py b/holehe/core.py index 5481c78c..5012c932 100644 --- a/holehe/core.py +++ b/holehe/core.py @@ -158,7 +158,7 @@ def export_csv(data,args,email): exit("All results have been exported to "+name_file) async def launch_module(module,email, client, out): - data={'aboutme': 'about.me', 'adobe': 'adobe.com', 'amazon': 'amazon.com', 'anydo': 'any.do', 'archive': 'archive.org', 'armurerieauxerre': 'armurerie-auxerre.com', 'atlassian': 'atlassian.com', 'babeshows': 'babeshows.co.uk', 'badeggsonline': 'badeggsonline.com', 'biosmods': 'bios-mods.com', 'biotechnologyforums': 'biotechnologyforums.com', 'bitmoji': 'bitmoji.com', 'blablacar': 'blablacar.com', 'blackworldforum': 'blackworldforum.com', 'blip': 'blip.fm', 'blitzortung': 'forum.blitzortung.org', 'bluegrassrivals': 'bluegrassrivals.com', 'bodybuilding': 'bodybuilding.com', 'buymeacoffee': 'buymeacoffee.com', 'cambridgemt': 'discussion.cambridge-mt.com', 'caringbridge': 'caringbridge.org', 'chinaphonearena': 'chinaphonearena.com', 'clashfarmer': 'clashfarmer.com', 'codecademy': 'codecademy.com', 'codeigniter': 'forum.codeigniter.com', 'codepen': 'codepen.io', 'coroflot': 'coroflot.com', 'cpaelites': 'cpaelites.com', 'cpahero': 'cpahero.com', 'cracked_to': 'cracked.to', 'crevado': 'crevado.com', 'deliveroo': 'deliveroo.com', 'demonforums': 'demonforums.net', 'devrant': 'devrant.com', 'diigo': 'diigo.com', 'discord': 'discord.com', 'docker': 'docker.com', 'dominosfr': 'dominos.fr', 'ebay': 'ebay.com', 'ello': 'ello.co', 'envato': 'envato.com', 'eventbrite': 'eventbrite.com', 'evernote': 'evernote.com', 'fanpop': 'fanpop.com', 'firefox': 'firefox.com', 'flickr': 'flickr.com', 'freelancer': 'freelancer.com', 'freiberg': 'drachenhort.user.stunet.tu-freiberg.de', 'garmin': 'garmin.com', 'github': 'github.com', 'google': 'google.com', 'gravatar': 'gravatar.com', 'imgur': 'imgur.com', 'instagram': 'instagram.com', 'issuu': 'issuu.com', 'koditv': 'forum.kodi.tv', 'komoot': 'komoot.com', 'laposte': 'laposte.fr', 'lastfm': 'last.fm', 'lastpass': 'lastpass.com', 'mail_ru': 'mail.ru', 'mybb': 'community.mybb.com', 'myspace': 'myspace.com', 'nattyornot': 'nattyornotforum.nattyornot.com', 'naturabuy': 'naturabuy.fr', 'ndemiccreations': 'forum.ndemiccreations.com', 'nextpvr': 'forums.nextpvr.com', 'nike': 'nike.com', 'odnoklassniki': 'ok.ru', 'office365': 'office365.com', 'onlinesequencer': 'onlinesequencer.net', 'parler': 'parler.com', 'patreon': 'patreon.com', 'pinterest': 'pinterest.com', 'plurk': 'plurk.com', 'pornhub': 'pornhub.com', 'protonmail': 'protonmail.ch', 'quora': 'quora.com', 'rambler': 'rambler.ru', 'redtube': 'redtube.com', 'replit': 'replit.com', 'rocketreach': 'rocketreach.co', 'samsung': 'samsung.com', 'seoclerks': 'seoclerks.com', 'sevencups': '7cups.com', 'smule': 'smule.com', 'snapchat': 'snapchat.com', 'soundcloud': 'soundcloud.com', 'sporcle': 'sporcle.com', 'spotify': 'spotify.com', 'strava': 'strava.com', 'taringa': 'taringa.net', 'teamtreehouse': 'teamtreehouse.com', 'tellonym': 'tellonym.me', 'thecardboard': 'thecardboard.org', 'therianguide': 'forums.therian-guide.com', 'thevapingforum': 'thevapingforum.com', 'tumblr': 'tumblr.com', 'tunefind': 'tunefind.com', 'twitter': 'twitter.com', 'venmo': 'venmo.com', 'vivino': 'vivino.com', 'voxmedia': 'voxmedia.com', 'vrbo': 'vrbo.com', 'vsco': 'vsco.co', 'wattpad': 'wattpad.com', 'wordpress': 'wordpress.com', 'xing': 'xing.com', 'xnxx': 'xnxx.com', 'xvideos': 'xvideos.com', 'yahoo': 'yahoo.com','hubspot': 'hubspot.com', 'pipedrive': 'pipedrive.com', 'insightly': 'insightly.com', 'nutshell': 'nutshell.com', 'zoho': 'zoho.com', 'axonaut': 'axonaut.com', 'amocrm': 'amocrm.com', 'nimble': 'nimble.com', 'nocrm': 'nocrm.io', 'teamleader': 'teamleader.eu'} + data={'aboutme': 'about.me', 'adobe': 'adobe.com', 'amazon': 'amazon.com', 'anydo': 'any.do', 'archive': 'archive.org', 'armurerieauxerre': 'armurerie-auxerre.com', 'atlassian': 'atlassian.com', 'babeshows': 'babeshows.co.uk', 'badeggsonline': 'badeggsonline.com', 'biosmods': 'bios-mods.com', 'biotechnologyforums': 'biotechnologyforums.com', 'bitmoji': 'bitmoji.com', 'blablacar': 'blablacar.com', 'blackworldforum': 'blackworldforum.com', 'blip': 'blip.fm', 'blitzortung': 'forum.blitzortung.org', 'bluegrassrivals': 'bluegrassrivals.com', 'bodybuilding': 'bodybuilding.com', 'buymeacoffee': 'buymeacoffee.com', 'cambridgemt': 'discussion.cambridge-mt.com', 'caringbridge': 'caringbridge.org', 'chinaphonearena': 'chinaphonearena.com', 'clashfarmer': 'clashfarmer.com', 'codecademy': 'codecademy.com', 'codeigniter': 'forum.codeigniter.com', 'codepen': 'codepen.io', 'coroflot': 'coroflot.com', 'cpaelites': 'cpaelites.com', 'cpahero': 'cpahero.com', 'cracked_to': 'cracked.to', 'crevado': 'crevado.com', 'deliveroo': 'deliveroo.com', 'demonforums': 'demonforums.net', 'devrant': 'devrant.com', 'diigo': 'diigo.com', 'discord': 'discord.com', 'docker': 'docker.com', 'dominosfr': 'dominos.fr', 'ebay': 'ebay.com', 'ello': 'ello.co', 'envato': 'envato.com', 'eventbrite': 'eventbrite.com', 'evernote': 'evernote.com', 'fanpop': 'fanpop.com', 'firefox': 'firefox.com', 'flickr': 'flickr.com', 'freelancer': 'freelancer.com', 'freiberg': 'drachenhort.user.stunet.tu-freiberg.de', 'garmin': 'garmin.com', 'github': 'github.com', 'google': 'google.com', 'gravatar': 'gravatar.com', 'imgur': 'imgur.com', 'instagram': 'instagram.com', 'issuu': 'issuu.com', 'koditv': 'forum.kodi.tv', 'komoot': 'komoot.com', 'laposte': 'laposte.fr', 'lastfm': 'last.fm', 'lastpass': 'lastpass.com', 'mail_ru': 'mail.ru', 'mybb': 'community.mybb.com', 'myspace': 'myspace.com', 'nattyornot': 'nattyornotforum.nattyornot.com', 'naturabuy': 'naturabuy.fr', 'ndemiccreations': 'forum.ndemiccreations.com', 'nextpvr': 'forums.nextpvr.com', 'nike': 'nike.com', 'odnoklassniki': 'ok.ru', 'office365': 'office365.com', 'onlinesequencer': 'onlinesequencer.net', 'parler': 'parler.com', 'patreon': 'patreon.com', 'pinterest': 'pinterest.com', 'plurk': 'plurk.com', 'pornhub': 'pornhub.com', 'protonmail': 'protonmail.ch', 'quora': 'quora.com', 'rambler': 'rambler.ru', 'redtube': 'redtube.com', 'replit': 'replit.com', 'rocketreach': 'rocketreach.co', 'samsung': 'samsung.com', 'seoclerks': 'seoclerks.com', 'sevencups': '7cups.com', 'smule': 'smule.com', 'snapchat': 'snapchat.com', 'soundcloud': 'soundcloud.com', 'sporcle': 'sporcle.com', 'spotify': 'spotify.com', 'strava': 'strava.com', 'taringa': 'taringa.net', 'teamtreehouse': 'teamtreehouse.com', 'tellonym': 'tellonym.me', 'thecardboard': 'thecardboard.org', 'therianguide': 'forums.therian-guide.com', 'thevapingforum': 'thevapingforum.com', 'tumblr': 'tumblr.com', 'tunefind': 'tunefind.com', 'twitter': 'twitter.com', 'venmo': 'venmo.com', 'vivino': 'vivino.com', 'voxmedia': 'voxmedia.com', 'vrbo': 'vrbo.com', 'vsco': 'vsco.co', 'wattpad': 'wattpad.com', 'wordpress': 'wordpress.com', 'wykop': 'wykop.pl', 'xing': 'xing.com', 'xnxx': 'xnxx.com', 'xvideos': 'xvideos.com', 'yahoo': 'yahoo.com','hubspot': 'hubspot.com', 'pipedrive': 'pipedrive.com', 'insightly': 'insightly.com', 'nutshell': 'nutshell.com', 'zoho': 'zoho.com', 'axonaut': 'axonaut.com', 'amocrm': 'amocrm.com', 'nimble': 'nimble.com', 'nocrm': 'nocrm.io', 'teamleader': 'teamleader.eu'} try: await module(email, client, out) except Exception: diff --git a/holehe/modules/social_media/wykop.py b/holehe/modules/social_media/wykop.py new file mode 100644 index 00000000..81262641 --- /dev/null +++ b/holehe/modules/social_media/wykop.py @@ -0,0 +1,56 @@ +from holehe.core import * +from holehe.localuseragent import * + + +async def wykop(email, client, out): + name = "wykop" + domain = "wykop.pl" + method = "register" + frequent_rate_limit = True + + headers = { + 'User-Agent': random.choice(ua["browsers"]["firefox"]), + 'Accept': 'application/json', + 'Content-Type': 'application/json;charset=UTF-8', + } + + auth_data = '{"data": {"key": "w53947240748","secret": "d537d9e0a7adc1510842059ae5316419"} }' + + auth_response = await client.post( + 'https://wykop.pl/api/v3/auth', + headers=headers, + data=auth_data) + + headers["Authorization"] = f'Bearer {auth_response.json()["data"]["token"]}' + + data = f'{{"data":{{"email":"{email}"}}}}' + + response = await client.post( + 'https://wykop.pl/api/v3/users', + headers=headers, + data=data) + + body = response.json() + + if response.status_code == 409: + if "email" in body["error"]["data"].keys() and "exist" in body["error"]["data"]["email"]: + out.append({"name": name, "domain": domain, "method": method, "frequent_rate_limit": frequent_rate_limit, + "rateLimit": False, + "exists": True, + "emailrecovery": None, + "phoneNumber": None, + "others": None}) + else: + out.append({"name": name, "domain": domain, "method": method, "frequent_rate_limit": frequent_rate_limit, + "rateLimit": False, + "exists": False, + "emailrecovery": None, + "phoneNumber": None, + "others": None}) + elif response.status_code == 400 and body["error"]["message"] == "application_limit": + out.append({"name": name, "domain": domain, "method": method, "frequent_rate_limit": frequent_rate_limit, + "rateLimit": True, + "exists": False, + "emailrecovery": None, + "phoneNumber": None, + "others": None}) From c95de4b987fc411bec0a946d54b853969707bee7 Mon Sep 17 00:00:00 2001 From: P3run Date: Fri, 15 Sep 2023 19:47:04 +0200 Subject: [PATCH 2/2] Add exceptions and error messages. --- holehe/modules/social_media/wykop.py | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/holehe/modules/social_media/wykop.py b/holehe/modules/social_media/wykop.py index 81262641..41e6b0ce 100644 --- a/holehe/modules/social_media/wykop.py +++ b/holehe/modules/social_media/wykop.py @@ -25,10 +25,20 @@ async def wykop(email, client, out): data = f'{{"data":{{"email":"{email}"}}}}' - response = await client.post( - 'https://wykop.pl/api/v3/users', - headers=headers, - data=data) + try: + response = await client.post( + 'https://wykop.pl/api/v3/users', + headers=headers, + data=data) + except Exception: + out.append({"name": name,"domain":domain,"method":method,"frequent_rate_limit":frequent_rate_limit, + "rateLimit": False, + "exists": False, + "emailrecovery": None, + "phoneNumber": None, + "error": True, + "others": {"errorMessage": "Unexpected error while sending request."}}) + return None body = response.json() @@ -54,3 +64,12 @@ async def wykop(email, client, out): "emailrecovery": None, "phoneNumber": None, "others": None}) + else: + out.append({"name": name, "domain": domain, "method": method, "frequent_rate_limit": frequent_rate_limit, + "rateLimit": False, + "exists": False, + "emailrecovery": None, + "phoneNumber": None, + "error": True, + "others": {"errorMessage": f"Wrong response code received: {response.status_code}"}}) +