http://www.siemens-greenplus.com/2014ssip/
此漏洞已回報。
Facebook 登入竟然直接寫在前端,登入後把資料寫在 hidden 的 input 欄位,按下投票就把 hidden input 的 value 丟給後端直接建立投票資料 Orz。
| Pow(der) + Apache + MySQL + PHP on Mac OS X | |
| =========================================== | |
| * 參考 [http://bentoncreation.com/post/43279873217/pow-awesomeness-for-php-static-sites](http://bentoncreation.com/post/43279873217/pow-awesomeness-for-php-static-sites)。 | |
| ## [Pow](http://pow.cx/) | |
| ``` | |
| curl get.pow.cx | sh |
| #include <stdlib.h> | |
| #include <stdio.h> | |
| #include <math.h> | |
| typedef struct bTreeNode *bTreePointer; | |
| typedef struct bTreeNode { | |
| char data; | |
| bTreePointer leftChild, rightChild; | |
| } bTreeNode; |
| <?php | |
| // 請求 | |
| if (defined('STDIN')) { | |
| $IP = $argv[1]; | |
| } else { | |
| $IP = $_GET['ip']; | |
| } | |
| // 領表單 |
| <Files ~ "(^\.git|.swp$)"> | |
| Order allow,deny | |
| Deny from all | |
| Satisfy all | |
| </Files> |
| # COMMANDS FOR COMPRESS AND DECOMPRESSESING | |
| # Usage: | |
| # mk* OutputFileName.* InputDirName | |
| # do* InputFileName | |
| # un* InputFileName.* | |
| # | |
| # tar | |
| alias mktar='tar cvf' | |
| alias untar='tar xvf' | |
| # gz |
http://www.siemens-greenplus.com/2014ssip/
此漏洞已回報。
Facebook 登入竟然直接寫在前端,登入後把資料寫在 hidden 的 input 欄位,按下投票就把 hidden input 的 value 丟給後端直接建立投票資料 Orz。
| brew install https://raw.github.com/cbguder/homebrew/53ea33bab5372ea74117ace8c44aa7ea988e93c2/Library/Formula/pngout.rb |
| # EditorConfig helps developers define and maintain consistent | |
| # coding styles between different editors and IDEs | |
| # http://EditorConfig.org | |
| # top-most EditorConfig file | |
| root = true | |
| # Unix-style newlines with a newline ending every file | |
| [*] | |
| charset = utf-8 |
| // ----- z-index ----- // | |
| @mixin z-index($element, $elements: $zIndex-elements, $base: 10) { | |
| $index: index($elements, $element); | |
| @if $index == false { | |
| @warn "There is no item "#{$element}" in the z-index list, please choose one of: #{$elements}'"; | |
| } @else { | |
| z-index: index($elements, $element) + $base; | |
| } | |
| } |
After a couple of days of trying to get ipkg woking on my DS214 I found this article by trepmag. It is written for the DS213j, but it’s been working for me and others for the DS214 too.
I have done some minor changed to clarify some things, but if you are a Linux guy (unlike me) my changes might be of no use to you.