Skip to content

Instantly share code, notes, and snippets.

View gocha's full-sized avatar

gocha gocha

View GitHub Profile
@gocha
gocha / NetServiceRepository.Windows.cs
Last active February 15, 2022 10:48
winsock2: Get port number and other information from /etc/services by service name (public domain)
// サービス名を使用して /etc/services からポート番号などを取得する
//
// Using C# to reference a port number to service name - Stack Overflow
// https://stackoverflow.com/questions/13246099/using-c-sharp-to-reference-a-port-number-to-service-name
//
// AccessViolationException when calling Marshal.PtrToStructure - Stack Overflow
// https://stackoverflow.com/questions/3618154/accessviolationexception-when-calling-marshal-ptrtostructure
using System;
using System.Net;
@gocha
gocha / chdpm_bruteforce.hsp
Last active December 13, 2022 17:05
chdpm 命令の総当り実行による暗号化DPMの読み込み (HSP 3.7 β4)
; HSP 3.7 β4 実行ファイルから切り出した暗号化済み DPM からファイルを保存する
#bootopt notimer 1
dialog "dpm", 16
if stat == 0: end
dpmpath = refstr
dpmkey = 1
exist dpmpath
@gocha
gocha / SFC Ganbare Goemon 3 TAS Route Plan.md
Last active February 11, 2024 15:43
SFC Ganbare Goemon 3: TAS Route Plan.md