Skip to content

Instantly share code, notes, and snippets.

View mcrmonkey's full-sized avatar

ant Kenworthy mcrmonkey

  • Manchester, UK
  • 17:19 (UTC +01:00)
View GitHub Profile
@mcrmonkey
mcrmonkey / wannacry-vaccine.reg
Created May 12, 2017 22:45 — forked from Neo23x0/wannacry-vaccine.reg
WannaCrypt Ransomware Immunisation
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\taskdl.exe]
"Debugger"="taskkill /IM /F taskdl.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\taskse.exe]
"Debugger"="taskkill /IM /F taskse.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\wannacry.exe]
"Debugger"="taskkill.exe /IM /F wannacry.exe"
@mcrmonkey
mcrmonkey / slackmap.sh
Last active February 4, 2018 23:49 — forked from jgamblin/slackmap.sh
Script to NMAP a network and Post Differences to Slack
#!/bin/sh
TARGETS=${TARGETS:="192.168.1.0/24"}
OPTIONS=${NMAPOPS:="-v -T4 -F -sV"}
DATE=$(date +%Y-%m-%d-%H-%M-%S)
cd /nmap/diffs
nmap $OPTIONS $TARGETS -oA scan-$DATE > /dev/null
slack(){
curl -F file=@diff-$DATE -F initial_comment="Internal Port Change Detected" -F channels=#$SLACKCHAN -F token=$SLACKTOKEN https://slack.com/api/files.upload
}
@mcrmonkey
mcrmonkey / latency.txt
Created September 4, 2016 16:00 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers
--------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD