-
Notifications
You must be signed in to change notification settings - Fork 561
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
1,120 additions
and
890 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: goreleaser | ||
|
||
on: | ||
push: | ||
tags: | ||
- "*" | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
goreleaser: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- | ||
name: Fetch all tags | ||
run: git fetch --force --tags | ||
- | ||
name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.19 | ||
- | ||
name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v2 | ||
with: | ||
distribution: goreleaser | ||
version: ${{ env.GITHUB_REF_NAME }} | ||
args: release --rm-dist | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.PUBLISHER_TOKEN }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
builds: | ||
- binary: mosint | ||
goos: | ||
- darwin | ||
- linux | ||
goarch: | ||
- amd64 | ||
- arm64 | ||
env: | ||
- CGO_ENABLED=0 | ||
flags: | ||
- -mod=vendor | ||
|
||
release: | ||
prerelease: auto | ||
|
||
universal_binary: | ||
- replace: true | ||
|
||
brews: | ||
- | ||
name: mosint | ||
description: An automated e-mail OSINT tool | ||
homepage: https://github.com/alpkeskin/mosint | ||
tap: | ||
owner: alpkeskin | ||
name: homebrew-mosint | ||
commit_author: | ||
name: alpkeskin | ||
email: [email protected] | ||
|
||
checksum: | ||
name_template: 'checksums.txt' |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// mosint v2.3 | ||
// Author: Alp Keskin | ||
// Github: github.com/alpkeskin | ||
// Linkedin: linkedin.com/in/alpkeskin | ||
|
||
package controllers | ||
|
||
import ( | ||
"encoding/json" | ||
"io" | ||
"net/http" | ||
|
||
"github.com/alpkeskin/mosint/cmd/utils" | ||
) | ||
|
||
func BreachDirectory(email string) { | ||
defer utils.ProgressBar.Add(10) | ||
var key string = utils.GetAPIKey("Breachdirectory") | ||
if key == "" { | ||
return | ||
} | ||
url := utils.BreachDirectoryAPI + email | ||
|
||
req, err := http.NewRequest("GET", url, nil) | ||
if err != nil { | ||
panic(err) | ||
} | ||
|
||
req.Header.Add("x-rapidapi-host", "breachdirectory.p.rapidapi.com") | ||
req.Header.Add("x-rapidapi-key", key) | ||
|
||
res, err := http.DefaultClient.Do(req) | ||
if err != nil { | ||
panic(err) | ||
} | ||
|
||
defer res.Body.Close() | ||
body, _ := io.ReadAll(res.Body) | ||
json.Unmarshal(body, &utils.Breachdirectory_result) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// mosint v2.3 | ||
// Author: Alp Keskin | ||
// Github: github.com/alpkeskin | ||
// Linkedin: linkedin.com/in/alpkeskin | ||
|
||
package controllers | ||
|
||
import ( | ||
"encoding/json" | ||
"io" | ||
"net/http" | ||
|
||
"github.com/alpkeskin/mosint/cmd/utils" | ||
) | ||
|
||
func EmailRep(email string) { | ||
defer utils.ProgressBar.Add(10) | ||
var key string = utils.GetAPIKey("Emailrep") | ||
if key == "" { | ||
return | ||
} | ||
client := &http.Client{} | ||
req, _ := http.NewRequest("GET", utils.EmailrepURL+email, nil) | ||
req.Header.Set("Key", key) | ||
req.Header.Set("User-Agent", "mosint") | ||
resp, _ := client.Do(req) | ||
body, _ := io.ReadAll(resp.Body) | ||
json.Unmarshal(body, &utils.Emailrep_result) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,24 @@ | ||
// mosint v2.2 | ||
// mosint v2.3 | ||
// Author: Alp Keskin | ||
// Github: github.com/alpkeskin | ||
// Linkedin: linkedin.com/in/alpkeskin | ||
|
||
package cmd | ||
package controllers | ||
|
||
import ( | ||
"sync" | ||
|
||
"github.com/alpkeskin/mosint/cmd/utils" | ||
googlesearch "github.com/rocketlaunchr/google-search" | ||
) | ||
|
||
func Googling(wg *sync.WaitGroup, email string) { | ||
defer wg.Done() | ||
func Googling(email string) { | ||
defer utils.ProgressBar.Add(10) | ||
q := "intext:" + string('"') + email + string('"') | ||
res, err := googlesearch.Search(nil, q) | ||
if err != nil { | ||
panic(err) | ||
} | ||
size := len(res) | ||
for i := 0; i < size; i++ { | ||
googling_result = append(googling_result, res[i].URL) | ||
utils.Googling_result = append(utils.Googling_result, res[i].URL) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// mosint v2.3 | ||
// Author: Alp Keskin | ||
// Github: github.com/alpkeskin | ||
// Linkedin: linkedin.com/in/alpkeskin | ||
|
||
package controllers | ||
|
||
import ( | ||
"encoding/json" | ||
"io" | ||
"net/http" | ||
"strings" | ||
|
||
"github.com/alpkeskin/mosint/cmd/utils" | ||
) | ||
|
||
func Hunter(email string) { | ||
defer utils.ProgressBar.Add(10) | ||
key := utils.GetAPIKey("Hunter") | ||
if key == "" { | ||
return | ||
} | ||
client := &http.Client{} | ||
req, _ := http.NewRequest("GET", utils.HunterAPI+strings.Split(email, "@")[1]+"&api_key="+key, nil) | ||
req.Header.Set("User-Agent", "mosint") | ||
resp, _ := client.Do(req) | ||
body, _ := io.ReadAll(resp.Body) | ||
json.Unmarshal(body, &utils.Hunter_result) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// mosint v2.3 | ||
// Author: Alp Keskin | ||
// Github: github.com/alpkeskin | ||
// Linkedin: linkedin.com/in/alpkeskin | ||
|
||
package controllers | ||
|
||
import ( | ||
"encoding/json" | ||
"io" | ||
"net" | ||
"net/http" | ||
"strings" | ||
|
||
"github.com/alpkeskin/mosint/cmd/utils" | ||
) | ||
|
||
func IPAPI(email string) { | ||
defer utils.ProgressBar.Add(10) | ||
splt := strings.Split(email, "@") | ||
ips, _ := net.LookupIP(splt[1]) | ||
ip4api := "" | ||
for _, ip := range ips { | ||
if ipv4 := ip.To4(); ipv4 != nil { | ||
ip4api = ipv4.String() | ||
} | ||
} | ||
if ip4api != "" { | ||
client := &http.Client{} | ||
req, _ := http.NewRequest("GET", utils.IPAPIURL+ip4api+"/json/", nil) | ||
req.Header.Set("User-Agent", "mosint") | ||
resp, _ := client.Do(req) | ||
body, _ := io.ReadAll(resp.Body) | ||
json.Unmarshal(body, &utils.Ipapi_result) | ||
} | ||
} |
Oops, something went wrong.