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 os | |
import sys | |
import os.path | |
proc = '/proc' | |
fullpath = '' | |
query = sys.argv[1] | |
got = '' | |
for path in os.listdir(proc): |
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 os | |
import sys | |
if __name__ == "__main__": | |
if len(sys.argv) < 2: | |
print("usage: daemon.py cmdline") | |
exit() |
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 | |
try: | |
import gdb | |
except: | |
print("gdb only") | |
exit(0) | |
def version_error(): | |
print("python 2.7.3 only") | |
exit(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
#include <stdio.h> | |
#include <signal.h> | |
#include <sys/time.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <errno.h> | |
#include <string.h> | |
#define CMDLEN 1024 |
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 | |
if __name__ == "__main__": | |
import os | |
import sys | |
import os.path | |
path = sys.argv[1] | |
if not os.path.exists(path): | |
print("Error: file doesn't exists") | |
exit(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/env python | |
"""globals""" | |
source = [""] | |
"""dis.py""" | |
"""Disassembler of Python byte code into mnemonics.""" | |
import sys |
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 os.path | |
import sys | |
import py_compile | |
if __name__ == "__main__": | |
if len(sys.argv) < 2: | |
print("usage: topyc.py yourfile.py") | |
exit(0) | |
path = sys.argv[1] |
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 | |
#-*-encoding=utf-8-*- | |
import pygtk | |
pygtk.require('2.0') | |
import gtk | |
import dia | |
import re | |
import os.path | |
import datetime |
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 os | |
import sys | |
import time | |
import signal | |
import subprocess | |
stap_script = """ | |
global 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
import sys | |
import os | |
from cStringIO import StringIO | |
from traceback import extract_stack | |
""" | |
stack sample: | |
default_headers /usr/lib/python2.7/site-packages/requests/utils.py 452 | |
__init__ /usr/lib/python2.7/site-packages/requests/sessions.py 176 | |
request /usr/lib/python2.7/site-packages/requests/api.py 43 |
OlderNewer