mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-29 09:17:16 +00:00
chg: [cleanup]
This commit is contained in:
parent
02814e7f81
commit
502004849b
8 changed files with 2 additions and 844 deletions
31
.travis.yml
31
.travis.yml
|
@ -1,31 +0,0 @@
|
||||||
language: python
|
|
||||||
|
|
||||||
python:
|
|
||||||
- "3.6"
|
|
||||||
|
|
||||||
sudo: required
|
|
||||||
|
|
||||||
cache: pip
|
|
||||||
|
|
||||||
env:
|
|
||||||
- AIL_HOME=$TRAVIS_BUILD_DIR AIL_BIN=$TRAVIS_BUILD_DIR/bin/ \
|
|
||||||
AIL_FLASK=$TRAVIS_BUILD_DIR/var/www/ AIL_REDIS=$TRAVIS_BUILD_DIR/redis/src/ \
|
|
||||||
AIL_LEVELDB=$TRAVIS_BUILD_DIR/redis-leveldb/ PATH=$AIL_HOME:$AIL_REDIS:$AIL_LEVELDB:$PATH
|
|
||||||
|
|
||||||
dist: bionic
|
|
||||||
|
|
||||||
install:
|
|
||||||
- ./installing_deps.sh
|
|
||||||
- pip install coveralls codecov nose
|
|
||||||
|
|
||||||
script:
|
|
||||||
- pushd bin
|
|
||||||
- ./LAUNCH.sh -l
|
|
||||||
- popd
|
|
||||||
- cd tests
|
|
||||||
- nosetests --with-coverage --cover-package=../bin -d
|
|
||||||
|
|
||||||
|
|
||||||
after_success:
|
|
||||||
- codecov
|
|
||||||
- coveralls
|
|
502
OVERVIEW.md
502
OVERVIEW.md
|
@ -1,502 +0,0 @@
|
||||||
Overview
|
|
||||||
========
|
|
||||||
|
|
||||||
Redis and ARDB overview
|
|
||||||
--------------------------
|
|
||||||
|
|
||||||
* Redis on TCP port 6379
|
|
||||||
- DB 0 - Cache hostname/dns
|
|
||||||
- DB 1 - Paste meta-data
|
|
||||||
* Redis on TCP port 6380 - Redis Log only
|
|
||||||
* Redis on TCP port 6381
|
|
||||||
- DB 0 - PubSub + Queue and Paste content LRU cache
|
|
||||||
- DB 1 - _Mixer_ Cache
|
|
||||||
* ARDB on TCP port 6382
|
|
||||||
|
|
||||||
|
|
||||||
DB 1 - Curve
|
|
||||||
DB 2 - TermFreq
|
|
||||||
DB 3 - Trending/Trackers
|
|
||||||
DB 4 - Sentiments
|
|
||||||
DB 5 - TermCred
|
|
||||||
DB 6 - Tags
|
|
||||||
DB 7 - Metadata
|
|
||||||
DB 8 - Statistics
|
|
||||||
DB 9 - Crawler
|
|
||||||
DB 10 - Objects
|
|
||||||
|
|
||||||
* ARDB on TCP port <year>
|
|
||||||
- DB 0 - Lines duplicate
|
|
||||||
- DB 1 - Hashes
|
|
||||||
|
|
||||||
# Database Map:
|
|
||||||
|
|
||||||
### Redis cache
|
|
||||||
|
|
||||||
##### Brute force protection:
|
|
||||||
| Set Key | Value |
|
|
||||||
| ------ | ------ |
|
|
||||||
| failed_login_ip:**ip** | **nb login failed** | TTL
|
|
||||||
| failed_login_user_id:**user_id** | **nb login failed** | TTL
|
|
||||||
|
|
||||||
##### Item Import:
|
|
||||||
|
|
||||||
| Key | Value |
|
|
||||||
| ------ | ------ |
|
|
||||||
| **uuid**:nb_total | **nb total** | TTL *(if imported)*
|
|
||||||
| **uuid**:nb_end | **nb** | TTL *(if imported)*
|
|
||||||
| **uuid**:nb_sucess | **nb success** | TTL *(if imported)*
|
|
||||||
| **uuid**:end | **0 (in progress) or (item imported)** | TTL *(if imported)*
|
|
||||||
| **uuid**:processing | **process status: 0 or 1** | TTL *(if imported)*
|
|
||||||
| **uuid**:error | **error message** | TTL *(if imported)*
|
|
||||||
|
|
||||||
| Set Key | Value |
|
|
||||||
| ------ | ------ |
|
|
||||||
| **uuid**:paste_submit_link | **item_path** | TTL *(if imported)*
|
|
||||||
|
|
||||||
## DB0 - Core:
|
|
||||||
|
|
||||||
##### Update keys:
|
|
||||||
| Key | Value |
|
|
||||||
| ------ | ------ |
|
|
||||||
| | |
|
|
||||||
| ail:version | **current version** |
|
|
||||||
| | |
|
|
||||||
| ail:update_**update_version** | **background update name** |
|
|
||||||
| | **background update name** |
|
|
||||||
| | **...** |
|
|
||||||
| | |
|
|
||||||
| ail:update_error | **update message error** |
|
|
||||||
| | |
|
|
||||||
| ail:update_in_progress | **update version in progress** |
|
|
||||||
| ail:current_background_update | **current update version** |
|
|
||||||
| | |
|
|
||||||
| ail:current_background_script | **name of the background script currently executed** |
|
|
||||||
| ail:current_background_script_stat | **progress in % of the background script** |
|
|
||||||
|
|
||||||
| Hset Key | Field | Value |
|
|
||||||
| ------ | ------ | ------ |
|
|
||||||
| ail:update_date | **update tag** | **update date** |
|
|
||||||
|
|
||||||
##### User Management:
|
|
||||||
| Hset Key | Field | Value |
|
|
||||||
| ------ | ------ | ------ |
|
|
||||||
| user:all | **user id** | **password hash** |
|
|
||||||
| | | |
|
|
||||||
| user:tokens | **token** | **user id** |
|
|
||||||
| | | |
|
|
||||||
| user_metadata:**user id** | token | **token** |
|
|
||||||
| | change_passwd | **boolean** |
|
|
||||||
| | role | **role** |
|
|
||||||
|
|
||||||
| Set Key | Value |
|
|
||||||
| ------ | ------ |
|
|
||||||
| user_role:**role** | **user id** |
|
|
||||||
|
|
||||||
|
|
||||||
| Zrank Key | Field | Value |
|
|
||||||
| ------ | ------ | ------ |
|
|
||||||
| ail:all_role | **role** | **int, role priority (1=admin)** |
|
|
||||||
|
|
||||||
##### MISP Modules:
|
|
||||||
|
|
||||||
| Set Key | Value |
|
|
||||||
| ------ | ------ |
|
|
||||||
| enabled_misp_modules | **module name** |
|
|
||||||
|
|
||||||
| Key | Value |
|
|
||||||
| ------ | ------ |
|
|
||||||
| misp_module:**module name** | **module dict** |
|
|
||||||
|
|
||||||
##### Item Import:
|
|
||||||
| Key | Value |
|
|
||||||
| ------ | ------ |
|
|
||||||
| **uuid**:isfile | **boolean** |
|
|
||||||
| **uuid**:paste_content | **item_content** |
|
|
||||||
|
|
||||||
## DB2 - TermFreq:
|
|
||||||
|
|
||||||
| Set Key | Value |
|
|
||||||
| ------ | ------ |
|
|
||||||
| submitted:uuid | **uuid** |
|
|
||||||
| **uuid**:ltags | **tag** |
|
|
||||||
| **uuid**:ltagsgalaxies | **tag** |
|
|
||||||
|
|
||||||
## DB3 - Leak Hunter:
|
|
||||||
|
|
||||||
##### Tracker metadata:
|
|
||||||
| Hset - Key | Field | Value |
|
|
||||||
| ------ | ------ | ------ |
|
|
||||||
| tracker:**uuid** | tracker | **tacked word/set/regex** |
|
|
||||||
| | type | **word/set/regex** |
|
|
||||||
| | date | **date added** |
|
|
||||||
| | user_id | **created by user_id** |
|
|
||||||
| | dashboard | **0/1 Display alert on dashboard** |
|
|
||||||
| | description | **Tracker description** |
|
|
||||||
| | level | **0/1 Tracker visibility** |
|
|
||||||
|
|
||||||
##### Tracker by user_id (visibility level: user only):
|
|
||||||
| Set - Key | Value |
|
|
||||||
| ------ | ------ |
|
|
||||||
| user:tracker:**user_id** | **uuid - tracker uuid** |
|
|
||||||
| user:tracker:**user_id**:**word/set/regex - tracker type** | **uuid - tracker uuid** |
|
|
||||||
|
|
||||||
##### Global Tracker (visibility level: all users):
|
|
||||||
| Set - Key | Value |
|
|
||||||
| ------ | ------ |
|
|
||||||
| gobal:tracker | **uuid - tracker uuid** |
|
|
||||||
| gobal:tracker:**word/set/regex - tracker type** | **uuid - tracker uuid** |
|
|
||||||
|
|
||||||
##### All Tracker by type:
|
|
||||||
| Set - Key | Value |
|
|
||||||
| ------ | ------ |
|
|
||||||
| all:tracker:**word/set/regex - tracker type** | **tracked item** |
|
|
||||||
|
|
||||||
| Set - Key | Value |
|
|
||||||
| ------ | ------ |
|
|
||||||
| all:tracker_uuid:**tracker type**:**tracked item** | **uuid - tracker uuid** |
|
|
||||||
|
|
||||||
##### All Tracked items:
|
|
||||||
| Set - Key | Value |
|
|
||||||
| ------ | ------ |
|
|
||||||
| tracker:item:**uuid**:**date** | **item_id** |
|
|
||||||
|
|
||||||
##### All Tracked tags:
|
|
||||||
| Set - Key | Value |
|
|
||||||
| ------ | ------ |
|
|
||||||
| tracker:tags:**uuid** | **tag** |
|
|
||||||
|
|
||||||
##### All Tracked mail:
|
|
||||||
| Set - Key | Value |
|
|
||||||
| ------ | ------ |
|
|
||||||
| tracker:mail:**uuid** | **mail** |
|
|
||||||
|
|
||||||
##### Refresh Tracker:
|
|
||||||
| Key | Value |
|
|
||||||
| ------ | ------ |
|
|
||||||
| tracker:refresh:word | **last refreshed epoch** |
|
|
||||||
| tracker:refresh:set | - |
|
|
||||||
| tracker:refresh:regex | - |
|
|
||||||
|
|
||||||
##### Zset Stat Tracker:
|
|
||||||
| Key | Field | Value |
|
|
||||||
| ------ | ------ | ------ |
|
|
||||||
| tracker:stat:**uuid** | **date** | **nb_seen** |
|
|
||||||
|
|
||||||
##### Stat token:
|
|
||||||
| Key | Field | Value |
|
|
||||||
| ------ | ------ | ------ |
|
|
||||||
| stat_token_total_by_day:**date** | **word** | **nb_seen** |
|
|
||||||
| | | |
|
|
||||||
| stat_token_per_item_by_day:**date** | **word** | **nb_seen** |
|
|
||||||
|
|
||||||
| Set - Key | Value |
|
|
||||||
| ------ | ------ |
|
|
||||||
| stat_token_history | **date** |
|
|
||||||
|
|
||||||
## DB6 - Tags:
|
|
||||||
|
|
||||||
##### Hset:
|
|
||||||
| Key | Field | Value |
|
|
||||||
| ------ | ------ | ------ |
|
|
||||||
| tag_metadata:**tag** | first_seen | **date** |
|
|
||||||
| tag_metadata:**tag** | last_seen | **date** |
|
|
||||||
|
|
||||||
##### Set:
|
|
||||||
| Key | Value |
|
|
||||||
| ------ | ------ |
|
|
||||||
| list_tags | **tag** |
|
|
||||||
| list_tags:**object_type** | **tag** |
|
|
||||||
| list_tags:domain | **tag** |
|
|
||||||
||
|
|
||||||
| active_taxonomies | **taxonomie** |
|
|
||||||
| active_galaxies | **galaxie** |
|
|
||||||
| active_tag_**taxonomie or galaxy** | **tag** |
|
|
||||||
| synonym_tag_misp-galaxy:**galaxy** | **tag synonym** |
|
|
||||||
| list_export_tags | **user_tag** |
|
|
||||||
||
|
|
||||||
| **tag**:**date** | **paste** |
|
|
||||||
| **object_type**:**tag** | **object_id** |
|
|
||||||
||
|
|
||||||
| DB7 |
|
|
||||||
| tag:**object_id** | **tag** |
|
|
||||||
|
|
||||||
##### old:
|
|
||||||
| Key | Value |
|
|
||||||
| ------ | ------ |
|
|
||||||
| *tag* | *paste* |
|
|
||||||
|
|
||||||
## DB7 - Metadata:
|
|
||||||
|
|
||||||
#### Crawled Items:
|
|
||||||
|
|
||||||
##### Set:
|
|
||||||
| Key | Field |
|
|
||||||
| ------ | ------ |
|
|
||||||
| tag:**item path** | **tag** |
|
|
||||||
| | |
|
|
||||||
| paste_children:**item path** | **item path** |
|
|
||||||
| | |
|
|
||||||
| hash_paste:**item path** | **hash** |
|
|
||||||
| base64_paste:**item path** | **hash** |
|
|
||||||
| hexadecimal_paste:**item path** | **hash** |
|
|
||||||
| binary_paste:**item path** | **hash** |
|
|
||||||
|
|
||||||
##### Zset:
|
|
||||||
| Key | Field | Value |
|
|
||||||
| ------ | ------ | ------ |
|
|
||||||
| nb_seen_hash:**hash** | **item** | **nb_seen** |
|
|
||||||
| base64_hash:**hash** | **item** | **nb_seen** |
|
|
||||||
| binary_hash:**hash** | **item** | **nb_seen** |
|
|
||||||
| hexadecimal_hash:**hash** | **item** | **nb_seen** |
|
|
||||||
|
|
||||||
#### PgpDump
|
|
||||||
|
|
||||||
##### Hset:
|
|
||||||
| Key | Field | Value |
|
|
||||||
| ------ | ------ | ------ |
|
|
||||||
| pgpdump_metadata_key:*key id* | first_seen | **date** |
|
|
||||||
| | last_seen | **date** |
|
|
||||||
| | |
|
|
||||||
| pgpdump_metadata_name:*name* | first_seen | **date** |
|
|
||||||
| | last_seen | **date** |
|
|
||||||
| | |
|
|
||||||
| pgpdump_metadata_mail:*mail* | first_seen | **date** |
|
|
||||||
| | last_seen | **date** |
|
|
||||||
|
|
||||||
##### set:
|
|
||||||
| Key | Value |
|
|
||||||
| ------ | ------ |
|
|
||||||
| set_pgpdump_key:*key id* | *item_path* |
|
|
||||||
| | |
|
|
||||||
| set_pgpdump_name:*name* | *item_path* |
|
|
||||||
| | |
|
|
||||||
| set_pgpdump_mail:*mail* | *item_path* |
|
|
||||||
| | |
|
|
||||||
| | |
|
|
||||||
| set_domain_pgpdump_**pgp_type**:**key** | **domain** |
|
|
||||||
|
|
||||||
##### Hset date:
|
|
||||||
| Key | Field | Value |
|
|
||||||
| ------ | ------ |
|
|
||||||
| pgpdump:key:*date* | *key* | *nb seen* |
|
|
||||||
| | |
|
|
||||||
| pgpdump:name:*date* | *name* | *nb seen* |
|
|
||||||
| | |
|
|
||||||
| pgpdump:mail:*date* | *mail* | *nb seen* |
|
|
||||||
|
|
||||||
##### zset:
|
|
||||||
| Key | Field | Value |
|
|
||||||
| ------ | ------ | ------ |
|
|
||||||
| pgpdump_all:key | *key* | *nb seen* |
|
|
||||||
| | |
|
|
||||||
| pgpdump_all:name | *name* | *nb seen* |
|
|
||||||
| | |
|
|
||||||
| pgpdump_all:mail | *mail* | *nb seen* |
|
|
||||||
|
|
||||||
##### set:
|
|
||||||
| Key | Value |
|
|
||||||
| ------ | ------ |
|
|
||||||
| item_pgpdump_key:*item_path* | *key* |
|
|
||||||
| | |
|
|
||||||
| item_pgpdump_name:*item_path* | *name* |
|
|
||||||
| | |
|
|
||||||
| item_pgpdump_mail:*item_path* | *mail* |
|
|
||||||
| | |
|
|
||||||
| | |
|
|
||||||
| domain_pgpdump_**pgp_type**:**domain** | **key** |
|
|
||||||
|
|
||||||
#### SimpleCorrelation:
|
|
||||||
##### zset:
|
|
||||||
| Key | Field | Value |
|
|
||||||
| ------ | ------ | ------ |
|
|
||||||
| s_correl:*correlation name*:all | *object_id* | *nb_seen* |
|
|
||||||
| s_correl:date:*correlation name*:*date_day* | *object_id* | *nb_seen |
|
|
||||||
|
|
||||||
##### set:
|
|
||||||
| Key | Value |
|
|
||||||
| ------ | ------ |
|
|
||||||
| s_correl:set_*object type*_*correlation name*:*object_id* | *item_id* |
|
|
||||||
| *object type*:s_correl:*correlation name*:*object_id* | *correlation_id* |
|
|
||||||
|
|
||||||
object type: item + domain
|
|
||||||
|
|
||||||
##### hset:
|
|
||||||
| Key | Field | Value |
|
|
||||||
| ------ | ------ | ------ |
|
|
||||||
| 's_correl:*correlation name*:metadata:*obj_id* | first_seen | *first_seen* |
|
|
||||||
| 's_correl:*correlation name*:metadata:*obj_id* | last_seen | *last_seen* |
|
|
||||||
|
|
||||||
#### Cryptocurrency
|
|
||||||
|
|
||||||
Supported cryptocurrency:
|
|
||||||
- bitcoin
|
|
||||||
- bitcoin-cash
|
|
||||||
- dash
|
|
||||||
- etherum
|
|
||||||
- litecoin
|
|
||||||
- monero
|
|
||||||
- zcash
|
|
||||||
|
|
||||||
##### Hset:
|
|
||||||
| Key | Field | Value |
|
|
||||||
| ------ | ------ | ------ |
|
|
||||||
| cryptocurrency_metadata_**cryptocurrency name**:**cryptocurrency address** | first_seen | **date** |
|
|
||||||
| | last_seen | **date** |
|
|
||||||
|
|
||||||
##### set:
|
|
||||||
| Key | Value |
|
|
||||||
| ------ | ------ |
|
|
||||||
| set_cryptocurrency_**cryptocurrency name**:**cryptocurrency address** | **item_path** | PASTE
|
|
||||||
| domain_cryptocurrency_**cryptocurrency name**:**cryptocurrency address** | **domain** | DOMAIN
|
|
||||||
|
|
||||||
##### Hset date:
|
|
||||||
| Key | Field | Value |
|
|
||||||
| ------ | ------ |
|
|
||||||
| cryptocurrency:**cryptocurrency name**:**date** | **cryptocurrency address** | **nb seen** |
|
|
||||||
|
|
||||||
##### zset:
|
|
||||||
| Key | Field | Value |
|
|
||||||
| ------ | ------ | ------ |
|
|
||||||
| cryptocurrency_all:**cryptocurrency name** | **cryptocurrency address** | **nb seen** |
|
|
||||||
|
|
||||||
##### set:
|
|
||||||
| Key | Value |
|
|
||||||
| ------ | ------ |
|
|
||||||
| item_cryptocurrency_**cryptocurrency name**:**item_path** | **cryptocurrency address** | PASTE
|
|
||||||
| domain_cryptocurrency_**cryptocurrency name**:**item_path** | **cryptocurrency address** | DOMAIN
|
|
||||||
|
|
||||||
#### HASH
|
|
||||||
| Key | Value |
|
|
||||||
| ------ | ------ |
|
|
||||||
| hash_domain:**domain** | **hash** |
|
|
||||||
| domain_hash:**hash** | **domain** |
|
|
||||||
|
|
||||||
## DB9 - Crawler:
|
|
||||||
|
|
||||||
##### Hset:
|
|
||||||
| Key | Field | Value |
|
|
||||||
| ------ | ------ | ------ |
|
|
||||||
| **service type**_metadata:**domain** | first_seen | **date** |
|
|
||||||
| | last_check | **date** |
|
|
||||||
| | ports | **port**;**port**;**port** ... |
|
|
||||||
| | paste_parent | **parent last crawling (can be auto or manual)** |
|
|
||||||
|
|
||||||
##### Zset:
|
|
||||||
| Key | Field | Value |
|
|
||||||
| ------ | ------ | ------ |
|
|
||||||
| crawler\_history\_**service type**:**domain**:**port** | **item root (first crawled item)** | **epoch (seconds)** |
|
|
||||||
|
|
||||||
##### Set:
|
|
||||||
| Key | Value |
|
|
||||||
| ------ | ------ | ------ |
|
|
||||||
| screenshot:**sha256** | **item path** |
|
|
||||||
|
|
||||||
##### crawler config:
|
|
||||||
| Key | Value |
|
|
||||||
| ------ | ------ |
|
|
||||||
| crawler\_config:**crawler mode**:**service type**:**domain** | **json config** |
|
|
||||||
|
|
||||||
##### automatic crawler config:
|
|
||||||
| Key | Value |
|
|
||||||
| ------ | ------ |
|
|
||||||
| crawler\_config:**crawler mode**:**service type**:**domain**:**url** | **json config** |
|
|
||||||
|
|
||||||
###### exemple json config:
|
|
||||||
```json
|
|
||||||
{
|
|
||||||
"closespider_pagecount": 1,
|
|
||||||
"time": 3600,
|
|
||||||
"depth_limit": 0,
|
|
||||||
"har": 0,
|
|
||||||
"png": 0
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### Splash containers and proxies:
|
|
||||||
| SET - Key | Value |
|
|
||||||
| ------ | ------ |
|
|
||||||
| all_proxy | **proxy name** |
|
|
||||||
| all_splash | **splash name** |
|
|
||||||
|
|
||||||
| HSET - Key | Field | Value |
|
|
||||||
| ------ | ------ | ------ |
|
|
||||||
| proxy:metadata:**proxy name** | host | **host** |
|
|
||||||
| proxy:metadata:**proxy name** | port | **port** |
|
|
||||||
| proxy:metadata:**proxy name** | type | **type** |
|
|
||||||
| proxy:metadata:**proxy name** | crawler_type | **crawler_type** |
|
|
||||||
| proxy:metadata:**proxy name** | description | **proxy description** |
|
|
||||||
| | | |
|
|
||||||
| splash:metadata:**splash name** | description | **splash description** |
|
|
||||||
| splash:metadata:**splash name** | crawler_type | **crawler_type** |
|
|
||||||
| splash:metadata:**splash name** | proxy | **splash proxy (None if null)** |
|
|
||||||
|
|
||||||
| SET - Key | Value |
|
|
||||||
| ------ | ------ |
|
|
||||||
| splash:url:**container name** | **splash url** |
|
|
||||||
| proxy:splash:**proxy name** | **container name** |
|
|
||||||
|
|
||||||
| Key | Value |
|
|
||||||
| ------ | ------ |
|
|
||||||
| splash:map:url:name:**splash url** | **container name** |
|
|
||||||
|
|
||||||
##### CRAWLER QUEUES:
|
|
||||||
| SET - Key | Value |
|
|
||||||
| ------ | ------ |
|
|
||||||
| onion_crawler_queue | **url**;**item_id** | RE-CRAWL
|
|
||||||
| regular_crawler_queue | - |
|
|
||||||
| | |
|
|
||||||
| onion_crawler_priority_queue | **url**;**item_id** | USER
|
|
||||||
| regular_crawler_priority_queue | - |
|
|
||||||
| | |
|
|
||||||
| onion_crawler_discovery_queue | **url**;**item_id** | DISCOVER
|
|
||||||
| regular_crawler_discovery_queue | - |
|
|
||||||
|
|
||||||
##### TO CHANGE:
|
|
||||||
|
|
||||||
ARDB overview
|
|
||||||
|
|
||||||
----------------------------------------- SENTIMENT ------------------------------------
|
|
||||||
|
|
||||||
SET - 'Provider_set' Provider
|
|
||||||
|
|
||||||
KEY - 'UniqID' INT
|
|
||||||
|
|
||||||
SET - provider_timestamp UniqID
|
|
||||||
|
|
||||||
SET - UniqID avg_score
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
* DB 7 - Metadata:
|
|
||||||
|
|
||||||
|
|
||||||
----------------------------------------------------------------------------------------
|
|
||||||
----------------------------------------- BASE64 ----------------------------------------
|
|
||||||
|
|
||||||
HSET - 'metadata_hash:'+hash 'saved_path' saved_path
|
|
||||||
'size' size
|
|
||||||
'first_seen' first_seen
|
|
||||||
'last_seen' last_seen
|
|
||||||
'estimated_type' estimated_type
|
|
||||||
'vt_link' vt_link
|
|
||||||
'vt_report' vt_report
|
|
||||||
'nb_seen_in_all_pastes' nb_seen_in_all_pastes
|
|
||||||
'base64_decoder' nb_encoded
|
|
||||||
'binary_decoder' nb_encoded
|
|
||||||
|
|
||||||
SET - 'all_decoder' decoder*
|
|
||||||
|
|
||||||
SET - 'hash_all_type' hash_type *
|
|
||||||
SET - 'hash_base64_all_type' hash_type *
|
|
||||||
SET - 'hash_binary_all_type' hash_type *
|
|
||||||
|
|
||||||
ZADD - 'hash_date:'+20180622 hash * nb_seen_this_day
|
|
||||||
ZADD - 'base64_date:'+20180622 hash * nb_seen_this_day
|
|
||||||
ZADD - 'binary_date:'+20180622 hash * nb_seen_this_day
|
|
||||||
|
|
||||||
ZADD - 'base64_type:'+type date nb_seen
|
|
||||||
ZADD - 'binary_type:'+type date nb_seen
|
|
||||||
|
|
||||||
GET - 'base64_decoded:'+date nd_decoded
|
|
||||||
GET - 'binary_decoded:'+date nd_decoded
|
|
|
@ -1,246 +0,0 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
#
|
|
||||||
# AIL documentation build configuration file, created by
|
|
||||||
# sphinx-quickstart on Tue May 6 09:36:37 2014.
|
|
||||||
#
|
|
||||||
# This file is execfile()d with the current directory set to its containing dir.
|
|
||||||
#
|
|
||||||
# Note that not all possible configuration values are present in this
|
|
||||||
# autogenerated file.
|
|
||||||
#
|
|
||||||
# All configuration values have a default; values that are commented out
|
|
||||||
# serve to show the default.
|
|
||||||
|
|
||||||
import sys, os
|
|
||||||
|
|
||||||
# If extensions (or modules to document with autodoc) are in another directory,
|
|
||||||
# add these directories to sys.path here. If the directory is relative to the
|
|
||||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
|
||||||
sys.path.insert(0, os.path.abspath('../../bin/'))
|
|
||||||
|
|
||||||
# -- General configuration -----------------------------------------------------
|
|
||||||
|
|
||||||
# If your documentation needs a minimal Sphinx version, state it here.
|
|
||||||
#needs_sphinx = '1.0'
|
|
||||||
|
|
||||||
# Add any Sphinx extension module names here, as strings. They can be extensions
|
|
||||||
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
|
|
||||||
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx', 'sphinx.ext.ifconfig', 'sphinx.ext.viewcode']
|
|
||||||
|
|
||||||
# Add any paths that contain templates here, relative to this directory.
|
|
||||||
templates_path = ['_templates']
|
|
||||||
|
|
||||||
# The suffix of source filenames.
|
|
||||||
source_suffix = '.rst'
|
|
||||||
|
|
||||||
# The encoding of source files.
|
|
||||||
#source_encoding = 'utf-8-sig'
|
|
||||||
|
|
||||||
# The master toctree document.
|
|
||||||
master_doc = 'index'
|
|
||||||
|
|
||||||
# General information about the project.
|
|
||||||
project = u'AIL'
|
|
||||||
copyright = u'2014, Jules Debra and CIRCL - Computer Incident Response Center Luxembourg'
|
|
||||||
|
|
||||||
# The version info for the project you're documenting, acts as replacement for
|
|
||||||
# |version| and |release|, also used in various other places throughout the
|
|
||||||
# built documents.
|
|
||||||
#
|
|
||||||
# The short X.Y version.
|
|
||||||
version = '0.0.1'
|
|
||||||
# The full version, including alpha/beta/rc tags.
|
|
||||||
release = '0.0.1'
|
|
||||||
|
|
||||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
|
||||||
# for a list of supported languages.
|
|
||||||
#language = None
|
|
||||||
|
|
||||||
# There are two options for replacing |today|: either, you set today to some
|
|
||||||
# non-false value, then it is used:
|
|
||||||
#today = ''
|
|
||||||
# Else, today_fmt is used as the format for a strftime call.
|
|
||||||
#today_fmt = '%B %d, %Y'
|
|
||||||
|
|
||||||
# List of patterns, relative to source directory, that match files and
|
|
||||||
# directories to ignore when looking for source files.
|
|
||||||
exclude_patterns = []
|
|
||||||
|
|
||||||
# The reST default role (used for this markup: `text`) to use for all documents.
|
|
||||||
#default_role = None
|
|
||||||
|
|
||||||
# If true, '()' will be appended to :func: etc. cross-reference text.
|
|
||||||
#add_function_parentheses = True
|
|
||||||
|
|
||||||
# If true, the current module name will be prepended to all description
|
|
||||||
# unit titles (such as .. function::).
|
|
||||||
#add_module_names = True
|
|
||||||
|
|
||||||
# If true, sectionauthor and moduleauthor directives will be shown in the
|
|
||||||
# output. They are ignored by default.
|
|
||||||
#show_authors = False
|
|
||||||
|
|
||||||
# The name of the Pygments (syntax highlighting) style to use.
|
|
||||||
pygments_style = 'sphinx'
|
|
||||||
|
|
||||||
# A list of ignored prefixes for module index sorting.
|
|
||||||
#modindex_common_prefix = []
|
|
||||||
|
|
||||||
|
|
||||||
# -- Options for HTML output ---------------------------------------------------
|
|
||||||
|
|
||||||
# The theme to use for HTML and HTML Help pages. See the documentation for
|
|
||||||
# a list of builtin themes.
|
|
||||||
html_theme = 'default'
|
|
||||||
|
|
||||||
# Theme options are theme-specific and customize the look and feel of a theme
|
|
||||||
# further. For a list of options available for each theme, see the
|
|
||||||
# documentation.
|
|
||||||
#html_theme_options = {}
|
|
||||||
|
|
||||||
# Add any paths that contain custom themes here, relative to this directory.
|
|
||||||
#html_theme_path = []
|
|
||||||
|
|
||||||
# The name for this set of Sphinx documents. If None, it defaults to
|
|
||||||
# "<project> v<release> documentation".
|
|
||||||
#html_title = None
|
|
||||||
|
|
||||||
# A shorter title for the navigation bar. Default is the same as html_title.
|
|
||||||
#html_short_title = None
|
|
||||||
|
|
||||||
# The name of an image file (relative to this directory) to place at the top
|
|
||||||
# of the sidebar.
|
|
||||||
#html_logo = None
|
|
||||||
|
|
||||||
# The name of an image file (within the static path) to use as favicon of the
|
|
||||||
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
|
|
||||||
# pixels large.
|
|
||||||
#html_favicon = None
|
|
||||||
|
|
||||||
# Add any paths that contain custom static files (such as style sheets) here,
|
|
||||||
# relative to this directory. They are copied after the builtin static files,
|
|
||||||
# so a file named "default.css" will overwrite the builtin "default.css".
|
|
||||||
html_static_path = ['_static']
|
|
||||||
|
|
||||||
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
|
|
||||||
# using the given strftime format.
|
|
||||||
#html_last_updated_fmt = '%b %d, %Y'
|
|
||||||
|
|
||||||
# If true, SmartyPants will be used to convert quotes and dashes to
|
|
||||||
# typographically correct entities.
|
|
||||||
#html_use_smartypants = True
|
|
||||||
|
|
||||||
# Custom sidebar templates, maps document names to template names.
|
|
||||||
#html_sidebars = {}
|
|
||||||
|
|
||||||
# Additional templates that should be rendered to pages, maps page names to
|
|
||||||
# template names.
|
|
||||||
#html_additional_pages = {}
|
|
||||||
|
|
||||||
# If false, no module index is generated.
|
|
||||||
#html_domain_indices = True
|
|
||||||
|
|
||||||
# If false, no index is generated.
|
|
||||||
#html_use_index = True
|
|
||||||
|
|
||||||
# If true, the index is split into individual pages for each letter.
|
|
||||||
#html_split_index = False
|
|
||||||
|
|
||||||
# If true, links to the reST sources are added to the pages.
|
|
||||||
#html_show_sourcelink = True
|
|
||||||
|
|
||||||
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
|
|
||||||
#html_show_sphinx = True
|
|
||||||
|
|
||||||
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
|
|
||||||
#html_show_copyright = True
|
|
||||||
|
|
||||||
# If true, an OpenSearch description file will be output, and all pages will
|
|
||||||
# contain a <link> tag referring to it. The value of this option must be the
|
|
||||||
# base URL from which the finished HTML is served.
|
|
||||||
#html_use_opensearch = ''
|
|
||||||
|
|
||||||
# This is the file name suffix for HTML files (e.g. ".xhtml").
|
|
||||||
#html_file_suffix = None
|
|
||||||
|
|
||||||
# Output file base name for HTML help builder.
|
|
||||||
htmlhelp_basename = 'AILdoc'
|
|
||||||
|
|
||||||
|
|
||||||
# -- Options for LaTeX output --------------------------------------------------
|
|
||||||
|
|
||||||
latex_elements = {
|
|
||||||
# The paper size ('letterpaper' or 'a4paper').
|
|
||||||
#'papersize': 'letterpaper',
|
|
||||||
|
|
||||||
# The font size ('10pt', '11pt' or '12pt').
|
|
||||||
#'pointsize': '10pt',
|
|
||||||
|
|
||||||
# Additional stuff for the LaTeX preamble.
|
|
||||||
#'preamble': '',
|
|
||||||
}
|
|
||||||
|
|
||||||
# Grouping the document tree into LaTeX files. List of tuples
|
|
||||||
# (source start file, target name, title, author, documentclass [howto/manual]).
|
|
||||||
latex_documents = [
|
|
||||||
('index', 'AIL.tex', u'AIL Documentation',
|
|
||||||
u'Jules Debra', 'manual'),
|
|
||||||
]
|
|
||||||
|
|
||||||
# The name of an image file (relative to this directory) to place at the top of
|
|
||||||
# the title page.
|
|
||||||
#latex_logo = None
|
|
||||||
|
|
||||||
# For "manual" documents, if this is true, then toplevel headings are parts,
|
|
||||||
# not chapters.
|
|
||||||
#latex_use_parts = False
|
|
||||||
|
|
||||||
# If true, show page references after internal links.
|
|
||||||
#latex_show_pagerefs = False
|
|
||||||
|
|
||||||
# If true, show URL addresses after external links.
|
|
||||||
#latex_show_urls = False
|
|
||||||
|
|
||||||
# Documents to append as an appendix to all manuals.
|
|
||||||
#latex_appendices = []
|
|
||||||
|
|
||||||
# If false, no module index is generated.
|
|
||||||
#latex_domain_indices = True
|
|
||||||
|
|
||||||
|
|
||||||
# -- Options for manual page output --------------------------------------------
|
|
||||||
|
|
||||||
# One entry per manual page. List of tuples
|
|
||||||
# (source start file, name, description, authors, manual section).
|
|
||||||
man_pages = [
|
|
||||||
('index', 'ail', u'AIL Documentation',
|
|
||||||
[u'Jules Debra'], 1)
|
|
||||||
]
|
|
||||||
|
|
||||||
# If true, show URL addresses after external links.
|
|
||||||
#man_show_urls = False
|
|
||||||
|
|
||||||
|
|
||||||
# -- Options for Texinfo output ------------------------------------------------
|
|
||||||
|
|
||||||
# Grouping the document tree into Texinfo files. List of tuples
|
|
||||||
# (source start file, target name, title, author,
|
|
||||||
# dir menu entry, description, category)
|
|
||||||
texinfo_documents = [
|
|
||||||
('index', 'AIL', u'AIL Documentation',
|
|
||||||
u'Jules Debra', 'AIL', 'One line description of project.',
|
|
||||||
'Miscellaneous'),
|
|
||||||
]
|
|
||||||
|
|
||||||
# Documents to append as an appendix to all manuals.
|
|
||||||
#texinfo_appendices = []
|
|
||||||
|
|
||||||
# If false, no module index is generated.
|
|
||||||
#texinfo_domain_indices = True
|
|
||||||
|
|
||||||
# How to display URL addresses: 'footnote', 'no', or 'inline'.
|
|
||||||
#texinfo_show_urls = 'footnote'
|
|
||||||
|
|
||||||
|
|
||||||
# Example configuration for intersphinx: refer to the Python standard library.
|
|
||||||
intersphinx_mapping = {'http://docs.python.org/': None}
|
|
|
@ -1,52 +0,0 @@
|
||||||
.. AIL documentation master file, created by
|
|
||||||
sphinx-quickstart on Tue May 6 09:36:37 2014.
|
|
||||||
You can adapt this file completely to your liking, but it should at least
|
|
||||||
contain the root `toctree` directive.
|
|
||||||
|
|
||||||
Welcome to AIL's documentation!
|
|
||||||
*******************************
|
|
||||||
.. toctree::
|
|
||||||
:maxdepth: 2
|
|
||||||
|
|
||||||
.. warning::
|
|
||||||
This is not the final version
|
|
||||||
|
|
||||||
lib_words
|
|
||||||
=========
|
|
||||||
.. automodule:: packages.lib_words
|
|
||||||
:members:
|
|
||||||
|
|
||||||
lib_gephi
|
|
||||||
=========
|
|
||||||
.. automodule:: packages.lib_gephi
|
|
||||||
:members:
|
|
||||||
|
|
||||||
lib_redis_insert
|
|
||||||
================
|
|
||||||
.. automodule:: packages.lib_redis_insert
|
|
||||||
:members:
|
|
||||||
|
|
||||||
lib_search
|
|
||||||
==========
|
|
||||||
.. automodule:: packages.lib_search
|
|
||||||
:members:
|
|
||||||
|
|
||||||
Paste
|
|
||||||
=====
|
|
||||||
.. automodule:: packages.Paste
|
|
||||||
:members:
|
|
||||||
|
|
||||||
ZMQ_PubSub
|
|
||||||
==========
|
|
||||||
.. automodule:: packages.ZMQ_PubSub
|
|
||||||
:members:
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Indices and tables
|
|
||||||
==================
|
|
||||||
|
|
||||||
* :ref:`genindex`
|
|
||||||
* :ref:`modindex`
|
|
||||||
* :ref:`search`
|
|
||||||
|
|
|
@ -2,10 +2,8 @@ Docker Quick Start (Ubuntu 18.04 LTS)
|
||||||
------------
|
------------
|
||||||
|
|
||||||
:warning:
|
:warning:
|
||||||
Not maintained at the moment.
|
This Docker is not maintained at the moment.
|
||||||
If you are interested to get this running, please:
|
If you are interested to contribute, please submit a Pull Request
|
||||||
|
|
||||||
Fork -> Branch -> PR
|
|
||||||
|
|
||||||
|
|
||||||
1. Install Docker
|
1. Install Docker
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
sudo rm -rf AILENV
|
|
||||||
mkdir old
|
|
||||||
sudo mv indexdir old/old_indexdir_python2
|
|
||||||
sudo mv LEVEL_DB_DATA old/old_LEVEL_DB_DATA
|
|
||||||
sudo mv dumps old/old_dumps
|
|
||||||
|
|
||||||
./installing_deps.sh
|
|
Loading…
Reference in a new issue