unimap icon indicating copy to clipboard operation
unimap copied to clipboard

panic error

Open ranjit-git opened this issue 2 years ago • 11 comments

running unimap gives bellow error

thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src/resolver_engine.rs:266:30
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

ranjit-git avatar Jul 26 '23 09:07 ranjit-git

Please give all possible details, which command are you running, etc.

Edu4rdSHL avatar Jul 26 '23 12:07 Edu4rdSHL

coomand that i used

unimap --fast-scan -f domain_list.txt --ports $TOP_1000_PORTS -q --url-output --threads 10 domain_list.txt contains 130 domain

ranjit-git avatar Jul 26 '23 12:07 ranjit-git

Make sure that you don't have empty lines in domain_list.txt and that the ports in $TOP_1000_PORTS are valid.

Edu4rdSHL avatar Jul 26 '23 12:07 Edu4rdSHL

hello @Edu4rdSHL i just found that scan for useast1.sugarcrm.com domain cause above error also this domain prod-it-bastion-01.useast1.sugarcrm.com

ranjit-git avatar Jul 26 '23 13:07 ranjit-git

Thanks, I will investigate.

Edu4rdSHL avatar Jul 26 '23 13:07 Edu4rdSHL

any progress?

ranjit-git avatar Aug 21 '23 12:08 ranjit-git

A quick check, returns that both domains you provided resolve to a private IP address... both resolve to 10.20.1.183...

Edu4rdSHL avatar Aug 24 '23 01:08 Edu4rdSHL

Mmm, that shouldn't happen, we have added https://github.com/Edu4rdSHL/unimap/blob/7c6e717c0becbf17d6ef6cbc386d24ae0a6e2dfa/src/resolver_engine.rs#L224 to avoid that. Which unimap version is that? Please post the output of unimap -V

Edu4rdSHL avatar Aug 24 '23 01:08 Edu4rdSHL

my unimap version is Unimap 0.5.1

ranjit-git avatar Aug 24 '23 07:08 ranjit-git

Can you try https://github.com/Edu4rdSHL/unimap/releases/tag/0.6.0 ?

Edu4rdSHL avatar Aug 25 '23 06:08 Edu4rdSHL

v0.6.0 also gives the same error

ranjit-git avatar Aug 25 '23 15:08 ranjit-git

any update?

getting bellow when running on latest version echo useast1.sugarcrm.com |RUST_BACKTRACE=1 ./unimap --fast-scan

[INFO] Performing parallel resolution for 1 targets with 1 threads, it will take a while...
thread 'main' panicked at src/resolver_engine.rs:271:30:
called `Option::unwrap()` on a `None` value
stack backtrace:
   0: rust_begin_unwind
             at /build/rustc-kAv1jW/rustc-1.75.0+dfsg0ubuntu1~bpo0/library/std/src/panicking.rs:645:5
   1: core::panicking::panic_fmt
             at /build/rustc-kAv1jW/rustc-1.75.0+dfsg0ubuntu1~bpo0/library/core/src/panicking.rs:72:14
   2: core::panicking::panic
             at /build/rustc-kAv1jW/rustc-1.75.0+dfsg0ubuntu1~bpo0/library/core/src/panicking.rs:127:5
   3: unimap::resolver_engine::parallel_resolver_all
   4: unimap::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Aborted (core dumped)

ranjit-git avatar Apr 06 '25 18:04 ranjit-git

It should be fixed in the latest commit. useast1.sugarcrm.com returns a private IP address, which we do not scan anyway, but the message is now clear.

Edu4rdSHL avatar Apr 07 '25 16:04 Edu4rdSHL