[GH-ISSUE #30] anic: runtime error: slice bounds out of range [:-1] #27

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

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

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
kerem 2026-03-01 14:35:46 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

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

Can you try ./mosint email@example.com ?

<!-- gh-comment-id:1287694539 --> @alpkeskin commented on GitHub (Oct 22, 2022): Can you try ./mosint email@example.com ?
Author
Owner

@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.

<!-- gh-comment-id:1287911049 --> @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 9407408953852b565559ac6ef90f4658224478e6. Can you try again now? It looks like solved in my dev environment.
Author
Owner

@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.

<!-- gh-comment-id:1288049860 --> @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.
Author
Owner

@calganaygun commented on GitHub (Oct 24, 2022):

It doesnt produce the error - but i still have to cd into the directory with the mosint program to make it run.

@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.

<!-- gh-comment-id:1288526287 --> @calganaygun commented on GitHub (Oct 24, 2022): > It doesnt produce the error - but i still have to cd into the directory with the mosint program to make it run. @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.
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#27
No description provided.