Put the script into /www/cgi-bin/echo.sh and make executable:
chmod +x /www/cgi-bin/echo.sh
Then you can start a webserver e.g.:
busybox httpd -f -vv -p 8080 -h /www
Now you can send requests e.g. with curl or wget:
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
| <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha256-YvdLHPgkqJ8DVUxjjnGVlMMJtNimJ6dYkowFFvp4kKs=" crossorigin="anonymous"> | |
| <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css" integrity="sha256-YW7U7x59rUPZ3DWzQKbalM/9j2Cp8wapJVQPRxL4w1k=" crossorigin="anonymous"> | |
| <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha256-9SEPo+fwJFpMUet/KACSwO+Z/dKMReF9q4zFhU/fT9M=" crossorigin="anonymous"></script> | |
| <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/bootstrap-table.min.cs |
| server { | |
| server_name example.com; | |
| listen 443 ssl; | |
| ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem; | |
| ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem; | |
| root /var/www/html; | |
| access_log off; | |
| location / { | |
| if ($request_method = 'OPTIONS') { |
| func handleRequest(w http.ResponseWriter, r *http.Request) { | |
| args := r.URL.Query() | |
| startDateStr := args.Get("start") // &start=2021-10-15 | |
| endDateStr := args.Get("end") // &end=2021-10-15 | |
| startDate := parseDate(startDateStr, "today") | |
| endDate := parseDate(endDateStr, "tomorrow") | |
| } | |
| func atMidnight(startDate time.Time) time.Time { | |
| return startDate.Truncate(24 * time.Hour).In(time.UTC) |
| /* This Source Code Form is subject to the terms of the Mozilla Public | |
| * License, v. 2.0. If a copy of the MPL was not distributed with this file, | |
| * You can obtain one at http://mozilla.org/MPL/2.0/. */ | |
| "use strict"; | |
| /* | |
| * thirty-two | |
| * https://github.com/chrisumbel/thirty-two | |
| * |
| # https://riseup.net/ru/security/network-security/tor/onionservices-best-practices | |
| # https://www.kicksecure.com/wiki/Non_Anonymous_Onion_Encryption_and_NAT_Traversal | |
| # https://tor.stackexchange.com/questions/14674/problems-setting-up-a-single-onion-service | |
| # https://medium.com/hackernoon/how-does-tor-really-work-c3242844e11f | |
| # https://www.youtube.com/watch?v=VmsFxBEN3fc | |
| # https://www.youtube.com/watch?v=HQXRURfrf8w | |
| # Edit /etc/tor/torrc | |
| SOCKSPort 0 |
| ⚙️ settings | |
| 🔧 settings config | |
| 🛡️ security privacy | |
| 📁 folder | |
| 📂 open folder/file | |
| 📄 empty file | |
| 🗒️ text file | |
| 📝 memo/logs | |
| 🚪 exit | |
| 🔗 link |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>EMail message parse in JavaScript sample</title> | |
| <script> | |
| function addHeader(header, headers) { | |
| if (header === "") { | |
| return | |
| } |
| FILE=$(zenity --file-selection); | |
| if [ -z "$FILE" ]; then | |
| exit | |
| fi | |
| if [ ! -f "$FILE" ]; then | |
| dir=$(dirname "$FILE") | |
| if [ -w "$dir" ]; then | |
| if [ -x /usr/bin/gedit ]; then | |
| gedit "$FILE" | |
| else |
| #!/bin/sh | |
| # needs openssl 1.1+ | |
| # needs base64 and base32 utilities. | |
| # On OpenWrt you may install coreutils-base64 and coreutils-base32. | |
| # BusyBox can be compiled with them. | |
| # On other systems try basenc or basez https://manpages.debian.org/testing/basez/base32hex.1.en.html | |
| ##### generate a key |
Put the script into /www/cgi-bin/echo.sh and make executable:
chmod +x /www/cgi-bin/echo.sh
Then you can start a webserver e.g.:
busybox httpd -f -vv -p 8080 -h /www
Now you can send requests e.g. with curl or wget: