[GH-ISSUE #20] Error :- anic: invalid character '<' looking for beginning of value #16

Closed
opened 2026-03-01 14:35:43 +03:00 by kerem · 4 comments
Owner

Originally created by @KRiteshchowdary on GitHub (May 19, 2022).
Original GitHub issue: https://github.com/alpkeskin/mosint/issues/20

Getting the following error while trying to run

$ mosint % go run main.go -e example@gmail.com -all
_ _
_ __ ___ ___ ___ () _ __ | |
| '_ ` _ \ / _ \ / | | | | ' \ | |
| | | | | | | () | _ \ | | | | | | | |

|| || |_| _
/ |/ || || || __|

v2.1
https://github.com/alpkeskin/
Now: Thursday, 19 May 2022

mosinting 36% |████████████████████████████████████████████████ | (36/100, 6 it/s) [21s:10s]panic: invalid character '<' looking for beginning of value

goroutine 1 [running]:
main/modules.doRequest({0xc000d3e0f0, 0x4e}, {0x16674ff, 0x7})
~/mosint/modules/ThreatCrowd.go:28 +0x670
main/modules.RelatedDomains(...)
~/mosint/modules/ThreatCrowd.go:52
main.main()
~/mosint/main.go:263 +0xc2b
exit status 2

Screenshot 2022-05-19 at 11 55 30 AM
Originally created by @KRiteshchowdary on GitHub (May 19, 2022). Original GitHub issue: https://github.com/alpkeskin/mosint/issues/20 Getting the following error while trying to run $ mosint % go run main.go -e example@gmail.com -all _ _ _ __ ___ ___ ___ (_) _ __ | |_ | '_ ` _ \ / _ \ / __| | | | '_ \ | __| | | | | | | | (_) | \__ \ | | | | | | | |_ |_| |_| |_| \___/ |___/ |_| |_| |_| \__| v2.1 https://github.com/alpkeskin/ Now: Thursday, 19 May 2022 mosinting 36% |████████████████████████████████████████████████ | (36/100, 6 it/s) [21s:10s]panic: invalid character '<' looking for beginning of value goroutine 1 [running]: main/modules.doRequest({0xc000d3e0f0, 0x4e}, {0x16674ff, 0x7}) ~/mosint/modules/ThreatCrowd.go:28 +0x670 main/modules.RelatedDomains(...) ~/mosint/modules/ThreatCrowd.go:52 main.main() ~/mosint/main.go:263 +0xc2b exit status 2 <img width="1275" alt="Screenshot 2022-05-19 at 11 55 30 AM" src="https://user-images.githubusercontent.com/44915939/169225061-23b5d423-e958-42f2-946f-07cff8a46b17.png">
kerem closed this issue 2026-03-01 14:35:43 +03:00
Author
Owner

@gray-area commented on GitHub (May 19, 2022):

Found out that it was a permissions issue on Kali. Run the command with sudo, and it should work fine.

<!-- gh-comment-id:1131792906 --> @gray-area commented on GitHub (May 19, 2022): Found out that it was a permissions issue on Kali. Run the command with sudo, and it should work fine.
Author
Owner

@prasathkjs commented on GitHub (May 20, 2022):

Even after running the comment with sudo, there are other issues coming up:
mosinting 20% |██████████████████████████████████████ | (20/100, 8 it/s) [2s:10s]Traceback (most recent call last):
File "/home/kali/mosint/modules/SocialScan.py", line 5, in
import socialscan
ModuleNotFoundError: No module named 'socialscan'
Traceback (most recent call last):
File "/home/kali/mosint/modules/Holehe.py", line 6, in
import trio
ModuleNotFoundError: No module named 'trio'
panic: invalid character '<' looking for beginning of value

goroutine 1 [running]:
main/modules.doRequest({0xc0000285a0, 0x4c}, {0xa64ddc, 0x6})
/home/kali/mosint/modules/ThreatCrowd.go:28 +0x670
main/modules.RelatedEmails({0x7ffd1815e84b?, 0x1e?})
/home/kali/mosint/modules/ThreatCrowd.go:56 +0x65
main.main()
/home/kali/mosint/main.go:261 +0xbcd
exit status 2

<!-- gh-comment-id:1132620056 --> @prasathkjs commented on GitHub (May 20, 2022): Even after running the comment with sudo, there are other issues coming up: mosinting 20% |██████████████████████████████████████ | (20/100, 8 it/s) [2s:10s]Traceback (most recent call last): File "/home/kali/mosint/modules/SocialScan.py", line 5, in <module> import socialscan ModuleNotFoundError: No module named 'socialscan' Traceback (most recent call last): File "/home/kali/mosint/modules/Holehe.py", line 6, in <module> import trio ModuleNotFoundError: No module named 'trio' panic: invalid character '<' looking for beginning of value goroutine 1 [running]: main/modules.doRequest({0xc0000285a0, 0x4c}, {0xa64ddc, 0x6}) /home/kali/mosint/modules/ThreatCrowd.go:28 +0x670 main/modules.RelatedEmails({0x7ffd1815e84b?, 0x1e?}) /home/kali/mosint/modules/ThreatCrowd.go:56 +0x65 main.main() /home/kali/mosint/main.go:261 +0xbcd exit status 2
Author
Owner

@gray-area commented on GitHub (May 20, 2022):

I retested this, and you are right. However, I was able to re-create the fix. You actually need to run the command without sudo, it will fail. Then run the command as sudo and it will run. Once or twice, it took me 3 times of running the command for it to run without error. I am not sure what the fix is, but this is a workaround to getting it to run. I will try and dig into the issue and see if I can help find the fix too.

<!-- gh-comment-id:1132919011 --> @gray-area commented on GitHub (May 20, 2022): I retested this, and you are right. However, I was able to re-create the fix. You actually need to run the command without sudo, it will fail. Then run the command as sudo and it will run. Once or twice, it took me 3 times of running the command for it to run without error. I am not sure what the fix is, but this is a workaround to getting it to run. I will try and dig into the issue and see if I can help find the fix too.
Author
Owner

@KRiteshchowdary commented on GitHub (Jun 3, 2022):

@gray-area thanks for the help I am using in macOS and this has resolved my issue.

<!-- gh-comment-id:1145641838 --> @KRiteshchowdary commented on GitHub (Jun 3, 2022): @gray-area thanks for the help I am using in macOS and this has resolved my issue.
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#16
No description provided.