Skip to content

Instantly share code, notes, and snippets.

View mahfuznow's full-sized avatar

Md. Mahfuzur Rahman mahfuznow

View GitHub Profile
@mahfuznow
mahfuznow / windows10activation
Created October 28, 2020 07:39
Activate Windows 10 without Any Activator
1. Open CMD as Administrator
2. Paste the following commands into the Cmd: One by one, follow the order.
cscript slmgr.vbs /ipk "SERIAL NUMBER HERE"
Replace SERIAL NUMBER HER with any of these, according your Windows 10 installation type.
Home/Core TX9XD-98N7V-6WMQ6-BX7FG-H8Q99
Home/Core (Country Specific) PVMJN-6DFY6-9CCP6-7BKTT-D3WVR
Home/Core (Single Language) 7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH
#!/bin/bash
echo ""
echo "============================================="
echo "========= Uninstall linux in Termux ========="
echo "============================================="
echo ""
echo ""
echo "==== Choose Uninstallation Option ===="
#!/bin/bash
echo ""
echo "============================================="
echo "========== Install linux in Termux =========="
echo "============================================="
echo ""
echo ""
echo "==== Choose Installation Option ===="
#!/data/data/com.termux/files/usr/bin/bash
termux-setup-storage &&\
echo "======== Restoring home =========" &&\
cd ~/.. &&\
rm -rf home &&\
tar -zxvf /sdcard/termux-backup.tar.gz home &&\
echo "======== Restoring usr =========" &&\
cp home/mahfuznow-termux/backup-restore/busybox ./tar && \
chmod +x tar && \
rm -rf usr &&\
#!/data/data/com.termux/files/usr/bin/bash
termux-setup-storage &&\
pkg install tar &&\
cd ~/.. &&\
tar -zcvf /sdcard/termux-backup.tar.gz home usr &&\
echo "========Backup compleeted ======"
#!/data/data/com.termux/files/usr/bin/bash
echo "Uninstalling Kali, please be patient..."
chmod 777 -R kali-fs
rm -rf kali-fs
rm -rf kali-binds
rm -rf kali.sh
rm -rf start-kali.sh
rm -rf ssh-apt.sh
#!/data/data/com.termux/files/usr/bin/bash
main() {
pwd=`pwd`
echo "====Enter Installation Directory===="
read dir
installation_dir="$HOME/$dir"
mkdir $installation_dir
echo "Installing at $installation_dir"