fix
This commit is contained in:
parent
422a43466b
commit
c46d519bd0
@ -50,6 +50,7 @@ VIRT_BRIDGE="virbr0"
|
||||
NFT='/usr/bin/nft'
|
||||
NFT_CACHE='/tmp/nft.cache'
|
||||
TMP_BLOCK=($(redis-cli --raw SMEMBERS tmp_block))
|
||||
TRUST=($(redis-cli --raw SMEMBERS trust))
|
||||
#Redis DB
|
||||
#
|
||||
SAVED_BOTS=($(redis-cli --raw SMEMBERS bots))
|
||||
@ -335,6 +336,8 @@ research-ip() {
|
||||
}
|
||||
|
||||
importDB() {
|
||||
DATA=($(cat trust.txt))
|
||||
for i in "${DATA[@]}"; do redis-cli SADD trust $i; done
|
||||
DATA=($(cat safe.txt))
|
||||
for i in "${DATA[@]}"; do redis-cli SADD safe_traffic $i; done
|
||||
DATA=($(cat bots.txt))
|
||||
@ -362,6 +365,7 @@ exportDB() {
|
||||
for i in "${CRAWLER_DB[@]}"; do echo $i >>crawlers.txt; done
|
||||
for i in "${SAVED_BOTS[@]}"; do echo $i >>bots.txt; done
|
||||
for i in "${SAFE_TRAFFIC[@]}"; do echo $i >>safe.txt; done
|
||||
for i in "${TRUST[@]}"; do echo $i >>trust.txt; done
|
||||
}
|
||||
|
||||
if [ "$1" = "start" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user