Skip to content

Instantly share code, notes, and snippets.

View akilab's full-sized avatar

akilab akilab

  • Japan/Osaka
  • 15:27 (UTC +09:00)
View GitHub Profile
@akilab
akilab / notouch.sh
Created November 19, 2013 06:02
2分間アクセスが無いファイルを削除したかっただけ
#!/bin/sh
DIR="/var/tmp/"
FILE="noaccess.dat"
CMD="find ${DIR} -name ${FILE} -cmin 2 -delete"
if [ -f "${DIR}${FILE}" ];then
$CMD
fi
@akilab
akilab / VisalStudioOnlineDeleteProject
Created March 21, 2014 03:47
VisualStudioオンラインからプロジェクト削除
.\TFSDeleteProject.exe /force /q /collection:https://[AccountName].visualstudio.com/DefaultCollection "TFSProjectName"
#場所
#C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE
#PowerShellでのpwdはGet-Location
@akilab
akilab / 日本語入力追加
Last active April 10, 2016 04:44
Kali 2.0 VM image 日本語化
apt-get update
apt-get upgrade
apt-get install -y uim uim-anthy
apt-get install -y fonts-ipafont
# 設定パネルのキーボードから日本語を追加
@akilab
akilab / Armitage起動
Created August 22, 2015 10:44
Kali 2.0 Metasploit
Postgres起動
#service postgresql start
RPC起動
#msfrpcd -U msf -P test -f -S -a 127.0.0.1
Armitage起動
#armitage
これで起動できるはず
@akilab
akilab / command.txt
Last active October 18, 2015 08:44
Kali Linux 2.0 日本語化
apt-get update
apt-get upgrade
apt-get install uim uim-anthy
apt-get install fonts-ipafont
再起動
設定⇒言語追加⇒再起動
@akilab
akilab / rpcstart.sh
Created October 18, 2015 08:51
Armitage起動
#!/bin/sh
msfrpcd -f -U msf -P test -t Basic
@akilab
akilab / tasks.json
Created April 16, 2016 06:14
VisualStudio Code でのGoの実行
{
"version": "0.1.0",
"command": "cmd",
"isShellCommand": true,
"showOutput": "silent",
"args": ["/C"],
"tasks": [
{
"taskName": "Build",
@akilab
akilab / debug_stripped.txt
Created August 21, 2016 14:08
Goの実行ファイルのデバッグ情報を削除するためのオプション
# go build -ldflags "-S" -o example.exe
# 最適化無効
# go build -gcflags "-N -l" -o example.exe
@akilab
akilab / AttachmentProcessInMemory.py
Created October 29, 2018 05:41
PythonのOutlook添付ファイルをメモリ内でごにょごにょするために調査した結果
# coding: utf-8
"""
Anaconda環境を想定
参考URL:
https://docs.microsoft.com/en-us/office/vba/api/outlook.olattachmenttype
https://docs.microsoft.com/en-us/office/vba/outlook/concepts/attachments/modify-an-attachment-of-an-outlook-email-message
https://qiita.com/pashango2/items/5075cb2d9248c7d3b5d4#memoryview%E3%81%A7bytes%E3%81%AB%E5%A4%89%E6%8F%9B
"""
import win32com.client
import os.path
@akilab
akilab / mail.py
Created January 18, 2019 01:50
PythonでOutlookの指定したアカウントの下に下書きを作る
# coding: utf-8
import sys
import win32com.client
import pythoncom
_VERSION_ = 'v0.1.0'
def show_version():
print("=" * 20)