2017-07-23 19:56:51 +02:00
{% extends "main.html" %}
2021-04-08 19:15:53 +02:00
{% from 'bootstrap/utils.html' import render_messages %}
2020-11-03 16:32:04 +01:00
{% block title %}Capture{% endblock %}
2017-07-23 19:56:51 +02:00
2021-01-18 13:03:10 +01:00
{% block card %}
< meta property = "og:title" content = "Lookyloo" / >
< meta property = "og:type" content = "website" / >
< meta
property="og:description"
content="Lookyloo captures websites and let you investigate them."
/>
< meta
property="og:image"
2021-01-18 16:57:27 +01:00
content="https://{{public_domain}}{{ url_for('static', filename='lookyloo.jpeg') }}"
2021-01-18 13:03:10 +01:00
/>
< meta
property="og:url"
2021-01-18 16:57:27 +01:00
content="https://{{public_domain}}"
2021-01-18 13:03:10 +01:00
/>
< meta name = "twitter:card" content = "summary_large_image" >
{% endblock %}
2017-07-23 19:56:51 +02:00
{% block content %}
< div class = "container" >
2019-06-28 11:59:34 +02:00
< center >
2020-11-03 17:16:37 +01:00
< a href = "{{ url_for('index') }}" title = "Go back to index" >
< img src = "{{ url_for('static', filename='lookyloo.jpeg') }}"
alt="Lookyloo" width="400">
< / a >
2019-06-28 11:59:34 +02:00
< / center >
< / br >
2021-04-08 19:15:53 +02:00
{{ render_messages(container=True, dismissible=True) }}
< / br >
2020-11-03 16:32:04 +01:00
< form role = "form" action = "{{ url_for('capture_web') }}" method = post enctype = multipart/form-data >
2020-05-22 17:36:22 +02:00
< div class = "form-group row" >
< div class = "col-sm-10" >
< div class = "form-check" >
2021-10-26 16:47:02 +02:00
< input class = "form-check-input" type = "checkbox" name = "listing" { % if default_public % } checked = "true" { % endif % } > < / input >
2020-05-22 17:36:22 +02:00
< label for = "listing" class = "form-check-label" > Display results on public page< / label >
< / div >
< / div >
< / div >
2021-10-26 19:31:42 +02:00
< div class = "form-group row" >
< label for = "url" class = "col-sm-2 col-form-label" > URL:< / label >
< div class = "col-sm-10" >
< input type = "text" class = "form-control" name = "url" id = url
placeholder="URL to capture" value="{{predefined_url_to_capture}}" required>
2019-06-28 11:59:34 +02:00
< / div >
2021-10-26 19:31:42 +02:00
< / div >
2019-06-27 17:47:21 +02:00
2021-10-26 19:31:42 +02:00
< div >
< button class = "btn btn-link" type = "button" data-toggle = "collapse" data-target = "#collapseConfigCapture" aria-expanded = "false" aria-controls = "collapseConfigCapture" >
< p style = "margin-left: -12px; margin-top: 12px; font-size: x-large; color: black; text-decoration: underline; text-decoration-color: blue;" > < b > Capture Configuration< / b > < / p >
<!--
< span class = "if-collapsed" >
< img src = "{{ url_for('static', filename='up.jpg') }}" class = "arrow-down" alt = "Expand config" height = "25" width = "25" title = "Expand" >
< / span >
< span class = "if-not-collapsed" >
< img src = "{{ url_for('static', filename='up.jpg') }}" alt = "Minimize config" height = "25" width = "25" title = "Collapse" >
< / span >
-->
< / button >
< div class = "help-tip" title = "Edit configuration options for the capture." > < / div >
< / div >
< div id = "collapseConfigCapture" class = "collapse" >
< div class = "card card-body" >
{% if max_depth >= 2 %}
< div class = "form-group row" >
< label for = "depth" class = "col-sm-2 col-form-label" > Link Depth:< / label >
< div class = "col-sm-1" >
< select class = "form-control" name = "depth" id = depth >
{% for depth in range(max_depth) %}
< option value = "{{ depth + 1 }}" > {{ depth + 1 }}< / option >
{% endfor %}
< / select >
< / div >
2017-07-23 19:56:51 +02:00
< / div >
2021-10-26 19:31:42 +02:00
{%endif%}
2019-06-27 17:47:21 +02:00
2021-10-26 19:31:42 +02:00
< div class = "form-group row" >
< label for = "referer" class = "col-sm-2 col-form-label" > Referer:< / label >
< div class = "col-sm-10" >
< input type = "text" class = "form-control" name = "referer" id = referer placeholder = "Pass referer of the URL" >
< / div >
2020-07-08 00:37:29 +02:00
< / div >
2021-10-26 19:31:42 +02:00
< div class = "form-group row" >
< label for = "proxy" class = "col-sm-2 col-form-label" > Proxy:< / label >
< div class = "col-sm-10" >
< input type = "text" class = "form-control" name = "proxy" id = "proxy" placeholder = "Expected format: [scheme]://[username]:[password]@[hostname]:[port]" >
< / div >
2021-06-18 17:12:50 +02:00
< / div >
2021-10-26 19:31:42 +02:00
< div class = "form-group row" >
< label for = "cookies" class = "col-sm-6" > Cookies (JSON export from the Firefox plugin Cookie Quick Manager)< / label >
< div class = "col-sm-4" >
< input type = "file" class = "form-control-file" id = "cookies" name = "cookies" >
< / div >
2020-01-24 10:17:41 +01:00
< / div >
< / div >
2021-10-26 19:31:42 +02:00
< / div >
2020-01-24 10:17:41 +01:00
2021-10-26 19:31:42 +02:00
< div class = "dropdown-divider" > < / div >
< p style = "font-size: x-large" > < b > Browser Configuration< / b > (Lookyloo uses an emulated browser for all captures)< / p >
< div class = "card card-body" >
2020-12-10 17:23:37 +01:00
{% if personal_ua %}
< div class = "form-group row" >
< div class = "col-sm-10" >
< div class = "form-check" >
< input class = "form-check-input" type = "checkbox" name = "personal_ua" > < / input >
2021-10-26 16:47:02 +02:00
< label for = "personal_ua" class = "form-check-label" > Use the current < a href = "https://en.wikipedia.org/wiki/User_agent" > user-agent< / a > of your own browser:< / br >
2020-12-10 17:23:37 +01:00
{{ personal_ua }}
< / label >
< / div >
< / div >
< / div >
< div > Or pick the user agent of your choice:< / div >
< / br >
{% endif %}
2019-06-28 11:59:34 +02:00
< div class = "form-group row" >
< label for = "os" class = "col-sm-2 col-form-label" > Operating System:< / label >
< div class = "col-sm-10" >
< select class = "form-control" name = "os" id = "os" >
{% for os in user_agents.keys() %}
2021-01-20 20:54:37 +01:00
<!-- Select the default os -->
< option value = "{{ os }}" { % if os = =default['os'] % } selected { % endif % } > {{ os }}< / option >
2019-06-27 17:47:21 +02:00
{% endfor%}
2019-06-28 11:59:34 +02:00
< / select >
2019-03-29 20:11:44 +01:00
< / div >
2019-06-28 11:59:34 +02:00
< / div >
2021-10-26 19:31:42 +02:00
{% for os, browsers in user_agents.items() %}
2021-01-20 20:54:37 +01:00
<!-- Hide the browsers that aren't part of the default os -->
< div id = "{{os.replace(' ', '_')}}" class = "style-sub-1 form-group row" { % if not os = =default['os'] % } style = "display: none;" { % endif % } >
2019-06-28 11:59:34 +02:00
< label for = "browser" class = "col-sm-2 col-form-label" > Browser Type:< / label >
< div class = "col-sm-10" >
2021-01-20 20:54:37 +01:00
<!-- Disable all the selects not related to the default os -->
< select class = "form-control" name = "browser" { % if not os = =default['os'] % } disabled { % endif % } >
2019-06-28 11:59:34 +02:00
{% for browser in browsers.keys()%}
2021-01-20 20:54:37 +01:00
<!-- Select the default browser -->
< option value = "{{ browser }}" { % if browser = =default['browser'] % } selected { % endif % } > {{ browser }}< / option >
2019-06-28 11:59:34 +02:00
{% endfor%}
< / select >
< / div >
< / div >
2021-10-26 19:31:42 +02:00
{% for browser, user_agents in browsers.items()%}
2021-01-20 20:54:37 +01:00
<!-- Hide the user agents that aren't part of the default OS and browsers that aren't part of the default os -->
< div id = "{{os.replace(' ', '_')}}_{{browser.replace(' ', '_')}}" class = "style-sub-2 form-group row" { % if not os = =default['os'] or not browser = =default['browser']%} style = "display: none;" { % endif % } >
2019-06-28 11:59:34 +02:00
< label for = "user_agent" class = "col-sm-2 col-form-label" > User Agent:< / label >
< div class = "col-sm-10" >
2021-01-20 20:54:37 +01:00
<!-- Disable all the selects, unless it is in default os and browser -->
< select class = "form-control" name = "user_agent" { % if not os = =default['os'] or not browser = =default['browser'] % } disabled { % endif % } >
2019-06-27 17:47:21 +02:00
{% for user_agent in user_agents %}
2021-01-20 20:54:37 +01:00
<!-- Select the default ua -->
< option value = "{{ user_agent }}" { % if user_agent = =default['useragent'] % } selected { % endif % } > {{ user_agent }}< / option >
2019-03-29 20:11:44 +01:00
{% endfor%}
2019-06-28 11:59:34 +02:00
< / select >
2019-06-27 17:47:21 +02:00
< / div >
2019-06-28 11:59:34 +02:00
< / div >
{% endfor%}
2021-10-26 19:31:42 +02:00
{% endfor%}
< / div >
< center >
< b >
{% if default_public %}
By default, the capture is public. If you do not want that, untick the box at the top of the form.
{% else %}
By default, the capture is private (not visible on the index page). If you want it to be public tick the box at the top of the form.
{% endif %}
< / b >
< / br >
< / br >
< button type = "submit" class = "new-capture-button" id = "btn-looking" > Start looking!< / button >
< / center >
2019-06-28 11:59:34 +02:00
< / form >
2017-07-23 19:56:51 +02:00
< / div >
{% endblock %}
2019-03-29 20:11:44 +01:00
{% block scripts %}
2019-06-28 11:59:34 +02:00
{{ super() }}
2021-06-17 02:36:01 +02:00
< script src = '{{ url_for(' static ' , filename = 'capture.js' ) } } '
integrity="{{get_sri('static', 'capture.js')}}"
crossorigin="anonymous">< / script >
2019-03-29 20:11:44 +01:00
{% endblock %}