This is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running.
Step 1 - Enable NBD on the Host
modprobe nbd max_part=8
| #!/usr/bin/env python2 | |
| """ | |
| Author: takeshix <takeshix@adversec.com> | |
| PoC code for CVE-2014-0160. Original PoC by Jared Stafford (jspenguin@jspenguin.org). | |
| Supportes all versions of TLS and has STARTTLS support for SMTP,POP3,IMAP,FTP and XMPP. | |
| """ | |
| import sys,struct,socket | |
| from argparse import ArgumentParser |
| function StartTagToken(){ | |
| } | |
| function EndTagToken(){ | |
| } | |
| function Attribute(){ | |
| } |
| #!/usr/bin/env python3 | |
| ''' | |
| Layout of buka manga archives | |
| Whole archive | |
| | b"buka" | unknown (16 bytes) | manga title (c string) | entry table | file 1 | file 2 | ... | |
| Entry table | |
| | table size (uint32) | entry 1 | entry 2 | ... | |
| # NOTE: Change this to random numbers in range (0, 255) inclusive | |
| _key = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
| 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
| 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] | |
| _vector = [0, 0, 0, 0, 0, 0, 0, 0, | |
| 0, 0, 0, 0, 0, 0, 0, 0] | |
| from System import Array, Byte | |
| from System.Text import UTF8Encoding | |
| from System.IO import MemoryStream |
| #Retrive old website from Google Cache. Optimized with sleep time, and avoid 504 error (Google block Ip send many request). | |
| #Programmer: Kien Nguyen - QTPros http://qtpros.info/kiennguyen | |
| #change search_site and search_term to match your requirement | |
| #Original: http://www.guyrutenberg.com/2008/10/02/retrieving-googles-cache-for-a-whole-website/ | |
| #!/usr/bin/python | |
| import urllib, urllib2 | |
| import re | |
| import socket |
| import re, sys | |
| from xml.dom import minidom, Node | |
| import math | |
| import argparse | |
| class Matrix: | |
| def m(self, i, j, value=None): | |
| if i >= self.rows or j >= self.cols: | |
| raise ValueError("Argument out of range") |
| import os | |
| from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes | |
| from cryptography.hazmat.primitives import padding | |
| from cryptography.hazmat.backends import default_backend | |
| backend = default_backend() | |
| key = os.urandom(16) | |
| text = b'Hello, there!' | |
| padder = padding.PKCS7(algorithms.TripleDES.block_size).padder() |