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
# -*- encoding: utf-8 -*- | |
from __future__ import unicode_literals | |
from functools import wraps | |
from django.core.exceptions import PermissionDenied | |
from django.core.exceptions import ObjectDoesNotExist | |
def door_safe(view=None,model=None): | |
def decorator(func): | |
@wraps(func) | |
def inner(request, *args, **kwargs): |
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
Filee=$1 | |
getaddr(){ | |
addr=`ldd $Filee | cut -d " " -f2 | head -n 1|tr -d "(|)" ` | |
echo $addr | |
} | |
for i in {1..5}; do | |
if [ "$( getaddr )" == "$( getaddr )" ]; then | |
echo "[+] $( getaddr ) == $( getaddr ) " | |
echo "[+] ASLR disabled ! " |
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 capstone import * | |
shellcode_here = "" | |
def toop(code): | |
md = Cs(CS_ARCH_X86, CS_MODE_32) | |
for i in md.disasm(code, 0x1000): | |
print("0x%x:\t%s\t%s" %(i.address, i.mnemonic, i.op_str)) | |
toop(shellcode_here) |
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
import json,xmltodict | |
""" | |
Nmap XML Output to Json Output in Python | |
example : data = xml2json('nmap_output.xml') | |
""" | |
def xml2json(xml): | |
xmlfile = open(xml) | |
xml_content = xmlfile.read() | |
xmlfile.close() | |
xmljson = json.dumps(xmltodict.parse(xml_content), indent=4, sort_keys=True) |
NewerOlder