Skip to content

Instantly share code, notes, and snippets.

@orinocoz
orinocoz / CiscoKeyGen.py
Created February 27, 2025 21:59 — forked from congto/CiscoKeyGen.py
Cisco IOU License Generator. Originally found at http://www.routingloops.co.uk/cisco/gns3-v1-1-install-on-ubuntu-14-04-lts/, I have done a few changes to it. Make the file executable with " chmod +x CiscoKeyGen.py " and execute it " ./CiscoKeyGen.py ".
#! /usr/bin/python
print "\n*********************************************************************"
print "Cisco IOU License Generator - Kal 2011, python port of 2006 C version"
import os
import socket
import hashlib
import struct
# get the host id and host name to calculate the hostkey
hostid=os.popen("hostid").read().strip()
hostname = socket.gethostname()
@orinocoz
orinocoz / configure-iis.ps1
Created October 29, 2024 21:53 — forked from kking124/configure-iis.ps1
Configuration Script to Secure Public IIS Server
# configure-iis.ps1
# Version: 1.2
# Author: kking124 (https://github.com/kking124)
#
# Copyright 2016, 2017
#
# License: MIT
# .SYNOPSIS
# Tries to configure IIS as a minimal, secure installation on Windows Server 2008 and later
#
# Obtenir la version de Windows
$windowsVersion = (Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion").ReleaseId
$windowsBuild = (Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion").CurrentBuild
# Afficher la version et le build
Write-Host "Version de Windows : $windowsVersion"
Write-Host "Build de Windows : $windowsBuild"
# Vérifier si la fonctionnalité "Recall" est activée
$RecallEnabled = Dism /online /Get-FeatureInfo /FeatureName:Recall | findstr /B /C:"State"
@orinocoz
orinocoz / KeyboardSideChannel.vbs
Created September 21, 2024 20:38 — forked from FR46M3N7-P4R71CL3/KeyboardSideChannel.vbs
A little VBScript to read the contents of a file, convert to Base-8, and use keyboard LEDs to transmit the data. Just a little, simple PoC to show how even an air-gapped computer (one that’s completely isolated from any network or external devices) can still leak information. The main objective is to maximize the amount of information that can b…
Set WshShell = CreateObject("WScript.Shell")
' Function to convert text to binary
Function TextToBinary(text)
Dim binary, i, char
For i = 1 To Len(text)
char = Asc(Mid(text, i, 1))
binary = binary & Right("00000000" & BinaryStr(char), 8)
Next
TextToBinary = binary
@orinocoz
orinocoz / bird.conf
Created September 7, 2024 21:04 — forked from tonusoo/bird.conf
RTIX Route Servers configuration for lab usage with BIRD. Tested on BIRD version 2.15.1.
log syslog all;
debug protocols all;
router id 213.184.52.1;
define rtix_rs_asn = 207800;
# BGP ipv4/ipv6 channel option "secondary" requires
# routing table to be sorted.
ipv4 table master4 sorted;
@orinocoz
orinocoz / windows-keys.md
Created September 4, 2024 19:30 — 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

@orinocoz
orinocoz / replacing_seaborn_distplot.ipynb
Created September 4, 2024 14:04 — forked from mwaskom/replacing_seaborn_distplot.ipynb
A guide to replacing the deprecated `seaborn.distplot` function.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@orinocoz
orinocoz / Top_Public_Time_Servers.md
Created February 3, 2024 19:17 — forked from mutin-sa/Top_Public_Time_Servers.md
List of Top Public Time Servers

Google Public NTP [AS15169]:

time.google.com

time1.google.com

time2.google.com

time3.google.com

@orinocoz
orinocoz / SharePwn_public.py
Created December 16, 2023 16:19 — forked from testanull/SharePwn_public.py
SharePoint Pre-Auth Code Injection RCE chain CVE-2023-29357 & CVE-2023-24955 PoC
# -*- coding: utf-8 -*-
import hashlib
import base64
import requests, string, struct, uuid, random, re
import sys
from collections import OrderedDict
from sys import version
from urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(category=InsecureRequestWarning)
# too lazy to deal with string <-> bytes confusion in python3 so forget it ¯\_(ツ)_/¯
@orinocoz
orinocoz / GameOver(lay).md
Created November 12, 2023 15:49 — forked from win3zz/GameOver(lay).md
Privilege escalation vulnerabilities in Ubuntu/Kali Linux (CVE-2023-2640 and CVE-2023-32629)
user@hostname:~/exploit$ cat > test.c
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

int main() {
    if (setuid(0) != 0) {