s-rah / onionscan

OnionScan is a free and open source tool for investigating the Dark Web.
https://twitter.com/OnionScan
Other
2.83k stars 592 forks source link

Onion Services v3 support #157

Open cypherbits opened 6 years ago

cypherbits commented 6 years ago

v3 Hidden Services cannot be scanned.

lorenzoromani1983 commented 5 years ago

You have to add the following lines in utils/validation:

if len(identifier) >= 62 && strings.HasSuffix(identifier, ".onion") {
    matched, _ := regexp.MatchString(`(^|\.)[a-z2-7]{56}\.onion$`, identifier)

this will not trigger the unrecognised onion error.

After editing the file, repete the install procedure and you will be ok with v3 addresses.

this worked for me.

cypherbits commented 5 years ago

@lorenzoromani1983 yes yes, I already did that in my fork and even added and changed many other things. But I opened the issue here so it can get officially fixed sometime.

brg123 commented 4 years ago

I tried just to copy it, but i dont know where it has to be placed. Could anyone show the full validation.go file source? After editing i did go install github.com/s-rah/onionscan or was something meant with repeate the install procedere?

Thanks a lot

q2dg commented 3 years ago

Well, it seems this project is abandoned. Sad

nicomitor commented 2 years ago

Well in fact the fix is quite easy ;-) You have to add the following lines in utils/validation:

if len(identifier) >= 62 && strings.HasSuffix(identifier, ".onion") { matched, _ := regexp.MatchString((^|\.)[a-z2-7]{56}\.onion$, identifier) <<<replace 16 in the original file with 56, which is the number of characters of a v3 hostname. That's it.