This repository has been archived by the owner on Apr 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
keep track of the route that is taken in the end
Based on the route we can determine whether it is possible to connect to hosts on the internet during the analysis.
- Loading branch information
Showing
4 changed files
with
52 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
utils/db_migration/versions/from_1_2_to_2_0-taken-route.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Copyright (C) 2010-2015 Cuckoo Foundation. | ||
# This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org | ||
# See the file 'docs/LICENSE' for copying permission. | ||
|
||
"""taken route | ||
Revision ID: 1070cd314621 | ||
Revises: 4a04f40d4ab4 | ||
Create Date: 2015-11-21 23:10:04.724813 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "1070cd314621" | ||
down_revision = "4a04f40d4ab4" | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
def upgrade(): | ||
op.add_column("tasks", sa.Column("route", sa.String(length=16), nullable=True)) | ||
|
||
def downgrade(): | ||
op.drop_column("tasks", "route") |