2021-11-01から1ヶ月間の記事一覧

centos 7 yum security update

CentOS7 での yum –security update 事情 « LANCARD.LAB|ランカードコムのスタッフブログ

EC-CUBE バージョン確認

EC-CUBE3.0.x系 管理画面にログインし、設定 - システム情報設定 - システム情報 で確認できます。 ソースには src/Eccube/Common/Constant.php で定義されています。 /** * EC-CUBE VERSION. */ const VERSION = '3.0.15'; EC-CUBE バージョン確認方法 - Pu…

vuls cpe cpenames

VulsでCpeNamesを使う - Qiita 2017https://github.com/vulsio/go-cpe-dictionary How to search CPE name by application name $ sqlite3 ./cpe.sqlite3 'select cpe_uri from categorized_cpes' | peco https://github.com/vulsio/go-cpe-dictionary#how-t…

vuls wordpress

https://vuls.io/docs/ja/usage-scan-wordpress.html /bin/bash -c /usr/local/bin/wp cli *, /bin/bash -c /usr/local/bin/wp core *, /bin/bash -c /usr/local/bin/wp theme *, /bin/bash -c /usr/local/bin/wp plugin * FutureVuls Document sudo -u (osU…

git

コミットメールアドレスを非公開にする TL;DR GitHub の Settings - Emails にある Keep my email addresses private を有効化 GitHub の Settings - Emails にある Block command line pushes that expose my email を有効化 Git の設定の user.email を [I…

.bc.googleusercontent.com

結局の所.bc.googleusercontent.comから来るアクセスはGoogleのリソースを使っている、ただの個人ユーザーでありGoogleとは全く関係ないアクセスでした。 .bc.googleusercontent.comはスパム?アクセス禁止方法を解説 | PHPラボ

vuls FreeBSD

pkgのバージョンは古いのでソースコンパイル 2021/11 go-cve-dictionary VulsをFreeBSD Jailに仕込んでみる - Qiita 2017go-cve-dictionary-0.5.5 $ go-cve-dictionary fetchjvn -years 2021 EROR[11-12|13:44:21] Failed to fetch JVN: [Failed to validate…

go 言語 golang

変数 Go言語の変数定義 - Qiita a := "hoge" "変数aを定義して、そこに値を代入してあげる" 【Go】コロンイコール(:=)って何? 2020 テスト Go の Test に対する考え方 - Qiita 2013 実行 go test go test -run でテストが行えます。 go test packagePath # c…

ssh controlmaster connections

Memo/Linux/ssh - DEX Lab This works for me using just the socket file for the control master: $ ssh -o ControlPath=~/.ssh/ -O check Example Here's an example where I've already established a connection to a remote server: $ ssh -o ControlP…

nginx アクセスログ ホスト名

"$request" を "$request_method $scheme://$host$request_uri $server_protocol" にする If you want to log the full requested url, then my method is log_format main '$http_x_forwarded_for - $remote_user [$time_local] ' '"$request_method $schem…

vuls

https://vuls.io/https://github.com/future-architect/vulsVuls〜OSSの脆弱性検知ツール〜 | OSSのデージーネット巷でナウな脆弱性スキャンツールVulsを試してみた!|【技業LOG】技術者が紹介するNTTPCのテクノロジー|【公式】NTTPC 2018CentOS7 Vulsのイ…

nginx 特定IPを拒否

リバースプロキシ越しのnginxで国外IPアドレスからのアクセス拒否 - Qiita 2017 チュートリアル Nginx - IP アドレス一覧をブロックする [ ステップ バイ ステップ ] conf.d/denyip.conf deny 192.168.1.0/24; deny 192.168.2.102; allow all;

mysql スロークエリ

スロークエリの確認方法:MySQL編 - pTune.jp 2020

php 匿名関数

https://www.php.net/manual/ja/function.create-function.phpPHPで無名関数っぽく・・・orz(create_functionを楽にしたいだけなのに) | 株式会社オルタ