Hello guys,

First, I tried to look about this problem over the Internet and on this forum as well and didn't find any useful information.

I'm not fluent in English, so sorry for any language's mistake.

I'm diving into Wireshark, already read the User's manual, currently reading the Wireshark Network Analysis book by Laura Chappell and I'm actually encountering an issue regarding GeoIP.

I downloaded the mmdb files, put into a folder, linked Wireshark to the folder in the preferences. I have the "Map" button in Statistics > Endpoints, however when I click on "Open in a browser.." nothing happens.

I tried to export a HTML file ("Save as" button), and when I click to open it I can read this message on my browser (Firefox 74.0 / Ubuntu 19.10) :

https://imgur.com/6zIucev

Tried to apply a chmod 777 to the file, then a blank page opens, and that's all.

If someone can help me, I would appreciate. I'm currently preparing the WCNA :)

Thanks

EDIT : When I open Wireshark through a terminal, and then I click on "OPen in a browser.." here is what I see :

[code]05:35:10.030     Main Warn QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
Running Firefox as root in a regular user's session is not supported.  ($XAUTHORITY is /run/user/1000/gdm/Xauthority which is owned by kevin.) "my" variable$file masks earlier declaration in same scope at /usr/bin/run-mailcap line 339.
Can't use string ("action") as a SCALAR ref while "strict refs" in use at /usr/bin/run-mailcap line 329.
Opening "/tmp/ipmap_20200325053510_CLhQoy.html" with Firefox Web Browser  (text/html)
Running Firefox as root in a regular user's session is not supported.  ($XAUTHORITY is /run/user/1000/gdm/Xauthority which is owned by kevin.) [9085:9085:0325/053510.280308:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180. Running Firefox as root in a regular user's session is not supported. ($XAUTHORITY is /run/user/1000/gdm/Xauthority which is owned by kevin.)
[9116:9116:0325/053510.322255:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
xdg-open: no method available for opening 'file:///tmp/ipmap_20200325053510_CLhQoy.html'
[/code]

edit retag close merge delete

Running Firefox as root in a regular user's session is not supported


Are you running Wireshark as root? If so, DON'T DO THAT.

See the README.Debian file for instructions on how to configure your system to not require root privs to capture.

Doing this may or may not fix your issue.

( 2020-03-25 12:54:20 +0000 )edit

Thanks for your help Grahamb :)

Yeah I was doing that, I reconfigured everything to run in user's mode, defined one more time the preferences and the location of the GeoIP folder, however when I click on "Open in a browser..." the page is still blank. I read that there is some troubles regarding the last version of Firefox, so I installed Chrome, and same things

I think something is wrong with the file, isn't it ?

https://imgur.com/YZwrajs

( 2020-03-25 13:01:38 +0000 )edit

There seem to be some shenanigans with the temporary file handling, AFAICT from my Debian based dev. build. BTW: you never stated which Wireshark version you're running.

( 2020-03-25 13:40:07 +0000 )edit

Qt 5.12.5 on Debian/testing, I'm seeing two problems with the development build:

• In EndpointDialog::createMap if I don't call tf.fileName()before the fclose(fp) the returned QUrl is empty.
• In EndpointDialog::createMap it seems that tf.setAutoRemove(false) has no effect, since the temporary file is removed regardless.
( 2020-03-25 14:01:13 +0000 )edit