This repository has been archived by the owner on Jun 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactoring deployment * refactoring deployment * fixing tests * cleanup * fixing malware domains url * bump release * more cleanup * ignore * bugfix * re-factoring out bambenek feeds * expanding gatherer send timeout * re-introducing backend polling * cleaning up deploy * perf tweaks * bumping smrt ver * bumping indicator version, thanks @ventz ! * changing default alexa/cisco rules * tweaking some rules * tweaking sqlite * tweaking sqlite * making a comment * bumping smrt dep * version bump of smrt, updating smrt cache reqs * removing python 3.4 test * fixing spamhuas hunter confidence * adding new sqlite datatypes * bumping smrt req * fixing tests * fixing an index * bumping version
- Loading branch information
Showing
119 changed files
with
1,174 additions
and
1,087 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
.DS_Store | ||
Vagrantfile_* | ||
Vagrantfile\.* | ||
Dockerfile\.* | ||
/*.yml | ||
*.retry | ||
coverage_html_report/ | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,6 @@ cache: | |
|
||
python: | ||
- 2.7 | ||
- 3.4 | ||
- 3.5 | ||
|
||
install: | ||
|
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
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,37 @@ | ||
from sqlalchemy.types import UserDefinedType | ||
from sqlalchemy.ext.declarative import declarative_base | ||
from sqlalchemy import types | ||
Base = declarative_base() | ||
|
||
|
||
class Fqdn(UserDefinedType): | ||
|
||
impl = types.BINARY(16) | ||
|
||
def __init__(self, version=4): | ||
self.version = version | ||
|
||
def get_col_spec(self, **kw): | ||
return "FQDN" | ||
|
||
def bind_processor(self, dialect): | ||
|
||
DBAPIBinary = dialect.dbapi.Binary | ||
|
||
def process(value): | ||
if isinstance(value, str): | ||
value = value.encode('utf-8') | ||
|
||
return DBAPIBinary(value) | ||
|
||
return process | ||
|
||
def result_processor(self, dialect, coltype): | ||
def process(value): | ||
return value | ||
|
||
return process | ||
|
||
@property | ||
def python_type(self): | ||
return self.impl.type.python_type |
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,36 @@ | ||
from sqlalchemy.types import UserDefinedType | ||
from sqlalchemy.ext.declarative import declarative_base | ||
from sqlalchemy import types | ||
import socket | ||
|
||
Base = declarative_base() | ||
|
||
|
||
class Hash(UserDefinedType): | ||
|
||
impl = types.BINARY(16) | ||
|
||
def __init__(self, version=4): | ||
self.version = version | ||
|
||
def get_col_spec(self, **kw): | ||
return "HASH" | ||
|
||
def bind_processor(self, dialect): | ||
|
||
DBAPIBinary = dialect.dbapi.Binary | ||
|
||
def process(value): | ||
return DBAPIBinary(value) | ||
|
||
return process | ||
|
||
def result_processor(self, dialect, coltype): | ||
def process(value): | ||
return value | ||
|
||
return process | ||
|
||
@property | ||
def python_type(self): | ||
return self.impl.type.python_type |
Oops, something went wrong.