Skip to content

Instantly share code, notes, and snippets.

@fkasler
fkasler / srv.ps1
Created January 18, 2024 21:22
Reuse Addr
# Load assembly
Add-Type -TypeDefinition @"
using System;
using System.Net;
using System.Net.Sockets;
public class TcpServer {
private TcpListener _listener;
public TcpServer()
@fkasler
fkasler / indent.js
Created January 11, 2024 19:04
webhelper
;(function(root, factory) {
if (typeof define === 'function' && define.amd) {
define([], factory);
} else if (typeof exports === 'object') {
module.exports = factory();
} else {
root.indent = factory();
}
}(this, function() {
var indent = (function (root) {
@fkasler
fkasler / facy.html
Created October 21, 2021 19:55
OSINT Account Profile Pic Finder
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>OSINT Photo Gallery</title>
<style type="text/css">
body {
margin: 0;
padding: 0;
@fkasler
fkasler / getAllContacts.js
Last active May 8, 2024 06:49
o365 Contact Miner
//paste this in the web console and copy out the results when it's done to a file like "allcontacts.json"
function getCookie(name) {
var value = "; " + document.cookie;
var parts = value.split("; " + name + "=");
if (parts.length == 2) return parts.pop().split(";").shift();
}
var gal = []
var contacts = []
function collectPersonas(){
alert('xss');
@fkasler
fkasler / global_address_miner.js
Created May 5, 2020 14:25
JavaScript implementation of Get-GlobalAddressList to get around Okta and recursive to handle page limits
//Drop this in the web browser console and copy out the results to a file when it's done. Something like address_list.json
function getCookie(name) {
var value = "; " + document.cookie;
var parts = value.split("; " + name + "=");
if (parts.length == 2) return parts.pop().split(";").shift();
}
function printRecords(offset){
var canary = getCookie('X-OWA-CANARY')
var global_address_id = ''
var address_ids = []
### Keybase proof
I hereby claim:
* I am fkasler on github.
* I am ph3eds (https://keybase.io/ph3eds) on keybase.
* I have a public key ASDPRA7j3uKFBVzvqm3Gag-yc0-r-1YIS6khYmQIS97g_Ao
To claim this, I am signing this object: