Skip to content

Instantly share code, notes, and snippets.

@motebaya
motebaya / be_productive.py
Last active January 22, 2025 07:09
nee nee, my graden is gray de karappo njir...
#!/usr/bin/env python3
# do you wanna be a productive human?
# sugar grass with shining sunrise in your garden?
# @github.com/motebaya - 2024-06-16 23:16:23.729592300 +0700
import calendar, subprocess, time, random, sys, string
from datetime import datetime
from concurrent.futures import ThreadPoolExecutor, as_completed
import threading
@motebaya
motebaya / module_updater.py
Created January 8, 2025 01:57
simple way for check or update python library to latest version based pypi.org api
#!/usr/bin/env python3
# 10.10.2024 - python module version check
# © @github.com/motebaya
from typing import Any, Dict
import importlib.metadata
import requests, subprocess, sys
class ModuleManager:
@motebaya
motebaya / batch_decompile.py
Last active March 29, 2025 02:05
python ghidra scripts for batch decompiling
from ghidra.app.decompiler import DecompInterface
from ghidra.util.task import ConsoleTaskMonitor
import os
output_folder = "E:/reversing/output" # set output decompiled
if not os.path.exists(output_folder):
os.makedirs(output_folder)
decomp_interface = DecompInterface()
decomp_interface.openProgram(currentProgram)
@motebaya
motebaya / logging_test.rb
Created August 10, 2024 13:06
remove all unnecessary characters that are displayed in the console during debug mode for net/http or HTTParty. Related: https://github.com/jnunemaker/httparty/issues/806
#!/usr/bin/ruby
require 'logger'
class Logging
def initialize(progname:, level: Logger::INFO)
@logger = Logger.new($stdout, progname: progname)
@logger.level = level
end
@motebaya
motebaya / logger.py
Created August 8, 2024 05:47
a customization python logger for console log using logging module
#!/usr/bin/python3
# @github.com/motebaya - 2023.06.3 08:42:53 AM
# file: __logger__
import logging
from colorama.ansi import Fore
from typing import Union, Type
logging.addLevelName(logging.WARNING, f"{Fore.YELLOW}warning{Fore.RESET}")
logging.addLevelName(logging.DEBUG, f"{Fore.GREEN}debug{Fore.RESET}")
@motebaya
motebaya / emailnator.py
Created August 7, 2024 13:32
Asynchronous emailnator.com api wrapper
#!/usr/bin/python3
# emailnator.com api wrapper - 01/06/2024
# @github.com/motebaya
from httpx import AsyncClient
from urllib.parse import urlparse, unquote
from typing import Dict, Any, Union, List
from colorama.ansi import Fore as col
import json
class Emailnator:
@motebaya
motebaya / chp-adsplugin-element-remover.js
Last active August 4, 2024 10:46
tampermonkey: just for remove modal/popup element from wp plugin: https://wordpress.org/plugins/chp-ads-block-detector/
// ==UserScript==
// @name remove ads detection ele
// @namespace http://tampermonkey.net/
// @version 2024-08-04
// @description remove modal from plugin: https://wordpress.org/plugins/chp-ads-block-detector/
// @author Lorem ipsum kolor si slamet
// @match *://<domain here>/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=<domain here>
// @grant none
// ==/UserScript==
@motebaya
motebaya / compile.bat
Created July 5, 2024 14:07
my windows nuitka pack arg
nuitka --mingw64 --standalone --output-dir=output --show-progress --show-memory --windows-company-name=Windows --windows-product-name=Windows --windows-file-version=1.0.0 --windows-product-version=1.0.0 --onefile --include-module=calculation --follow-imports revenue.py --output-filename=revenue.exe --remove-output
@motebaya
motebaya / track_pid.sh
Last active May 29, 2024 12:44
Tracking PID based on the program name being executed by php7.4 and give it into GDB
#!/usr/bin/bash
track_pid() {
ps_output=$(ps aux | grep programname | head -1)
while IFS= read -r line; do
if [[ $line == *"php7.4"* ]]; then
pid=$(echo "$line" | awk '{print $2}')
echo "[OK] Found PHP process with PID: $pid"
# sleep 1
gdb -p "$pid" -x "command.txt"
@motebaya
motebaya / asmtool.py
Created April 17, 2024 18:02
simple script that help me to RE python bytecode
#!/usr/bin/python3.11
# it help me for RE, @github.com/motebaya
# useless tool :) tools 17.04.2024
from typing import Dict
from xdis import magics
import re, os, types, marshal, argparse
class Asmtool:
def __init__(self) -> None: