Skip to content

Commit

Permalink
V1.2
Browse files Browse the repository at this point in the history
V1.1- 94548 domains listed
---
Format:
- add domains.json

Utils:
- toJson tool (GO)
  • Loading branch information
zaosoula committed Sep 22, 2020
1 parent 72b6d0c commit 85cc3f4
Show file tree
Hide file tree
Showing 4 changed files with 168 additions and 7 deletions.
124 changes: 117 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,122 @@
# Email Spam Domains
A list of 94,548 spam/temporary email domain available in multiples formats
[![Contributors][contributors-shield]][contributors-url]
[![Forks][forks-shield]][forks-url]
[![Stargazers][stars-shield]][stars-url]
[![Issues][issues-shield]][issues-url]
[![MIT License][license-shield]][license-url]
[![LinkedIn][linkedin-shield]][linkedin-url]

## Sources

[MailChecker](https://github.com/FGRibreau/mailchecker/blob/master/list.txt)

[StopForumsSpam](https://www.stopforumspam.com/downloads)
<!-- PROJECT LOGO -->
<br />
<p align="center">
<a href="https://github.com/zaosoula/email-spam-domains">
<h3 align="center">Email Spam Domains</h3>
</a>

[Disposable Email Domain List](https://github.com/groundcat/disposable-email-domain-list/blob/master/domains.txt)

[Spam Domains List](https://github.com/tsirolnik/spam-domains-list/blob/master/spamdomains.txt)
<p align="center">
A list of 94,548 spam/temporary email domain available in multiples formats
<br />
<br />
<a href="https://raw.githubusercontent.com/zaosoula/email-spam-domains/master/domains.txt">View .txt</a>
·
<a href="https://raw.githubusercontent.com/zaosoula/email-spam-domains/master/domains.json">View .json</a>
·
<a href="https://github.com/zaosoula/email-spam-domains/issues">Report Bug</a>
·
<a href="https://github.com/zaosoula/email-spam-domains/issues">Request Feature</a>
</p>
</p>



<!-- TABLE OF CONTENTS -->
## Table of Contents

* [About the Project](#about-the-project)
* [Sources](#sources)
* [Built With](#built-with)
* [Usage](#usage)
* [Roadmap](#roadmap)
* [Contributing](#contributing)
* [License](#license)
* [Contact](#contact)



<!-- ABOUT THE PROJECT -->
## About The Project

### Sources

* [MailChecker](https://github.com/FGRibreau/mailchecker/blob/master/list.txt)
* [StopForumsSpam](https://www.stopforumspam.com/downloads)
* [Disposable Email Domain List](https://github.com/groundcat/disposable-email-domain-list/blob/master/domains.txt)
* [Spam Domains List](https://github.com/tsirolnik/spam-domains-list/blob/master/spamdomains.txt)

### Built With

* [Go](https://golang.org/)


<!-- USAGE EXAMPLES -->
## Usage

### Utils

* [Merge](https://github.com/zaosoula/email-spam-domains/tree/master/utils/merge) - Compile sources in domains.txt
* [ToJson](https://github.com/zaosoula/email-spam-domains/tree/master/utils/toJson) - Convert domains.txt to domains.json
* [IsSpam](https://github.com/zaosoula/email-spam-domains/tree/master/utils/isSpam) - Check if a domain is in the list and return a 0 (false) or 1 (true)
``go run main.go -domain <email domain>``


<!-- ROADMAP -->
## Roadmap

See the [open issues](https://github.com/zaosoula/email-spam-domains_name/issues) for a list of proposed features (and known issues).



<!-- CONTRIBUTING -->
## Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.

1. Fork the Project
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request



<!-- LICENSE -->
## License

Distributed under the MIT License. See `LICENSE` for more information.



<!-- CONTACT -->
## Contact

Zao Soula — contact@zaosoula.fr

Project Link: [https://github.com/zaosoula/email-spam-domains_name](https://github.com/zaosoula/email-spam-domains_name)

<!-- MARKDOWN LINKS & IMAGES -->
<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->
[contributors-shield]: https://img.shields.io/github/contributors/zaosoula/email-spam-domains.svg?style=flat-square
[contributors-url]: https://github.com/zaosoula/email-spam-domains/graphs/contributors
[forks-shield]: https://img.shields.io/github/forks/zaosoula/email-spam-domains.svg?style=flat-square
[forks-url]: https://github.com/zaosoula/email-spam-domains/network/members
[stars-shield]: https://img.shields.io/github/stars/zaosoula/email-spam-domains.svg?style=flat-square
[stars-url]: https://github.com/zaosoula/email-spam-domains/stargazers
[issues-shield]: https://img.shields.io/github/issues/zaosoula/email-spam-domains.svg?style=flat-square
[issues-url]: https://github.com/zaosoula/email-spam-domains/issues
[license-shield]: https://img.shields.io/github/license/zaosoula/email-spam-domains.svg?style=flat-square
[license-url]: https://github.com/zaosoula/email-spam-domains/blob/master/LICENSE.txt
[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=flat-square&logo=linkedin&colorB=555
[linkedin-url]: https://linkedin.com/in/zaosoula
[product-screenshot]: images/screenshot.png
1 change: 1 addition & 0 deletions domains.json

Large diffs are not rendered by default.

Binary file removed utils/__debug_bin
Binary file not shown.
50 changes: 50 additions & 0 deletions utils/toJson/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
package main

import (
"bufio"
"encoding/json"
"fmt"
"io/ioutil"
"log"
"os"
"path"
"runtime"
)

//Usage go run filename -text=dataYouAreLookingfor
//if looking for Nissan in file the command will be
// go run filename -text=Nissan
var currentDir string

func main() {
setCurrentDir()

file, err := os.Open(path.Join(currentDir, "..", "..", "domains.txt"))
if err != nil {
log.Fatal(err)
}
defer file.Close()

scanner := bufio.NewScanner(file)

domains := []string{}
for scanner.Scan() {
domains = append(domains, scanner.Text())
}

jsonDomains, _ := json.Marshal(domains)
fmt.Println(string(jsonDomains))

err = ioutil.WriteFile(path.Join(currentDir, "..", "..", "domains.json"), []byte(string(jsonDomains)), 0664)
if err != nil {
log.Fatal(err)
}

// fmt.Println(domains)

}

func setCurrentDir() {
_, currentFilePath, _, _ := runtime.Caller(0)
currentDir = path.Dir(currentFilePath)
}

0 comments on commit 85cc3f4

Please sign in to comment.