mirror of
https://github.com/alpkeskin/mosint.git
synced 2026-04-26 03:25:57 +03:00
[GH-ISSUE #30] anic: runtime error: slice bounds out of range [:-1] #27
Labels
No labels
bug
duplicate
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/mosint#27
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Illuminaris1968 on GitHub (Oct 22, 2022).
Original GitHub issue: https://github.com/alpkeskin/mosint/issues/30
Originally assigned to: @calganaygun on GitHub.
Hi
I am not used to Golang usage - followed instructions - after doing am apt install golang - and - go install -v github.com/alpkeskin/mosint@latest
doing mosint produced the error:
zsh: command not found: mosint
did a cd into go/bin where the mosint file was locate (using locate mosint)
Doing ./mosint email@email.com produces the following the following errors
┌──(somepath㉿localhost)-[~/go/bin]
└─$ ./mosint mosint example1@email.com
[ INFO ] Config file created at /home/somepath/mosint-config.json
[ INFO ] If you want to use mosint with full features, set your API keys.
Examples:
mosint set hunter <hunter.io API key>
mosint set emailrep <emailrep.io API key>
mosint set intelx <intelx.io API key>
mosint set psbdmp <psbdmp.ws API key>
mosint set breachdirectory <breachdirectory.org API key>
/panic: runtime error: slice bounds out of range [:-1]
goroutine 46 [running]:
github.com/alpkeskin/mosint/cmd.getCSRFToken()
/home/somepath/go/pkg/mod/github.com/alpkeskin/mosint@v0.0.0-20221018110345-93e11ab2163f/cmd/social.go:174 +0x333
github.com/alpkeskin/mosint/cmd.Instagram(0x0?, {0x7ffde7f892d1, 0x10})
/home/somepath/go/pkg/mod/github.com/alpkeskin/mosint@v0.0.0-20221018110345-93e11ab2163f/cmd/social.go:182 +0x85
created by github.com/alpkeskin/mosint/cmd.glob..func1
/home/somepath/go/pkg/mod/github.com/alpkeskin/mosint@v0.0.0-20221018110345-93e11ab2163f/cmd/root.go:56 +0x565
┌──(somepath㉿localhost)-[~/go/bin]
└─$ ./mosint mosint example2@email.com
|panic: runtime error: slice bounds out of range [:-1]
goroutine 27 [running]:
github.com/alpkeskin/mosint/cmd.getCSRFToken()
/home/somepath/go/pkg/mod/github.com/alpkeskin/mosint@v0.0.0-20221018110345-93e11ab2163f/cmd/social.go:174 +0x333
github.com/alpkeskin/mosint/cmd.Instagram(0x0?, {0x7ffcfe36f2ca, 0x17})
/home/somepath/go/pkg/mod/github.com/alpkeskin/mosint@v0.0.0-20221018110345-93e11ab2163f/cmd/social.go:182 +0x85
created by github.com/alpkeskin/mosint/cmd.glob..func1
/home/somepath/go/pkg/mod/github.com/alpkeskin/mosint@v0.0.0-20221018110345-93e11ab2163f/cmd/root.go:56 +0x565
┌──(somepath㉿localhost)-[~/go/bin]
└─$ ./mosint mosint example2@email.com
\panic: runtime error: slice bounds out of range [:-1]
goroutine 41 [running]:
github.com/alpkeskin/mosint/cmd.getCSRFToken()
/home/somepath/go/pkg/mod/github.com/alpkeskin/mosint@v0.0.0-20221018110345-93e11ab2163f/cmd/social.go:174 +0x333
github.com/alpkeskin/mosint/cmd.Instagram(0x0?, {0x7ffc9481a2d1, 0x10})
/home/somepath/go/pkg/mod/github.com/alpkeskin/mosint@v0.0.0-20221018110345-93e11ab2163f/cmd/social.go:182 +0x85
created by github.com/alpkeskin/mosint/cmd.glob..func1
/home/somepath/go/pkg/mod/github.com/alpkeskin/mosint@v0.0.0-20221018110345-93e11ab2163f/cmd/root.go:56 +0x565
Contents of:
/home/somepath/go/pkg/mod/github.com/alpkeskin/mosint@v0.0.0-20221018110345-93e11ab2163f/cmd
-r--r--r-- 1 user user 1149 Oct 22 08:31 breachdirectory.go
-r--r--r-- 1 user user 7089 Oct 22 08:31 core.go
-r--r--r-- 1 user user 2207 Oct 22 08:31 emailrep.go
-r--r--r-- 1 user user 499 Oct 22 08:31 googling.go
-r--r--r-- 1 user user 2385 Oct 22 08:31 hunter.go
-r--r--r-- 1 user user 1379 Oct 22 08:31 intelx.go
-r--r--r-- 1 user user 2050 Oct 22 08:31 ipapi.go
-r--r--r-- 1 user user 917 Oct 22 08:31 lookup.go
-r--r--r-- 1 user user 926 Oct 22 08:31 psbdmp.go
-r--r--r-- 1 user user 2347 Oct 22 08:31 root.go
-r--r--r-- 1 user user 8921 Oct 22 08:31 social.go
-r--r--r-- 1 user user 865 Oct 22 08:31 verify.go
go version produces "go version go1.19.2 linux/amd64"
I am running:
lsb_release -a 2 ⨯
No LSB modules are available.
Distributor ID: Kali
Description: Kali GNU/Linux Rolling
Release: 2022.3
Codename: kali-rolling
Updated all and retried with the same result
@alpkeskin commented on GitHub (Oct 22, 2022):
Can you try ./mosint email@example.com ?
@calganaygun commented on GitHub (Oct 22, 2022):
Hey @Illuminaris1968,
It seems Instagram CSRF token retrieval process is not valid for now. A new process implemented in
9407408953.Can you try again now? It looks like solved in my dev environment.
@Illuminaris1968 commented on GitHub (Oct 23, 2022):
It doesnt produce the error - but i still have to cd into the directory with the mosint program to make it run.
@calganaygun commented on GitHub (Oct 24, 2022):
@Illuminaris1968 It is completely about your environment's PATH variable. You can add
/home/somepath/go/to your PATH.It seems the bug has been fixed. I am closing the issue.