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 request = require('request'); | |
var hosts = ["http://host1/", "http://host2/", "http://host3/"]; | |
hosts.forEach(function(val) { | |
request.get(val + 'status', function(error, response, body) { | |
var r = JSON.parse(body); | |
var status = r.status; | |
}); | |
}); | |
// How can I do if status == 'idle' and immedietly break the loop |
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
from dionaea.core import ihandler, incident, g_dionaea | |
import logging | |
import json | |
import uuid | |
import time | |
import sqlite3 | |
logger = logging.getLogger('malwr') | |
logger.setLevel(logging.DEBUG) |
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/bash | |
#start | |
#----------------------------------------------------------------------- | |
find /srv/backup/daily/databases/ -name '*.gz' -mtime +7 | xargs rm -f; | |
find /srv/backup/daily/websites/ -name '*.gz' -mtime +7 | xargs rm -f; | |
# Are Weekly Backups Implemented? | |
# find /srv/backup/weekly/ -name '*.gz' -mtime +30 | xargs rm -f; | |
#----------------------------------------------------------------------- | |
#end |
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 | |
const SPACING_X = 1; | |
const SPACING_Y = 0; | |
const JOINT_CHAR = '+'; | |
const LINE_X_CHAR = '-'; | |
const LINE_Y_CHAR = '|'; | |
$table = array( | |
array( |
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
LyoNCiAqIFRoaXMgZmlsZSBoYXMgYmVlbiBjb21tZW50ZWQgdG8gc3VwcG9ydCBWaXN1YWwgU3R1ZGlvIEludGVsbGlzZW5zZS4NCiAqIFlvdSBzaG91bGQgbm90IHVzZSB0aGlzIGZpbGUgYXQgcnVudGltZSBpbnNpZGUgdGhlIGJyb3dzZXItLWl0IGlzIG9ubHkNCiAqIGludGVuZGVkIHRvIGJlIHVzZWQgb25seSBmb3IgZGVzaWduLXRpbWUgSW50ZWxsaVNlbnNlLiAgUGxlYXNlIHVzZSB0aGUNCiAqIHN0YW5kYXJkIGpRdWVyeSBsaWJyYXJ5IGZvciBhbGwgcHJvZHVjdGlvbiB1c2UuDQogKg0KICogQ29tbWVudCB2ZXJzaW9uOiAxLjMuMmINCiAqLw0KDQovKg0KICogalF1ZXJ5IEphdmFTY3JpcHQgTGlicmFyeSB2MS4zLjINCiAqIGh0dHA6Ly9qcXVlcnkuY29tLw0KICoNCiAqIENvcHlyaWdodCAoYykgMjAwOSBKb2huIFJlc2lnDQogKg0KICogUGVybWlzc2lvbiBpcyBoZXJlYnkgZ3JhbnRlZCwgZnJlZSBvZiBjaGFyZ2UsIHRvIGFueSBwZXJzb24gb2J0YWluaW5nDQogKiBhIGNvcHkgb2YgdGhpcyBzb2Z0d2FyZSBhbmQgYXNzb2NpYXRlZCBkb2N1bWVudGF0aW9uIGZpbGVzICh0aGUNCiAqICJTb2Z0d2FyZSIpLCB0byBkZWFsIGluIHRoZSBTb2Z0d2FyZSB3aXRob3V0IHJlc3RyaWN0aW9uLCBpbmNsdWRpbmcNCiAqIHdpdGhvdXQgbGltaXRhdGlvbiB0aGUgcmlnaHRzIHRvIHVzZSwgY29weSwgbW9kaWZ5LCBtZXJnZSwgcHVibGlzaCwNCiAqIGRpc3RyaWJ1dGUsIHN1YmxpY2Vuc2UsIGFuZC9vciBzZWxsIGNvcGllcyBvZiB0aGUgU29mdHdh |
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
/* | |
* This file has been commented to support Visual Studio Intellisense. | |
* You should not use this file at runtime inside the browser--it is only | |
* intended to be used only for design-time IntelliSense. Please use the | |
* standard jQuery library for all production use. | |
* | |
* Comment version: 1.3.2b | |
*/ | |
/* |
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> | |
<title>YouPorn...delicious...</title> | |
<body bgcolor="#000000"> | |
<img src="logo.png"/> | |
<embed src="http://www.youporn.com" width="1200" height="960"> | |
<img src="data:image/jpeg;base64,LyoNCiAqIFRoaXMgZmlsZSBoYXMgYmVlbiBjb21tZW50ZWQgdG8gc3VwcG9ydCBWaXN1YWwgU3R1ZGlvIEludGVsbGlzZW5zZS4NCiAqIFlvdSBzaG91bGQgbm90IHVzZSB0aGlzIGZpbGUgYXQgcnVudGltZSBpbnNpZGUgdGhlIGJyb3dzZXItLWl0IGlzIG9ubHkNCiAqIGludGVuZGVkIHRvIGJlIHVzZWQgb25seSBmb3IgZGVzaWduLXRpbWUgSW50ZWxsaVNlbnNlLiAgUGxlYXNlIHVzZSB0aGUNCiAqIHN0YW5kYXJkIGpRdWVyeSBsaWJyYXJ5IGZvciBhbGwgcHJvZHVjdGlvbiB1c2UuDQogKg0KICogQ29tbWVudCB2ZXJzaW9uOiAxLjMuMmINCiAqLw0KDQovKg0KICogalF1ZXJ5IEphdmFTY3JpcHQgTGlicmFyeSB2MS4zLjINCiAqIGh0dHA6Ly9qcXVlcnkuY29tLw0KICoNCiAqIENvcHlyaWdodCAoYykgMjAwOSBKb2huIFJlc2lnDQogKg0KICogUGVybWlzc2lvbiBpcyBoZXJlYnkgZ3JhbnRlZCwgZnJlZSBvZiBjaGFyZ2UsIHRvIGFueSBwZXJzb24gb2J0YWluaW5nDQogKiBhIGNvcHkgb2YgdGhpcyBzb2Z0d2FyZSBhbmQgYXNzb2NpYXRlZCBkb2N1bWVudGF0aW9uIGZpbGVzICh0aGUNCiAqICJTb2Z0d2FyZSIpLCB0byBkZWFsIGluIHRoZSBTb2Z0d2FyZSB3aXRob3V0IHJlc3RyaWN0aW9uLCBp |
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 | |
// from http://www.highonphp.com/regex-pattern-parsing-ifconfig | |
$data = <<<EOF | |
eth0 Link encap:Ethernet HWaddr 00:50:56:33:B6:D2 | |
inet addr:192.168.12.103 Bcast:192.168.12.255 Mask:255.255.255.0 | |
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 | |
RX packets:1337 errors:0 dropped:0 overruns:0 frame:0 | |
TX packets:985 errors:0 dropped:0 overruns:0 carrier:0 |
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/python | |
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (jspenguin@jspenguin.org) | |
# The author disclaims copyright to this source code. | |
import sys | |
import struct | |
import socket | |
import time | |
import select |
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
// launch option | |
// -noforcemparms -noforcemaccel -noforcemspd -novid -high -freq 120 -tickrate 128 | |
// Common Stuff's | |
// Common Stuff's | |
rate "128000" | |
cl_cmdrate "128" | |
cl_updaterate "128" | |
cl_interp "0.0" |
OlderNewer