This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import asyncio | |
| import os | |
| import subprocess | |
| import time | |
| import re | |
| from kasa import Discover, Credentials | |
| # --- CONFIGURATION --- | |
| TARGET_VID = "0634" # Crucial Vendor ID | |
| TARGET_PID = "5603" # Crucial Product ID |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import asyncio | |
| import os | |
| import subprocess | |
| import time | |
| import sys | |
| import shutil | |
| import argparse | |
| import re | |
| from kasa import Discover, Credentials |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import asyncio | |
| import os | |
| import subprocess | |
| import time | |
| import sys | |
| import shutil | |
| import argparse | |
| import re | |
| from kasa import Discover, Credentials |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import asyncio | |
| import os | |
| import subprocess | |
| import time | |
| import sys | |
| import shutil | |
| import argparse | |
| from kasa import Discover, Credentials | |
| # ========================================== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Identify the internal drive | |
| lsblk | |
| # Wipe everything (replace /dev/sda with the correct device) | |
| sudo wipefs -a /dev/sda | |
| sudo sgdisk --zap-all /dev/sda | |
| sudo dd if=/dev/zero of=/dev/sda bs=1M count=100 | |
| sudo dd if=/dev/zero of=/dev/sda bs=1M seek=$(( $(sudo blockdev --getsz /dev/sda) / 2048 - 100 )) | |
| count=100 | |
| sudo sync |
OlderNewer