<commit_before>#!/usr/bin/env python
import sqlite3, optparse, os


def banner():
	print "######    Skype DB Query p105  #######"
	print "__________-------------------_________"

def printProfile(skypeDB):

def printContacts(skypeDB):

def printCallLog(skypeDB):

def printMessages(skypeDB):


def main():
	parser = optparse.OptionParser('usage%prog '+'-p <Skype Profile Path>')
	parser.add_option('-p', dest='pathname', type ='string', help ='specify skype profile path')
	(options, args) = parser.parse_args()
	pathname = options.pathname
	if pathname == None:
		print parser.usage
		exit(0)
	elif os.path.isdir(pathName) == Fa;se:
		print '[!] Path Does not exist: '+pathname
		exit(0)
	else:
		skypeDB = os.path.join(pathname, 'main.db')
		if os.path.isfile(skypeDB):
			printProfile(skypeDB)
			printContacts(skypdDB)
			printCallLog(skypeDB)
			printMessages(skypeDB)
	else:
		print '[!] Skype Database '+'does not exist: '+skypeDB


<commit_msg>Main, and Print Profile Functions complete.  Still in progress<commit_after>#!/usr/bin/env python
import sqlite3, optparse, os


def banner():
	print "######    Skype DB Query p105  #######"
	print "__________-------------------_________"

def printProfile(skypeDB):
	conn = sqlite3.connect(skypeDB)
	c = conn.cursor()
	c.execute("SELECT fullname, skypename, city, country, datetime(profile_timestamp, 'unixepoch') FROM Accounts;")
	for row in c:
		print '[*] --Found Account--'
		print '[+] User: '+str(row[0])
		print '[+] Skype Username: '+str(row[1])
		print '[+] Location: '+str(row[2])+','+str(row[3])
		print '[+] Profile Date: '+str(row[4])
		
def printContacts(skypeDB):

def printCallLog(skypeDB):

def printMessages(skypeDB):


def main():
	parser = optparse.OptionParser('usage%prog '+'-p <Skype Profile Path>')
	parser.add_option('-p', dest='pathname', type ='string', help ='specify skype profile path')
	(options, args) = parser.parse_args()
	pathname = options.pathname
	if pathname == None:
		print parser.usage
		exit(0)
	elif os.path.isdir(pathName) == Fa;se:
		print '[!] Path Does not exist: '+pathname
		exit(0)
	else:
		skypeDB = os.path.join(pathname, 'main.db')
		if os.path.isfile(skypeDB):
			printProfile(skypeDB)
			printContacts(skypdDB)
			printCallLog(skypeDB)
			printMessages(skypeDB)
	else:
		print '[!] Skype Database '+'does not exist: '+skypeDB



{'fraction_non_alphanumeric': 0.17543859649122806, 'fraction_numerical': 0.007702182284980745, 'mean_word_length': 4.501176470588235, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3047685', 'n_tokens_mistral': 903, 'n_tokens_neox': 828, 'n_words': 198}