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
# KMS流れ | |
# 暗号化 | |
# 1. masterkeyIdを使ってdatakeyを生成 | |
# generate_data_key | |
# 2. datakeyのPlainTextをキーにしてデータをEncrypt | |
# Pycryptoとか | |
# 3. datakeyのCiphertextBlobのBase64とEncryptoしたデータのBase64は保存 | |
# 他のキーは破棄 | |
# 復号化 |
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
# stdlib | |
import re | |
import copy | |
# 3rd party | |
import requests | |
# project | |
from checks import AgentCheck |
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
netstat -tan|grep "9200"|awk '{print $5}'|cut -d : -f4|sort -n |uniq -c |