To get the latest version of libreoffice, do the following:
sudo su
echo 'deb http://ftp.debian.org/debian/ wheezy-backports main contrib non-free' >> /etc/apt/sources.list
echo 'deb-src http://ftp.debian.org/debian/ wheezy-backports main contrib non-free' >> /etc/apt/sources.list
apt-get update && apt-get -t wheezy-backports install libreoffice
Thursday, 30 January 2014
Installing Skype On Debian (64bit)
There is no 64bit version, so we need to install the 32bit version.
sudo dpkg --add-architecture i386
sudo apt-get update
wget -O /tmp/skype.deb http://www.skype.com/go/getskype-linux-deb
sudo dpkg -i /tmp/skype.deb
sudo apt-get install -f
That's it!
Wednesday, 29 January 2014
Retrieving historical financial data with python
Requirements
- ystockquote
- pandas
Here is the sample python code, which will retrieve historical data from yahoo on any financial instrument (e.g. Google).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
from pandas import Series, DataFrame | |
import ystockquote | |
his1 = ystockquote.get_historical_prices('GOOG', '2013-01-01', '2014-01-01') | |
stock1 = DataFrame(his1) | |
print stock1 | |
##if you just want e.g. the closing price | |
close_s1 = stock1.ix['Close'] | |
print close_s1 |
Tuesday, 21 January 2014
How to hash and crack UNIX passwords in python
Crypt module
I am using the crypt module here, which is a one-way hash function based upon a modified DES algorithm. You can easily adjust the script to crack secure hash algorithms (SHA1, SHA224, SHA256, SHA384, and SHA512 (defined in FIPS 180-2) as well as RSA’s MD5 algorithm ) by using the hashlib module.Crypt Overview
import cryptcrypt.crypt("user", "AD")
'AD5Qg2vQhsLRw'
AD is the salt, which is a random two-character string which will be used to perturb the DES algorithm in one of 4096 ways.
AD is the salt, which is a random two-character string which will be used to perturb the DES algorithm in one of 4096 ways.
The python password cracking script
import crypt
def testPass(hashpass):
salt = hashpass[0:2]
dictionary = open('dictionary.txt', 'r') #this is our dictionary file
for word in dictionary.readlines():
word = word.strip('\n')
crypto = crypt.crypt(word,salt)
if crypto == hashpass:
print "[+] Password: "+word+"\n"
return
print "[-] Password Not Found.\n"
return
def main():
hashpass = open('passwords.txt', 'r') #file with hashed password
for line in hashpass.readlines():
if ":" in line:
user = line.split(':')[0]
hashpass = line.split(':')[1].strip(' ')
print "[*] Cracking Password For: "+user
testPass(hashpass)
if __name__ == "__main__":
main()
Save the script as cracker.py. You also need to create a dictionary.txt and password.txt (with the hashed passwords) file to successfully run the program.
Create a new folder and put the three files into it, afterwards simply run
python cracker.py
You can download all of the files here: Drive
Sunday, 12 January 2014
Installing Metasploit on Debian (or Ubuntu)
sudo su apt-get -y install build-essential zlib1g zlib1g-dev libxml2 libxml2-dev libxslt-dev locate libreadline6-dev libcurl4-openssl-dev git-core libssl-dev libyaml-dev openssl autoconf libtool ncurses-dev bison curl wget postgresql postgresql-contrib libpq-dev libapr1 libaprutil1 libsvn1 libpcap-dev apt-get install git-core postgresql curl ruby1.9.3 nmap gem gem install wirble sqlite3 bundler cd /opt git clone https://github.com/rapid7/metasploit-framework.git cd metasploit-framework bundle install ./msfconsole
msfconsole tutorial: click
Subscribe to:
Posts (Atom)
How to download a portion of Youtube Video with youtube-dl
First make you have both youtube-dl and ffmpeg installed: sudo apt install youtube-dl ffmpeg Then download a portion of your desired...

-
OsmocomBB is an Open Source GSM Baseband software implementation. By using the sofware on a compatible phone (e.g. Motorola C118), you are a...
-
The Problem For several reason I do not have access to LAN and thus have to rely on WIFI for my mining rigs. It is fine for most of the ti...
-
Requirements --> Banana Pi running Raspbian for Banana Pi --> Breadboard --> Jumper Wires --> DS18b20 --> 4.7K Ohm re...