Skip to content

Instantly share code, notes, and snippets.

View pmsosa's full-sized avatar
🦈
Always Moving Forward

Pedro M. Sosa pmsosa

🦈
Always Moving Forward
View GitHub Profile
@pmsosa
pmsosa / MLO.ps1
Last active March 11, 2019 20:42
function Invoke-KNCreds
{
[CmdletBinding(DefaultParameterSetName="HumptyDumpty")]
Param(
[Parameter(Position = 0)]
[String[]]
$ComputerName,
@pmsosa
pmsosa / K-Means.py
Last active May 16, 2023 17:37
K-Means Clustering Implementation
##############################################################################################
### K-Means Python Implementation ###
### http://konukoii.com/blog/2017/01/15/5-min-tutorial-k-means-clustering-in-python/ ###
##############################################################################################
import random
import math
#Euclidian Distance between two d-dimensional points
def eucldist(p0,p1):
@pmsosa
pmsosa / clogger.cpp
Last active January 26, 2023 11:58
C++ Prototype Keylogger
/*
Note: This is really old hacky inefficient code. I'm saving for historical purpouses.
More Info on this: http://konukoii.com/blog/2016/08/18/capture-the-keys-chapter-1-clogger/
DISCLAIMER: THE AUTHOR DOES NOT CONDONE THE USE OF THIS PROGRAM FOR ANY
ILLEGAL OR OTHERWISE INTRUSIVE APPLICATION THAT MIGHT HARM OTHERS PRIVACY.
USE AT YOUR OWN RISK! NO WARRANTIES OR GUARANTIES ARE GIVEN FOR THIS PROGRAM.
WHAT THIS PROGRAM IS FOR:
->LEARNING TO USE THE WINDOWS HOOKS.
@pmsosa
pmsosa / caesar_chipher.scala
Last active November 9, 2019 08:25
Scala implementation of the Caesar Cipher
//Ceasar (Shift) Cipher
//Pedro Miguel Sosa
//www.KonukoII.com
//Tutorial & Explanation: http://konukoii.com/blog/2016/03/24/caesar-cipher-in-scala/
object CeasarCipher extends App{
//Define Alphabet
//feel free to add more elements to your 'alphabet' (eg. Nums: 123... or Symbols: !?@#...)
val alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"