[GH-ISSUE #29] threatcrowd.org is offline #132

Closed
opened 2026-03-01 17:37:44 +03:00 by kerem · 2 comments
Owner

Originally created by @quinncomendant on GitHub (Sep 24, 2022).
Original GitHub issue: https://github.com/alpkeskin/mosint/issues/29

ThreatCrowd's API at https://www.threatcrowd.org/ is down, which results in this error from MOSINT:

panic: unexpected end of JSON input

goroutine 1 [running]:
main/modules.doRequest({0x140016ea050, 0x4e}, {0x1026f4599, 0x6})
        /Users/q/src/mosint/modules/ThreatCrowd.go:31 +0x620
main/modules.RelatedEmails({0x16dbfecf5?, 0x15?})
        /Users/q/src/mosint/modules/ThreatCrowd.go:59 +0x68
main.main()
        /Users/q/src/mosint/main.go:261 +0xa14
exit status 2

Editing modules/ThreatCrowd.go to bypass the http requests allows MOSINT to run successfully:

func RelatedDomains(email string) []string {
	var data_array []string
	return data_array
}

func RelatedEmails(email string) []string {
	var data_array []string
	return data_array
}
Originally created by @quinncomendant on GitHub (Sep 24, 2022). Original GitHub issue: https://github.com/alpkeskin/mosint/issues/29 ThreatCrowd's API at https://www.threatcrowd.org/ is down, which results in this error from MOSINT: panic: unexpected end of JSON input goroutine 1 [running]: main/modules.doRequest({0x140016ea050, 0x4e}, {0x1026f4599, 0x6}) /Users/q/src/mosint/modules/ThreatCrowd.go:31 +0x620 main/modules.RelatedEmails({0x16dbfecf5?, 0x15?}) /Users/q/src/mosint/modules/ThreatCrowd.go:59 +0x68 main.main() /Users/q/src/mosint/main.go:261 +0xa14 exit status 2 Editing `modules/ThreatCrowd.go` to bypass the http requests allows MOSINT to run successfully: ```go func RelatedDomains(email string) []string { var data_array []string return data_array } func RelatedEmails(email string) []string { var data_array []string return data_array } ```
kerem closed this issue 2026-03-01 17:37:44 +03:00
Author
Owner

@mimorep commented on GitHub (Sep 28, 2022):

Great patch! including something like a try catch statement, for future patches will be great, in order to not depend of the server sites responses.

Just commenting the method content will also make the app usable again, but will lose a lot of juice.

<!-- gh-comment-id:1260786328 --> @mimorep commented on GitHub (Sep 28, 2022): Great patch! including something like a try catch statement, for future patches will be great, in order to not depend of the server sites responses. Just commenting the method content will also make the app usable again, but will lose a lot of juice.
Author
Owner

@alpkeskin commented on GitHub (Oct 18, 2022):

Hi, new version released 🚀

<!-- gh-comment-id:1282211145 --> @alpkeskin commented on GitHub (Oct 18, 2022): Hi, new version released 🚀
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/mosint#132
No description provided.