Skip to content

Instantly share code, notes, and snippets.

View Saket-Upadhyay's full-sized avatar
🔬
Trying to understand computers.

Saket Upadhyay Saket-Upadhyay

🔬
Trying to understand computers.
View GitHub Profile
@Saket-Upadhyay
Saket-Upadhyay / 95productKeyCheck.c
Created May 13, 2021 17:04
Reversed Code for Win95 Product Key Check function from setupx.dll
//Reverse Engineered by x64mayhem for educational purpose only. For use in related digital article.
undefined2 __stdcall16far PersonalProductKeyCheck(int param_1,undefined2 param_2)
{
int iVar1;
undefined2 unaff_SS;
undefined2 uVar2;
undefined local_6 [3];
undefined local_3;
@Saket-Upadhyay
Saket-Upadhyay / 95mod7check.c
Created May 13, 2021 17:12
Code that checks for mod7 in Windows95 product key check function in setupx.dll
//reversed by x64mayhem for educational purpose only.
bool __cdecl16far MOD7check(char *param_1,undefined2 param_2)
{
int IndexCounter;
int SUM;
char character;
IndexCounter = 0;
SUM = 0;
@Saket-Upadhyay
Saket-Upadhyay / symbolicCalculator.cpp
Created June 7, 2021 14:23
Code to teach symbolic execution in Linux.
// MIT License
//
// Copyright (c) 2021 Saket Upadhyay
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
@Saket-Upadhyay
Saket-Upadhyay / CSR Example.txt
Created October 8, 2021 04:14
Example of a CSR
-----BEGIN NEW CERTIFICATE REQUEST-----
MIIEGzCCAwMCAQAwgawxCzAJBgNVBAYTAklOMRIwEAYDVQQIDAlOZXcgRGVsaGkx
DjAMBgNVBAcMBURlbGhpMSUwIwYJKoZIhvcNAQkBFhZzYWtldHVwYWRoeWFAZ21h
aWwuY29tMRcwFQYDVQQKDA5TYWtldCBVcGFkaHlheTEXMBUGA1UECwwOU2FrZXQg
VXBhZGh5YXkxIDAeBgNVBAMMF3d3dy5zYWtldHVwYWRoeWF5LmNvZGVzMIIBIjAN
BgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyuRo87x9IFI2I8GFZpn3HJjRS1+p
YhUDVzLmLD3J6Lq9AOgTxsT1uF8BEziuPRPBIR15FvzjcJzjeAM0bTswm2nBGyns
1Eq8gvGycNf1iNktACOCcdQq6n2x988BNcMz2cvuXfeK0HXvUgV9iGPatouiy9pM
6V+BCmGcqtacwlLldxkOYAre0CdlNqrgNI2c/jpyWl/l01S2oBB7838+Bxrh5mhv
CwsS5PtQk2sglbwvcnvuOADqv3JEiyLKBiLp7/imKhExiY0o9+8YE0LPLoCJ3lY4
@Saket-Upadhyay
Saket-Upadhyay / MicrosoftWhiteboardLauncher.cpp
Created October 31, 2021 04:19
This program will create a executable which can launch MS Whiteboard. Then you can map this executable to any 3rd party legacy application to launch the same.
// This program will create a executable which can launch MS Whiteboard.
// As the Whiteboard is now a Windows Store App it's hard to map it to a 3rd part software like Huion tablet interface, so you can compile and map this binary instead to the 3rd party client, which in turn will launch whiteboard for you.
// This code is not that big of a deal, hence there is no need for any License. Use it as you wish.
#include <iostream>
#include <stdlib.h>
int main() {
std::system("start shell:appsfolder\\Microsoft.Whiteboard_8wekyb3d8bbwe!Whiteboard");
return 0;
}
@Saket-Upadhyay
Saket-Upadhyay / findSerialPortNumber.ps1
Created May 27, 2022 14:54
Find Connected USB Serial Communication devices in Windows 10/11
$lptAndCom = '{4d36e978-e325–11ce-bfc1–08002be10318}'
get-wmiobject -Class win32_pnpentity | where ClassGuid -eq $lptAndCom | select name
@Saket-Upadhyay
Saket-Upadhyay / CSRinformation.ini
Created October 8, 2021 03:51
Initialization file for CSR generation, to be used in my article on the same topic.
[Version]
Signature= "$Windows NT$"
[NewRequest]
Subject = "CN=*.mydomain.com, OU=My Name, O=Organisation Name,Email=myemail@domain.com,L=New Delhi, S=Delhi, C=IN"
KeySpec = 1
KeyLength = 2048
Exportable = TRUE
MachineKeySet = TRUE
SMIME = False