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
| sfdfsdf | |
| sf | |
| sdf | |
| sdf | |
| sdf | |
| sdf |
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
| <html> | |
| <!-- This is a very simple Proof of Concepts of just one of the possible attacks | |
| described at https://bugzilla.mozilla.org/show_bug.cgi?id=1487081 | |
| You can give it a try by following the instruction at | |
| https://dev.to/shamar/the-meltdown-of-the-web-4p1m | |
| Just please, remember to restore your /etc/hosts after. | |
| --> | |
| <head> | |
| <script type="text/javascript"> |
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
| ## AWS | |
| # from http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html#instancedata-data-categories | |
| http://169.254.169.254/latest/user-data | |
| http://169.254.169.254/latest/user-data/iam/security-credentials/[ROLE NAME] | |
| http://169.254.169.254/latest/meta-data/iam/security-credentials/[ROLE NAME] | |
| http://169.254.169.254/latest/meta-data/ami-id | |
| http://169.254.169.254/latest/meta-data/reservation-id | |
| http://169.254.169.254/latest/meta-data/hostname | |
| http://169.254.169.254/latest/meta-data/public-keys/0/openssh-key |
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
| ## 安裝語系檔 | |
| `$ sudo locale-gen "en_US.UTF-8"` | |
| ## 重新設定語系檔 | |
| `$ sudo dpkg-reconfigure locales` | |
| ## 設定檔 |
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 | |
| $realm = 'Restricted area'; | |
| //user => password | |
| $users = array('admin' => 'mypass', 'guest' => 'guest'); | |
| if (empty($_SERVER['PHP_AUTH_DIGEST'])) { | |
| header('HTTP/1.1 401 Unauthorized'); | |
| header('WWW-Authenticate: Digest realm="'.$realm. |
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
| #!/bin/bash | |
| while true | |
| do | |
| token='token_only' | |
| curl -s https://zeroday.hitcon.org/vulnerability/disclosed/page/1 | grep vu-l-data-titl | tr -d $'\t' | \ | |
| while read line | |
| do | |
| link=`echo $line | grep -oP '<a\ href="\K.*(?=")'` | |
| title=`echo $line | grep -oP '<a.*">\K.*(?=</a)'` |