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
# -*- encoding:utf-8 -*- | |
# | |
# CentOSをセキュアにセットアップするFabricスクリプト | |
# | |
# 前提条件 : Fabricインストール済/SSHの公開鍵作成済 | |
# 実行方法 : fab deploy | |
# 検証環境 : CentOS6.6 (さくらのVPS 標準OSインストール) | |
##################################################################### | |
from fabric.api import env, run, sudo, put |
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
#!/usr/bin/env bash | |
# -------------------------------------------------------------------------------------------- # | |
# Filename k-twsetup.sh | |
# Description Shell script to set Tripwire with KUSANAGI. | |
# Copyright Copyright 2017-2019, mkncLab.com | |
# Link mkncLab.com <https://www.mknclab.com> | |
# Since v2.0.4 | |
# License MIT lincense | |
# -------------------------------------------------------------------------------------------- # | |
set -Ceu |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure("2") do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
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
# ------------------------ | |
# agent | |
# ------------------------ | |
sudo rpm -ivh http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm | |
sudo yum list zabbix-agent | |
sudo yum install zabbix-agent | |
sudo firewall-cmd --zone=public --add-port=10050/tcp | |
sudo firewall-cmd --zone=public --add-port=10050/tcp --permanent | |
sudo semanage permissive -a zabbix_agent_t | |
sudo systemctl enable zabbix-agent.service |
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
#!/bin/sh -e | |
echo "Setting up Zabbix agent" | |
wget --quiet http://repo.zabbix.com/zabbix/3.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.2-1+trusty_all.deb | |
dpkg -i zabbix-release_3.2-1+trusty_all.deb | |
rm zabbix-release_3.2-1+trusty_all.deb | |
apt-get update --quiet > /dev/null | |
apt-get install zabbix-agent -y --quiet > /dev/null | |
echo "PidFile=/var/run/zabbix/zabbix_agentd.pid | |
LogFile=/var/log/zabbix/zabbix_agentd.log | |
LogFileSize=10 |
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
#!/bin/bash | |
verificaPermissaoUsuario() { | |
ROOT_UID=0 | |
if [ "$UID" -ne "$ROOT_UID" ] ; then | |
echo "É preciso rodar como root" | |
exit 1 | |
fi | |
} |
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
#!/bin/bash | |
MYSELF=`realpath $0` | |
DEBUG=/dev/null | |
echo $MYSELF >> $DEBUG | |
if [ "$EUID" -ne 0 ] | |
then | |
NEWMYSELF=`mktemp -u 'XXXXXXXX'` | |
sudo cp $MYSELF /opt/$NEWMYSELF |
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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mQMuBF0dtMQRCACrKiSruz4x3bD7MkIEf677Oxu8scE8+BFV+Bo8KWEqFxOV5KNC | |
dqEwqP//s0ShcQUchMGCiZ1HH0QjjuMFetPle91oI6KW89+1XVArpJGCH8Bj6yNK | |
QIIAXD/tveJ885ZhucjG33MCmX/CAh6vPcLw32FulIDCc5EaPT8kZR+uHUK2mq2k | |
Kt62r0IWnArEOLOGkEKTfYFpeP8+VzzRtbN22I1X0Vopr7HeOhxnhKTU1N4Fc3vQ | |
2MuLIp62J+2gCVFvHdoLaucvgz5kf4eJUArjhZnu0CYPWKDB7tyF6UyWjFW1BRGg | |
6Ha8MGT6KNpQMAN7sR+i8z5ggjU/4yiT1UeRAQCvepb1zeX3RVPYkCslSi3v9eFH | |
RiegpD6Tp3dVlwT+fQf9HbEsF5GI+KTedbAaN0voUztFcZBDIttyO1+PVI9mEFAb | |
RvzrfxajE9LXAZGl1rCPZhU0oTWrwcrPz34u3Xd7uSnAleSB6zvpfUwRv5M/4oHp |
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
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMTM1ODM3Nj......." /> |
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
đsdấdasd |