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
#!/usr/bin/python | |
def drink_beer(): | |
global caps | |
global empties | |
global full | |
caps += 1 | |
empties += 1 | |
full -= 1 | |
print "Drank full bottle.\n" |
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
#!/usr/bin/python | |
f = open("input.txt", "ro") | |
words = f.readline().split(" ") | |
f.close() | |
limit = len(max(words, key=len)) + 1 | |
for i in range(1, limit): | |
count = 0 |
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
#!/usr/bin/perl | |
# | |
# Title: Slider Revolution/Showbiz Pro shell upload exploit | |
# Author: Simo Ben youssef | |
# Contact: Simo_at_Morxploit_com | |
# Discovered: 15 October 2014 | |
# Coded: 15 October 2014 | |
# Updated: 25 November 2014 | |
# Published: 25 November 2014 | |
# MorXploit Research |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>org.collectd.collectd</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/opt/local/sbin/collectd</string> | |
<string>-f</string> |
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
#!/usr/bin/env python | |
# This script copies all records from a mysql database table into the | |
# corresponding table in the postgresql database. Tables must be created | |
# with the proper structure before running this script. | |
import psycopg2 as pgdb | |
import MySQLdb | |
host = 'localhost' | |
user = 'user' | |
pass = 'password' |
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
#!/usr/bin/env python | |
import requests | |
import json | |
apikey = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' | |
headers = { "Authorization": "Bearer "+ apikey , "Content-Type" : "application/json" } | |
r = requests.get('https://api.digitalocean.com/v2/images/?type=snapshot&per_page=100', headers=headers) | |
parsed = json.loads(r.text) |
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
#!/usr/bin/env python | |
import requests | |
import json | |
apikey = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' | |
headers = { "Authorization": "Bearer "+ apikey , "Content-Type" : "application/json" } | |
r = requests.get('https://api.digitalocean.com/v2/account/keys', headers=headers) | |
parsed = json.loads(r.text) |
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
#!/usr/bin/perl | |
use strict; | |
my $moebius = "/home/jsipek/Copy/linrel_x86_64-superlowmem/moebius.admin"; | |
my $output = `$moebius -s /var/run/moebius/moebius.sock df -c | tail -1`; | |
if ( ($? >> 8) == 0 ) { | |
print "CRITICAL: moebius.admin failed to run.\n"; | |
exit(2); |
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
#!/usr/bin/perl | |
# ips.pl | |
# version 0.01 | |
# | |
# This is a quick hack to apply IPS patches. It is distributed under | |
# the terms of the GNU General Public License. | |
if (@ARGV != 2) | |
{ |
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
!/usr/bin/python | |
import json | |
import requests | |
host = "1.2.3.4" | |
hash = """xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx""" | |
hash = hash.replace('\n', '') |