Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for custom content in the client's configuration file #91

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ burp2_add_manual_clients:
- name: client_name
profile: profile name to use (optional), default: profile_lnxsrv (these files are in incexc/ dir).
password: client_password (optional), default: burp_client_password var
content: list of custom content (optional)
- name: second_client
```

Expand Down
7 changes: 7 additions & 0 deletions templates/profiles/new_client.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

password = {{ item.password | default(burp_client_password) }}

{% if item.content is defined -%}
{%- for l in item.content -%}
{{ l }}
{% endfor %}

{% endif -%}

# More configuration files can be read, using syntax like the following
# (without the leading '# ').
. incexc/{{ item.profile | default('profile_lnxsrv') }}