- 必要な情報を得られるだけ得る
- トレーサビリティは高めておく (事前準備も可能な限りしておく)
- Web/Appおよびインフラ調査
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
# -*- coding: utf-8 -*- | |
# 3/8 と3/5の数値を * 7掛けして表示させる | |
# 合計を出す | |
# 平均値を出す | |
access_num = { '3/8': 1028, '3/5': 1542} | |
avg = 0 | |
sum = 0 | |
num = 7 |
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 : | |
# サンプルです。このままでは動かないところがあります。 | |
require 'net/http' | |
VAGRANTFILE_API_VERSION = "2" | |
@vb_gui = false | |
@vb_memory = 2048 | |
@vb_cpus = 1 |
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
--- | |
- name: Ansible version check | |
command: ansible --version | |
register: ansible_version | |
delegate_to: 127.0.0.1 | |
changed_when: False | |
- block: | |
- name: Read group_vars and host_vars. In addition, add the secret files. | |
include_vars: ../{{ item.group_or_host }}_vars/{{ item.type }}.yml |
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 | |
set -m | |
hostname="ns1" | |
domain="example.local" | |
target_dns="dns-unbound01" | |
query_count=3 | |
forks=200 |
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
// arpで拾ってきたIPと外部へ疎通確認を行います | |
// 調整なしのJenkins master で スクリプトコンソールから実行すると Timeout するかも | |
def arp = "arp -a".execute().text | |
ArrayList queue = ['\\? \\(','\\).*'] | |
String ext_target = "example.com" | |
for ( i in queue) { | |
arp = arp.replaceAll(/${i}/, '') | |
} |
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
README = 'README.md' | |
unless File.exist? README | |
puts 'Not found README file' | |
puts "Creating #{README}" | |
print = <<-EOS.gsub(/^ {,4}/, "## ").gsub(/\n/, "\n\n\n") | |
Synopsis | |
Requirements | |
Notice | |
Code Example | |
Installation |
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
# ---------------------- | |
# installing dnsmasq and enable daemon | |
# ---------------------- | |
brew install dnsmasq | |
sudo cp -v $(brew --prefix dnsmasq)/homebrew.mxcl.dnsmasq.plist /Library/LaunchDaemons | |
# ---------------------- | |
# adding resolver for vbox domain | |
# ---------------------- | |
[ -d /etc/resolver ] || sudo mkdir -v /etc/resolver | |
sudo bash -c 'echo "nameserver 127.0.0.1" > /etc/resolver/vbox' |
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
# aws-IAM-STS.sh | |
## Description | |
This tool is AWS STS (AWS Security Token Service) Wrapper for safety accesss control. | |
Example, developmnent or test access. | |
By using this, it becomes possible to test safely, | |
for example by wrapping the local development environment at the weak IAM authority. | |
[AWS-Doc/STS/ja-JP](http://docs.aws.amazon.com/ja_jp/IAM/latest/UserGuide/id_credentials_temp.html) |
OlderNewer