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
from django.contrib.sessions.models import Session | |
from django.contrib.auth import get_user | |
from django.contrib.auth.models import User | |
from juggernaut import Juggernaut | |
jug = Juggernaut() | |
def get_current_sessions(uid): | |
class Dummy(object): pass | |
django_request = Dummy() | |
s = Session.objects.all() |
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
As posted on http://apple.stackexchange.com/questions/146849/how-do-i-recompile-bash-to-avoid-the-remote-exploit-cve-2014-6271-and-cve-2014-7/146851#146851 by http://apple.stackexchange.com/users/1573/alblue | |
$ mkdir bash-fix | |
$ cd bash-fix | |
$ curl https://opensource.apple.com/tarballs/bash/bash-92.tar.gz | tar zxf - | |
$ cd bash-92/bash-3.2 | |
$ curl https://ftp.gnu.org/pub/gnu/bash/bash-3.2-patches/bash32-052 | patch -p0 | |
$ cd .. | |
$ xcodebuild | |
$ sudo cp /bin/bash /bin/bash.old |