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
{ | |
"keyMappings": "map h previousTab\nmap l nextTab\nmap [ goBack\nmap ] goForward", | |
"linkHintCharacters": "asdfghjkl", | |
"scrollStepSize": 150, | |
"grabBackFocus": true, | |
"searchEngines": "", | |
"searchUrl": "https://duckduckgo.com/?q=", | |
"settingsVersion": "2.1.2", | |
"exclusionRules": [] | |
} |
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
<html> | |
<body> | |
<script> | |
// The following Javascript resizes the iframe's height when Blocktopus' embeded page's height changes | |
window.addEventListener("message", receiveMessage, false); | |
function receiveMessage(event) { | |
if (event.data.event_id == 'blocktopus_height') { | |
iframe = document.getElementById("blocktopus_iframe"); | |
iframe.height = event.data.value + "px"; |
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
<html> | |
<body> | |
<script> | |
window.addEventListener("message", receiveMessage, false); | |
function receiveMessage(event) { | |
if (event.data.event_id == 'blocktopus_height') { | |
iframe = document.getElementById("blocktopus_iframe"); | |
iframe.height = event.data.value + "px"; |
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
# # # # # # # # # # # # # # # # # # # # # # # # # # | |
# Demonstration of CBC Bit Flipping Attack # | |
# Author: Panos Sakkos <panos.sakkos@gmail.com> # | |
# Date: October 2017 # | |
# License: MIT # | |
# # # # # # # # # # # # # # # # # # # # # # # # # # | |
require 'openssl' | |
class UnauthenticatedEncryption |
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
# # # # # # # # # # # # # # # # # # # # # # # # # | |
# Demonstration of Padding Oracle Attack # | |
# Author: Panos Sakkos <panos.sakkos@gmail.com> # | |
# Date: May 2017 # | |
# License: MIT # | |
# # # # # # # # # # # # # # # # # # # # # # # # # | |
require 'openssl' | |
class PaddingOracle |
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
# # # | |
# /17/sha-256.rb | |
# (c) 2010 Jan Lelis <mail@janlelis.de>. MIT License. | |
# See: http://ruby.janlelis.de/17-sha-256 | |
# | |
# May 2017, Modified by Panos Sakkos to demonstrate Length Extension Attack | |
# - Refactored so the initialization vector and message length can be injected. | |
# - Added example of length extension attack | |
# # # |
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 <linux/err.h> | |
char *exe_from_mm(const struct mm_struct *mm, char *buffer, int length) | |
{ | |
char *p = NULL; | |
struct vm_area_struct *vma; | |
if(mm == NULL) | |
{ | |
return NULL; |
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
//REGISTER must be between "0" and "7" for the dr0-dr7 accordingly | |
#define SET_DEBUG_REGISTER(REGISTER, VALUE) __asm__ __volatile__ ("mov %0,%%dr" REGISTER "\n" :: "r" (VALUE)); | |
#define GET_DEBUG_REGISTER(REGISTER, VALUE) __asm__ __volatile__ ("mov %%dr" REGISTER ",%0\n" : "=r" (VALUE)); |
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
static void disable_page_protection(void) | |
{ | |
unsigned long cr0 = read_cr0(); | |
if(cr0 & (1 << 16)) | |
{ | |
cr0 &= ~ (1 << 16); | |
write_cr0(cr0); | |
} | |
} |