Wordlist with all Possible ASCII Elements
Posted on Monday, November 4, 2013, 05:55 PM
| nessy
After a bit of thinking I believe I have a better way to create all possible ASCII pass phrases, rather than create a recursive function that calls itself as I did in the previous post.
This method takes a slightly different approach, but I believe it to return the same results.
First off let’s create a list of all lower case ASCII character numbers:
>>> chars = range(97, 123) >>> chars [97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122] >>> map(chr, chars) ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'] Next we can set our max word width and current word width variables:
Python Libvirt Domain Configuration
Posted on Monday, November 4, 2013, 05:52 PM
| nessy
So in my last article I talked a little bit about using libvirt to start and stop QEMU domains.
In this article I would like to go over how domains are created. QEMU uses XML files for each domain configuration, and using libvirt we can access that data.
First off lets connect to our local running QEMU instance:
>>> import libvirt >>> conn = libvirt.open('qemu:///system') Next lets look for and link to a running domain:
Consuming Jenkins API using Python
Posted on Monday, November 4, 2013, 05:51 PM
| nessy
Lately I’ve been using Jenkins as a central hub for automated task across multiple machines, think a central cron system with a slick web interface.
In a nutshell Jenkins CI is the leading open-source continuous integration server. Built with Java, it provides over 400 plugins to support building and testing virtually any project.
One thing that is very nice about Jenkins is the easy to use REST JSON API .
Diablo III API
Posted on Monday, November 4, 2013, 05:50 PM
| nessy
So I was doing a bit of research on a Diablo III API, and stumbled across this article: http://us.battle.net/d3/en/forum/topic/4877377752 It seems they are still in the early stages, but there is a Character Calculator API, and it is in JSON.
First off we need to load in our Python libraries:
>>> from urllib2 import urlopen >>> from json import loads We can make our request using common URL methods:
>>> res = urlopen('http://us.
Bytes, Nibbles, and Bits in Python
Posted on Monday, November 4, 2013, 05:46 PM
| nessy
Binary Binary is nothing more than a base 2 numbering system using the numbers 0 and 1.
Bit A Bit is merely a single number of either 1 and 0 within the binary.
Byte A Byte consists of 8 bits. A byte containing all 0s will be the integer 0, while a byte containing all 1s will be the integer of 255.
Nibble A Nibble consits of 4 bits. A nibble containing all 0s will be the iteger 0, while a nibble containing all 1s will be the integer 15 (very useful for hex numbers).