@@ -57,6 +57,9 @@ deltascan --help
57
57
sudo -E env PATH=${PATH} deltascan < command & arguments>
58
58
```
59
59
60
+ <b >NOTE</b >: ` data_for_html.json ` is the schema of the Python dict exposed to use inside your custom html template (see core/templates)
61
+
62
+
60
63
### Tests
61
64
Run tests
62
65
``` bash
@@ -67,45 +70,76 @@ pipenv run pytest
67
70
68
71
Scan:
69
72
``` bash
70
- sudo -E env PATH=${PATH} pipenv run deltascan -a scan -c config.yaml -p MY_PROFILE -t 192.168.0.100
71
- sudo -E env PATH=${PATH} pipenv run deltascan -a scan -c config.yaml -p MY_PROFILE -t 192.168.0.100/24
72
- sudo -E env PATH=${PATH} pipenv run deltascan -a scan -c config.yaml -p MY_PROFILE -t 192.168.0.100 -o export.< csv| pdf| html>
73
+ sudo -E env PATH=${PATH} pipenv run deltascan scan -c config.yaml -p MY_PROFILE -t 192.168.0.100
74
+ sudo -E env PATH=${PATH} pipenv run deltascan scan -c config.yaml -p MY_PROFILE -t 192.168.0.100/24
75
+ sudo -E env PATH=${PATH} pipenv run deltascan scan -c config.yaml -p MY_PROFILE -t 192.168.0.100 -o export.< csv| pdf| html>
73
76
74
77
# The -s bool flag exports each scan in a separate file
75
- sudo -E env PATH=${PATH} pipenv run deltascan -a scan -c config.yaml -p MY_PROFILE -t 192.168.0.100 -s
78
+ sudo -E env PATH=${PATH} pipenv run deltascan scan -c config.yaml -p MY_PROFILE -t 192.168.0.100 -s
76
79
77
80
# The below command uses a custom template file (it has to be an .html file)
78
- sudo -E env PATH=${PATH} pipenv run deltascan -a scan -c config.yaml -p MY_PROFILE -t 192.168.0.100 --template your_template.html
81
+ sudo -E env PATH=${PATH} pipenv run deltascan scan -c config.yaml -p MY_PROFILE -t 192.168.0.100 --template your_template.html
79
82
```
80
83
81
84
Compare:
82
85
``` bash
83
- pipenv run deltascan -a compare -c config.yaml -p MY_PROFILE --from-date " 2024-01-01 10:00:00" --to-date " 2024-01-02 10:00:00" -t 192.168.0.100
84
- pipenv run deltascan -a compare -c config.yaml -p MY_PROFILE --from-date " 2024-01-01 10:00:00" --to-date " 2024-01-02 10:00:00" -t 192.168.0.100/24
85
- pipenv run deltascan -a compare -c config.yaml -p MY_PROFILE --from-date " 2024-01-01 10:00:00" --to-date " 2024-01-02 10:00:00" -t 192.168.0.100/24 -o export.< csv| pdf| html>
86
+ pipenv run deltascan compare -c config.yaml -p MY_PROFILE --from-date " 2024-01-01 10:00:00" --to-date " 2024-01-02 10:00:00" -t 192.168.0.100
87
+ pipenv run deltascan compare -c config.yaml -p MY_PROFILE --from-date " 2024-01-01 10:00:00" --to-date " 2024-01-02 10:00:00" -t 192.168.0.100/24
88
+ pipenv run deltascan compare -c config.yaml -p MY_PROFILE --from-date " 2024-01-01 10:00:00" --to-date " 2024-01-02 10:00:00" -t 192.168.0.100/24 -o export.< csv| pdf| html>
86
89
87
90
# The "--n-scans 20 --n-diffs -2" means "from below command mean from the last 20 scans show the latest differences"
88
- pipenv run deltascan -a compare -c config.yaml -p MY_PROFILE --from-date " 2024-01-01 10:00:00" --to-date " 2024-01-02 10:00:00" --n-scans 20 --n-diffs -2 -t 192.168.0.100
91
+ pipenv run deltascan compare -c config.yaml -p MY_PROFILE --from-date " 2024-01-01 10:00:00" --to-date " 2024-01-02 10:00:00" --n-scans 20 --n-diffs -2 -t 192.168.0.100
89
92
90
93
# The below command uses a custom template file (it has to be an .html file)
91
- pipenv run deltascan -a compare -c config.yaml -p MY_PROFILE --from-date " 2024-01-01 10:00:00" --to-date " 2024-01-02 10:00:00" --n-scans 20 --n-diffs -2 -t 192.168.0.100 --template your_template.html
94
+ pipenv run deltascan compare -c config.yaml -p MY_PROFILE --from-date " 2024-01-01 10:00:00" --to-date " 2024-01-02 10:00:00" --n-scans 20 --n-diffs -2 -t 192.168.0.100 --template your_template.html
92
95
```
93
96
94
97
View:
95
98
``` bash
96
- pipenv run deltascan -a view -c config.yaml -p MY_PROFILE --from-date " 2024-01-01 10:00:00" --to-date " 2024-01-02 10:00:00" -t 192.168.0.100
97
- pipenv run deltascan -a view -c config.yaml -p MY_PROFILE --from-date " 2024-01-01 10:00:00" --to-date " 2024-01-02 10:00:00" -t 192.168.0.100/24
98
- pipenv run deltascan -a view -c config.yaml -p MY_PROFILE --from-date " 2024-01-01 10:00:00" --to-date " 2024-01-02 10:00:00" -t 192.168.0.100/24 -o export.< csv| pdf| html>
99
+ pipenv run deltascan view -c config.yaml -p MY_PROFILE --from-date " 2024-01-01 10:00:00" --to-date " 2024-01-02 10:00:00" -t 192.168.0.100
100
+ pipenv run deltascan view -c config.yaml -p MY_PROFILE --from-date " 2024-01-01 10:00:00" --to-date " 2024-01-02 10:00:00" -t 192.168.0.100/24
101
+ pipenv run deltascan view -c config.yaml -p MY_PROFILE --from-date " 2024-01-01 10:00:00" --to-date " 2024-01-02 10:00:00" -t 192.168.0.100/24 -o export.< csv| pdf| html>
99
102
100
103
# The below command brings only the open ports from the defined scans
101
- pipenv run deltascan -a view -c config.yaml -p MY_PROFILE --from-date " 2024-01-01 10:00:00" --to-date " 2024-01-02 10:00:00" --port-type open -t 192.168.0.100
104
+ pipenv run deltascan view -c config.yaml -p MY_PROFILE --from-date " 2024-01-01 10:00:00" --to-date " 2024-01-02 10:00:00" --port-type open -t 192.168.0.100
102
105
103
106
```
104
107
105
108
Import:
106
109
``` bash
107
- pipenv run deltascan -a import -i previous_exports.csv
108
- pipenv run deltascan -a import -i raw_nmap_results.xml
110
+ pipenv run deltascan import -i previous_exports.csv
111
+ pipenv run deltascan import -i raw_nmap_results.xml
112
+ ```
113
+ Interactive shell options:
114
+
115
+ ``` bash
116
+ deltascan> : ? # Display help
117
+ Documented commands (type help < topic> ):
118
+ ========================================
119
+ clear diff exit imp q report view
120
+ conf diff_files help profiles quit scan
121
+ Interactive shell:
122
+ deltascan> : conf # Display current configuration
123
+ output_file: out_file.html
124
+ template_file: None
125
+ import_file: None
126
+ diff_files: None
127
+ n_scans: 1
128
+ n_diffs: 1
129
+ From date [fdate]: None
130
+ To date [tdate]: None
131
+ suppress: False
132
+ host: 0.0.0.0
133
+ profile: None
134
+ deltascan> : conf suppress=true # Modify configuration value
135
+ deltascan> : view # View result based on current configuration parameters
136
+ # ... Results ...
137
+ deltascan> : diff 1,2 # Difference between previous view results (always user suppress=True to find diff indexes)
138
+ deltascan> : imp nmap_dump_file.0.0.0.0.xml # Import nmap dump file
139
+ deltascan> : report # Report last results
140
+ deltascan> : diff_files d1.xml,d2.xml # Differences between two nmap dump files
141
+ deltascan> : profiles # List profiles in database
142
+ deltascan> : scan 0.0.0.0 PROFILE # Scan with IP and profile
109
143
```
110
144
111
145
### Documentation
0 commit comments