This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Convert local time to time format for twitter API. | |
* | |
* @param timeStamp Time format for twitter API. | |
* @return Local time. Depends on the regional settings of the server and time. | |
*/ | |
public static function convertLocalTime($timeStamp) { | |
if (isset($timeStamp) === FALSE) return FALSE; | |
sscanf($timeStamp, "%s %s %d %s %s %d", $week, $month, $day, $time, $gmt, $year); | |
$rcf2822 = "{$week}\054\040{$day}\040{$month}\040{$year}\040{$time}\040{$gmt}"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once('../../MySQL.php'); | |
error_reporting(-1); | |
$upload = new upload(); | |
class upload { | |
public $file; | |
public $ext; | |
public $thumb; | |
private $date; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once('../../php_conf.inc'); | |
require_once('../../resource/MySQL/MySQL.php'); | |
require_once('../../resource/tmhOAuth/tmhOAuth.php'); | |
require_once('../../resource/tmhOAuth/tmhUtilities.php'); | |
$upload = new upload(); | |
/** | |
* コンテンツアップロード | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script>alert('gist XSS')</script> | |
<script>alert(location.href)</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mkdir ~/Desktop/tmp | |
cd ~/Desktop/tmp | |
git clone https://github.com/rbsec/sslscan.git | |
cd sslscan | |
wget https://www.openssl.org/source/openssl-1.0.2d.tar.gz | |
tar -xzvf openssl-1.0.2d.tar.gz | |
mv openssl-1.0.2d.tar.gz openssl | |
xcode-select --install | |
cd openssl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Web; | |
namespace CustomHeader | |
{ | |
/// <summary> | |
/// Add Custom Header | |
/// </summary> | |
public class Class1 : IHttpModule | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<system.webServer> | |
<modules> | |
<add name="CustomHeader" type="CustomHeader.Class1" /> | |
</modules> | |
</system.webServer> | |
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<style> | |
h3:after { | |
content: 'red'; | |
color: red; | |
} | |
h4:after { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Web; | |
using System.Text.RegularExpressions; | |
namespace localhostBlocker | |
{ | |
/// <summary> | |
/// localhost access blocker | |
/// </summary> | |
public class Blocker : IHttpModule |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Web; | |
using System.Text.RegularExpressions; | |
namespace AZBlocker | |
{ | |
/// <summary> | |
/// *.azurewebsites.net access blocker | |
/// </summary> | |
public class Class1 : IHttpModule |
OlderNewer