Skip to content

Instantly share code, notes, and snippets.

View Pymmdrza's full-sized avatar
M M D R Z A . C o M

MMDRZA Pymmdrza

M M D R Z A . C o M
View GitHub Profile
@Pymmdrza
Pymmdrza / WebServer.sh
Created May 15, 2024 22:20
Package Install For Debian Server Web Hosting Mode
apt install wget -y
apt install nano -y
apt install git -y
apt install acl -y
apt install curl -y
apt install screen -y
apt install rsync -y
apt install net-tools -y
apt install pwgen -y
apt install mariadb-server -y
@Pymmdrza
Pymmdrza / R2cloudflare_V1_6.py
Last active May 3, 2024 14:07
R2 Cloudflare Upload file with boto in python
# https://gist.github.com/Pymmdrza/3e3f30b16f4009503e7572b914fd200d
# install package's from requirements.txt
# Windows : pip install -r requirements.txt
# Linux : pip3 install -r requirements.txt
import os
import boto3
from tqdm import tqdm
from colorthon import Colors as Fore
def get_user_input(prompt, example=''):
@Pymmdrza
Pymmdrza / concurrentRecovery.py
Created March 28, 2024 16:18
Recover Future Mode Random without repeat
import concurrent.futures
import random
import requests
from secp256k2 import Contactor
from colorthon import Colors as Fore
cont = Contactor()
def getTxs(addr: str) -> dict:
@Pymmdrza
Pymmdrza / rsz_standard.py
Created March 27, 2024 19:37
rsz Reuse wallet from public key and raw transaction mode in python
p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141
def inverse_mod(Adjective, Moderate):
"""Returns the modular inverse of a modulo moderate."""
# Ensure Adjective is in the range (0, Moderate)
if Adjective < 0 or Moderate <= Adjective:
Adjective = Adjective % Moderate
# Extended Euclidean algorithm to find the modular inverse
@Pymmdrza
Pymmdrza / SVGRepo_Auto.py
Created March 13, 2024 20:09
Download Free Icon SVG Automatic With Python From SVGREPO
import requests, requests_random_user_agent
from colorthon import Colors as Fore
from bs4 import BeautifulSoup
import os
total = 0
def downloader(urlFull, fldrN):
nm = urlFull.split("/")[-1]
@Pymmdrza
Pymmdrza / RealShark.py
Created March 9, 2024 12:48
Grab and Real Time Check All Packet Upload and Download in Windows With Python
# // first install package
# // pip install pyshark colorthon
import pyshark, math, time
from colorthon import Colors as Fore
# return time local with import time
def getTimer():
return time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
@Pymmdrza
Pymmdrza / VideoCut.py
Created March 1, 2024 12:44
Video Cut On Python
# // Windows : pip install moviepy colorthon
# // Linux : pip3 install moviepy colorthon
from moviepy.video.io.VideoFileClip import VideoFileClip
from colorthon import Colors as Fore
def cutVideo(inputFile, outputFile, startTime, endTime):
video = VideoFileClip(inputFile, verbose=False)
newVideo = video.subclip(startTime, endTime)
newVideo.write_videofile(outputFile, verbose=False)
@Pymmdrza
Pymmdrza / EthereumRichFounder.py
Created February 29, 2024 14:45
Scrap Rich Ethereum Address
import requests
from colorthon import Colors as Fore
def getPage(page_number:int) -> list:
urlpage = f"https://explorer-web.api.btc.com/v1/eth/accounts/top?page={page_number}&size=200"
req = requests.get(urlpage).json()
data_list = req.get('data').get('list')
return data_list
@Pymmdrza
Pymmdrza / reader.py
Last active February 26, 2024 17:58
readfile class in pyqt5 with QThread
from PyQt5.QtCore import QThread, pyqtSignal
class FileReader(QThread):
data_read = pyqtSignal(str)
def __init__(self, filename):
super().__init__()
self.filename = filename
def run(self):
@Pymmdrza
Pymmdrza / Blockbook.sh
Last active February 28, 2024 16:54
Blockbook Install in Debian Auto install Bitcoin Explorer
fallocate -l 16G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
echo “/swapfile swap swap sw 0 0” >> /etc/fstab
sysctl vm.swappiness=12&&echo “vm.swappiness = 12” >> /etc/sysctl.conf
# // Install Package's and Set Repo
apt-get install build-essential libssl-dev libboost-all-dev libdb5.3 libdb5.3-dev libdb5.3++-dev ufw libtool automake libevent-dev bsdmainutils git ntp make g++ gcc autoconf cpp ngrep iftop sysstat autotools-dev pkg-config libminiupnpc-dev libzmq3-dev apt-transport-https ca-certificates curl gnupg2 software-properties-common -y
# // Install Auto Docker and Set
curl -s https://download.docker.com/linux/debian/gpg | apt-key add && add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"