tis-wireshark

4.4.3-6
Wireshark is a free and open-source packet analyzer. It is used for network troubleshooting, analysis, software and communications protocol development, and education.
17646 downloads
Download
See build result See VirusTotal scan
tis-wireshark icon
  • package : tis-wireshark
  • name : Wireshark
  • version : 4.4.3-6
  • categories : System and network
  • maintainer : WAPT Team,Jimmy PELÉ,Amelie Le Jeune, Jordan ARNAUD
  • editor : The Wireshark team
  • licence : GPLv2
  • locale : all
  • target_os : darwin
  • impacted_process : wireshark.exe
  • architecture : arm
  • signature_date : 2025-01-14 03:10
  • size : 64.54 Mo
  • homepage : https://www.wireshark.org
  • conflicts :
package           : tis-wireshark
version           : 4.4.3-6
architecture      : arm
section           : base
priority          : optional
name              : Wireshark
categories        : System and network
maintainer        : WAPT Team,Jimmy PELÉ,Amelie Le Jeune, Jordan ARNAUD
description       : Wireshark is a free and open-source packet analyzer. It is used for network troubleshooting, analysis, software and communications protocol development, and education.
depends           : 
conflicts         : tis-npcap
maturity          : PROD
locale            : all
target_os         : darwin
min_wapt_version  : 2.3
sources           : https://www.wireshark.org/download.html
installed_size    : 
impacted_process  : wireshark.exe
description_fr    : Wireshark est un analyseur de paquets libre et gratuit. Il est utilisé dans le dépannage et l’analyse de réseaux informatiques, le développement de protocoles, l’éducation et la rétro-ingénierie.
description_pl    : Wireshark to darmowy i open-source'owy analizator pakietów. Jest używany do rozwiązywania problemów z siecią, analizy, rozwoju oprogramowania i protokołów komunikacyjnych oraz edukacji
description_de    : Wireshark ist ein freier und quelloffener Paketanalysator. Es wird für die Fehlersuche in Netzwerken, die Analyse, die Entwicklung von Software und Kommunikationsprotokollen sowie für die Ausbildung verwendet
description_es    : Wireshark es un analizador de paquetes gratuito y de código abierto. Se utiliza para la resolución de problemas de red, el análisis, el desarrollo de software y protocolos de comunicación, y la educación
description_pt    : Wireshark é um analisador de pacotes gratuito e de código aberto. É utilizado para a resolução de problemas de rede, análise, desenvolvimento de software e protocolos de comunicação, e educação
description_it    : Wireshark è un analizzatore di pacchetti gratuito e open-source. È utilizzato per la risoluzione dei problemi di rete, l'analisi, lo sviluppo di software e protocolli di comunicazione e la formazione
description_nl    : Wireshark is een gratis en open-source pakketanalysator. Het wordt gebruikt voor netwerk troubleshooting, analyse, software en communicatie protocol ontwikkeling, en onderwijs
description_ru    : Wireshark - это бесплатный анализатор пакетов с открытым исходным кодом. Он используется для устранения неполадок в сети, анализа, разработки программного обеспечения и протоколов связи, а также для обучения
audit_schedule    : 
editor            : The Wireshark team
keywords          : wireshark,wire,shark,packet,analyzer,network,troubleshooting,analysis,protocol
licence           : GPLv2
homepage          : https://www.wireshark.org
package_uuid      : 6fb25011-236d-4d9d-88b9-65316d17ed3c
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://www.wireshark.org/docs/relnotes/
min_os_version    : 11
max_os_version    : 
icon_sha256sum    : 790a1e2a46c5470e8fd03c16f9701e4aafb62b070e200258e5d924f7efa5eaea
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-01-14T03:10:39.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature         : MbpdtvK8CvFYy3Pjam2JHHwSZh56BWkaALfcDaCHxVpI7C85x4Mvh0So/TNpcyZ4ySvZs+Dg00088dqQbLK+luwSqxDRmpR0w6/t+x83YM+cb6C7uYsIKwxGFYKts9W5AAf23VgO2rH/TDsTTx+X43rBHhWjQvvF52ruvCQcEfJGGYs7iSrCVpTNcJbBI2xlnKynFWyS0DnqaRC0r1mTBRxmrXmCKmPe6zWlx67JfknU/cDHrHMbwiFKRJppUf+A1MmhU8oKiEqdsmgvY3QxfKAGiFRk8cLAhSU76L/OlSyvUa2halixqgTq9J3zbzzT9v5c0vP+n0Ig/sSV/+uFag==
# -*- coding: utf-8 -*-
##################################################
# This file is part of WAPT Enterprise
# All right reserved, (c) Tranquil IT Systems 2023
# For more information please refer to
# https://wapt.tranquil.it/store/licences.html
##################################################
from setuphelpers import *

'''
    In order to capture packets, you must install the “ChmodBPF” launch daemon.
    You can do so by opening the Install ChmodBPF.pkg file in the Wireshark .dmg or from Wireshark itself by opening Wireshark → About Wireshark selecting the “Folders” tab, and double-clicking “macOS Extras”.
    The installer package includes Wireshark along with ChmodBPF and system path packages. See the included Read me first.html file for more details.
'''

app_name = 'Wireshark.app'

def install():
    persistent_folder = get_persistent_package_file('Wireshark_' + control.architecture + '_' + control.version)

    dmg_mount_path = mount_dmg(glob.glob('Wireshark*.dmg')[0])
    try:
        install_app(os.path.join(dmg_mount_path, app_name))
        install_pkg(os.path.join(dmg_mount_path, 'Add Wireshark to the system path.pkg'))
        install_pkg(os.path.join(dmg_mount_path, 'Install ChmodBPF.pkg'))

        # Copy of files in persistent location of this package for uninstall
        if not isdir(persistent_folder):
            mkdirs(persistent_folder)
        filecopyto(os.path.join(dmg_mount_path, 'Uninstall ChmodBPF.pkg'), os.path.join(persistent_folder, 'Uninstall ChmodBPF.pkg'))
        filecopyto(os.path.join(dmg_mount_path, 'Remove Wireshark from the system path.pkg'), os.path.join(persistent_folder, 'Remove Wireshark from the system path.pkg'))

        unmount_dmg(dmg_mount_path)
    except Exception:
        unmount_dmg(dmg_mount_path)
        raise

def uninstall():
    persistent_folder = get_persistent_package_file('Wireshark_' + control.architecture + '_' + control.version)

    uninstall_app(app_name)
    if isdir(os.path.join('/Library', 'Application Support', 'Wireshark')):
        remove_tree(os.path.join('/Library', 'Application Support', 'Wireshark'))

    install_pkg(os.path.join(persistent_folder, 'Uninstall ChmodBPF.pkg'))
    install_pkg(os.path.join(persistent_folder, 'Remove Wireshark from the system path.pkg'))

    remove_tree(persistent_folder)

def get_persistent_package_file(fname):
    if isdir(makepath(os.getcwd(), "WAPT", "persistent")):
        return makepath(os.getcwd(), "WAPT", "persistent", fname)
    else:
        return makepath(WAPT.persistent_root_dir, control.package_uuid, fname)
# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *
from urllib.parse import unquote


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name
    
    url_base = "https://www.wireshark.org/download.html"
    os_type = control.target_os + "-" + ensure_list(control.architecture)[0]

    download_os_dict = {
        'windows-x64': '-x64.exe',
        'darwin-arm': '%20Arm%2064.dmg',
        'darwin-x64': '%20Intel%2064.dmg'
    }

    download_accordion = bs_find(url_base, "div", "id", "download-accordion", proxies=proxies)
    latest_download_accordion = download_accordion.find('div', recursive=False)
    for li in latest_download_accordion.find_all('li'):
        download_url =  li.find('a')['href']
        if download_url.endswith(download_os_dict[os_type]):
            latest_bin = unquote(download_url.rsplit('/', 1)[-1])
            latest_bin_extension = latest_bin.rsplit('.', 1)[-1]
            version = latest_bin.split(' ')[1] # For windows is '-', For darwin is ' '
            break

    # Downloading latest binaries
    print(f"Latest {app_name} version is: {version}")
    print(f"Download URL is: {download_url}")
    if not isfile(latest_bin):
        print(f"Downloading: '{latest_bin}'")
        wget(download_url, latest_bin, proxies=proxies)
    else:
        print(f"Binary is present: '{latest_bin}'")

    # Deleting outdated binaries
    for f in glob.glob(f'*.{latest_bin_extension}'):
        if f != latest_bin:
            remove_file(f)

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print(f"Software version updated (from: {control.get_software_version()} to: {version})")
        package_updated = True
    else:
        print(f"Software version up-to-date ({version})")

    control.set_software_version(version)
    control.save_control_to_wapt()

    # Validating or not update-package-sources
    return package_updated
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
0fbb5452b05308c076a8e2d81bfe4b20539ad72daa64e95088fc3e2e3e70f01e : WAPT/control
790a1e2a46c5470e8fd03c16f9701e4aafb62b070e200258e5d924f7efa5eaea : WAPT/icon.png
0e18380fa0dfb8047d6b51c6a91d42eb1940f3814bb1fddbd96784dd669bbf1a : Wireshark 4.4.3 Arm 64.dmg
33d5b7089b3eb4df54a52b9d9d3c4390205c0e5d1e6645c2c49e7d0ac699752a : luti.json
01db202395e6d36c8aa022b7c061dcbb133756e204e00c9bee2e5026443ad2ab : setup.py
537bc4ddf8a3addb8f7e6f1e04ea7f282e7acbcfe9c908c9d22710a347a3c361 : update_package.py