- Implementation of Cloud
- Indicators of Compromise
- Forensics in Linux
- Memory & Forensics
- Multiprocessing Support
- Network Time Protocol
- Mobile Forensics
- Python Imaging Library
- Indexing
- Searching
- Dshell and Scapy
- Python Modules
- Network Forensics
- Virtualization
- Cracking an Encryption
- Hash Function
- Basic Forensic Application
- Overview of Python
- Installation of Python
- Introduction
- Home
Python Forensics Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Python Forensics - Implementation of Cloud
Cloud computing can be defined as a collection of hosted services provided to users over the Internet. It enables organizations to consume or even compute the resource, which includes Virtual Machines (VMs), storage, or an apppcation as a utipty.
One of the most important advantages of building apppcations in Python programming language is that it includes the abipty to deploy apppcations virtually on any platform, which includes cloud as well. It imppes that Python can be executed on cloud servers and can also be launched on handy devices such as desktop, tablet, or smartphone.
One of the interesting perspectives is creating a cloud base with the generation of Rainbow tables. It helps in integrating single and multiprocessing versions of the apppcation, which requires some considerations.
Pi Cloud
Pi Cloud is the cloud computing platform, which integrates Python programming language with the computing power of Amazon Web Services.
Let’s take a look at an example of implementing Pi clouds with rainbow tables.
Rainbow Tables
A rainbow table is defined as a psting of all possible plain text permutations of encrypted passwords specific to a given hash algorithm.
Rainbow tables follow a standard pattern, which creates a pst of hashed passwords.
A text file is used to generate passwords, which include characters or plain text of passwords to be encrypted.
The file is used by Pi cloud, which calls the main function to be stored.
The output of hashed passwords is stored in the text file as well.
This algorithm can be used to save passwords in the database as well and have a backup storage in the cloud system.
The following in-built program creates a pst of encrypted passwords in a text file.
Example
import os import random import hashpb import string import enchant #Rainbow tables with enchant import cloud #importing pi-cloud def randomword(length): return .join(random.choice(string.lowercase) for i in range(length)) print( Author- Radhika Subramanian ) def mainroutine(): engdict = enchant.Dict("en_US") fileb = open("password.txt","a+") # Capture the values from the text file named password while True: randomword0 = randomword(6) if engdict.check(randomword0) == True: randomkey0 = randomword0+str(random.randint(0,99)) epf engdict.check(randomword0) == False: engpst = engdict.suggest(randomword0) if len(engpst) > 0: randomkey0 = engpst[0]+str(random.randint(0,99)) else: randomkey0 = randomword0+str(random.randint(0,99)) randomword3 = randomword(5) if engdict.check(randomword3) == True: randomkey3 = randomword3+str(random.randint(0,99)) epf engdict.check(randomword3) == False: engpst = engdict.suggest(randomword3) if len(engpst) > 0: randomkey3 = engpst[0]+str(random.randint(0,99)) else: randomkey3 = randomword3+str(random.randint(0,99)) if randomkey0 and randomkey3 and randomkey1 in locals(): whasher0 = hashpb.new("md5") whasher0.update(randomkey0) whasher3 = hashpb.new("md5") whasher3.update(randomkey3) whasher1 = hashpb.new("md5") whasher1.update(randomkey1) print(randomkey0+" + "+str(whasher0.hexdigest())+" ") print(randomkey3+" + "+str(whasher3.hexdigest())+" ") print(randomkey1+" + "+str(whasher1.hexdigest())+" ") fileb.write(randomkey0+" + "+str(whasher0.hexdigest())+" ") fileb.write(randomkey3+" + "+str(whasher3.hexdigest())+" ") fileb.write(randomkey1+" + "+str(whasher1.hexdigest())+" ") jid = cloud.call(randomword) #square(3) evaluated on PiCloud cloud.result(jid) print( Value added to cloud ) print( Password added ) mainroutine()
Output
This code will produce the following output −
The passwords are stored in the text files, which is visible, as shown in the following screenshot.
Advertisements