Friday, June 24, 2022

Switch from KMS to OEM

 To convert, do the following: 


• Press Windows Key + R 
• Type cmd in the run command line and press CTRL + SHIFT + ENTER to gain administrative access 
• Type: slmgr.vbs -ipk <enter your 25 digit Windows 10 RETAIL product key here> and press enter 
example: slmgr.vbs -ipk 12345ABCDE12345ABCD12345 
• Then type: slmgr.vbs -ato 

If you have no 25-digit Windows 10 Retail Key and the PC was purchased with pre-installed OEM license, you need to use the following Generic Key: 

YTMG3-N6DKC-DKB77-7M9GH-8HVX7 – If your had had Home version even if you upgraded to Pro through Windows Store 

VK7JG-NPHTM-C97JM-9MPGT-3V66T – If you had Pro. PC was purchased as Pro not upgraded from Home 

BT79Q-G7N6G-PGBYW-4YWX6-6F4BT – If you had a Single Language edition 

These Generic keys will just convert KMS to OEM but will not activate Windows. To activate, you need to go through the digital activation after the conversion by signing in with the Microsoft Account where your Digital Key is associated. To do that, go to Settings > Update & Security > Activation > Add an account 

* Note: If the activation says "Windows is activated with a digital license lined to your Microsoft Account", no need to do anything. 

Friday, June 17, 2022

MacBook Pro and Raspberry Pi4

This tutorial showing how to connect Raspberry Pi4 to MacBook Pro via USB-C (used to power the Pi) and share internet from MacBook to the Pi. Works for Debian and Kali linux images.

-  Image Kali/Debian to Raspberry Pi

- Edit file /boot/config.txt, add

[all]

dtoverlay=dwc2,dr_mode=peripheral

- Edit file /boot/cmdline.txt

console=serial0,115200 console=tty1 root=PARTUUID=ef15daca-02 rootfstype=ext4 fsck.repair=yes modules-load=dwc2,g_ether rootwait

- Create usb0 interface at /etc/network/interfaces.d/usb0

auto usb0

    allow-hotplug usb0

    iface usb0 inet dhcp

On MacBook, open System Preferences 



Thursday, June 16, 2022

Kali Linux In a Docker Container

 Update: this post has been updated and works as of June 2020 (official Offensive Security image names have changed).

Background