Monday, October 28, 2024

Kali Linux

 Activate Root:

sudo apt -y install kali-root-login

===============================

Change boot order (Easily Change GRUB Boot Order in Kali Linux):

 1. Turn on the computer and wait for the GRUB menu to appear.
2. In the GRUB menu, count from top to bottom the list of available boot options starting from 0. Note the number of your Windows operating system. In our example, it is 6. We will need this info in step 6.
3. Boot into Kali Linux and log in as root.
4. Launch a terminal window. (Applications | Accessories | Terminal)
5. In terminal, run nano /etc/default/grub to edit the grub configuration file.
6. Change GRUB_DEFAULT=0 (around line 6) to equal the number of the Windows operating system in the list found in step 2. In our example, GRUB_DEFAULT=0 becomes GRUB_DEFAULT=6.
7. Save the GRUB file (Ctrl+O and Enter). Exit the file editor (Ctrl+X).
8. Run update-grub to apply the changes.
9. Reboot the machine (reboot).

Source:

https://itomation.ca/easily-change-grub-boot-order-kali-linux/

Notes:

When Windows is installed on top of Kali Linux, the Linux GRUB has Kali configured as the default boot operating system. This can get quite bothersome for those of us who boot into Windows more than 50% of the time and consider Windows their “main” operating system in a dual boot configuration. After all, no one likes to sit through a boot sequence, waiting for a window of opportunity to select the correct operating system to boot into. And when that window of opportunity is missed, we usually end up hard-resetting the computer. Let’s be honest – we’ve all done it. In short, manually having to select the boot OS should not be the rule, but rather the exception. In this post, we are going to demonstrate how to easily change GRUB boot order in Kali Linux to make Windows our default boot operating system.

===================================


Wednesday, October 23, 2024

Windows 11 setup without internet

 

Windows 11 setup without internet, bypass Win11 setting internet during setup

Bypass Out-of-the-Box-Experience (OOBE) Internet Requirement

  • In the "Let's connect you to a network" screen, press Shift+F10 to launch cmd;
  • Type the following command: OOBE\BYPASSNRO
  • After successful execution, the system will restart and restart the OOBE session box, when you reach the "Let's connect you to a network" screen, click "I don't have Internet", continue to click "limited setup", accept the license agreement and continue to create a local user account.

Monday, October 7, 2024

Print server ports

 Print server (Windows server service) requires the following ports to access the network printer:

-TCP 9100

TCP 515

TCP 3910

SNMP (TCP 161)


you should allow the mentioned ports on your firewall to allow access from the server as a source to the network printers as a destination.


Configuration:

Source: Print server IP

Destination: Network printer (or network printers group)

Ports: 9100, 515, 3910 & 161

You can create a custom service including all the mentioned ports instead of creating a separate service for each port.

Friday, August 2, 2024

Saving and restoring existing Windows shares

 To save only the existing share names and their permissions on Windows follow these steps.

 Note

This procedure applies only to NetBIOS shares and not to Macintosh volumes.

On the existing Windows installation that contains the share names and permissions that you want to save, start Registry Editor (Regedt32.exe).

From the HKEY_LOCAL_MACHINE subtree, go to the following key:
SYSTEM\CurrentControlSet\Services\LanmanServer\Shares.

Save or export the registry key.

For Windows NT and Windows 2000, click Save Key on the Registry menu.
For Windows Server 2003, click Export on the File menu.
Type a new file name (a file extension is not necessary), and then save the file to a floppy disk.

Reinstall Windows.

Run Registry Editor (Regedt32.exe).

From the HKEY_LOCAL_MACHINE subtree, go to the following key:
SYSTEM\CurrentControlSet\Services\LanmanServer\Shares.

Restore or import the registry key.

For Windows NT and Windows 2000, click Restore on the Registry menu.
For Windows Server 2003, click Import on the File menu.
Type the path and file name of the file that you saved in steps 3 and 4.

 Caution

This step overrides the shares that already exist on the Windows computer with the share names and permissions that exist in the file you are restoring. You are warned about this before you restore the key.

Restart the server.

 Note

After you complete this procedure, if you decide that you should not have restored the Shares key, restart the computer and press the SPACEBAR to use the last known good configuration. After you restore the shares key, the shares can be used by network clients. If you run the net shares command on the server, the server displays the shares; however, File Manager does not display the shares. To make File Manager aware of the newly restored shares, create any new share on the server. File Manager displays all of the other shares after you restart the server or stop and restart the Server service.

In Windows NT 3.5, if you click Stop Sharing in File Manager, the restored shares are still displayed, but they are dimmed.

Only permissions for domain users are restored. If a local user was created in the previous Windows NT installation, that local user's unique security identifier (SID) is lost. NTFS permissions on folders and files are not affected when you save and restore the shares key.

 

Source:

Saving and restoring existing Windows shares - Windows Client | Microsoft Learn

Wednesday, July 24, 2024

Free public DNS servers

 Basic:
77.88.8.8
77.88.8.1 

Safe:
77.88.8.88
77.88.8.2

Protection from dangerous websites
Protection from fraudulent websites
Protection from botnets

Family:
77.88.8.7
77.88.8.3

Blocking websites with adult content
Blocking adult ads
Family search by Yandex  

Sunday, June 9, 2024

MS Activation

 

Run CMD as administrator 
 
cd "C:\Program Files\Microsoft Office\Office16"
cscript ospp.vbs /sethst:kms.digiboy.ir
cscript ospp.vbs /act
 
 
slmgr /skms kms.digiboy.ir
slmgr /ato 
 
Windows Server 2019 Datacenter:
slmgr /ipk WMDGN-G9PQG-XVVXX-R3X43-63DFG
slmgr /skms kms.digiboy.ir
slmgr /ato

Windows Server 2019 Standard:
slmgr /ipk N69G4-B89J2-4G8F4-WWYCC-J464C
slmgr /skms kms.digiboy.ir
slmgr /ato 
 
 

Kali Linux

  Activate Root: sudo apt -y install kali-root-login =============================== Change boot order ( Easily Change GRUB Boot Order in Ka...