This file contains hidden or 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
//@see https://www.npmjs.com/package/archiver | |
var archiver = require('archiver') | |
var http = require('http'); | |
http.createServer(function(request, response) { | |
var archiver = archiver('zip') | |
archiver.pipe(response) | |
response.setHeader('Content-type', 'application/zip') | |
response.setHeader('Content-disposition', 'attachment; filename=file_name.zip'); |
This file contains hidden or 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 namespace App\Providers; | |
use Illuminate\Validation\Factory as Validator; | |
use Illuminate\Support\ServiceProvider; | |
class ValidatorServiceProvider extends ServiceProvider | |
{ | |
/** | |
* Bootstrap the application services. |
This file contains hidden or 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 | |
/** | |
* There is a bug in filternet. If you connect to yahoo.com:80 | |
* and type `GET / HTTP/1.1\r\nHost: msn.com\r\n\r\n` you can see msn.com page! | |
* | |
* | |
* How to run: | |
* $ php filtering_bug.php <domain-address> <http-host-value> | |
* | |
* - <domain-address> : connecting via tcp |
This file contains hidden or 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 | |
/** | |
* There is a bug in filternet (filtering system of Iran). | |
* if you wait 2 seconds or more | |
* before sending http request headers, you can bypass | |
* filternet! Also you should use LF | |
* instead of CRLF (like netcat). | |
* | |
* | |
* How to run: |
This file contains hidden or 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
/** | |
* There is a bug in filternet (filtering system of Iran). | |
* if you wait 3 seconds or more | |
* before sending http request headers, you can bypass | |
* filternet! Also you should use LF | |
* instead of CRLF (like netcat). | |
* | |
* | |
* How to run: | |
* $ node filternet_bypass_bug.js <domain-address> <http-host-value> <wait-time> <path> |
This file contains hidden or 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 | |
bcscale(70); | |
function factorial($number){ | |
$factorial = 1; | |
while($number > 0){ | |
$factorial = bcmul($factorial, $number); |
This file contains hidden or 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
make_alias () | |
{ | |
echo "alias $1=\"cd `pwd`\"" >> ~/.bash_profile | |
source ~/.bash_profile | |
} |
This file contains hidden or 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
'use strict'; | |
// Proxy-Dns: https://www.npmjs.com/package/proxy-dns | |
let ProxyDNS = require('proxy-dns').default; | |
const dns = new ProxyDNS({ | |
ttl: 600 | |
}); | |
dns.use(function* (next) { |
This file contains hidden or 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 | |
namespace App\Http\Middleware; | |
use Closure; | |
use Illuminate\Routing\Middleware\ThrottleRequests; | |
class OpenshiftThrottleRequests extends ThrottleRequests | |
{ | |
/** |
This file contains hidden or 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
Rank | Site | SNI | HTTP | DNS | |
---|---|---|---|---|---|
1 | google.com | open | open | open | |
2 | facebook.com | blocked | blocked | blocked | |
3 | youtube.com | blocked | blocked | blocked | |
4 | baidu.com | open | open | open | |
5 | yahoo.com | open | open | open | |
6 | amazon.com | open | open | open | |
7 | wikipedia.org | open | open | open | |
8 | qq.com | open | open | open | |
9 | google.co.in | open | open | open |
OlderNewer