import urlparse

from .common import Common
from .access_token import get_access_token,get_api_url
from .vocabulary import CRITs as c
from .vocabulary import CRITsCommon as cc
from .vocabulary import CRITsExploit as exp

class Exploit(Common):
    '''
    '''

    _URL = '/' + c.API + c.VERSION + 'exploits/'

    _fields = [
        exp.ID,
        exp.ACTIONS,
        exp.BUCKET_LIST,
        exp.CAMPAIGN,
        exp.CREATED,
        exp.CVE,
        exp.DESCRIPTION,
        exp.LOCATIONS,
        exp.MODIFIED,
        exp.NAME,
        exp.OBJECTS,
        exp.REFERENCE,
        exp.RELATIONSHIPS,
        exp.RELEASABILITY,
        exp.SCHEMA_VERSION,
        exp.SCREENSHOTS,
        exp.SECTORS,
        exp.SOURCE,
        exp.STATUS,
        exp.TICKETS,
    ]

    # Fields that are REQUIRED to be provided by the user
    # when creating a new object of type EXPLOIT
    _default_fields = [
        exp.NAME,
        exp.SOURCE,
    ]

226ae099e5fbab32e745dbb4f9ba32de5693b43e
<mask token>


class Exploit(Common):
    <mask token>
    <mask token>
    <mask token>
    <mask token>

<mask token>


class Exploit(Common):
    <mask token>
    _URL = '/' + c.API + c.VERSION + 'exploits/'
    _fields = [exp.ID, exp.ACTIONS, exp.BUCKET_LIST, exp.CAMPAIGN, exp.
        CREATED, exp.CVE, exp.DESCRIPTION, exp.LOCATIONS, exp.MODIFIED, exp
        .NAME, exp.OBJECTS, exp.REFERENCE, exp.RELATIONSHIPS, exp.
        RELEASABILITY, exp.SCHEMA_VERSION, exp.SCREENSHOTS, exp.SECTORS,
        exp.SOURCE, exp.STATUS, exp.TICKETS]
    _default_fields = [exp.NAME, exp.SOURCE]

<mask token>


class Exploit(Common):
    """
    """
    _URL = '/' + c.API + c.VERSION + 'exploits/'
    _fields = [exp.ID, exp.ACTIONS, exp.BUCKET_LIST, exp.CAMPAIGN, exp.
        CREATED, exp.CVE, exp.DESCRIPTION, exp.LOCATIONS, exp.MODIFIED, exp
        .NAME, exp.OBJECTS, exp.REFERENCE, exp.RELATIONSHIPS, exp.
        RELEASABILITY, exp.SCHEMA_VERSION, exp.SCREENSHOTS, exp.SECTORS,
        exp.SOURCE, exp.STATUS, exp.TICKETS]
    _default_fields = [exp.NAME, exp.SOURCE]

import urlparse
from .common import Common
from .access_token import get_access_token, get_api_url
from .vocabulary import CRITs as c
from .vocabulary import CRITsCommon as cc
from .vocabulary import CRITsExploit as exp


class Exploit(Common):
    """
    """
    _URL = '/' + c.API + c.VERSION + 'exploits/'
    _fields = [exp.ID, exp.ACTIONS, exp.BUCKET_LIST, exp.CAMPAIGN, exp.
        CREATED, exp.CVE, exp.DESCRIPTION, exp.LOCATIONS, exp.MODIFIED, exp
        .NAME, exp.OBJECTS, exp.REFERENCE, exp.RELATIONSHIPS, exp.
        RELEASABILITY, exp.SCHEMA_VERSION, exp.SCREENSHOTS, exp.SECTORS,
        exp.SOURCE, exp.STATUS, exp.TICKETS]
    _default_fields = [exp.NAME, exp.SOURCE]

import urlparse

from .common import Common
from .access_token import get_access_token,get_api_url
from .vocabulary import CRITs as c
from .vocabulary import CRITsCommon as cc
from .vocabulary import CRITsExploit as exp

class Exploit(Common):
    '''
    '''

    _URL = '/' + c.API + c.VERSION + 'exploits/'

    _fields = [
        exp.ID,
        exp.ACTIONS,
        exp.BUCKET_LIST,
        exp.CAMPAIGN,
        exp.CREATED,
        exp.CVE,
        exp.DESCRIPTION,
        exp.LOCATIONS,
        exp.MODIFIED,
        exp.NAME,
        exp.OBJECTS,
        exp.REFERENCE,
        exp.RELATIONSHIPS,
        exp.RELEASABILITY,
        exp.SCHEMA_VERSION,
        exp.SCREENSHOTS,
        exp.SECTORS,
        exp.SOURCE,
        exp.STATUS,
        exp.TICKETS,
    ]

    # Fields that are REQUIRED to be provided by the user
    # when creating a new object of type EXPLOIT
    _default_fields = [
        exp.NAME,
        exp.SOURCE,
    ]
