Npcap
Silent install package for Npcap
0.9987-1
System and network
System and network
- package: tis-npcap
- name: Npcap
- version: 0.9987-1
- categories: System and network
- maintainer: WAPT Team,Jimmy PELÉ
- target_os: windows
- impacted_process: dumpcap.exe
- architecture: all
- signature_date:
- size: 784.93 Ko
- installed_size: 4.38 Mo
package : tis-npcap
version : 0.9987-1
architecture : all
section : base
priority : optional
name : Npcap
categories : System and network
maintainer : WAPT Team,Jimmy PELÉ
description : Installation isn't silent - Please use the command : wapt-get install tis-npwap
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.exe
description_fr :
description_pl :
description_de :
description_es :
description_pt :
description_it :
description_nl :
description_ru :
audit_schedule :
editor :
keywords :
licence :
homepage :
package_uuid : d7147ec4-91e5-46e7-8480-a62357c4f707
valid_from :
valid_until :
forced_install_on :
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature : YVGJ9PAlF9KAJo5QXDpt5sx0tAiEHCCIZ7a4s3oRY1YQ62GZjs46zMwk1EM+41BdcBbt8noIHpVoLRmm3uAUxZv++WkcZLRfNJffpqwbIX3qwMBFE2HwwA+tyMbErWUK4XV9iQiItr2PZQNGkDukV4jB8sKAklYkjMv04wXI9pTiY09T0lrBW7/t4d5RztNYaZkh1zItUrkphFuMQrapsYdQRuc82oU1lpDa/Y5tOijw7Plsh75jDqnej4kP3Z8S4m+Lu6QOccFrX3WI4kmlFsSyozCKm+qPCpGnGoQCuGXp64CuFuDZCJGFslxMC5iQ0VI+RL38L6hsaJ/3rTVqow==
signature_date : 2020-02-27T21:37:05.928072
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 = ''
app_uninstallkey = 'NpcapInst'
def install():
# Specific app values
package_version = control.version.split('-',1)[0]
# Getting the used storage on programfiles before installation (place it on the top)
get_disk_free_space_before = get_disk_free_space(programfiles)
# Installing the package
install_exe_if_needed(bin_name_string % package_version
,silentflags=silent_args
,key=app_uninstallkey
,min_version=package_version
,killbefore=bin_name_string % package_version)
# Return used storage of the program. (place it on the bottom)
get_disk_free_space_after = get_disk_free_space(programfiles)
free_space_after_diff = get_disk_free_space_before - get_disk_free_space_after
print("Storage used: " + str(free_space_after_diff))
def update_package():
print('Download/Update package content from upstream binary sources')
import requests
# Update transition from BeautifulSoup 3 to 4
try:
import bs4 as BeautifulSoup
except:
import BeautifulSoup
# Getting proxy informations from WAPT settings
proxy = {}
if isfile(makepath(application_data(),'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
from waptpackage import PackageEntry
print('Writing ' + version + '-0 in WAPT\\control')
pe = PackageEntry()
pe.load_control_from_wapt(os.getcwd())
pe.version = version + '-0'
pe.save_control_to_wapt(os.getcwd())
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'):
if bin_in_dir != latest_bin :
print('Outdated binary: ' + bin_in_dir + ' Deleted')
remove_file(bin_in_dir)
a17dd82125e5bea6afb457b9c94e4d3ae78a5d1db6f7db891997f5151b4915c5 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
7a50879cdebb2f179b6a22fc497c263a99aba65a8694f0f791985ca67d7dc012 : .vscode/settings.json
86b5f546c88044fd02de7a1b73992ee8aa7e06a5b6906bec5e005f8a89c480f8 : .vscode/launch.json
ab0613273a032435c397ab4b183a7a81bced95880acca8c89655b0daa6bf2f13 : WAPT/wapt.psproj
a65194e5fa0073ae0bb9719fb0759d96cb0f70386cf20f41a83f027a2b48fb2a : WAPT/control
350412e4ea41e5d0f674b4ab0da911b1f33a06eef3f667bf9db81412813e284d : npcap-0.9987.exe
23f4b3cabc40a93500e876a5767edd4fabf260f79b3c71f079d5ce3a3307020d : setup.py
ac2eadb2e843eecc9894b1b042663039e67cc9bdddab6f4660555b4e0eedfa21 : WAPT/changelog.txt
4da6db42e4190bceb95d387a7938dd0c97cfeab4e8095ff89b4355ab6731fc32 : README.md
d3442f953e2bc03096f7f43c54aa30f16c06f844e42861efa28181377944d00d : Jenkinsfile
https://github.com/nmap/npcap/blob/master/CHANGELOG.md