Skip to content

Instantly share code, notes, and snippets.

View Esonhugh's full-sized avatar
💭
I may be slow to respond.

Esonhugh Skyworship Esonhugh

💭
I may be slow to respond.
View GitHub Profile
@Esonhugh
Esonhugh / exploit_nosqli.py
Last active November 15, 2021 08:15
Simple Nosqli injection Basic - Tryhackme Rooms
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys, requests
target = "http://<target>/login.php"
post_form = 'user=admin&pass[$regex]={}&remember=on'
post_form = post_form.replace("admin","pedro")
header = {
@Esonhugh
Esonhugh / pwnsh.sh
Last active May 9, 2022 23:02
pwnsh for good wraper for the reverse netcat shell
function pwnsh(){
case "$1" in
nc)
rlwrap $*
;;
tty)
stty -raw echo;fg
;;
re)
@Esonhugh
Esonhugh / proxy_shell.sh
Last active July 10, 2022 15:55
proxy setting for your shell
# Date: 2022-07-10
# Author: Esonhugh
# proxy command to make you switch your commandline fastly
export clash="127.0.0.1" # define as your favour
export portOfClash="7890" # define as your favour
proxys(){
case "$1" in
(h)
echo "|==============================================|"
@Esonhugh
Esonhugh / req.sh
Created November 15, 2021 08:22 — forked from myl7/req.sh
Zero-dependency HTTP request script from https://www.v2ex.com/t/811424
#!/bin/bash
set -euo pipefail
function __curl() {
read proto server path <<<$(echo ${1//// })
DOC=/${path// //}
HOST=${server//:*}
PORT=${server//*:}
[[ x"${HOST}" == x"${PORT}" ]] && PORT=80
@Esonhugh
Esonhugh / alias_cat_cd_clear.sh
Last active November 29, 2022 07:02
not worry you cat a dir
# Author: Esonhugh
# update date: 2021/11/28
#
# c is an alias for clear cd and cat
# c with no param will clear
# c with one param(file) will like a cat a file
# c with one param(dir) will like cd into dir
# experimental: if c has more params will cat this all like cat command (finished)
# logic is
# 1. clear and cd doesn't have second param. if second param exists must cat
@Esonhugh
Esonhugh / shodan-favicon-figerprint.py
Last active December 7, 2021 15:49 — forked from yehgdotnet/get-shodan-favicon-hash.py
Get Shodan FAVICON Hash (Eson modified)
# https://twitter.com/brsn76945860/status/1171233054951501824
# pip install mmh3
#
# in python 3
# Author: https://gist.github.com/yehgdotnet
#
# Author: Esonhugh (https://gist.github.com/Esonhugh) more automatic
# date: 2021/12/07 23:38 UTC+0800
import mmh3
@Esonhugh
Esonhugh / isSameSSHKEY
Created December 14, 2021 11:43
Is the sshkey same?
# Author: Esonhugh
# Date: 2021/12/14 19:43 UTC+0800
function isSameSSHKEY () {
PRIVKEY=$1
TESTKEY=$2
if [[ -z "$PRIVKEY" ]]
then
PRIVKEY="id_rsa"
echo "No PRIVKEY chosen Set as id_rsa"
fi
@Esonhugh
Esonhugh / formatConvert.sh
Created February 8, 2022 06:39
covert the dnsmasq format ip hosts to hosts file command
export your_domain=Whoami.dn42 # or .local .localdomain ...etc
cat /etc/dnsmasq.conf |grep $your_domain |grep address |cut -d "/" -f 2,3 |sed -e "s/\//\t/g" |awk '{print $2 "\t" $1}'
## from dnsmasq to hosts
cat /etc/dnsmasq.conf |grep $your_domain |grep address |cut -d "/" -f 2,3 |sed -e "s/\//\t/g" |awk '{print $2 "\t" $1}' |tee -a /etc/hosts
@Esonhugh
Esonhugh / url.sh
Last active July 13, 2022 03:21
Command line URLEncode URLDecode Func
# Author: Esonhugh
# Date: 2022-07-13
# Usage:
# echo "<yourdata>"| url -e
# echo "<yourdata>"| url --encode
# echo "<yourdata>"| url e
# echo "<yourdata>"| url encode
# url -e "<yourdata>"
# url --encode "<yourdata>"
# url e "<yourdata>"
@Esonhugh
Esonhugh / For Mac 4.2.6 unlimited trial.md
Created August 26, 2022 13:06 — forked from rise-worlds/For Mac 4.2.6 unlimited trial.md
Beyond Compare 4 license for Windows, Mac, Linux

for 4.2.4 or higher,4.2.5,4.2.6,4.3.7,it's works , this is the way which makes Always in evaluation mode 。

  1. open Terminal, go to the dir : cd /Applications/Beyond Compare.app/Contents/MacOS
  2. change the name BCompare to BCompare.bak: mv BCompare BCompare.bak
  3. touch a file name BCompare , and chmod a+u BCompare : touch BCompare && chmod a+u BCompare
  4. open BCompare with text editor, insert the script :
#!/bin/bash
rm "/Users/$(whoami)/Library/Application Support/Beyond Compare/registry.dat"
"`dirname "$0"`"/BCompare.bak $@