mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 04:52:11 +00:00
add spiderfoot persistence
This commit is contained in:
parent
2bbafbc791
commit
5d8ad0a623
5 changed files with 18 additions and 1 deletions
|
@ -48,7 +48,7 @@ fuELK () {
|
||||||
# ELK data will be kept for <= 90 days, check /etc/crontab for curator modification
|
# ELK data will be kept for <= 90 days, check /etc/crontab for curator modification
|
||||||
# ELK daemon log files will be removed
|
# ELK daemon log files will be removed
|
||||||
rm -rf /data/elk/log/*
|
rm -rf /data/elk/log/*
|
||||||
mkdir -p /data/elk/logstash/conf
|
mkdir -p /data/elk
|
||||||
chmod 760 /data/elk -R
|
chmod 760 /data/elk -R
|
||||||
chown tpot:tpot /data/elk -R
|
chown tpot:tpot /data/elk -R
|
||||||
}
|
}
|
||||||
|
@ -78,6 +78,14 @@ fuHONEYTRAP () {
|
||||||
chown tpot:tpot /data/honeytrap/ -R
|
chown tpot:tpot /data/honeytrap/ -R
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Let's create a function prepare spiderfoot db
|
||||||
|
fuSPIDERFOOT () {
|
||||||
|
mkdir -p /data/spiderfoot
|
||||||
|
touch /data/spiderfoot/spiderfoot.db
|
||||||
|
chmod 760 -R /data/spiderfoot
|
||||||
|
chown tpot:tpot -R /data/spiderfoot
|
||||||
|
}
|
||||||
|
|
||||||
# Let's create a function to clean up and prepare suricata data
|
# Let's create a function to clean up and prepare suricata data
|
||||||
fuSURICATA () {
|
fuSURICATA () {
|
||||||
rm -rf /data/suricata/*
|
rm -rf /data/suricata/*
|
||||||
|
@ -94,4 +102,5 @@ fuELK
|
||||||
fuEMOBILITY
|
fuEMOBILITY
|
||||||
fuGLASTOPF
|
fuGLASTOPF
|
||||||
fuHONEYTRAP
|
fuHONEYTRAP
|
||||||
|
fuSPIDERFOOT
|
||||||
fuSURICATA
|
fuSURICATA
|
||||||
|
|
|
@ -226,6 +226,8 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:64303:8080"
|
- "127.0.0.1:64303:8080"
|
||||||
image: "dtagdevsec/spiderfoot:1706"
|
image: "dtagdevsec/spiderfoot:1706"
|
||||||
|
volumes:
|
||||||
|
- /data/spiderfoot/spiderfoot.db:/home/spiderfoot/spiderfoot.db
|
||||||
|
|
||||||
# Ui-for-docker service
|
# Ui-for-docker service
|
||||||
ui-for-docker:
|
ui-for-docker:
|
||||||
|
|
|
@ -140,6 +140,8 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:64303:8080"
|
- "127.0.0.1:64303:8080"
|
||||||
image: "dtagdevsec/spiderfoot:1706"
|
image: "dtagdevsec/spiderfoot:1706"
|
||||||
|
volumes:
|
||||||
|
- /data/spiderfoot/spiderfoot.db:/home/spiderfoot/spiderfoot.db
|
||||||
|
|
||||||
# Ui-for-docker service
|
# Ui-for-docker service
|
||||||
ui-for-docker:
|
ui-for-docker:
|
||||||
|
|
|
@ -195,6 +195,8 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:64303:8080"
|
- "127.0.0.1:64303:8080"
|
||||||
image: "dtagdevsec/spiderfoot:1706"
|
image: "dtagdevsec/spiderfoot:1706"
|
||||||
|
volumes:
|
||||||
|
- /data/spiderfoot/spiderfoot.db:/home/spiderfoot/spiderfoot.db
|
||||||
|
|
||||||
# Ui-for-docker service
|
# Ui-for-docker service
|
||||||
ui-for-docker:
|
ui-for-docker:
|
||||||
|
|
|
@ -443,9 +443,11 @@ mkdir -p /data/conpot/log \
|
||||||
/data/glastopf /data/honeytrap/log/ /data/honeytrap/attacks/ /data/honeytrap/downloads/ \
|
/data/glastopf /data/honeytrap/log/ /data/honeytrap/attacks/ /data/honeytrap/downloads/ \
|
||||||
/data/emobility/log \
|
/data/emobility/log \
|
||||||
/data/ews/conf \
|
/data/ews/conf \
|
||||||
|
/data/spiderfoot \
|
||||||
/data/suricata/log /home/tsec/.ssh/ \
|
/data/suricata/log /home/tsec/.ssh/ \
|
||||||
/etc/tpot/elk /etc/tpot/compose /etc/tpot/systemd \
|
/etc/tpot/elk /etc/tpot/compose /etc/tpot/systemd \
|
||||||
/usr/share/tpot/bin 2>&1 | dialog --title "[ Creating some files and folders ]" $myPROGRESSBOXCONF
|
/usr/share/tpot/bin 2>&1 | dialog --title "[ Creating some files and folders ]" $myPROGRESSBOXCONF
|
||||||
|
touch /data/spiderfoot/spiderfoot.db 2>&1 | dialog --title "[ Creating some files and folders ]" $myPROGRESSBOXCONF
|
||||||
|
|
||||||
# Let's take care of some files and permissions before copying
|
# Let's take care of some files and permissions before copying
|
||||||
chmod 500 /root/tpot/bin/* 2>&1 | dialog --title "[ Setting permissions ]" $myPROGRESSBOXCONF
|
chmod 500 /root/tpot/bin/* 2>&1 | dialog --title "[ Setting permissions ]" $myPROGRESSBOXCONF
|
||||||
|
|
Loading…
Reference in a new issue