Skip to content

Instantly share code, notes, and snippets.

@cnjax
cnjax / gist:03e2d9006fcbcf29e78665501c30230f
Last active February 21, 2024 08:19
How to crack root password
apt install john
/usr/sbin/unshadow passwd.txt shadow.txt >output.db
john output.db --wordlist=rockyou.txt
https://github.com/praetorian-inc/Hob0Rules/raw/master/wordlists/rockyou.txt.gz
https://github.com/praetorian-inc/Hob0Rules/blob/master/README.md
apt install hashcat
@cnjax
cnjax / edgetunnel
Created May 27, 2023 02:31
thank all tg friends.
add new ip block
63.141.128.0/24
@cnjax
cnjax / pocketbase.go
Last active August 16, 2023 11:02 — forked from r--w/pocketbase.go
fix for auth admin with password
package pocketbase
import (
"errors"
"fmt"
"github.com/duke-git/lancet/v2/convertor"
"github.com/go-resty/resty/v2"
"golang.org/x/sync/singleflight"
"time"
)
crontab download
.com
.net
.org
.de
.icu
.uk
.ru
.info
.top
.xyz
@cnjax
cnjax / cloudflare-cdn-routing-anomaly-detailed-test.md
Created March 19, 2021 14:02 — forked from isaumya/cloudflare-cdn-routing-anomaly-detailed-test.md
Cloudflare CDN Routing Anomaly detailed test across multiple DNS resolvers

Cloudflare CDN Routing Anomaly Detailed Test Across Multiple DNS Resolvers

Here are some key details about my testing location and ISP:

Important Note: Keep an eye on the value of colo on the following response. As that value will show exactly from which Cloudflare CDN edge the data is getting served from. Moreover these 3 letter colo values are basically the IATA airport code on that city. So, you can use a website like World Airport Codes to find out the exact City and Country Name.

@cnjax
cnjax / database.py
Created September 14, 2020 14:34 — forked from plockaby/database.py
Python Flask Connection Pool
import logging
import psycopg2
from psycopg2.extras import RealDictCursor
from psycopg2.extensions import TRANSACTION_STATUS_UNKNOWN, TRANSACTION_STATUS_IDLE
from flask import g
import threading
import tenacity
import uuid
import pwd
import os
@cnjax
cnjax / Activate Office 2019 for macOS VoL.md
Created August 23, 2019 15:53 — forked from zthxxx/Activate Office 2019 for macOS VoL.md
crack activate office on mac with license file

Activate MS Office 2019/2016 for macOS - Microsoft_Office_2019_VL_Serializer

Office 2019 above

2019-06-03

Note that Office2019 DO NOT support activate via simple copy/paste plist license file which is the simplest way to activate Office 2016. Fortunately, you can also use the VL Serializer tool, just install Office 2019 and Serializer, then run Serializer to activate.

Ref

@cnjax
cnjax / nginx-cors.conf
Created July 24, 2019 01:53 — forked from sbuzonas/nginx-cors.conf
Nginx CORS maps
map $http_origin $allow_origin {
default "";
"~^https?://(?:[^/]*\.)?(stevebuzonas\.(?:com|local))(?::[0-9]+)?$" "$http_origin";
}
map $request_method $cors_method {
default "allowed";
"OPTIONS" "preflight";
}