Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .sdk-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.81.2
v1.84.0
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ Class | Method | HTTP request | Description
*FunctionsCoreApi* | [**get_function_details**](docs/FunctionsCoreApi.md#get_function_details) | **GET** /v2/functions/{function_id} | Get function details
*FunctionsCoreApi* | [**get_function_strings**](docs/FunctionsCoreApi.md#get_function_strings) | **GET** /v2/functions/{function_id}/strings | Get string information found in the function
*FunctionsCoreApi* | [**get_similar_functions**](docs/FunctionsCoreApi.md#get_similar_functions) | **GET** /v2/functions/{function_id}/similar-functions | Get list of similar functions
*FunctionsCoreApi* | [**unstrip**](docs/FunctionsCoreApi.md#unstrip) | **POST** /v2/analyses/{analysis_id}/functions/unstrip | Performs matching and auto-unstrip for an analysis and its functions
*FunctionsDataTypesApi* | [**generate_function_data_types_for_analysis**](docs/FunctionsDataTypesApi.md#generate_function_data_types_for_analysis) | **POST** /v2/analyses/{analysis_id}/functions/data_types | Generate Function Data Types
*FunctionsDataTypesApi* | [**generate_function_data_types_for_functions**](docs/FunctionsDataTypesApi.md#generate_function_data_types_for_functions) | **POST** /v2/functions/data_types | Generate Function Data Types for an arbitrary list of functions
*FunctionsDataTypesApi* | [**get_function_data_types**](docs/FunctionsDataTypesApi.md#get_function_data_types) | **GET** /v2/analyses/{analysis_id}/functions/{function_id}/data_types | Get Function Data Types
Expand Down Expand Up @@ -188,7 +187,6 @@ Class | Method | HTTP request | Description
- [AppServicesBinaryAnnSchemaTagItem](docs/AppServicesBinaryAnnSchemaTagItem.md)
- [AppServicesDynamicExecutionSchemasDynamicExecutionStatus](docs/AppServicesDynamicExecutionSchemasDynamicExecutionStatus.md)
- [Argument](docs/Argument.md)
- [AutoUnstripByGroupResponse](docs/AutoUnstripByGroupResponse.md)
- [AutoUnstripRequest](docs/AutoUnstripRequest.md)
- [AutoUnstripResponse](docs/AutoUnstripResponse.md)
- [BaseResponse](docs/BaseResponse.md)
Expand Down Expand Up @@ -388,7 +386,6 @@ Class | Method | HTTP request | Description
- [LoginRequest](docs/LoginRequest.md)
- [LoginResponse](docs/LoginResponse.md)
- [Logs](docs/Logs.md)
- [MatchedFunctionGroup](docs/MatchedFunctionGroup.md)
- [MatchedFunctionSuggestion](docs/MatchedFunctionSuggestion.md)
- [MetaModel](docs/MetaModel.md)
- [ModelName](docs/ModelName.md)
Expand Down Expand Up @@ -457,7 +454,6 @@ Class | Method | HTTP request | Description
- [ThreatScoreFunctionBody](docs/ThreatScoreFunctionBody.md)
- [TimestampModel](docs/TimestampModel.md)
- [TypeDefinition](docs/TypeDefinition.md)
- [UnstripRequest](docs/UnstripRequest.md)
- [UpdateFunctionDataTypes](docs/UpdateFunctionDataTypes.md)
- [UploadFileType](docs/UploadFileType.md)
- [UploadResponse](docs/UploadResponse.md)
Expand Down
2 changes: 2 additions & 0 deletions docs/AiDecompilationRating.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

* `NEGATIVE` (value: `'NEGATIVE'`)

* `NEUTRAL` (value: `'NEUTRAL'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


6 changes: 4 additions & 2 deletions docs/AnalysesCoreApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **list_analyses**
> BaseResponseRecent list_analyses(search_term=search_term, workspace=workspace, status=status, model_name=model_name, dynamic_execution_status=dynamic_execution_status, usernames=usernames, limit=limit, offset=offset, order_by=order_by, order=order, authorization=authorization)
> BaseResponseRecent list_analyses(search_term=search_term, workspace=workspace, status=status, model_name=model_name, dynamic_execution_status=dynamic_execution_status, usernames=usernames, sha256_hash=sha256_hash, limit=limit, offset=offset, order_by=order_by, order=order, authorization=authorization)

Gets the most recent analyses

Expand Down Expand Up @@ -820,6 +820,7 @@ with revengai.ApiClient(configuration) as api_client:
model_name = [revengai.ModelName()] # List[ModelName] | Show analysis belonging to the model (optional)
dynamic_execution_status = revengai.DynamicExecutionStatusInput() # DynamicExecutionStatusInput | Show analysis that have a dynamic execution with the given status (optional)
usernames = [] # List[Optional[str]] | Show analysis belonging to the user (optional) (default to [])
sha256_hash = 'sha256_hash_example' # str | (optional)
limit = 20 # int | (optional) (default to 20)
offset = 0 # int | (optional) (default to 0)
order_by = revengai.AppApiRestV2AnalysesEnumsOrderBy() # AppApiRestV2AnalysesEnumsOrderBy | (optional)
Expand All @@ -828,7 +829,7 @@ with revengai.ApiClient(configuration) as api_client:

try:
# Gets the most recent analyses
api_response = api_instance.list_analyses(search_term=search_term, workspace=workspace, status=status, model_name=model_name, dynamic_execution_status=dynamic_execution_status, usernames=usernames, limit=limit, offset=offset, order_by=order_by, order=order, authorization=authorization)
api_response = api_instance.list_analyses(search_term=search_term, workspace=workspace, status=status, model_name=model_name, dynamic_execution_status=dynamic_execution_status, usernames=usernames, sha256_hash=sha256_hash, limit=limit, offset=offset, order_by=order_by, order=order, authorization=authorization)
print("The response of AnalysesCoreApi->list_analyses:\n")
pprint(api_response)
except Exception as e:
Expand All @@ -848,6 +849,7 @@ Name | Type | Description | Notes
**model_name** | [**List[ModelName]**](ModelName.md)| Show analysis belonging to the model | [optional]
**dynamic_execution_status** | [**DynamicExecutionStatusInput**](.md)| Show analysis that have a dynamic execution with the given status | [optional]
**usernames** | [**List[Optional[str]]**](str.md)| Show analysis belonging to the user | [optional] [default to []]
**sha256_hash** | **str**| | [optional]
**limit** | **int**| | [optional] [default to 20]
**offset** | **int**| | [optional] [default to 0]
**order_by** | [**AppApiRestV2AnalysesEnumsOrderBy**](.md)| | [optional]
Expand Down
3 changes: 3 additions & 0 deletions docs/AnalysisRecord.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,18 @@ Name | Type | Description | Notes
**analysis_scope** | **str** | Scope of the analysis |
**binary_id** | **int** | ID to identify the binary analyse |
**model_id** | **int** | ID to identify the model used for analysis |
**model_name** | **str** | Name of the model used for analysis |
**status** | **str** | The current status of analysis |
**creation** | **datetime** | The current status of analysis |
**is_owner** | **bool** | Whether the current user is the owner of a binary |
**binary_name** | **str** | The name of the file uploaded |
**sha_256_hash** | **str** | The hash of the binary |
**function_boundaries_hash** | **str** | The hash of the function boundaries |
**binary_size** | **int** | The size of the binary |
**username** | **str** | The username of the analysis owner |
**dynamic_execution_status** | [**AppApiRestV2AnalysesEnumsDynamicExecutionStatus**](AppApiRestV2AnalysesEnumsDynamicExecutionStatus.md) | | [optional]
**dynamic_execution_task_id** | **int** | | [optional]
**base_address** | **int** | The base address of the binary |

## Example

Expand Down
33 changes: 0 additions & 33 deletions docs/AutoUnstripByGroupResponse.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/FunctionsAIDecompilationApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ Name | Type | Description | Notes

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | Successful Response | - |
**201** | Successful Response | - |
**422** | Invalid request parameters | - |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
Expand Down
86 changes: 0 additions & 86 deletions docs/FunctionsCoreApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ Method | HTTP request | Description
[**get_function_details**](FunctionsCoreApi.md#get_function_details) | **GET** /v2/functions/{function_id} | Get function details
[**get_function_strings**](FunctionsCoreApi.md#get_function_strings) | **GET** /v2/functions/{function_id}/strings | Get string information found in the function
[**get_similar_functions**](FunctionsCoreApi.md#get_similar_functions) | **GET** /v2/functions/{function_id}/similar-functions | Get list of similar functions
[**unstrip**](FunctionsCoreApi.md#unstrip) | **POST** /v2/analyses/{analysis_id}/functions/unstrip | Performs matching and auto-unstrip for an analysis and its functions


# **ai_unstrip**
Expand Down Expand Up @@ -946,88 +945,3 @@ Name | Type | Description | Notes

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **unstrip**
> AutoUnstripByGroupResponse unstrip(analysis_id, unstrip_request, authorization=authorization)

Performs matching and auto-unstrip for an analysis and its functions

Takes in the analysis ID, uses the functions ID's from it and settings to find the nearest function groups for each function that's within the system

### Example

* Api Key Authentication (APIKey):

```python
import revengai
from revengai.models.auto_unstrip_by_group_response import AutoUnstripByGroupResponse
from revengai.models.unstrip_request import UnstripRequest
from revengai.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://api.reveng.ai
# See configuration.py for a list of all supported configuration parameters.
configuration = revengai.Configuration(
host = "https://api.reveng.ai"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: APIKey
configuration.api_key['APIKey'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['APIKey'] = 'Bearer'

# Enter a context with an instance of the API client
with revengai.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = revengai.FunctionsCoreApi(api_client)
analysis_id = 56 # int |
unstrip_request = revengai.UnstripRequest() # UnstripRequest |
authorization = 'authorization_example' # str | API Key bearer token (optional)

try:
# Performs matching and auto-unstrip for an analysis and its functions
api_response = api_instance.unstrip(analysis_id, unstrip_request, authorization=authorization)
print("The response of FunctionsCoreApi->unstrip:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling FunctionsCoreApi->unstrip: %s\n" % e)
```



### Parameters


Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**analysis_id** | **int**| |
**unstrip_request** | [**UnstripRequest**](UnstripRequest.md)| |
**authorization** | **str**| API Key bearer token | [optional]

### Return type

[**AutoUnstripByGroupResponse**](AutoUnstripByGroupResponse.md)

### Authorization

[APIKey](../README.md#APIKey)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | Successful Response | - |
**422** | Invalid request parameters | - |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

1 change: 1 addition & 0 deletions docs/GetAiDecompilationRatingResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**rating** | [**AiDecompilationRating**](AiDecompilationRating.md) | The rating the user has given to the AI decompilation response |
**reason** | **str** | |

## Example

Expand Down
30 changes: 0 additions & 30 deletions docs/MatchedFunctionGroup.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/MatchedFunctionSuggestion.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**function_id** | **int** | Unique identifier of the matched function |
**function_vaddr** | **int** | |
**function_vaddr** | **int** | Virtual address of the matched function |
**suggested_name** | **str** | Name of the function group that contains the matched functions |

## Example
Expand Down
31 changes: 0 additions & 31 deletions docs/UnstripRequest.md

This file was deleted.

1 change: 1 addition & 0 deletions docs/UpsertAiDecomplationRatingRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**rating** | [**AiDecompilationRating**](AiDecompilationRating.md) | The rating for the AI decompilation response |
**reason** | **str** | |

## Example

Expand Down
8 changes: 1 addition & 7 deletions revengai/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
""" # noqa: E501


__version__ = "v1.81.2"
__version__ = "v1.84.0"

# Define package exports
__all__ = [
Expand Down Expand Up @@ -74,7 +74,6 @@
"AppServicesBinaryAnnSchemaTagItem",
"AppServicesDynamicExecutionSchemasDynamicExecutionStatus",
"Argument",
"AutoUnstripByGroupResponse",
"AutoUnstripRequest",
"AutoUnstripResponse",
"BaseResponse",
Expand Down Expand Up @@ -274,7 +273,6 @@
"LoginRequest",
"LoginResponse",
"Logs",
"MatchedFunctionGroup",
"MatchedFunctionSuggestion",
"MetaModel",
"ModelName",
Expand Down Expand Up @@ -343,7 +341,6 @@
"ThreatScoreFunctionBody",
"TimestampModel",
"TypeDefinition",
"UnstripRequest",
"UpdateFunctionDataTypes",
"UploadFileType",
"UploadResponse",
Expand Down Expand Up @@ -417,7 +414,6 @@
from revengai.models.app_services_binary_ann_schema_tag_item import AppServicesBinaryAnnSchemaTagItem as AppServicesBinaryAnnSchemaTagItem
from revengai.models.app_services_dynamic_execution_schemas_dynamic_execution_status import AppServicesDynamicExecutionSchemasDynamicExecutionStatus as AppServicesDynamicExecutionSchemasDynamicExecutionStatus
from revengai.models.argument import Argument as Argument
from revengai.models.auto_unstrip_by_group_response import AutoUnstripByGroupResponse as AutoUnstripByGroupResponse
from revengai.models.auto_unstrip_request import AutoUnstripRequest as AutoUnstripRequest
from revengai.models.auto_unstrip_response import AutoUnstripResponse as AutoUnstripResponse
from revengai.models.base_response import BaseResponse as BaseResponse
Expand Down Expand Up @@ -617,7 +613,6 @@
from revengai.models.login_request import LoginRequest as LoginRequest
from revengai.models.login_response import LoginResponse as LoginResponse
from revengai.models.logs import Logs as Logs
from revengai.models.matched_function_group import MatchedFunctionGroup as MatchedFunctionGroup
from revengai.models.matched_function_suggestion import MatchedFunctionSuggestion as MatchedFunctionSuggestion
from revengai.models.meta_model import MetaModel as MetaModel
from revengai.models.model_name import ModelName as ModelName
Expand Down Expand Up @@ -686,7 +681,6 @@
from revengai.models.threat_score_function_body import ThreatScoreFunctionBody as ThreatScoreFunctionBody
from revengai.models.timestamp_model import TimestampModel as TimestampModel
from revengai.models.type_definition import TypeDefinition as TypeDefinition
from revengai.models.unstrip_request import UnstripRequest as UnstripRequest
from revengai.models.update_function_data_types import UpdateFunctionDataTypes as UpdateFunctionDataTypes
from revengai.models.upload_file_type import UploadFileType as UploadFileType
from revengai.models.upload_response import UploadResponse as UploadResponse
Expand Down
Loading