Skip to content

Instantly share code, notes, and snippets.

@msadek
msadek / Generate-CSR.ps1
Created December 18, 2024 12:39 — forked from paschott/Generate-CSR.ps1
PowerShell script to generate a Certificate Request for a server using certain criteria
#Create new Certificate Request for SQL Server security
# Should be made into a function at some point
# Needs to be able to handle Cluster names/IP addresses
#Set location of the server
$Location = "City"
$State = "State"
$OU = "OU"
$Company = "Organization"
'''
Date : 9/19/2015
Author : Shay Ashkenazi
Simple Telnet Catcher for 3Com 3CRWER100-75 Router
==================================================
As this router boots, port 9000 is opened for only 1 second.
This simple script will open a connection and leave this port open.
@msadek
msadek / windows-keys.md
Created August 1, 2024 15:09 — forked from rvrsh3ll/windows-keys.md
Windows Product Keys

NOTE

These are NOT product / license keys that are valid for Windows activation.
These keys only select the edition of Windows to install during setup, but they do not activate or license the installation.

Index

@msadek
msadek / gpt_parser.py
Created July 20, 2024 20:30 — forked from shangdawei/gpt_parser.py
Feed this your GPT.bin, and out it shoots a partition.xml
#!/usr/bin/python
# Author : n0fate
# E-Mail [email protected], [email protected]
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or (at
# your option) any later version.
@msadek
msadek / android-backup-apk-and-datas.md
Created October 10, 2023 18:28 — forked from AnatomicJC/android-backup-apk-and-datas.md
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Don't hesitate to read comments, there is useful tips, thanks guys for this !

Fetch application APK

@msadek
msadek / ntlmdecoder.py
Created June 20, 2019 09:24 — forked from aseering/ntlmdecoder.py
NTLM auth-string decoder
#!/usr/bin/env python
## Decodes NTLM "Authenticate" HTTP-Header blobs.
## Reads the raw blob from stdin; prints out the contained metadata.
## Supports (auto-detects) Type 1, Type 2, and Type 3 messages.
## Based on the excellent protocol description from:
## <http://davenport.sourceforge.net/ntlm.html>
## with additional detail subsequently added from the official protocol spec:
## <http://msdn.microsoft.com/en-us/library/cc236621.aspx>
##
@msadek
msadek / increment_decrement.py
Created August 9, 2016 15:57 — forked from dtao/increment_decrement.py
Sublime Text plugin to increment/decrement all selected numbers
import sublime
import sublime_plugin
class NumberCommand(sublime_plugin.TextCommand):
def run(self, edit):
selection = self.view.sel()
for region in selection:
try:
value = int(self.view.substr(region))
self.view.replace(edit, region, str(self.op(value)))