Skip to content

Commit cc0553e

Browse files
Merge pull request #14 from MislavReversingLabs/main
Update all used endpoints to available v2 and v3 versions
2 parents 2081500 + f93d12e commit cc0553e

File tree

7 files changed

+681
-83
lines changed

7 files changed

+681
-83
lines changed

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
ReversingLabs SDK Change Log
2+
=========
3+
v1.2.2 (2022-10-19)
4+
-------------------
5+
6+
#### Deprecations
7+
8+
- **a1000** module:
9+
- Deprecated the `get_results`, `upload_sample_and_get_results`, `get_classification`, `reanalyze_samples`, `get_extracted_files`, `advanced_search` and `advanced_search_aggregated` methods.
10+
- Dropped support for Python 2.7
11+
- From this version on, the Python 2 version of the SDK (https://pypi.org/project/reversinglabs-sdk-py2/) will no longer be maintained.
12+
13+
#### Changes
14+
15+
- **a1000** module:
16+
- Added the `get_summary_report_v2`, `upload_sample_and_get_summary_report_v2`, `get_detailed_report_v2`, `get_classification_v3`, `reanalyze_samples_v2`, `list_extracted_files_v2`, `list_extracted_files_v2_aggregated`, `check_sample_removal_status_v2`, `advanced_search_v2`, `advanced_search_v2_aggregated`
17+
- The added methods correspond to the new v2 and v3 versions of A1000 API-s.
18+
- **helper** module:
19+
- Catching the `binascii.Error` in the `validate_hashes` function.
20+

MANIFEST.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
include LICENSE
2-
include logo.jpg
2+
include logo.jpg
3+
include CHANGELOG.md

README.md

Lines changed: 34 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -72,33 +72,46 @@ If username and password are used instead, a token fetching request will be done
7272
- Accepts a file path string and returns a response containing the analysis task ID
7373
- `upload_sample_from_file`
7474
- Accepts a file open in 'rb' mode and returns a response containing the analysis task ID
75-
- `get_results`
76-
- Accepts a list of hashes and returns a summary JSON report for each of them
77-
- This method utilizes the set number of retries and wait time in seconds to time
75+
- `get_summary_report_v2`
76+
- Accepts a single hash or a list of hashes and returns JSON containing a summary report for each of them
77+
- This method utilizes the set number of retries and wait time in seconds to time
7878
out if the analysis results are not ready
79-
- `upload_sample_and_get_results`
80-
- Accepts a file path string or an opened file in 'rb' mode for file upload and returns an analysis report response
81-
- This method combines uploading a sample and obtaining the analysis results
82-
- The result fetching action of this method utilizes the set number of retries and wait time in seconds to time
79+
- `upload_sample_and_get_summary_report_v2`
80+
- Accepts either a file path string or an open file in 'rb' mode for file upload and returns a summary analysis
81+
report response
82+
- This method combines uploading a sample and obtaining the summary analysis report
83+
- The result fetching action of this method utilizes the set number of retries and wait time in seconds to time
8384
out if the analysis results are not ready
84-
- `get_classification`
85-
- Accepts one or more sample hashes and returns their classification
86-
- `reanalyze_samples`
87-
- Accepts a single hash or a list of hashes of the same type and reanalyzes the corresponding samples
88-
- `get_extracted_files`
89-
- Accepts a sample hash and returns a list of all files TitaniumCore engine extracted from the requested sample during static analysis
85+
- `get_detailed_report_v2`
86+
- Accepts a single hash or a list of hashes and returns a detailed analysis report for the selected samples
87+
- This method utilizes the set number of retries and wait time in seconds and times out if the
88+
analysis results are not ready
89+
- `get_classification_v3`
90+
- Get classification for one sample
91+
- `reanalyze_samples_v2`
92+
- Accepts a single hash or a list of hashes of various types and reanalyzes the corresponding sample(s)
93+
- This method can be used for reanalyzing a single sample or a batch of samples, depending on the data type
94+
passed
95+
- `list_extracted_files_v2`
96+
- Get a list of all files TitaniumCore engine extracted from the requested sample during static analysis
97+
- `list_extracted_files_v2_aggregated`
98+
- Get a list of all files TitaniumCore engine extracted from the requested sample during static analysis
99+
- Paging is done automatically and results from individual responses aggregated into one list and returned
90100
- `download_extracted_files`
91101
- Accepts a single hash string and returns a downloadable archive file containing files extracted from the desired sample
92-
- `delete_samples`
93-
- Accepts a single hash string or a list of hashes and deletes the corresponding samples from A1000
94102
- `download_sample`
95103
- Accepts a single hash string and returns a downloadable sample
96-
- `advanced_search`
97-
- Accepts a search query string and performs advanced search for local samples on A1000
98-
- Returns only one defined page of results using one request
99-
- `advanced_search_aggregated`
100-
- Accepts a search query string and performs advanced search for local samples on A1000
101-
- Returns a list of results aggregated through multiple paginated requests
104+
- `delete_samples`
105+
- Accepts a single hash string or a list of hashes and deletes the corresponding samples from A1000
106+
- `check_sample_removal_status_v2`
107+
- "Accepts the task ID returned by the bulk sample removal endpoint and returns a response that
108+
indicates if the removal request was finished successfully and if all samples have been deleted
109+
- `advanced_search_v2`
110+
- Sends a query string to the A1000 Advanced Search API v2
111+
- `advanced_search_v2_aggregated`
112+
- Sends a query string to the A1000 Advanced Search API v2
113+
- Paging is done automatically and results from individual
114+
responses aggregated into one list and returned
102115

103116

104117
***

0 commit comments

Comments
 (0)