Srinivas11789 / PcapXray

:snowflake: PcapXray - A Network Forensics Tool - To visualize a Packet Capture offline as a Network Diagram including device identification, highlight important communication and file extraction
GNU General Public License v2.0
1.66k stars 275 forks source link

no visualization pf pcap file #59

Closed AlphonesDamonlette closed 2 years ago

AlphonesDamonlette commented 2 years ago

Capture

Srinivas11789 commented 2 years ago

Thanks for reaching out. Could you pls elaborate on the error in terminal logs/os details where you faced this? I just rechecked in ubuntu (fresh install) and works fine with py3.

AlphonesDamonlette commented 2 years ago

TRACE:stem:Descriptors retrieved from http://45.66.33.45:80/tor/status-vote/current/consensus in 45.87s Starting Graph Plotting Exception in thread Thread-7: Traceback (most recent call last): File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\site-packages\graphviz\backend.py", line 170, in run proc = subprocess.Popen(cmd, startupinfo=get_startupinfo(), **kwargs) File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\subprocess.py", line 800, in init restore_signals, start_new_session) File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\subprocess.py", line 1207, in _execute_child startupinfo) FileNotFoundError: [WinError 2] The system cannot find the file specified

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\threading.py", line 926, in _bootstrap_inner self.run() File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "C:\Users\Alphones R\PycharmProjects\PcapXray\Source/Module\plot_lan_network.py", line 57, in init self.draw_graph(option, to_ip, from_ip) File "C:\Users\Alphones R\PycharmProjects\PcapXray\Source/Module\plot_lan_network.py", line 599, in draw_graph f.render() File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\site-packages\graphviz\files.py", line 240, in render quiet=quiet) File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\site-packages\graphviz\backend.py", line 235, in render run(cmd, capture_output=True, cwd=cwd, check=True, quiet=quiet) File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\site-packages\graphviz\backend.py", line 173, in run raise ExecutableNotFound(cmd) from e graphviz.backend.ExecutableNotFound: failed to execute 'dot', make sure the Graphviz executables are on your systems' PATH

Exception in Tkinter callback Traceback (most recent call last): File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\tkinter__init.py", line 1705, in call__ return self.func(*args) File "C:\Users\Alphones R\PycharmProjects\PcapXray\Source/Module\user_interface.py", line 333, in map_select self.generate_graph() File "C:\Users\Alphones R\PycharmProjects\PcapXray\Source/Module\user_interface.py", line 304, in generate_graph self.load_image() File "C:\Users\Alphones R\PycharmProjects\PcapXray\Source/Module\user_interface.py", line 319, in load_image self.img = ImageTk.PhotoImage(Image.open(self.image_file).resize(tuple(self.zoom),Image.ANTIALIAS))#.convert('RGB')) File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\site-packages\PIL\Image.py", line 2968, in open fp = builtins.open(filename, "rb") FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\Alphones R\PycharmProjects\PcapXray\Source/Module/Report\test_All_All_All.png'

AlphonesDamonlette commented 2 years ago

and i am using visual studio code

Srinivas11789 commented 2 years ago

Thanks for the context.

graphviz.backend.ExecutableNotFound: 

from 👆 I think you are missing the graphviz dependency.

Check here and here/here to install in windows and add to system path. Worked fine with win10.