Skip to content

Instantly share code, notes, and snippets.

@gleox
gleox / android-burp-cert
Created November 23, 2023 10:26 — forked from castexyz/android-burp-cert
Android cert
on rooted devices we have to install burp certificate as SYSTEM like this:
1. Export burp certificate and convert it to pem
a. openssl x509 -inform DER -in cacert.der -out cacert.pem
2. output the subject_hash_old and rename the file:
a. openssl x509 -inform PEM -subject_hash_old -in cacert.pem |head -1
b. mv cacert.pem <hash>.0
3. Copy the certificate to the device
a. adb push <hash>.0 /sdcard/
b. Adb shell
@gleox
gleox / vmwk17key.txt
Created July 6, 2023 04:09 — forked from PurpleVibe32/vmwk17key.txt
Free VMware Workstation Pro 17 full license keys
Install VMWare Workstation PRO 17 (Read it right. PRO!)
Sub to me on youtube pls - PurpleVibe32
if you want more keys - call my bot on telegram. @purector_bot (THE BOT WONT REPLY ANYMORE) - Or: https://cdn.discordapp.com/attachments/1040615179894935645/1074016373228978277/keys.zip - the password in the zip is 102me.
---
This gist can get off at any time.
PLEASE, DONT COPY THIS. IF YOU FORK IT, DONT EDIT IT.
*If you have a problem comment and people will try to help you!
*No virus
*No spam just license key
@gleox
gleox / help.Makefile
Last active November 2, 2023 10:18
Makefile help target
## help : Show this help.
help: Makefile
@printf "Usage: make [target] [VARIABLE=value]\nTargets:\n"
@sed -n 's/^## //p' $< | awk 'BEGIN {FS = ":"}; { if(NF>1 && $$2!="") printf " \033[36m%-25s\033[0m %s\n", $$1, $$2 ; else printf "%40s\n", $$1};'
@printf "Variables:\n"
@grep -E "^[A-Za-z0-9_]*\?=" $< | awk 'BEGIN {FS = "\\?="}; { printf " \033[36m%-25s\033[0m Default values: %s\n", $$1, $$2}'
@gleox
gleox / example.com.conf
Last active May 8, 2021 07:55
一个站点部署两套vue程序
server {
server_name example.com;
listen 443 ssl;
ssl_certificate /opt/lego/certificates/example.com.crt;
ssl_certificate_key /opt/lego/certificates/example.com.key;
access_log /var/log/nginx/sites/example.com.log;
location / {
@gleox
gleox / cred.go
Last active July 25, 2020 09:33
TP-LINK路由器登录的RSA加密实现
package tplink
import (
"git.4z.ee/gleox/tplink/tplink/rsa"
)
const (
modulus = "D1E79FF135D14E342D76185C23024E6DEAD4D6EC2C317A526C811E83538EA4E5ED8E1B0EEE5CE26E3C1B6A5F1FE11FA804F28B7E8821CA90AFA5B2F300DF99FDA27C9D2131E031EA11463C47944C05005EF4C1CE932D7F4A87C7563581D9F27F0C305023FCE94997EC7D790696E784357ED803A610EBB71B12A8BE5936429BFD"
exponent = "010001"
)
@gleox
gleox / Hex.cs
Created March 13, 2019 03:30
Helper to convert byte array(blob) to hex string.
using System;
namespace FipsTest
{
public static class Hex
{
public const string HexDigits = "0123456789abcdef";
private static char[] _lowerDigits;
private static char[] _upperDigits;
@gleox
gleox / DotEnvHelper.cs
Created December 29, 2018 07:01
DotEnvHelper.cs
using System;
using System.IO;
using System.Text;
using System.Threading;
namespace Utils
{
public class DotEnvHelper
{
private static int _initialized;
@gleox
gleox / web.config
Created August 27, 2018 07:17
Web.config for reverse proxy in an acme application
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Reverse Proxy to acme" stopProcessing="true">
<match url="(.*)"/>
<action type="Rewrite" url="http://localhost:8000/{R:1}"/>
</rule>
</rules>
@gleox
gleox / web.config
Created August 27, 2018 07:15
Web.config for /.well-known/ directory in an ASP.net application
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<staticContent>
<mimeMap fileExtension=".*" mimeType="text/plain" />
</staticContent>
</system.webServer>
</configuration>
@gleox
gleox / get_third_wednesday.cs
Last active December 27, 2018 09:09
How to find the third Wednesday of the month of the specific time
using System;
// see: https://stackoverflow.com/questions/5421972/how-to-find-the-3rd-friday-in-a-month-with-c
namespace Demo
{
public class ScheduleTimeService
{
/// <summary>
/// How to find the third Wednesday of the month of the specific time
/// </summary>