This document is under construction, but is intended to get you up and running quickly with cracking hashes in the cloud using the Paperspace service.
Resources used for this article:
| --- | |
| - hosts: localhost | |
| gather_facts: no | |
| vars_files: | |
| - vcenter_vars.yml | |
| vars: | |
| hostname: kickstart_vm | |
| tasks: | |
| - name: Boot VM with CentOS 7 installation iso in CDROM | |
| vmware_guest: |
This document is under construction, but is intended to get you up and running quickly with cracking hashes in the cloud using the Paperspace service.
Resources used for this article:
| #!/bin/bash | |
| # Install useful Linux tools for labs | |
| # libvirt/kvm terraform packer docker | |
| # Todo | |
| #- Fix tools list: `$apt`,`$yum` vars | |
| #- use `$OPTARG` var for custom packages | |
| tf_version="0.14.5" | |
| tools_installation () { |
| #!/usr/bin/env python3 | |
| # Use: ./subnet.py <ip/cidr> | |
| # Alt: ./subnet.py <ip> <mask> | |
| import sys | |
| if __name__=="__main__": | |
| addr = [0, 0, 0, 0] | |
| mask = [0, 0, 0, 0] | |
| cidr = 0 |
Today I've solved the problem of one server being to slow to handle the growth of my zabbix configuration. I'm using zabbix-server 2.2.2 with MySQL/Debian backend and around 20 zabbix-agents with Debian installed.
Let's say old Zabbix server IP is: A.B.C.D and new is: U.X.Y.Z. The domain name for the instalation will be: http://zbx.newmachine.com
Below you will find all steps to migrate your configuration:
Ensure all agents will accept connections from the new IP Modify each agent configuration file (in debian: /etc/zabbix/zabbix_agentd.conf) and add new IP
| #!/usr/bin/env python3 | |
| """A simple python script template. | |
| """ | |
| import os | |
| import sys | |
| import argparse |
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| """pyscript.py | |
| A simple python script template. | |
| http://ajminich.com/2013/08/01/10-things-i-wish-every-python-script-did/ | |
| """ | |
| import argparse | |
| # Sources : | |
| https://goldilocks.readthedocs.io/en/latest/source/goldilocks.html#module-goldilocks.strategies | |
| https://samnicholls.net/2016/06/15/how-to-sphinx-readthedocs/ | |
| https://gisellezeno.com/tutorials/sphinx-for-python-documentation.html | |
| http://www.sphinx-doc.org/en/master/man/sphinx-apidoc.html | |
| https://stackoverflow.com/questions/2701998/sphinx-autodoc-is-not-automatic-enough | |
| https://github.com/MISP/PyMISP/blob/master/docs/source/conf.py | |
| https://raw.githubusercontent.com/MISP/PyMISP/master/docs/source/index.rst | |
| https://raw.githubusercontent.com/MISP/PyMISP/master/docs/source/modules.rst | |
| https://stackoverflow.com/questions/13516404/sphinx-error-unknown-directive-type-automodule-or-autoclass/17004855 |
| Set-Location -Path 'C:\Program Files' | |
| [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | |
| Invoke-WebRequest -Uri 'https://github.com/PowerShell/Win32-OpenSSH/releases/download/V8.6.0.0p1-Beta/OpenSSH-Win64.zip' -OutFile openssh.zip | |
| Expand-Archive 'openssh.zip' -DestinationPath 'C:\Program Files\' | |
| $oldpath = (Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment' -Name PATH).path | |
| $newpath = "$oldpath;C:\Program Files\OpenSSH-Win64" | |
| Set-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment' -Name PATH -Value $newPath |
| #!/bin/bash | |
| # Check if environment variables are are set. | |
| # https://stackoverflow.com/a/65396324 | |
| varlist=" | |
| MAIL_TO | |
| MAIL_ADMIN | |
| SCW_DEFAULT_PROJECT_ID | |
| SCW_DEFAULT_ORGANIZATION_ID | |
| SCW_DEFAULT_REGION |