The main difference between the two pages is the method of sending messages. Recieving messages is the same in both.
Send messages to iframe using iframeEl.contentWindow.postMessage
Recieve messages using window.addEventListener('message')
| #!/usr/bin/python | |
| # Modified by Travis Lee | |
| # Last Updated: 4/21/14 | |
| # Version 1.16 | |
| # | |
| # -changed output to display text only instead of hexdump and made it easier to read | |
| # -added option to specify number of times to connect to server (to get more data) | |
| # -added option to send STARTTLS command for use with SMTP/POP/IMAP/FTP/etc... | |
| # -added option to specify an input file of multiple hosts, line delimited, with or without a port specified (host:port) |
| #!/usr/bin/python | |
| # Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford ([email protected]) | |
| # The author disclaims copyright to this source code. | |
| import sys | |
| import struct | |
| import socket | |
| import time | |
| import select |
This Gist has been moved to https://github.com/lbgists/gh-trend.py.
| #lo sauer, 2013 - www.lsauer.com | |
| #see: http://www.lsauer.com/2013/05/mysql-fuzzy-searching-fulltext-queries.html | |
| #Note: In MySQL SUBSTRING, the string-index starts at position 1 | |
| SELECT * FROM tablename | |
| WHERE SOUNDEX(tablename_field) | |
| LIKE CONCAT('%',SUBSTRING(SOUNDEX('Fuzti serch derm'),2),'%'); |
| import paramiko | |
| import time | |
| import re | |
| bastion_ip='ip' | |
| bastion_pass='pass' | |
| ssh = paramiko.SSHClient() | |
| ssh.set_missing_host_key_policy( paramiko.AutoAddPolicy() ) | |
| ssh.connect(bastion_ip, username='root', password=bastion_pass) |
| // compile me: g++ -shared -fPIC -ldl -o monkeypatchor.so monkeypatchor.cpp | |
| // use me: LD_PRELOAD=`pwd`/monkeypatchor.so /bin/ls | |
| #include <dlfcn.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <sys/mman.h> | |
| void* (*malloc_super)(size_t); | |
| void (*free_super)(void*); |
| import java.io.*; | |
| import java.net.*; | |
| import java.util.*; | |
| /** | |
| * A Java statement interpreter. Add a list of statements with | |
| * <code>newStatement</code> and run them with | |
| * <code>run</code>. After running the interpreter, all | |
| * previously added statements are forgotten. | |
| */ |
| <?php | |
| class Struct | |
| { | |
| /** | |
| * Define a new struct object, a blueprint object with only empty properties. | |
| */ | |
| public static function factory() | |
| { | |
| $struct = new self; | |
| foreach (func_get_args() as $value) { |