Ejemplo n.º 1
0
from conf_reader import ConfReader
from search_engine import SearchEngine
from file_input import *
from directory_walking import *
from string_token import *
from fetch_files import fetchNetApps
from database_engine import dbHandle
import sys

reader = ConfReader('sockets_analysis.conf')

constants = reader.getItems('constants')
functions = reader.getItems('functions')
structures = reader.getItems('structures')
applications = reader.getItems('applications')

all_socket_api = constants + functions + structures
"""
file_token = readFile("netstream.c")

# print file_token

string_temp = string_lexical(file_token)


#print string_temp



temp = simple_api_constant_counter("AF_INET", string_temp)
Ejemplo n.º 2
0
from search_engine import SearchEngine
from file_input import *
from directory_walking import *
from fetch_files import fetchNetApps
from database_engine import dbHandle

#reader = ConfReader('sockets_API.conf')
reader = ConfReader('sockets_analysis.conf')

#reader.print_test()

#print reader.getValue('functions', 'socket')
#print reader.getItems('functions')
#print reader.getItems('structures')

functions = reader.getItems('functions')
structures = reader.getItems('structures')
applications = reader.getItems('applications')

#print applications

#all = reader.getItems('functions') + reader.getItems('structures')
all = functions + structures

fetchnetapps = fetchNetApps(applications)
fetchnetapps.download_apps()
fetchnetapps.decompress_apps()

dbhandle = dbHandle(functions, structures, applications)
"""
reader.saveItemsDic('functions')
Ejemplo n.º 3
0
from conf_reader import ConfReader
from search_engine import SearchEngine
from file_input import *
from directory_walking import *
from string_token import *
from fetch_files import fetchNetApps
from database_engine import dbHandle
import sys

reader = ConfReader('sockets_analysis.conf')


constants = reader.getItems('constants')
functions = reader.getItems('functions')
structures = reader.getItems('structures')
applications = reader.getItems('applications')

all_socket_api = constants + functions + structures 

"""
file_token = readFile("netstream.c")

# print file_token

string_temp = string_lexical(file_token)


#print string_temp