目前整个互联网环境,被破坏最严重地部分,是 Web 服务体验。当直接破坏难以实现时,就会从流程链的上下游着手,如:DNS 污染。
其它地互联网服务类型,例如:邮件,可能小部分会受到 Web 服务上下游破坏地余震,但整体上基本不受影响。
| #!/usr/bin/env python | |
| """ | |
| Very simple HTTP server in python (Updated for Python 3.7) | |
| Usage: | |
| ./dummy-web-server.py -h | |
| ./dummy-web-server.py -l localhost -p 8000 | |
| Send a GET request: |
| <?php | |
| /** | |
| * Scan the api path, recursively including all PHP files | |
| * | |
| * @param string $dir | |
| * @param int $depth (optional) | |
| */ | |
| protected function _require_all($dir, $depth=0) { | |
| if ($depth > $this->max_scan_depth) { |
| git config --global https.proxy http://127.0.0.1:1080 | |
| git config --global https.proxy https://127.0.0.1:1080 | |
| git config --global --unset http.proxy | |
| git config --global --unset https.proxy | |
| npm config delete proxy |
| function createUUID() { | |
| // http://www.ietf.org/rfc/rfc4122.txt | |
| var s = []; | |
| var hexDigits = "0123456789abcdef"; | |
| for (var i = 0; i < 36; i++) { | |
| s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1); | |
| } | |
| s[14] = "4"; // bits 12-15 of the time_hi_and_version field to 0010 | |
| s[19] = hexDigits.substr((s[19] & 0x3) | 0x8, 1); // bits 6-7 of the clock_seq_hi_and_reserved to 01 | |
| s[8] = s[13] = s[18] = s[23] = "-"; |
$ uname -r
| <?xml version="1.0" encoding="utf-8"?> | |
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
| package="xxx"> | |
| <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/> | |
| <application | |
| ... | |
| <service android:name=".FloatingAppService"/> |
| <form action="" enctype="multipart/form-data" id="file-form" method="POST"> | |
| <div id="upup"> | |
| <h2>Upload update file</h2> | |
| <p id="progressdiv"><progress max="100" value="0" id="progress" style="display: none;"></progress></p> | |
| <input type="file" name="file-select" id="file-select"> | |
| <button type="submit" id="upload-button">Upload</button> | |
| </div> | |
| </form> | |
| <script type="text/javascript"> | |
| var form = document.getElementById('file-form'); |