Brennon Thomas

Results 16 issues of Brennon Thomas

* A `post_delete` signal may work (https://docs.djangoproject.com/en/3.2/ref/signals/#post-delete) along the lines of https://github.com/rackerlabs/scantron/blob/master/console/django_scantron/models.py#L17 * Look into removing these files as well, they aren't used: https://github.com/rackerlabs/scantron/tree/master/console/django_scantron/user

* Assign `self.targets ` only if `targets_dict["as_nmap"]` list contains valid targets. If it's empty, raise a validation error. https://github.com/rackerlabs/scantron/blob/master/console/django_scantron/models.py#L235 * Ensure coverage in the API check as well.

```python # Compare nmap XML files. change_summary = pyndiff.generate_diff( previous_scan_result_file_path, latest_scan_result_file_path, ignore_udp_open_filtered=True, output_type="xml", write_summary_to_disk_for_xml_output_type=False, verbose=False, step_debug=False, ) ```

* Check if `extract_targets.py` can download them and write to the `/home/scantron/console` directory.

Something like ```python target_files = set() complete_dir_scans = set() processed_dir_scans = set() cancelled_dir_scans = set() bigdata_analytics_dir_csv_files = set() for file_base_name in [scan.result_file_base_name, scan.pooled_scan_result_file_base_name]: # Grab a list of files from...

Currently functional by changing the scan status in ScheduledScan through the Django admin, but need to support it outside of that. ![image](https://user-images.githubusercontent.com/27816854/97712027-d9b18c00-1a8b-11eb-8a7d-e0963f222ef0.png)

![image](https://user-images.githubusercontent.com/27816854/88822082-11592100-d189-11ea-866c-71e1479fae1e.png) https://github.com/rackerlabs/scantron/blob/584febded2a68d04f06734f6f1a6517e4efbfe08/ansible-playbooks/roles/console/templates/etc/nginx/nginx.conf.j2#L56

* Use Django validator to make sure it is a valid IP

Migrate away from Django admin to use CBVs for: * Scan Commands * Scans * Sites