View ValidatorServiceProvider.php
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 namespace App\Providers; | |
use Illuminate\Validation\Factory as Validator; | |
use Illuminate\Support\ServiceProvider; | |
class ValidatorServiceProvider extends ServiceProvider | |
{ | |
/** | |
* Bootstrap the application services. |
View filtering_bug.php
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 | |
/** | |
* 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 |
View filternet_bypass_bug.php
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 | |
/** | |
* 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: |
View filternet_bypass_bug.js
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
/** | |
* 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> |
View answer-possibility.php
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 | |
bcscale(70); | |
function factorial($number){ | |
$factorial = 1; | |
while($number > 0){ | |
$factorial = bcmul($factorial, $number); |
View make_alias.sh
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
make_alias () | |
{ | |
echo "alias $1=\"cd `pwd`\"" >> ~/.bash_profile | |
source ~/.bash_profile | |
} |
View dns-server.js
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
'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) { |
View OpenshiftThrottleRequests.php
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 | |
namespace App\Http\Middleware; | |
use Closure; | |
use Illuminate\Routing\Middleware\ThrottleRequests; | |
class OpenshiftThrottleRequests extends ThrottleRequests | |
{ | |
/** |
View filternet-14-03-2016-top6-5k.csv
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
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 |
View CustomApplication.php
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 | |
namespace App; | |
use Illuminate\Foundation\Application; | |
class CustomApplication extends Application | |
{ | |
/** | |
* Get the path to the public / web directory. | |
* |
OlderNewer