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 / kalija.txt
Last active October 18, 2025 14:09
Kali日本語化メモ
# 最新化(完了後再起動)
$ sudo apt-get update #パッケージリストの更新
$ sudo apt-get upgrade #インストールされているパッケージの更新
$ sudo apt-get autoremove #不要と判断されたパッケージは削除
$ sudo shutdown -r now # 再起動
$ sudo apt install task-japanese task-japanese-desktop
$ sudo shutdown -r now # 再起動
@akilab
akilab / remote_desktop.txt
Created December 17, 2023 09:18
LinuxからWindowsへのRemote Desktop
xfreerdp /u:username /p:password /f +fonts +clipboard /v:10.10.10.10:3389
@akilab
akilab / find.txt
Last active November 13, 2023 05:50
Record things that are easy to forget
find / -type f -perm -u=s -exec ls -l {} \; 2> /dev/null
@akilab
akilab / Program.cs
Created June 21, 2020 13:16
ZIPファイル内のテキストを読み込む
using System;
using System.IO;
using System.IO.Compression;
namespace ZipReader
{
internal class Program
{
public static void Main(string[] args)
{
@akilab
akilab / Memo.txt
Last active December 13, 2019 09:41
dotnet coreでのWindowsサービスの開発(作成途中)
.NET Core 3.1でのWindowsサービスの作成方法を調べたので記録しておく。
.NET Coreでは、WorkerServiceというものを使うらしい
詳しくはまだわからない。
Riderでは、[Worker Service]とテンプレートが用意されている。
基本的にはこれを使えばよいと思う。
NuGetで、[Microsoft.Extensions.Hosting.WindowsServices]をインストールする必要がある。
これを入れておかないと、UseWindowsServices()メソッドが呼び出せない。
@akilab
akilab / certificate.txt
Created July 30, 2019 08:29
自己署名証明書
# 秘密鍵作成
openssl genrsa 2048 > private.key
# CSR作成
openssl req -new -key private.key > server.csr
# 色々聞かれる
# CNは必須
# 自分で署名
openssl x509 -req -days 3650 -signkey private.key < server.csr > server.crt
@akilab
akilab / Debian9_GuestAdditions_install
Last active May 4, 2019 16:34
Debian9にVirtualBoxのGuestAdditionsを入れる際に必要なパッケージ
# 引用URL
https://www.hiroom2.com/2017/07/02/debian-9-vbox-guest-additions-ja/
$ sudo apt install -y linux-headers-amd64
$ sudo apt build-dep -y linux
# 上記だけだとDebian9.8でエラー
$ sudo apt install -y build-essential linux-headers-`uname -r` dkms
@akilab
akilab / godmode.txt
Created March 1, 2019 04:05
GodMode memo
# Windows 10
1. フォルダ作成
2. GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}
# Windows 7
1.フォルダ作成
2. GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}
@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)
@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