tis-lastpass icon

lastpass

Paquet d’installation silencieuse pour lastpass

5.1.0.1209-1

Les paquets PREPROD sont des paquets construits via LUTI. Ils restent généralement 5 jours en PREPROD, après quoi un scan VirusTotal est effectué.
Si le paquet réussit ce dernier contrôle, il est promu en PROD et publié sur le store.

  • package: tis-lastpass
  • name: lastpass
  • version: 5.1.0.1209-1
  • maintainer: Amel FRADJ
  • licence: https://www.lastpass.com/legal-center/terms-of-service/business
  • target_os: windows
  • architecture: x64
  • signature_date:
  • size: 170.71 Mo
  • homepage : https://www.lastpass.com/

package           : tis-lastpass
version           : 5.1.0.1209-1
architecture      : x64
section           : base
priority          : optional
name              : lastpass
categories        : 
maintainer        : Amel FRADJ
description       : Fills in your application's login data for you; lets you stop using the "Remember password" function
depends           : 
conflicts         : 
maturity          : PREPROD
locale            : 
target_os         : windows
min_wapt_version  : 
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : Remplit les données de connexion de votre application pour vous ; vous permet d'arrêter d'utiliser la fonction « Mémoriser le mot de passe »
description_pl    : Wypełnia dane logowania do aplikacji; umożliwia zaprzestanie korzystania z funkcji "Zapamiętaj hasło"
description_de    : Füllt die Anmeldedaten Ihrer Anwendung für Sie aus; lässt Sie die Funktion "Passwort speichern" nicht mehr verwenden
description_es    : Rellena por ti los datos de acceso a tu aplicación; te permite dejar de utilizar la función "Recordar contraseña"
description_pt    : Preenche os dados de início de sessão da sua aplicação; permite-lhe deixar de utilizar a função "Lembrar palavra-passe
description_it    : Compila i dati di accesso all'applicazione per l'utente; consente di non utilizzare più la funzione "Ricorda password"
description_nl    : Vult de aanmeldingsgegevens van je applicatie voor je in; stelt je in staat om de functie "Wachtwoord onthouden" niet meer te gebruiken
description_ru    : Заполняет за вас данные для входа в приложение; позволяет отказаться от использования функции "Запомнить пароль"
audit_schedule    : 
editor            : 
keywords          : 
licence           : https://www.lastpass.com/legal-center/terms-of-service/business
homepage          : https://www.lastpass.com/
package_uuid      : 375474b4-2d57-4999-844e-1da5c5fe2346
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 7e11e87958243a7c43d5ffa192410c62eb97938a0a7ade1a5e092a9b23d03798
signer            : test
signer_fingerprint: b82fc8ef4a4475c0f69ac168176c2bfc58f572eb716c4eadd65e4785c155dd8e
signature_date    : 2025-09-18T12:30:46.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         : qNBaRRTOU4EtAwjqOcL4ITLr53WZ5sIHvp7c2BdA3CCyLPh8EGtCGCHKD2EqxSiQDtHu+MQJyj4e0MXZDQx0XcEfcbMNeifSgLKaxfdhIDHsSg6ediiipSrUZ8rCsUvLCxpQQ6Bap2lmKt6Uw642gZ4PEEMyGcT3uATQkAg9Kw2byac0JWe8cLWLIyS+Vohe44h8Mj8BWvAZBmtw9+5aHfZzTp4XkDWWFF/YsuaDzSmvDflCOKpNNhX4cEm2Z0uO1fkNo6L6RyNI7i99mHGlkFNV1G1K4RVH1Apj9A8af1wW/Qxeu5FsyIE6OxOUEK0vyaDzDDkzqjroYC5ynu+xWA==

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

r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()

"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls


def install():
    # Declaring local variables

    # Installing the software
    print("Installing: LastPassInstaller.msi")
    install_msi_if_needed('LastPassInstaller.msi')



# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *
import glob
import requests
import os

def get_headers(url, proxies=None):
    response = requests.head(url, allow_redirects=True, proxies=proxies)
    return response.headers

def update_package():
    # Declaring local variables
    package_updated = False
    
    proxies = get_proxies_from_wapt_console()
    if not proxies:
        proxies = get_proxies()

    url_base = "https://download.cloud.lastpass.com/windows_installer/LastPassInstaller.msi"
    latest_bin = "LastPassInstaller.msi"
    headers_file = "last_headers.txt"

    # Get current headers from the URL
    current_headers = get_headers(url_base, proxies)
    current_etag = current_headers.get('ETag')
    current_last_modified = current_headers.get('Last-Modified')

    # Load previous headers
    previous_etag = None
    previous_last_modified = None

    if os.path.isfile(headers_file):
        with open(headers_file, 'r') as f:
            previous_etag = f.readline().strip()
            previous_last_modified = f.readline().strip()

    # Check if there is an update
    download_url = url_base
    if (current_etag and current_etag != previous_etag) or (current_last_modified and current_last_modified != previous_last_modified):
        print("A new version is available. Downloading the latest version.")
        package_updated = True
    elif not os.path.isfile(latest_bin):
        print("File does not exist locally. Downloading the file.")
        package_updated = True
    else:
        print("The current version is up to date. No need to download.")

    # Downloading latest binaries if needed
    if package_updated:
        print(f"Downloading: {latest_bin}")
        wget(download_url, latest_bin, proxies=proxies)

        # Save the current headers for future comparison
        with open(headers_file, 'w') as f:
            if current_etag:
                f.write(current_etag + '\n')
            if current_last_modified:
                f.write(current_last_modified + '\n')

    # Delete outdated binaries
    for f in glob.glob('*.msi'):
        if f != latest_bin:
            remove_file(f)

    # Update the package if there is a new version
    version = get_version_from_binary(latest_bin)
    control.set_software_version(version)
    control.save_control_to_wapt() 

27c69990a11d1739a00691cef5766a1018e574c55c838a389fe3e5e61d808dae : LastPassInstaller.msi
01ca7fe94636e5a08fcb73849d3b5df25d51e2c82f4dd1a08f01798b25899819 : WAPT/certificate.crt
4eb56a98b082f13d03dfd4403532f663b720d0c1add069c5efb23a26a01d5af7 : WAPT/control
7e11e87958243a7c43d5ffa192410c62eb97938a0a7ade1a5e092a9b23d03798 : WAPT/icon.png
3f634166b9b86e7e9b7650163165939b29fdb6b1142c2c87e28ce0bf1e016e0f : last_headers.txt
c31275b103770a11b58ea20510dacf58b3f0932464dfdde17d2a381803e45cad : luti.json
9f93b967357473afb1c6db3c6d0d1386c715436957499eb51d008e70912fab9b : setup.py
ba82ee350e2309e829b5170c81cc8b2f3bf17c50da84cb19e981eac9512fe91a : update_package.py