Skip to content

Instantly share code, notes, and snippets.

View Sorecchione07435's full-sized avatar
🏠
Working from home

Stefor07 Sorecchione07435

🏠
Working from home
View GitHub Profile
@Sorecchione07435
Sorecchione07435 / Automatic Scripts for VirtualBox Installation on Windows.md
Last active July 26, 2024 14:03
Automatic Scripts for VirtualBox Installation on Windows

How to Install VirtualBox in Windows with just one command

I recently developed a couple of simple yet powerful PowerShell scripts that automate the process of downloading and installing VirtualBox on Windows systems. These scripts are designed to streamline the installation process, making it as simple as running a single command.

The first script targets VirtualBox version 6.1, while the second script targets the newer VirtualBox version 7.0. Both scripts work by first downloading the appropriate VirtualBox installer from the official website. They then run the installer silently, meaning it runs in the background without requiring any interaction from the user. This allows you to continue with other tasks while the installation is in progress.

Automated VirtualBox Installation

First of all you need to open Windows Powershell as administrator

How to install the latest kernel 6.6.36.3 on WSL2

Finally Microsoft has released a new kernel for WSL2 or 6.6.36.3

The Linux kernel in WSL2 is a key component that allows Windows to run a Linux subsystem. This kernel is provided by Microsoft and has a specific version. However, you may want to use a newer kernel version for various reasons, such as access to new features, performance improvements, or bug fixes.

This gist provides a step-by-step guide on how to manually upgrade the Linux kernel in WSL2 from version 5.15 to version 6.6. This process involves installing the build dependencies, cloning the WSL2 kernel repository, compiling the kernel, and finally importing the new kernel into WSL2.

The manual procedure is best suited for advanced users, as it requires some familiarity with the command line and kernel compilation processes. However, the advantage of this method is that it gives you complete control over the process and allows you to customize the kernel as per your needs.

_Remember, it

@Sorecchione07435
Sorecchione07435 / uninstall.bat
Created July 7, 2024 11:11
uninstall.bat (VirtualBox 6.1.50)
@echo off
REM This script is for VirtualBox 6.1.50!
"%SystemRoot%\SysWOW64\regsvr32.exe" /s /u "%~dp0x64\x86\VBoxClient-x86.dll"
"%SystemRoot%\System32\regsvr32.exe" /s /u "%~dp0x64\VBoxC.dll"
"%~dp0x64\VBoxSDS.exe" /UnregService
"%SystemRoot%\SysWOW64\regsvr32.exe" /s /u "%~dp0x64\x86\VBoxProxyStub-x86.dll"
"%SystemRoot%\System32\regsvr32.exe" /s /u "%~dp0x64\VBoxProxyStub.dll"
"%~dp0Utils\x64\devcon.exe" remove "USB\VID_80EE&PID_CAFE"
sc delete "VBoxUSB"
@Sorecchione07435
Sorecchione07435 / install.bat
Last active July 7, 2024 11:09
install.bat (VirtualBox 6.1.50)
@echo off
REM This script is for VirtualBox 6.1.50!
sc create "VBoxSup" binpath= "%~dp0x64\drivers\vboxsup\VBoxSup.sys" type= kernel start= system error= normal displayname= "VBox SupDrv"
sc start "VBoxSup"
"%~dp0Utils\x64\netcfg.exe" -v -l "%~dp0x64\drivers\network\netlwf\VBoxNetLwf.inf" -c s -i "oracle_VBoxNetLwf"
sc query "VBoxNetLwf"
"%~dp0Utils\x64\devcon.exe" install "%~dp0x64\drivers\network\netadp6\VBoxNetAdp6.inf" "sun_VBoxNetAdp"
sc query "VBoxNetAdp"
sc create "VBoxUSBMon" binpath= "%~dp0x64\drivers\USB\filter\VBoxUSBMon.sys" type= kernel start= system error= normal displayname= "VBox USBMon"
@Sorecchione07435
Sorecchione07435 / How to develop a Win32 App in basic Visual C++ from a Dialog Box.md
Last active July 30, 2024 08:49
How to develop a Win32 App in basic Visual C++ from a Dialog Box

How to develop a basic Win32 Application on Visual C++ from a Dialog Box

This gist explains how to create a simple Win32 application in Visual C++ whose graphical interface is based on a dialog box

Creation of the new project

Select the project type

First of all open Visual Studio and create a new project and make sure you choose the Windows Desktop Wizard project type

Capture1

@Sorecchione07435
Sorecchione07435 / How to upload Windows Server 2012 R2 image to OpenStack Hyper-V.md
Created April 13, 2024 20:28
How to upload Windows Server 2012 R2 image to OpenStack Hyper-V

How to upload Windows Server 2012 R2 image to OpenStack Hyper-V

If you followed the previous guide on how to deploy an OpenStack environment on Hyper-V, this guide shows you how to upload the Windows Server 2012 R2 image available from Cloudbase Solutions

Downloading the Windows Server 2012 R2 Image

first of all go to this web page: https://cloudbase.it/windows-cloud-images/#download

a1

EasyVB-Dev

A simple free tool for quickly developing small applications in VB.Net

EasyVB-Dev is a small tool that allows developers to quickly develop applications in VB.Net without using the heavier Visual Studio or SharpDevelop IDE

Before using this little tool we will need:

One last thing to do before you start using it is to set the Framework folder located in

@Sorecchione07435
Sorecchione07435 / How to Root BlueStacks 4.md
Created March 8, 2024 13:58
How to Root BlueStacks 4

How to Root BlueStacks 4

This short guide shows how to run and obtain root permissions within BlueStacks 4, In turn, BlueStacks 4 does not offer a built-in root option, third-party software will be required

Software Downloads

First of all you will have to download the following software:

BSTWeaker: https://bestim.org/download.html?dlm-dp-dl=6688

Root Checker: https://root-checker.it.uptodown.com/android (Not required: Only needed if you want to see if root was successful)

It is possible to run Kingroot on Android emulators

In this gist we will explain if it is possible to root emulators via Kingroot

First of all before explaining whether it can be done or not, I would first explain what Kingroot is and what it does

What is Kingroot?

Kingroot is an application for Android devices that allows users to gain root privileges on their device quickly and easily. It is a tool developed by a Chinese team and is known for its ease of use and its ability to root a wide range of Android devices without requiring in-depth technical knowledge.

How to Root Wiko Sunny 2 Plus / Wiko Sunny 2

Warning: So try running this guide on your Wiko Sunny 2 Plus or Wiko Sunny 2, do it at your own risk

Apparently there is no official guide to root Wiko Sunny 2 Plus / Wiko Sunny 2, trying in many ways using some rooting apps the root always failed as it was too recent a device to find a vulnerability within the device and rooting, is not possible via King Root or Kingo Root

but after some time I discovered that it is possible to root thanks to Magisk by flashing a modified boot image using this program, which allows at the end of the flashing to obtain root without installing any TWRP or flashing ZIP files

This I believe is the only solution to root devices that have no official rooting guides or no one has ever published a working guide