Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime error on using --no-db flag #31

Open
sting8k opened this issue Oct 27, 2020 · 5 comments
Open

Runtime error on using --no-db flag #31

sting8k opened this issue Oct 27, 2020 · 5 comments

Comments

@sting8k
Copy link

sting8k commented Oct 27, 2020

Command:
./jaeles scan -s templates/ -u http://testphp.vulnweb.com/listproducts.php?cat=2 -c 50 --no-db

Error (if using --no-db):

Jaeles beta v0.14 by @j3ssiejjj
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0xb0 pc=0xc4a966]

goroutine 1 [running]:
github.com/jinzhu/gorm.(*DB).clone(0x0, 0x4ebfa4)
	/go/pkg/mod/github.com/jinzhu/[email protected]/main.go:853 +0x26
github.com/jinzhu/gorm.(*DB).NewScope(0x0, 0x111fb20, 0xc00012c000, 0xc0004182d0)
	/go/pkg/mod/github.com/jinzhu/[email protected]/main.go:204 +0x2f
github.com/jinzhu/gorm.(*DB).Create(0x0, 0x111fb20, 0xc00012c000, 0x1)
	/go/pkg/mod/github.com/jinzhu/[email protected]/main.go:482 +0x43
github.com/jaeles-project/jaeles/database.NewScan(0xc0004cc7e0, 0x12, 0x13435a3, 0x1a, 0xc0004ccac0, 0x1b, 0xc0004ccae0, 0x1c, 0xc0004ccb00, 0x1d, ...)
	/go/src/github.com/jaeles-project/jaeles/database/scan.go:37 +0x33e
github.com/jaeles-project/jaeles/cmd.SelectSign()
	/go/src/github.com/jaeles-project/jaeles/cmd/root.go:198 +0x46a
github.com/jaeles-project/jaeles/cmd.runScan(0xc000470580, 0xc0004040e0, 0x0, 0x7, 0x0, 0x0)
	/go/src/github.com/jaeles-project/jaeles/cmd/scan.go:36 +0x42
github.com/spf13/cobra.(*Command).execute(0xc000470580, 0xc000404070, 0x7, 0x7, 0xc000470580, 0xc000404070)
	/go/pkg/mod/github.com/spf13/[email protected]/command.go:842 +0x460
github.com/spf13/cobra.(*Command).ExecuteC(0x1fbff40, 0x44813a, 0x1fd5680, 0xc000000180)
	/go/pkg/mod/github.com/spf13/[email protected]/command.go:950 +0x349
github.com/spf13/cobra.(*Command).Execute(...)
	/go/pkg/mod/github.com/spf13/[email protected]/command.go:887
github.com/jaeles-project/jaeles/cmd.Execute()
	/go/src/github.com/jaeles-project/jaeles/cmd/root.go:33 +0x31
main.main()
	/go/src/github.com/jaeles-project/jaeles/main.go:6 +0x20
@j3ssie
Copy link
Member

j3ssie commented Nov 2, 2020

What is your OS?

@sting8k
Copy link
Author

sting8k commented Nov 2, 2020

What is your OS?

Debian 8 x64

@j3ssie
Copy link
Member

j3ssie commented Nov 11, 2020

Update Jaeles with this command GO111MODULE=on go get github.com/jaeles-project/jaeles then it should be fixed.

@0xhunster
Copy link

0xhunster commented Apr 27, 2022

still, issue here. did not resolve yet.
jaeles scan -S "~/pro-signatures/" -U ~/reconbox/live -c 80 --no-db --no-background -L 5

error

Jaeles beta v0.17.0 by @j3ssiejjj
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0xb0 pc=0xbf5fbd]

goroutine 1 [running]:
github.com/jinzhu/gorm.(*DB).clone(0x0)
        /home/hunster/go/pkg/mod/github.com/jinzhu/[email protected]/main.go:853 +0x1d
github.com/jinzhu/gorm.(*DB).NewScope(0x0, {0x1033020?, 0xc000120570})
        /home/hunster/go/pkg/mod/github.com/jinzhu/[email protected]/main.go:204 +0x31
github.com/jinzhu/gorm.(*DB).Find(0x0, {0x1033020?, 0xc000120570?}, {0x0, 0x0, 0x0})
        /home/hunster/go/pkg/mod/github.com/jinzhu/[email protected]/main.go:354 +0x4d
github.com/jaeles-project/jaeles/database.SelectSign({0x0, 0x0})
        /home/hunster/go/pkg/mod/github.com/jaeles-project/[email protected]/database/sign.go:26 +0x77
github.com/jaeles-project/jaeles/core.SelectSign({0x11f7c2d?, 0x11?})
        /home/hunster/go/pkg/mod/github.com/jaeles-project/[email protected]/core/signature.go:22 +0x47
github.com/jaeles-project/jaeles/cmd.SelectSign()
        /home/hunster/go/pkg/mod/github.com/jaeles-project/[email protected]/cmd/root.go:154 +0x17b
github.com/jaeles-project/jaeles/cmd.runScan(0xc0004a0a00?, {0x11f92e8?, 0xa?, 0xa?})
        /home/hunster/go/pkg/mod/github.com/jaeles-project/[email protected]/cmd/scan.go:36 +0x5e
github.com/spf13/cobra.(*Command).execute(0xc0004a0a00, {0xc0000a95e0, 0xa, 0xa})
        /home/hunster/go/pkg/mod/github.com/spf13/[email protected]/command.go:856 +0x67c
github.com/spf13/cobra.(*Command).ExecuteC(0x1b35000)
        /home/hunster/go/pkg/mod/github.com/spf13/[email protected]/command.go:974 +0x3b4
github.com/spf13/cobra.(*Command).Execute(...)
        /home/hunster/go/pkg/mod/github.com/spf13/[email protected]/command.go:902
github.com/jaeles-project/jaeles/cmd.Execute()
        /home/hunster/go/pkg/mod/github.com/jaeles-project/[email protected]/cmd/root.go:33 +0x25
main.main()
        /home/hunster/go/pkg/mod/github.com/jaeles-project/[email protected]/main.go:6 +0x17

@Stonen2
Copy link

Stonen2 commented May 4, 2023

I had a similar issue when I first installed Jaeles with the following installation process:

GO111MODULE=on go get github.com/jaeles-project/jaeles

However, installing Jaeles through go install github.com/jaeles-project/jaeles@latest did not yield this issue and seems to work as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants