onionscan icon indicating copy to clipboard operation
onionscan copied to clipboard

Onion Services v3 support

Open cypherbits opened this issue 6 years ago • 5 comments

v3 Hidden Services cannot be scanned.

cypherbits avatar Aug 08 '18 18:08 cypherbits

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.

lorenzoromani1983 avatar Mar 27 '19 10:03 lorenzoromani1983

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

cypherbits avatar Mar 28 '19 11:03 cypherbits

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

brg123 avatar Dec 04 '19 19:12 brg123

Well, it seems this project is abandoned. Sad

q2dg avatar Apr 08 '21 10:04 q2dg

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.

nicomitor avatar Aug 06 '22 17:08 nicomitor