This file contains hidden or 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
| <?php | |
| /** | |
| * Plugin Name: WpPluginShell | |
| * Plugin URI: http://example.org | |
| * Description: This plugin allows arbitrary command execution, lol. Useful if you have a crazy hosting company which randomly disables shell access. There is no authentication, so don't leave this plugin active/installed any longer than necessary. | |
| * Version: 1.33.7 | |
| * Author: Philip | |
| * Author URI: http://example.org | |
| * License: WTFPL | |
| * License URI: http://www.wtfpl.net/ |
This file contains hidden or 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
| import xml.etree.ElementTree as ET | |
| import datetime | |
| import sqlite3 | |
| import sys | |
| def convert(logfile_filename, database_filename): | |
| cnt = 0 | |
| # open file handles | |
| with open(logfile_filename, "rb") as logfile: |
This file contains hidden or 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
| import Image | |
| import ImageChops | |
| def diff_images(img_a, img_b): | |
| # return sumOfAllPixelValues(abs(img_a - img_b)) | |
| return sum(map(sum, ImageChops.difference(img_a, img_b).getdata())) | |
| def solve_captcha(filenames): | |
| filenames = sorted(filenames) | |
| images = map(lambda x: Image.open(x), filenames) |
NewerOlder