mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-11-01 04:52:52 +00:00
Compare commits
4 commits
e16c2ab465
...
a5a5aabf69
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a5a5aabf69 | ||
|
|
6faf600d40 | ||
|
|
bec64f2306 | ||
|
|
b08bd2bd1c |
3 changed files with 18 additions and 8 deletions
11
docker/elk/logstash/dist/http_output.conf
vendored
11
docker/elk/logstash/dist/http_output.conf
vendored
|
|
@ -698,12 +698,15 @@ filter {
|
|||
remove_field => ["event_timestamp"]
|
||||
}
|
||||
mutate {
|
||||
rename => {
|
||||
"source_ip" => "src_ip"
|
||||
"destination_ip" => "dest_ip"
|
||||
}
|
||||
split => ["source_ip", ":"]
|
||||
rename => { "destination_ip" => "dest_ip" }
|
||||
add_field => { "dest_port" => "5060" }
|
||||
}
|
||||
mutate {
|
||||
add_field => { "src_ip" => "%{[source_ip][0]}" }
|
||||
add_field => { "src_port" => "%{[source_ip][1]}" }
|
||||
remove_field => ["source_ip"]
|
||||
}
|
||||
}
|
||||
|
||||
# Tanner
|
||||
|
|
|
|||
11
docker/elk/logstash/dist/logstash.conf
vendored
11
docker/elk/logstash/dist/logstash.conf
vendored
|
|
@ -698,12 +698,15 @@ filter {
|
|||
remove_field => ["event_timestamp"]
|
||||
}
|
||||
mutate {
|
||||
rename => {
|
||||
"source_ip" => "src_ip"
|
||||
"destination_ip" => "dest_ip"
|
||||
}
|
||||
split => ["source_ip", ":"]
|
||||
rename => { "destination_ip" => "dest_ip" }
|
||||
add_field => { "dest_port" => "5060" }
|
||||
}
|
||||
mutate {
|
||||
add_field => { "src_ip" => "%{[source_ip][0]}" }
|
||||
add_field => { "src_port" => "%{[source_ip][1]}" }
|
||||
remove_field => ["source_ip"]
|
||||
}
|
||||
}
|
||||
|
||||
# Tanner
|
||||
|
|
|
|||
|
|
@ -188,6 +188,10 @@ function fuRESTORE () {
|
|||
fi
|
||||
echo "### Restoring T-Pot config file .env"
|
||||
tar xvf $myARCHIVE .env -C $HOME/tpotce >/dev/null 2>&1
|
||||
# Backup file (.env) contains a record of the TPOT_VERSION that is used in docker-compose commmands.
|
||||
# We should upgrade the version in this file after restoring the backup.
|
||||
newVERSION=$(cat version)
|
||||
sed -i 's/^TPOT_VERSION=.*/TPOT_VERSION=${newVERSION}/' $HOME/tpotce/.env
|
||||
}
|
||||
|
||||
################
|
||||
|
|
|
|||
Loading…
Reference in a new issue