From 5a135fddab26dd35ade5a5e7fe2ceb6917f3ce1b Mon Sep 17 00:00:00 2001 From: Yogesh Ojha Date: Sun, 24 Oct 2021 01:38:24 +0530 Subject: [PATCH] Fixed Add Wordlist UI --- web/scanEngine/forms.py | 2 +- .../scanEngine/wordlist/_items/add_form.html | 41 --------------- .../templates/scanEngine/wordlist/add.html | 51 ++++++++++++++++--- 3 files changed, 46 insertions(+), 48 deletions(-) delete mode 100644 web/scanEngine/templates/scanEngine/wordlist/_items/add_form.html diff --git a/web/scanEngine/forms.py b/web/scanEngine/forms.py index 2e3c8801..1f83ebc2 100644 --- a/web/scanEngine/forms.py +++ b/web/scanEngine/forms.py @@ -150,7 +150,7 @@ class AddWordlistForm(forms.Form): upload_file = forms.FileField( required=True, widget=forms.FileInput( - attrs={'class': 'custom-file-input', + attrs={'class': 'form-control', 'id': 'txtFile', 'multiple': '', 'accept': '.txt', })) diff --git a/web/scanEngine/templates/scanEngine/wordlist/_items/add_form.html b/web/scanEngine/templates/scanEngine/wordlist/_items/add_form.html deleted file mode 100644 index 6aa7ecc5..00000000 --- a/web/scanEngine/templates/scanEngine/wordlist/_items/add_form.html +++ /dev/null @@ -1,41 +0,0 @@ -
-
-
-
-
-

{{widget_title}}

-
-
-
-
-
- {% csrf_token %} -
-
- - {{ form.name }} -
-
- - {{ form.short_name }} - {% if form.errors.short_name %} -
- {{ form.errors.short_name|striptags }} -
- {% endif %} -

Please keep the short names without spaces, like my-wordlist or my_wordlist. The short names will be later used to reference wordlist in the YAML settings.

-
-
-

Select the wordlist file

-

Your wordlist must be in the *.txt file format and must be seperated by new line.

-
-
- {{ form.upload_file }} - -
-
- -
-
-
-
diff --git a/web/scanEngine/templates/scanEngine/wordlist/add.html b/web/scanEngine/templates/scanEngine/wordlist/add.html index d1932ba6..99d9fa68 100644 --- a/web/scanEngine/templates/scanEngine/wordlist/add.html +++ b/web/scanEngine/templates/scanEngine/wordlist/add.html @@ -14,25 +14,64 @@ Add New Wordlist {% endblock breadcrumb_title %} +{% block page_title %} +Add New Wordlist for Bruteforce +{% endblock page_title %} + {% block main_content %} - {% include 'scanEngine/wordlist/_items/add_form.html' with button_title="Upload Wordlist" widget_title="Add new wordlist" form_action="add" %} +
+
+
+
+

Wordlist can be used for directory bruteforce or subdomain bruteforce. Instructions on how to use the wordlist are found here

+
+ {% csrf_token %} +
+
+ + {{ form.name }} +
+
+ + {{ form.short_name }} + {% if form.errors.short_name %} +
+ {{ form.errors.short_name|striptags }} +
+ {% endif %} +

Please keep the short names without spaces, like my-wordlist or my_wordlist. The short names will be later used to reference wordlist in the YAML settings.

+
+
+

Select the wordlist file

+

Your wordlist must be a *.txt file and wordlists must seperated by new line.

+
+
+ + {{ form.upload_file }} +
+
+ +
+
+
+
+
{% endblock main_content %} {% block page_level_script %} -