Skip to content

Instantly share code, notes, and snippets.

View pitsanujiw's full-sized avatar

Pitsanu L. pitsanujiw

View GitHub Profile
import binascii
import hashlib
import hmac
def genSigninRequestOtpSignature(signinType, deviceId, timestamp):
"""
url: "https://mobile-api-gateway.truemoney.com/mobile-api-gateway/api/v1/login/otp/"
headers:
username => str (ex: "09XXXXXXXX")
password => str (ex: "da39a3ee5e6b4b0d3255bfef95601890afd80709")
@pitsanujiw
pitsanujiw / wallet-signature-bruteforce.go
Created June 9, 2019 14:05
Finding the valid order of a secret message
package main
import (
"github.com/gitchander/permutation"
"encoding/hex"
"crypto/sha1"
"crypto/hmac"
"strings"
"fmt"
"os"