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 java.io.File; | |
| import java.io.FileInputStream; | |
| import java.util.Scanner; | |
| import javassist.*; | |
| import uk.co.agena.minerva.util.helpers.*; | |
| class Injector | |
| { |
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
| ts() -> | |
| {{Y,M,D},{H,Min,S}} = calendar:now_to_local_time(now()), | |
| io_lib:format("-~4.4.0w~2.2.0w~2.2.0w-~2.2.0w~2.2.0w~2.2.0w", | |
| [Y,M,D,H,Min,S]). |
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
| POST /CGI/Execute HTTP/1.0 | |
| Host: 10.19.0.10 | |
| Content-Length: 66 | |
| Authorization: Basic dXNlcjpwYXNzd29yZA== | |
| Content-Type: application/x-www-form-urlencoded | |
| Accept-Encoding: identity, deflate, compress, gzip | |
| Accept: */* | |
| User-Agent: python-requests/0.12.1 | |
| <CiscoIPPhoneStatus> |
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 | |
| function push2phone($ip, $port, $uri, $uid, $pwd) | |
| { | |
| $b = rand() % 10; | |
| $k = rand() % 10; | |
| $auth = base64_encode($uid.":".$pwd); | |
| $xml = <<<EOD | |
| <CiscoIPPhoneStatus> |
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
| <CiscoIPPhoneImage><LocationX>-1</LocationX><LocationY>-1</LocationY><Height>100</Height><Width>160</Width><Depth>2</Depth><Data>FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF03000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF03000000FFFCF33FFCF0FFF0CFFF0F3FFCFFFCF0FFFFFFFFFFFFFFFFFFFFFFFFFFFF3FFCFCF0FFFF030000003FFCF0CF33FF3FCFC33FF3CCFF333CCFFFFFFFFFFFFFFFFFFFFFFFFFFFFFCF333CCFFFFF03000000FFFCF3FF33FF3FC3CFFF33CCFFFFFCCFFFFFFFFFFFFFFFFFFFFFFFFFFFFFCFF33CC3FFFF03000000FFFCF3FF3CF03FCCCFCFC30CFCFCFCF3FFFFFFFFFFFFFFFFFFFFFFFFFFFF3FFC3CCCFFFF03000000FFFCF33F3FCF3FCFCFFFF3CCF3FFFCFCFFFFFFFFFFFFFFFFFFFFFFFFFFFFCFF33CCFFFFF03000000FFFCF3CF3FCF3FCFCFF3F3CC33FF3CFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFCFF33CCFFFFF030000003FF0C00FF0F0FFF003FF0F3FFC3F30C0FFFFFFFFFFFFFFFFFFFFFFFFFFFF3F3CF0F0FFFF03000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 |
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 | |
| from xmlrpclib import ServerProxy | |
| host = 'localhost' | |
| username = 'freeswitch' | |
| password = 'works' | |
| port = '8080' | |
| server = ServerProxy("http://%s:%s@%s:%s" % (username, password, host, port)) |
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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <dlfcn.h> | |
| int main(int argc, char **argv) | |
| { | |
| void *imglib; | |
| int (*extopenimage)(int, char**); | |
| int imghandle; | |
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 | |
| # usage: sudo ./czasomierz.py /var/log/syslog* | |
| from datetime import datetime, timedelta, date, time | |
| import sys | |
| import gzip | |
| from itertools import groupby | |
| def parse_date(line): | |
| fields = line.split() |
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 json | |
| from lxml.html import fromstring | |
| from urllib import urlopen | |
| def get_tree(page): | |
| d = urlopen('http://audio.tutsplus.com/category/tutorials/production/page/%d' % page).read() | |
| h = fromstring(d) | |
| return h | |
| def extract_art(head): |
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 sys | |
| import re | |
| import os | |
| import hglib | |
| repos_dir = sys.argv[1] | |
| ticket = sys.argv[2] | |
| patches_dir = sys.argv[3] |