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
--- /etc/php.ini 2014-02-27 16:15:52.000000000 -0500 | |
+++ /usr/local/etc/php/5.4/php.ini 2014-02-05 03:22:22.000000000 -0500 | |
@@ -1,7 +1,4 @@ | |
[PHP] | |
-zend_extension=/usr/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so | |
-xdebug.remote_enable=On | |
-detect_unicode = off | |
;;;;;;;;;;;;;;;;;;; | |
; About php.ini ; |
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
#!/usr/bin/php | |
<?php | |
$db = array(); | |
$db['host'] = 'localhost'; | |
$db['user'] = 'root'; | |
$db['password'] = ''; | |
$db['database'] = 'toku'; | |
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
#!/usr/bin/php | |
<?php | |
$db = array(); | |
$db['host'] = 'localhost'; | |
$db['user'] = 'root'; | |
$db['password'] = ''; | |
$db['database'] = 'barracuda'; | |
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
var keyboards = []; | |
var text = ""; | |
//To create a keyboard: | |
//call the CreateKeyboard function, then pass the name, add a comma, | |
//lastly spam your first 10 keys for each row | |
//don't use the numbers row and don't use more than 10 keys per row | |
CreateKeyboard("qwerty", "qwertyuiopasdfghjkl;zxcvbnm,./"); | |
CreateKeyboard("colemak", "qwfpgjluy;arstdhneiozxcvbkm,./"); | |
CreateKeyboard("workman", "qdrwbjfup;ashtgyneoizxmcvkl,./"); |
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
<?php | |
$url_prefix = 'https://deekayen.net/node/'; | |
$low = 1400; | |
$high = 1450; | |
$output_file = '/Users/davidnorman/Sites/scan/scan.csv'; | |
/******************************************/ | |
$fp = fopen($output_file, 'w'); |
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
<?php | |
// unset it just in case someone tried to set it from the URL with register_globals on | |
unset($suggestion_found); | |
session_start(); | |
define("NL", "\n"); | |
function check_textarea($message) { | |
return htmlspecialchars(stripslashes($message)); |
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
DELETE FROM node_revisions WHERE vid IN ( | |
SELECT subquery.vid FROM ( | |
SELECT @row_num := IF(@prev_value=nr.nid,@row_num+1,1) AS RowNumber | |
,nr.nid | |
,nr.vid | |
,nr.timestamp | |
,@prev_value := nr.nid | |
FROM node_revisions nr, | |
(SELECT @row_num := 1) x, | |
(SELECT @prev_value := '') y |
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
DELETE FROM node_revisions WHERE vid IN ( | |
SELECT subquery.vid FROM ( | |
SELECT @row_num := IF(@prev_value=nr.nid,@row_num+1,1) AS RowNumber | |
,nr.nid | |
,nr.vid | |
,nr.timestamp | |
,@prev_value := nr.nid | |
FROM node_revisions nr, | |
(SELECT @row_num := 1) x, | |
(SELECT @prev_value := '') y |
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
<?php | |
$wmic = `wmic process get description`; | |
$total_svchost_running = substr_count($wmic, 'svchost.exe'); | |
echo 'Total svchost.exe processes: ' . $total_svchost_running; |
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
#!/bin/sh | |
# A hacky way to find a variant of the Kazy trojan virus. | |
# Maybe helpful if your Windows users had a Samba mount that got infected. | |
# See also: | |
# https://www.virustotal.com/en/file/25eaf33c12a669cd9ab6fc4f55fecc085704a4ee5f015ffb8bfdb1495a009f5a/analysis/1417196359/ | |
find / -type f -iname '*.exe' -exec grep -R "lKTGM$S" {} \; | |
find / -type f -iname '*.exe' -exec grep -R "yUXWncK" {} \; |
OlderNewer