tis-npcap icon

Npcap

Silent install package for Npcap

0.9991-13
System and network
System and network

  • package: tis-npcap
  • name: Npcap
  • version: 0.9991-13
  • categories: System and network
  • maintainer: WAPT Team,Jimmy PELÉ
  • target_os: windows
  • impacted_process: dumpcap,NPFInstall,Wireshark
  • architecture: all
  • signature_date:
  • size: 780.98 Ko
  • installed_size: 4.38 Mo

package           : tis-npcap
version           : 0.9991-13
architecture      : all
section           : base
priority          : optional
name              : Npcap
categories        : System and network
maintainer        : WAPT Team,Jimmy PELÉ
description       : This package (whitout licence) can only be run manually with "wapt-get install tis-npcap"
depends           : 
conflicts         : 
maturity          : 
locale            : 
target_os         : windows
min_os_version    : 6.0
max_os_version    : 
min_wapt_version  : 1.5
sources           : https://nmap.org/npcap/
installed_size    : 4378624
impacted_process  : dumpcap,NPFInstall,Wireshark
description_fr    : 
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : 
keywords          : 
licence           : 
homepage          : 
package_uuid      : b49e09a4-288f-4167-929e-7db68cfdc87e
valid_from        : 
valid_until       : 
forced_install_on : 
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : dtwbtpkodeA09yRdMJgdTz96AZBILDVBEyAP19LWiyxelhqZgMUiFJO9QDRX8xAWX0Ejf1HS3cAr+HGvjfAKWnxvuE/p+RpeL+fGU7K9rJfzKZhdofZIYqoRM67TkDJ4QEDdaMDuj59vdC8lnTAF+NOMLpCaCxKD844X9RDs4GnUhi0VOV4Nnfn6JxJBHESY6I07DpBmCCLSVPnNJnXnSAt7oKoxxpAZRP94SbXhqywihRbcWV+O3KYkqndxf2/5usoFNwEAnmLP1MPestdqHQTVJgzEhD48XDmKwxbzP+3zbPa9/zw63wjZE1Rb5A0H5hZrXX6BxKnVwF9YqSdYBg==
signature_date    : 2020-05-18T12:14:09.570000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_os_version,max_os_version,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,signer,signer_fingerprint,signature_date,signed_attributes

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = []

# Declaring specific app values (TO CHANGE)
bin_name_string = 'npcap-%s.exe'
silent_args = '' # This software isn't silent !
app_uninstallkey = 'NpcapInst'


def install():
    # Specific app values
    package_version = control.version.split('-',1)[0]
    bin_name = bin_name_string % package_version

    # Installing the package
    if running_as_system():
        if need_install(app_uninstallkey,min_version=package_version):
            error('This package (whitout licence) can only be run manually with "wapt-get install tis-npcap"')
    else:
        install_exe_if_needed(bin_name
            ,silentflags=silent_args
            ,key=app_uninstallkey
            ,min_version=package_version
            ,killbefore=bin_name)


def update_package():
    print('Download/Update package content from upstream binary sources')
    import requests,platform

    # Update transition from BeautifulSoup 3 to 4
    try:
        import bs4 as BeautifulSoup
    except:
        import BeautifulSoup

    # Getting proxy informations from WAPT settings
    proxy = {}
    if platform.system()=='Windows' and isfile(makepath(user_local_appdata(),'waptconsole','waptconsole.ini')):
        proxywapt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','http_proxy')
        if proxywapt :
            proxy = {'http':proxywapt,'https':proxywapt}

    # Specific app values
    app_name = control.name
    url = control.sources

    # Getting latest version from official website
    page = requests.get(url).text
    bs = BeautifulSoup.BeautifulSoup(page)
    #bs = BeautifulSoup.BeautifulSoup(page,features="html.parser") # For bs4 only
    ul_download = bs.findAll('ul')[5]
    for li in ul_download.findAll('li'):
        if li.findChild().get('href').endswith('.exe'):
            part_url=li.findChild().get('href')
            #print(part_url)
            break

    url_dl = url + part_url
    latest_bin = part_url.split('/')[-1]

    version = (latest_bin.split('-')[-1]).replace('.exe','')

    print('Latest ' + app_name + ' version is: ' + version)
    print('Download url is: ' + url_dl)

    # Downloading latest binaries
    if not isfile(latest_bin):
        print('Downloading: ' + latest_bin)
        wget(url_dl,latest_bin,proxies=proxy)

		# Change version of the package
        pe = PackageEntry().load_control_from_wapt('.')
        pe.version = '%s-%s'%(version,int(pe.version.split('-',1)[1])+1)
        pe.save_control_to_wapt('.')
        print('Changing version to ' + pe.version + ' in WAPT\\control')
        print('Update package done. You can now build-upload your package')
    else:
        print('This package is already up-to-date')

    # Deleting outdated binaries
    for bin_in_dir in glob.glob('*.exe') or glob.glob('*.msi') or glob.glob('*.zip'):
        if bin_in_dir != latest_bin :
            print('Outdated binary: ' + bin_in_dir + ' Deleted')
            remove_file(bin_in_dir)

080e81075d23beb4620628200f7747709541b5e03c5144eba9fc3ff1a5d69395 : setup.py
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
a17dd82125e5bea6afb457b9c94e4d3ae78a5d1db6f7db891997f5151b4915c5 : WAPT/icon.png
621d962f1e683f27b1c11fe5973f99100a784c2efbf9f7aea9692afdeaf460c2 : WAPT/control
ff00c9b15073fb26c3cea7f2db4a3dda4306fc0d49b66ca703ce0b36b72e9bd4 : npcap-0.9991.exe