Requests:
POST /api/user/reg HTTP/1.1
Host:
User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import hashlib | |
hash = 'tlJwpbo6' # for example | |
def sofia_hash(msg): | |
h = "" | |
m = hashlib.md5() |
Requests:
POST /api/user/reg HTTP/1.1
Host:
User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0
package main | |
import ( | |
"bufio" | |
"fmt" | |
"log" | |
"net" | |
"os" | |
"regexp" | |
"sort" |
package main | |
import ( | |
"encoding/hex" | |
"fmt" | |
"log" | |
"os" | |
"github.com/ethereum/go-ethereum/crypto/sha3" | |
) |
curl -s "https://crt.sh/?q=%.ya.ru&output=json" | grep -Po 'name_value":"([^"]+)"' | awk -F':' '{ print $2 }' | sed 's/"//g' | sort -u |
#!/bin/bash | |
BOTID='' #change me | |
MYID='108474952' #change me | |
echo "Run command: " $* | |
#start=`date +%s` | |
res1=$(date +%s.%N) | |
$* | |
res2=$(date +%s.%N) | |
dt=$(echo "$res2 - $res1" | bc) | |
dd=$(echo "$dt/86400" | bc) |
0xaa7790cdd931c6c378259feac4b8734c2eb0215c |
There are two main modes to run the Let's Encrypt client (called Certbot
):
Webroot is better because it doesn't need to replace Nginx (to bind to port 80).
In the following, we're setting up mydomain.com
.
HTML is served from /var/www/mydomain
, and challenges are served from /var/www/letsencrypt
.
package main | |
import "fmt" | |
func HeapPermutation(a []string, size int) { | |
if size == 1 { | |
fmt.Println(a) | |
} |
package main | |
import ( | |
"fmt" | |
"github.com/gorilla/mux" | |
"github.com/gorilla/securecookie" | |
"net/http" | |
) | |
// cookie handling |