You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
self.parser.add_argument('scan-type', type=str, help='Type of scan (please use \'{}\' action to fetch all available scanners)'.format(ACTION_SCAN_STATE))
self.parser.add_argument('hashes-file', type=argparse.FileType('r'), help='Path to file containing list of sample hashes separated by new line (allowed: {})'.format(', '.join(allowed_hashes)))
36
50
51
+
returnself
52
+
37
53
defadd_file_with_ids_arg(self, allowed_ids):
38
54
self.parser.add_argument('mixed-ids-file', type=argparse.FileType('r'), help='Path to file containing list of ids (allowed: {}'.format(', '.join(allowed_ids)))
self.parser.add_argument('file', type=validate_path, help='File to submit (when directory given, all files from it will be submitted - non recursively)')
Copy file name to clipboardExpand all lines: cli/arguments_builders/demo_bulk_cli_arguments.py
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -6,11 +6,19 @@ class DemoBulkCliArguments(DefaultCliArguments):
6
6
defadd_report_demo_bulk_modify_hash_opt(self):
7
7
self.parser.add_argument('--modify-hash', '-mh', action='store_true', default=False, help='When set, will add null byte at the end of sample file')
8
8
9
+
returnself
10
+
9
11
defadd_report_demo_bulk_av_min_opt(self):
10
12
self.parser.add_argument('--av-min', '-an', type=int, default=5, help='The minimum required AV detect')
11
13
14
+
returnself
15
+
12
16
defadd_report_demo_bulk_av_max_opt(self):
13
17
self.parser.add_argument('--av-max', '-ax', type=int, default=15, help='The maximum required AV detect')
14
18
19
+
returnself
20
+
15
21
defadd_report_demo_bulk_look_back_size_opt(self):
16
22
self.parser.add_argument('--look-back-size', '-lbs', type=int, default=400, help='Number of samples which will be fetched and filtered. Once you will get error message about problem with finding all samples, please increase that value')
Copy file name to clipboardExpand all lines: cli/arguments_builders/submission_cli_arguments.py
+40Lines changed: 40 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -7,59 +7,99 @@ class SubmissionCliArguments(DefaultCliArguments):
7
7
defadd_submission_submit_name_opt(self):
8
8
self.parser.add_argument('--submit-name', '-sn', type=str, help='Optional \'submission name\' field that will be used for file type detection and analysis')
9
9
10
+
returnself
11
+
10
12
defadd_submission_comment_opt(self):
11
13
self.parser.add_argument('--comment', '-co', type=str, help='Add comment (e.g. #hashtag) to sample')
12
14
15
+
returnself
16
+
13
17
defadd_submission_no_share_third_party_opt(self):
14
18
self.parser.add_argument('--no-share-third-party', '-nstp', help='When set to \'1\', the sample is never shared with any third party', type=int, choices=[1, 0], default=1)
self.parser.add_argument('--allow-community-access', '-aca', choices=[1, 0], default=1, type=int, help='When set \'1\', the sample will be available for vetted users of the HA community or custom application server')
self.parser.add_argument('--hybrid-analysis', '-ha', choices=[1, 0], type=int, help='When set to \'0\', no memory dumps or memory dump analysis will take place')
self.parser.add_argument('--experimental-anti-evasion', '-eae', choices=[1, 0], type=int, help='When set to \'1\', will set all experimental anti-evasion options of the Kernelmode Monitor')
30
44
45
+
returnself
46
+
31
47
defadd_submission_script_logging_opt(self):
32
48
self.parser.add_argument('--script-logging', '-sl', choices=[1, 0], type=int, help='When set to \'1\', will set the in-depth script logging engine of the Kernelmode Monitor')
self.parser.add_argument('--input-sample-tampering', '--ist', choices=[1, 0], type=int, help='When set to \'1\', will allow experimental anti-evasion options of the Kernelmode Monitor that tamper with the input sample')
36
54
55
+
returnself
56
+
37
57
defadd_submission_tor_enabled_analysis_opt(self):
38
58
self.parser.add_argument('--tor-enabled-analysis', '-tea', choices=[1, 0], type=int, help='When set to \'1\', will route the network traffic for the analysis via TOR (if properly configured on the server)')
39
59
60
+
returnself
61
+
40
62
defadd_submission_offline_analysis_opt(self):
41
63
self.parser.add_argument('--offline-analysis', '-oa', choices=[1, 0], type=int, help='When set to \'1\', will disable outbound network traffic for the guest VM (takes precedence over ‘tor-enabled-analysis’ if both are provided)')
42
64
65
+
returnself
66
+
43
67
defadd_submission_email_opt(self):
44
68
self.parser.add_argument('--email', '-e', type=str, help='Optional E-Mail address that may be associated with the submission for notification')
45
69
70
+
returnself
71
+
46
72
defadd_submission_custom_date_time_opt(self):
47
73
self.parser.add_argument('--custom-date-time', '-cdt', type=str, help='Optional custom date/time that can be set for the analysis system. Expected format: yyyy-MM-dd HH:mm')
48
74
75
+
returnself
76
+
49
77
defadd_submission_custom_cmd_line_opt(self):
50
78
self.parser.add_argument('--custom-cmd-line', '-ccl', type=str, help='Optional commandline that should be passed to the analysis file')
51
79
80
+
returnself
81
+
52
82
defadd_submission_custom_run_time_opt(self):
53
83
self.parser.add_argument('--custom-run-time', '-crt', type=int, help='Optional runtime duration (in seconds)',)
54
84
85
+
returnself
86
+
55
87
defadd_submission_client_opt(self):
56
88
self.parser.add_argument('--client', '-cl', type=str, help='Optional ‘client’ field (see ‘vxClients’)')
57
89
90
+
returnself
91
+
58
92
defadd_submission_priority_opt(self):
59
93
self.parser.add_argument('--priority', '-pr', type=ValuesInBetweenAction(), help='Optional priority value between 0 (default) and 100 (highest)')
60
94
95
+
returnself
96
+
61
97
defadd_submission_document_password_opt(self):
62
98
self.parser.add_argument('--document-password', '-dp', type=str, help='Optional document password that will be used to fill-in Adobe/Office password prompts')
63
99
100
+
returnself
101
+
64
102
defadd_submission_environment_variable_opt(self):
65
103
self.parser.add_argument('--environment-variable', '-ev', type=str, help='Optional system environment value. The value is provided in the format: name=value')
0 commit comments