Start the app:
docker compose up -d
Get the JWT:
""" | |
This script merges all files in a specified repository directory into a single text file. | |
It includes features for filtering, excluding specific directories, and splitting the output | |
into smaller files. By default, it excludes test-related directories unless specified otherwise. | |
### Man page | |
usage: merge_files.py [-h] [-o OUTPUT] [--split SPLIT] [--filter-extensions FILTER_EXTENSIONS] [--no-exclude-tests] repo_path | |
Merge all files in a repository into a single text file. |
This is an interesting exercise in how ZAP handles Swagger files on import. My primary concern is that ZAP does not support importing injectable URL parameters from a Swagger file, and interprets a path like {id}
as a literal id
string.
You can see the difference between the endpoints that NightVision discovers (on the left) and the spidered URLs from ZAP (on the right): https://www.diffchecker.com/JKaeR6rg/ (expires in 30 days).
If you clone this gist, you can run python3 print_endpoints.py
to print the endpoints that are in swagger-paths.csv
(the ones discovered by NightVision).
And you can see the endpoints that are discovered by the ZAP Spider in spidered-paths.csv
.
{ | |
"agent": { | |
"metrics_collection_interval": 60 | |
}, | |
"logs": { | |
"logs_collected": { | |
"files": { | |
"collect_list": [ | |
{ | |
"file_path": "/home/ec2-user/shared-volume/zap.log", |
# .github/workflows/app.yaml | |
name: My Python Project | |
on: push | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
services: |
from __future__ import absolute_import, print_function, unicode_literals | |
import boto3 | |
def clean_old_lambda_versions(): | |
client = boto3.client('lambda') | |
functions = client.list_functions()['Functions'] | |
for function in functions: | |
versions = client.list_versions_by_function(FunctionName=function['FunctionArn'])['Versions'] | |
for version in versions: |
{ | |
"openapi": "3.0.1", | |
"info": { | |
"title": "Jellyfin API", | |
"version": "10.8.12", | |
"x-jellyfin-version": "10.8.12" | |
}, | |
"servers": [ | |
{ | |
"url": "http://localhost" |
{ | |
"openapi": "3.0.1", | |
"info": { | |
"title": "DVWS API", | |
"description": "API Used for DVWS Application", | |
"version": "0.1" | |
}, | |
"servers": [ | |
{ | |
"url": "http://dvws.local" |
""" | |
Gmail doesn't work using regular recording. It will only work if you run the recording script and then wrap the recorded script in this | |
""" | |
from playwright.sync_api import Playwright, sync_playwright, expect | |
from playwright._impl._api_types import Error as PlaywrightError | |
def run(pw: Playwright) -> None: | |
args = [ |
#!/usr/bin/python3 | |
# ldbdump - dumps LevelDB keys/values | |
# | |
# a LevelDB is a dir with files such a these: | |
# 000050.ldb 000100.log CURRENT LOCK LOG MANIFEST-000099 | |
# | |
# sources: https://github.com/tos-kamiya/levelobjdb dump() | |
import os |