Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Miro[.com module #171

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Built for educational purposes only.

## Modules
| Name | Domain | Method | Frequent Rate Limit |
| ------------------- | -------------------------------------- | ----------------- | ------------------- |
|---------------------|----------------------------------------|-------------------| ------------------- |
| aboutme | about.me | register | ✘ |
| adobe | adobe.com | password recovery | ✘ |
| amazon | amazon.com | login | ✘ |
Expand Down Expand Up @@ -171,6 +171,7 @@ Built for educational purposes only.
| lastfm | last.fm | register | ✘ |
| lastpass | lastpass.com | register | ✘ |
| mail_ru | mail.ru | password recovery | ✘ |
| miro | miro.com | register | ✘ |
| mybb | community.mybb.com | register | ✘ |
| myspace | myspace.com | register | ✘ |
| nattyornot | nattyornotforum.nattyornot.com | register | ✘ |
Expand Down
173 changes: 173 additions & 0 deletions holehe/modules/productivity/miro.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,173 @@
from holehe.core import *
from holehe.localuseragent import *
import re


async def miro(email, client, out):
name = "miro"
domain = "miro.com"
method = "register"
frequent_rate_limit = True

_ua = random.choice(ua["browsers"]["chrome"])
headers = {
"User-Agent": _ua,
"User-Encoding": "gzip, deflate, br",
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8",
"Accept-Language": "en,en-US;q=0.5",
}

try:
token = None
r = await client.get("https://miro.com/", headers=headers, timeout=1)
headers = r.headers
del headers["Set-Cookie"]
headers["User-Agent"] = _ua
if "Your request was blocked" in r.text or r.status_code != 200:
out.append(
{
"name": name,
"domain": domain,
"method": method,
"frequent_rate_limit": frequent_rate_limit,
"rateLimit": True,
"exists": False,
"emailrecovery": None,
"phoneNumber": None,
"others": None,
}
)
return None

r = await client.get("https://miro.com/en/signup/", headers=headers, timeout=1)
if "Your request was blocked" in r.text or r.status_code != 200:
out.append(
{
"name": name,
"domain": domain,
"method": method,
"frequent_rate_limit": frequent_rate_limit,
"rateLimit": True,
"exists": False,
"emailrecovery": None,
"phoneNumber": None,
"others": None,
}
)
return None
else:
token = re.findall(
r'<input type="hidden" name="signup\[token\]" value="(.*)">', r.text
)[0]
if not token:
out.append(
{
"name": name,
"domain": domain,
"method": method,
"frequent_rate_limit": frequent_rate_limit,
"rateLimit": True,
"exists": False,
"emailrecovery": None,
"phoneNumber": None,
"others": None,
}
)
return None
else:

data = {"registration_check": email, "csrfToken": token}

headers["X-Requested-With"] = "XMLHttpRequest"
headers["Host"] = "miro.com"
headers["Origin"] = "https://miro.com"
headers["Referer"] = "https://miro.com/en/signup/"
headers["Accept"] = "application/json, text/javascript, */*; q=0.01"
headers[
"Content-Type"
] = "application/x-www-form-urlencoded; charset=UTF-8"
headers["Sec-Fetch-Dest"] = "empty"
headers["Sec-Fetch-Mode"] = "cors"
headers["Sec-GPC"] = "1"

r = await client.post(
"https://miro.com/signup/", headers=headers, data=data, timeout=1
)
if "Your request was blocked" in r.text or r.status_code != 200:
out.append(
{
"name": name,
"domain": domain,
"method": method,
"frequent_rate_limit": frequent_rate_limit,
"rateLimit": True,
"exists": False,
"emailrecovery": None,
"phoneNumber": None,
"others": None,
}
)
return None
else:
if r:
if '"isAlreadyRegistered":true' in r.text:
out.append(
{
"name": name,
"domain": domain,
"method": method,
"frequent_rate_limit": frequent_rate_limit,
"rateLimit": False,
"exists": True,
"emailrecovery": None,
"phoneNumber": None,
"others": None,
}
)
return None
elif '"isAlreadyRegistered":false' in r.text:
out.append(
{
"name": name,
"domain": domain,
"method": method,
"frequent_rate_limit": frequent_rate_limit,
"rateLimit": False,
"exists": False,
"emailrecovery": None,
"phoneNumber": None,
"others": None,
}
)
return None
else:
out.append(
{
"name": name,
"domain": domain,
"method": method,
"frequent_rate_limit": frequent_rate_limit,
"rateLimit": True,
"exists": False,
"emailrecovery": None,
"phoneNumber": None,
"others": None,
}
)
return None

except Exception as exx:
out.append(
{
"name": name,
"domain": domain,
"method": method,
"frequent_rate_limit": frequent_rate_limit,
"rateLimit": True,
"exists": False,
"emailrecovery": None,
"phoneNumber": None,
"others": None,
}
)
return None