- First download
dbfpy: http://sourceforge.net/projects/dbfpy/files/latest/download?source=files - Then install:
sudo python setup.py install
To convert DBF file to CSV:
./dbf2csv database.dbf
| import skew | |
| for instance in skew.scan('arn:aws:ec2:*:*:instance/*'): | |
| if not instance.tags: | |
| print('%s is untagged' % instance.arn) |
| import skew | |
| total_size = 0 | |
| total_volumes = 0 | |
| for volume in skew.scan('arn:aws:ec2:*:*:volume/*'): | |
| if not volume.data['Attachments']: | |
| total_volumes += 1 | |
| total_size += volume.data['Size'] | |
| print('%s: %dGB' % (volume.arn, volume.data['Size'])) |
| # Initialize the scroll | |
| page = es.search( | |
| index = 'yourIndex', | |
| doc_type = 'yourType', | |
| scroll = '2m', | |
| search_type = 'scan', | |
| size = 1000, | |
| body = { | |
| # Your query's body | |
| }) |
dbfpy: http://sourceforge.net/projects/dbfpy/files/latest/download?source=filessudo python setup.py installTo convert DBF file to CSV:
./dbf2csv database.dbf
| # /dev/alias Pentest Environment Setup | |
| # Version: 0.2 (20131211) | |
| # Created By: Glenn 'devalias' Grant (http://devalias.net) | |
| # License: The MIT License (MIT) - Copyright (c) 2013 Glenn 'devalias' Grant (see http://choosealicense.com/licenses/mit/ for full license text) | |
| # TODO: | |
| # * Option to check if tools (from this script and external) exist/are already installed and what versions | |
| # * Eg nmap , metasploit, etc | |
| # * Lair: https://github.com/fishnetsecurity/Lair | |
| # * apt-get install python-pip |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
| #!/usr/bin/env python | |
| import sys | |
| # Lamson is an application, but also the best way to read email without | |
| # struggling with "battery include" libraries. | |
| from lamson.encoding import from_string as parse_mail | |
| from pyelasticsearch import ElasticSearch | |
| from pyelasticsearch.exceptions import ElasticHttpNotFoundError |
If you are adventurous, here the process to have Hipchat working in your favourite IRC client:
First, you need to install the IRSSI XMPP plugin. You can find this package in your distribution, but I advice you to use the latest version possible if you don't want this segfault errors everywhere: http://gna.org/bugs/?20487
The first version released after the patch fix is the 0.52-2 that you can download here: https://launchpad.net/ubuntu/+archive/primary/+files/irssi-plugin-xmpp_0.52-2_amd64.deb (No dependencies so it should work in any Debian distributions)
Once it's done. You have to configure IRSSI. Either via command line, either manually in the ~/.irssi/config file. I followed this thread: http://cybione.org/lists/irssi-xmpp-list/msg00339.html and it was pretty successful.
You can find your XMPP access on your HipChat account on this page: https://boxuk.hipchat.com/account/xmpp. Everything has a XMPP account id. Even the Rooms name. So you have to use these instead of the real names for your I
| If you want, I can try and help with pointers as to how to improve the indexing speed you get. Its quite easy to really increase it by using some simple guidelines, for example: | |
| - Use create in the index API (assuming you can). | |
| - Relax the real time aspect from 1 second to something a bit higher (index.engine.robin.refresh_interval). | |
| - Increase the indexing buffer size (indices.memory.index_buffer_size), it defaults to the value 10% which is 10% of the heap. | |
| - Increase the number of dirty operations that trigger automatic flush (so the translog won't get really big, even though its FS based) by setting index.translog.flush_threshold (defaults to 5000). | |
| - Increase the memory allocated to elasticsearch node. By default its 1g. | |
| - Start with a lower replica count (even 0), and then once the bulk loading is done, increate it to the value you want it to be using the update_settings API. This will improve things as possibly less shards will be allocated to each machine. | |
| - Increase the number of machines you have so |
| >>> import boto | |
| >>> ec2 = boto.connect_ec2() | |
| >>> stats = ec2.get_all_instance_status() | |
| >>> stats | |
| [InstanceStatus:i-67c81e0c] | |
| >>> stat = stats[0] | |
| >>> stat | |
| InstanceStatus:i-67c81e0c | |
| >>> stat.id | |
| u'i-67c81e0c' |