Showing posts with label python. Show all posts
Showing posts with label python. Show all posts

Tuesday, July 23, 2013

Dictionary With Python

Python is a fast programming language as compared to other programming languages such as C, C++, java.. Also it is have a dictionary class which is very useful to create databases. So I thought writing a dictionary app with python would be efficient, fast and easy to build up.

If you don't have python installed in your system, you can see the installation instructions from my an older post installing python. The required steps I have determined are in the following.

Required Steps:
  1. Create the database.
  2. Take an input from the user.
  3. Search the word user entered in the database.
  4. If database has it, write down the corresponding meaning of the word.

This four steps will be enough to make a simple dictionary, but I want to add a new feature which is 'Adding New Word' feature. I mean the user can be able to add new words if the database has not it. By doing this the user will be able to grow up database of the dictionary. In other words, the user will generate his/her own dictionary. So additional steps are give in the following.

Additional Steps:
    1. If database hasn't it, ask to user 'is he/she want to add the new word'.
    2. If yes, take the new word and its meaning from user.
    3. Add it to the database.
    4. Close the Dictionary.
By using to-do list above, I wrote the following script in python. I named it as Mpdictionary. The code is given below:

The Code:
----------------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------------

Working windows:


If you have any question or need some help, leave a comment below.

Read More

Thursday, July 18, 2013

Worldlist Maker with Python

Fistly, if you haven't installed python in your system, you can wanna read my post about installation of python on linux.
Some peoples, especially hackers and that who wanna be a hacker :)  needs wordlistmaker scripts to hack passwords. A wordlistmaker script required to be very fast and very efficient. Because, most wordlists have thousands of words. So I choosed the language as 'Python' due to its speed. As we know, python is faster than C, C++ , java and pascal etc. I wrote the script and it worked perfectly! You can see some photos in the following. If you want my Wordlist Maker, contact me by using my email which is given in the right sidebar..

Watch the video below:



Working windows and photos : 




Click the following picture, see it is nicely working!













Download the Code!

-->

Read More

Sunday, March 17, 2013

Linux'a Python Kurmak

Normalde linuxun bütün sürümlerinde python kuruludur. Ancak bu kurulu olan sürüm python2x dir.Eğer ki python3x sürümlerinden birini kurmak istiyorsanız yazıyı okumaya devam edin. :)
Python kurulumuna geçmeden önce bazı ayarlamalar yapmamız lazım.
Birinci Adım: Gerekli paketlerin kurulması
Alt+F2 ile terminali açıyoruz. Ve şu kodları giriyoruz:

sudo apt-get install build-essential libncursesw5-dev libreadline5-dev libssl-dev libgdbm-dev libc6-dev libsqlite3-dev tk-dev
Bu paketlerin kurulması net hızınıza göre bir kaç dakika sürebilir.. :)
İkinci Adım: Python un indirilmesi ve dosyaların hard diskinize çıkarılması
terminale şu kodlar giriyoruz:
wget http://www.python.org/ftp/python/3.2/Python-3.2rc2.tgz && tar -xvf Python-3.2rc2.tgz
Bu kod pythonu indirir ve dosyaları şu an bulunduğunuz dizine çıkarır.
Üçüncü Adım: Python un kurulması
Terminale şu kodları giriyoruz:
1.   ./configure
2.   make
3.  sudo make altinstall
Python3.2 linuxunuza kurulmuştur. :)


Read More