Skip to content

Instantly share code, notes, and snippets.

@hasegawayosuke
hasegawayosuke / CustomeRule.js
Last active August 17, 2020 05:58
Hide CSS files of Fiddler tracif
// Open Fiddler and Choose "Rules" menu, click "Customize Rules..." and add this code to CustomRule.js
class Handlers
{
// ....
public static RulesOption("Hide CSS")
BindPref("fiddlerscript.rules.HideCSS")
var m_HideCSS: boolean = false;
// ....
static function OnBeforeResponse(oSession: Session) {
@hasegawayosuke
hasegawayosuke / rot13.js
Created October 30, 2013 07:12
rot13 bookmarklet
(function(s){s=prompt("Enter text");if(s===null)return;alert(s.replace(/(([a-m])|([n-z])|([A-M])|([N-Z]))/g,function(){var a=arguments,s=String.fromCharCode;return(a[2]&&s(a[2].charCodeAt(0)+13))||(a[3]&&s(a[3].charCodeAt(0)-13))||(a[4]&&s(a[4].charCodeAt(0)+13))||(a[5]&&s(a[5].charCodeAt(0)-13))}))})()
// C:\>CScript barusu.js
var config = {
user : "hasegawayosuke", // your twitter id
pass : "yourpassword", // your password
text : "バルス",
at : new Date( "2013/8/2 23:22:45" )
};
var ie = new ActiveXObject( "InternetExplorer.Application" );
@hasegawayosuke
hasegawayosuke / httpstatus.js
Created February 21, 2013 06:26
show http status
javascript:(function(r,k,s,c){c={100:'Continue',101:'Switching Protocols',102:'Processing',200:'OK',201:'Created',202:'Accepted',203:'Non-Authoritative Information',204:'No Content',205:'Reset Content',206:'Partial Content',207:'Multi-Status',208:'Already Reported',300:'Multiple Choices',301:'Moved Permanently',302:'Found',303:'See Other',304:'Not Modified',305:'Use Proxy',307:'Temporary Redirect',400:'Bad Request',401:'Unauthorized',402:'Payment Required',403:'Forbidden',404:'Not Found',405:'Method Not Allowed',406:'Not Acceptable',407:'Proxy Authentication Required',408:'Request Timeout',409:'Conflict',410:'Gone',411:'Length Required',412:'Precondition Failed',413:'Request Entity Too Large',414:'Request-URI Too Large',415:'Unsupported Media Type',416:'Request Range Not Satisfiable',417:'Expectation Failed',418:'I\'m a teapot',422:'Unprocessable Entity',423:'Locked',424:'Failed Dependency',425:'No code',426:'Upgrade Required',428:'Precondition Required',429:'Too Many Requests',431:'Request Header Fields Too
' Open shell:favorites folder from Explorer
' and save this file at there
Dim wmp
Dim drives
Dim i
Set wmp = CreateObject( "WMPlayer.OCX" )
Set drives = wmp.cdromCollection
For i = 0 To drives.Count - 1
drives.Item( i ).Eject
@hasegawayosuke
hasegawayosuke / shellexecute.js
Created March 21, 2012 03:46
sample usage of npwin32
function foo(){
var plugin = document.getElementById( "p" );
var ShellExecute = plugin.import( "shell32.dll", "DWORD ShellExecuteW( DWORD, LPCWSTR, LPCWSTR, DWORD, DWORD, INT )" );
var NULL = 0;
var HWND_DESKTOP = 0;
var SW_SHOWDEFAULT = 10;
var hInst;
if( ShellExecute ){
@hasegawayosuke
hasegawayosuke / 403.psgi
Created February 12, 2012 05:11
403 Forbidden Session validation failed.
use strict;
use warnings;
use utf8;
use File::Spec;
use File::Basename;
use lib File::Spec->catdir(dirname(__FILE__), 'extlib', 'lib', 'perl5');
use lib File::Spec->catdir(dirname(__FILE__), 'lib');
use Plack::Builder;
use Amon2::Lite;
@hasegawayosuke
hasegawayosuke / Chapter_3:_How_to_Start_a_Chapter.txt
Created January 18, 2012 02:42
Chapter Handbook/Chapter 3: How to Start a Chapter
https://www.owasp.org/index.php/Chapter_Handbook/Chapter_3:_How_to_Start_a_Chapter
Start-up Information
以下の情報がOWASP Chapterを開始/再始動させるための申し込みにおいて必要です。
- Chapterを創設する人のリスト。それぞれの創設メンバーが以下を提出しなければいけません。
- 各々の背景または経歴に関する記述、および
- 彼/彼女がOWASPリーダーでありたい理由についての記述
- 新Chapterがカバーする地理的な範囲。Chapter名は提供される都市または地域の周辺を表すものでなければなりません。
@hasegawayosuke
hasegawayosuke / OWASP_Chapter.txt
Created January 17, 2012 09:29
OWASP Chapter
https://www.owasp.org/index.php/Category:OWASP_Chapter をざっくり日本語訳。
OWASP Chapter
OWASP Chapters プログラムは、世界中のアプリケーションセキュリティの、ローカルなディスカッションの発展に寄与します。我々の Local Chapter は誰に対してもオープンでありフリーです。販売活動は禁止されていますが、有用なアプリケーションセキュリティ情報を提供できるベンダは歓迎しています。通常、Local Chaptersは1ヶ月から4ヶ月ごとにミーティングを行い、重要なアプリケーションセキュリティを議題としたディスカッションとプレゼンテーションを行います。ほとんどのOWASPプレゼンテーションは誰でも利用することができます。
Joining a Chapter
Local Chapterに参加するには、適切なメーリングリストに参加し自己紹介をするだけです。また、[OWASPのポータルページ]や[OWASPコミュニティページ]を見ることで、あなたの参加する Local Chapter の今後のミーティングを見つけることができます。メーリングリストの一覧は[こちら]
# wget http://bellard.org/jslinux/root.bin
# mkdir mnt
# mount -o loop root.bin mnt
# dd if=/dev/zero of=/tmp/image bs=1k count=4096
# mke2fs -m 0 -i 2000 /tmp/image
# mkdir mnt2
# mount -t ext2 -o loop /tmp/image mnt2
# cp -dpR mnt/* mnt2/
# umount /mnt2