__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
from fixtures.builder import ConsistencyVariantFixtureBuilder
def build(rotate_keys=None):
"""
Generates a TUF test fixture that publishes twice -- once on the client,
and twice on the server -- and, in between those two publications, can
optionally rotate the keys of a given role.
"""
name = 'PublishedTwice'
if rotate_keys is not None:
name += 'WithRotatedKeys_' + rotate_keys
fixture = ConsistencyVariantFixtureBuilder(name, { 'use_snapshot_hashes': True, 'use_snapshot_length': True, 'use_timestamp_hashes': True, 'use_timestamp_length': True })\
.publish(with_client=True)
fixture.create_target('test.txt')
if rotate_keys is not None:
fixture.add_key(rotate_keys)\
.revoke_key(rotate_keys, key_index=0)
fixture.publish()
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| consistent | Folder | 0775 |
|
|
| inconsistent | Folder | 0775 |
|
|
| __init__.py | File | 811 B | 0664 |
|