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 | |
| # Sparty - Sharepoint/Frontend Auditor | |
| # By: Aditya K Sood - SecNiche Security Labs ! (c) 2013 | |
| license = """ | |
| Copyright (c) 2013, {Aditya K sood} | |
| All rights reserved. | |
| Redistribution and use in source and binary forms, with or without modification, | |
| are permitted provided that the following conditions are met: |
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 | |
| >>> import pprint | |
| >>> from boto.sts import STSConnection | |
| >>> s = STSConnection() | |
| >>> d = s.decode_authorization_message('48hdmxfrx3...41DFkQ') # replace with your own string | |
| >>> pprint.pprint(json.loads(d.decoded_message), indent=4) | |
| { u'allowed': False, | |
| u'context': { u'action': u'iam:PassRole', | |
| u'conditions': { u'items': []}, | |
| u'principal': { u'arn': u'arn:aws:iam::334918212912:user/staging-bouncer', |
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
| pablo@eulogia:/tmp$ cat main.c | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <unistd.h> | |
| #ifdef __APPLE__ | |
| #include <sys/param.h> | |
| #include <sys/mount.h> | |
| #else | |
| #include <sys/statfs.h> | |
| #endif |
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 subprocess | |
| import sys | |
| def get_platform(): | |
| import platform | |
| curr_platform = platform.system().lower() | |
| distro = platform.dist() |
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
| --- a/w3af/core/controllers/dependency_check/dependency_check.py | |
| +++ b/w3af/core/controllers/dependency_check/dependency_check.py | |
| @@ -23,23 +23,6 @@ import sys | |
| import warnings | |
| import logging | |
| -try: | |
| - # Is pip even there? | |
| - import pip | |
| - # We do this in order to check for really old versions of pip |
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 | |
| # Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford ([email protected]) | |
| # The author disclaims copyright to this source code. | |
| import sys | |
| import struct | |
| import socket | |
| import time | |
| import select |
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
| >>> p.print_callers('abc.py', 5) | |
| Ordered by: standard name | |
| List reduced from 913 to 2 due to restriction <'abc.py'> | |
| Function was called by... | |
| ncalls tottime cumtime | |
| abc.py:128(__instancecheck__) <- | |
| abc.py:148(__subclasscheck__) <- 1585 0.008 0.012 HTTPRequest.py:32(HTTPRequest.__init__) | |
| 2449 0.011 0.017 HTTPRequest.py:80(HTTPRequest.get_headers) | |
| 1225 0.030 0.033 HTTPRequest.py:85(HTTPRequest.to_dict) |
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 lxml.etree as etree | |
| class CollectorTarget(object): | |
| def __init__(self): | |
| self.events = [] | |
| self.urls = 0 | |
| def start(self, tag, attrib): | |
| #self.events.append("start %s %r" % (tag, dict(attrib))) | |
| if tag == 'url': |
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 subprocess | |
| import unittest | |
| import re | |
| import shlex | |
| import os | |
| import time | |
| FNULL = open(os.devnull, 'w') |
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 cPickle | |
| import Cookie | |
| c = Cookie.SimpleCookie() | |
| c['abc'] = 'def' | |
| unpickled_highest = cPickle.loads(cPickle.dumps(c, cPickle.HIGHEST_PROTOCOL)) | |
| unpickled_default = cPickle.loads(cPickle.dumps(c)) | |
| print "c['abc'].value ", c['abc'].value |