NAME=winbuild; docker run --rm -it --name ${NAME} --hostname ${NAME} -v /tmp/data:/tmp/data ubuntu bash
apt update -y
apt install -y build-essential git make mingw-w64 win-iconv-mingw-w64-dev
cd /tmp/data
import requests | |
import json | |
url = 'https://server/_api/search/postquery' | |
# X-RequestDigest required for Anti XSRF | |
headers = { | |
'X-RequestDigest':'0x4CF763CCDD37BC34BCEBC236D8C3A14D2B0852792487F30E57C9C46F668D31D461ED7C61FBA3D52DA19ACC6F797EED95B243A414D7A1BA6C736BDBD50A0D0A83,09 Mar 2020 13:32:05 -0000', | |
'Content-Type': 'application/json;odata=verbose', |
import json | |
filenames = [] | |
def findcred(dictionary): | |
for k, v in dictionary.items(): | |
if k == 'password' and dictionary['password']: | |
result = {} | |
if 'domainname' in dictionary: | |
result['domainname'] = dictionary['domainname'] |
#!/bin/bash | |
BRIDGE=br-ns | |
# Create switch | |
# ------------------ | |
brctl addbr "${BRIDGE}" | |
brctl stp "${BRIDGE}" off | |
ip link set dev $BRIDGE up | |
#Example of showing function call parameters within a function using the decompiler. | |
#@author Frank Spierings | |
#@category | |
#@keybinding | |
#@menupath | |
#@toolbar | |
import ghidra.app.decompiler.DecompInterface as DecompInterface | |
import ghidra.app.decompiler.ClangTokenGroup as ClangTokenGroup |
import jinja2 | |
# t = 'Variable {{ arg }}\n{% set a = arg.__class__.__base__.__subclasses__() %}{% for i in a %}{{ i }}\n{% endfor %}' | |
t = 'Variable {{ arg }}\n{{ arg.__class__.__base__.__subclasses__()[-36]("id") }}' | |
template = jinja2.Template(t) | |
r = template.render(arg="testing") | |
print(r) | |