DiscordEmailVerifier - Quickly verify emails on your tokens for completely free using mail.tm's api.

Overview

DiscordEmailVerifier

Quickly verify emails on your tokens for completely free using mail.tm's api.

/* ❗ No, this code doesn't verify the email for you. It only creates an email, 
changes the discord token's email to it and then prints a JSON of the emails that email has received. 
If you want to make it automatic then you'll have to do it yourself since I will be focusing on my token generator. 
I might come back later and update this code to make it automatic, please star the repo! */

const crypto = require("crypto");
const axios = require("axios")

function email_verify(access) {
  const e = access;
  if (/(.*):(.*)/g.test(e) == false) {
    throw new Error("Invalid Token:Password string")
  }
  
  axios.get("https://api.mail.tm/domains").then(res => {
    const domain = res.data["hydra:member"][0].domain
    const email = crypto.randomBytes(20).toString('hex');

    axios.post("https://api.mail.tm/accounts", {
      "address": `${email}@${domain}`,
      "password": process.env.EMAIL_PASSWORD
    }).then(res => {
      axios.post("https://api.mail.tm/token", {
        ...res.data,
        ...{"password": process.env.EMAIL_PASSWORD}
      }).then(res => {
        axios.patch("https://discord.com/api/v9/users/@me", {
          "email": `${email}@${domain}`,
          "password": e.split(':')[1]
        }, {
          headers: {"authorization": e.substr(0, e.indexOf(':'))}
        }).catch(error => {
          throw new Error("Invalid Token provided, make sure you are using the format (Token:Password) correctly.")
        })

        setTimeout(() => {
          axios.get("https://api.mail.tm/messages", {
            headers: {"authorization": `Bearer ${res.data["token"]}`}
          }).then(res => console.log(res.data))
        }, 3000)
      })
    }).catch(error => {
      console.log(error.response.data)
    })
  })
}

email_verify("YOUR_TOKEN_HERE:YOUR_PASSWORD_HERE")

Made by Eric48906™

You might also like...

A library for validate a string using regular expressions.

Fogex Form Regex Quickly and easily check if the content is valid. Installation npm install fogex or yarn add fogex Usage import fogex from 'fogex';

May 5, 2022

Schema validation utilities for h3, using typebox & ajv

h3-typebox JSON schema validation for h3, using typebox & ajv. Install # Using npm npm install h3-typebox # Using yarn yarn install h3-typebox # Usi

Dec 10, 2022

Validate your forms, frontend, without writing a single line of javascript

Parsley JavaScript form validation, without actually writing a single line of JavaScript! Version 2.9.2 Doc See index.html and doc/ Requirements jQuer

Dec 27, 2022

The best @jquery plugin to validate form fields. Designed to use with Bootstrap + Zurb Foundation + Pure + SemanticUI + UIKit + Your own frameworks.

The best @jquery plugin to validate form fields. Designed to use with Bootstrap + Zurb Foundation + Pure + SemanticUI + UIKit + Your own frameworks.

FormValidation - Download http://formvalidation.io - The best jQuery plugin to validate form fields, designed to use with: Bootstrap Foundation Pure S

Mar 29, 2021

[DISCONTINUED] jQuery plugin that makes it easy to validate user input while keeping your HTML markup clean from javascript code.

jQuery Form Validator [DISCONTINUED] Validation framework that let's you configure, rather than code, your validation logic. I started writing this pl

Dec 30, 2022

Validate properties and well known annotations in your Backstage catalog-info.yaml files.

Backstage entity validator This package can be used as a GitHub action or a standalone node.js module GitHub action Inputs path Optional Path to the c

Dec 26, 2022

Copypaster Has your project structure gotten so complex that to add a new feature you need to copy

Copypaster Has your project structure gotten so complex that to add a new feature you need to copy, paste and rename tens or hundreds of files each ti

Nov 4, 2022

The Vue form assembly tool that won't break your heart 💔

The Vue form assembly tool that won't break your heart 💔

Loveform The Vue form assembly tool that won't break your heart 💔 Loveform is a tool that helps you build validated forms in Vue 3 without the need t

Jun 10, 2022

Themis is a validation and processing library that helps you always make sure your data is correct.

Dataffy Themis - The advanced validation library Themis is a validation and processing library that helps you always make sure your data is correct. ·

Oct 27, 2022
Owner
eric
eric
Codestamp - Stamp and verify your files and contents

A language-agnostic tool for signing and verifying your (codegen'd) files and contents.

Keyan Zhang 4 Jan 26, 2022
Tailwind CSS for HTML emails.

Mailwind Tailwind CSS for HTML emails. Tailwind makes it very easy to design websites, why not use it to design HTML emails? I've been using this at v

Soheil Rashidi 2.8k Jan 2, 2023
Fast, compiled, eval-free data validator/transformer

spectypes Fast, compiled, eval-free data validator/transformer Features really fast, can be even faster than ajv detailed errors, failure will result

null 65 Dec 29, 2022
Email capture page using Notion API

Notion Capture This starter shows how to use the new Notion API with Next.js. You can capture emails that will populate a Notion database. Live Demo •

Bilal 61 Dec 25, 2022
Creating a Blog API, with full CRUD using NodeJS, Express, Mongoose, and MongoDB.

Blog API Blog API that uses CRUD to create, login users, delete and update blog posts. https://blog-api12.herokuapp.com/ Installation Make a new folde

Eros Nolasco Mendoza 18 Jun 29, 2022
Simple translation for your javascripts, yummy with your favorite templates engine like EJS.

jsperanto Simple translation for your javascripts, yummy with your favorite templates engine like EJS. Pluralization, interpolation & "nested lookup"

Jean-Philippe Joyal 62 Oct 21, 2021
Schema-Inspector is an JSON API sanitisation and validation module.

Schema-Inspector is a powerful tool to sanitize and validate JS objects. It's designed to work both client-side and server-side and to be scalable wit

null 494 Oct 3, 2022
Tag-input - A versetile tag input component built with Vue 3 Composition API

TagInput A versetile tag input component built with Vue 3 Composition API. Please read this article to learn how to build this package step by step an

Mayank 12 Oct 12, 2022
This Login Form made using React hooks , React Js , Css, Json. This form have 3 inputs, it also validate those inputs & it also having length limitations.

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

Yogesh Sharma 0 Jan 3, 2022