hawat.blueprints.pdnsr.forms module

This module contains custom external PassiveDNS database search form for Hawat.

class hawat.blueprints.pdnsr.forms.PDNSRSearchForm(formdata=<object object>, **kwargs)[source]

Bases: flask_wtf.form.FlaskForm

Class representing PassiveDNS service search form.

limit = <UnboundField(SelectFieldWithNone, (l'Pager limit:',), {'validators': [<wtforms.validators.Optional object>], 'default': 0, 'filters': [<class 'int'>], 'choices': [(0, l'without explicit limit'), (5, 5), (10, 10), (20, 20), (30, 30), (50, 50), (100, 100), (200, 200), (500, 500), (1000, 1000), (10000, 10000)]})>
search = <UnboundField(StringField, (l'Search PassiveDNS:',), {'validators': [<wtforms.validators.DataRequired object>, <function check_ip_record>]})>
sortby = <UnboundField(SelectField, (l'Sort by:',), {'validators': [<wtforms.validators.Optional object>], 'default': '', 'choices': [('', l'without explicit sorting'), ('domain.desc', l'by domain name descending'), ('domain.asc', l'by domain name ascending'), ('count.desc', l'by hit count descending'), ('count.asc', l'by hit count ascending'), ('firstseen.desc', l'by first seen time descending'), ('firstseen`.asc', l'by first seen time ascending'), ('lastseen.desc', l'by last seen time descending'), ('lastseen.asc', l'by last seen time ascending')]})>
submit = <UnboundField(SubmitField, (l'Search',), {})>