Zar-Branch (#6)
Co-authored-by: = <=> Co-authored-by: Driven-Element <129630760+Driven-Element@users.noreply.github.com> Reviewed-on: brotoskyj/AirlockTools#6 Co-authored-by: brotoskyj <jbrotosky@gmail.com> Co-committed-by: brotoskyj <jbrotosky@gmail.com>
This commit was merged in pull request #6.
This commit is contained in:
+24
-16
@@ -4,6 +4,7 @@ import utils.getdeviceevents
|
||||
import utils.allowlist
|
||||
import utils.hashfunctions
|
||||
import utils.pathfunctions
|
||||
import utils.allowfunctions
|
||||
import urllib3
|
||||
import pandas as pd
|
||||
|
||||
@@ -40,28 +41,28 @@ def menu():
|
||||
augmented = utils.hashfunctions.augmentAggregatedHashes(url,aggregated)
|
||||
print(augmented)
|
||||
|
||||
augmented.to_html("augmentedlist.html", index=False)
|
||||
augmented.to_html("z_augmented_list.html", index=False)
|
||||
|
||||
badpublisherlist = []
|
||||
categorized = utils.hashfunctions.categorizeHashes(augmented, 5, badpublisherlist)
|
||||
categorized[0].to_html("needsreview.html", index=False)
|
||||
categorized[1].to_html("approved.html", index=False)
|
||||
categorized[2].to_html("remaining.html", index=False)
|
||||
categorized[0].to_html("z_needs_review.html", index=False)
|
||||
categorized[1].to_html("z_approved_hashes.html", index=False)
|
||||
categorized[2].to_html("z_remaining.html", index=False)
|
||||
|
||||
if choice == '4':
|
||||
html_file = "augmentedlist.html"
|
||||
html_file = "z_augmented_list.html"
|
||||
augmented_df = pd.read_html(html_file)
|
||||
print(augmented_df)
|
||||
combined_df = pd.concat(augmented_df, ignore_index=True)
|
||||
|
||||
path_eligible, path_ineligible = utils.pathfunctions.filepathInitialGroup(combined_df)
|
||||
path_eligible.to_html("EligblePaths.html", index=False)
|
||||
path_ineligible.to_html("IneligiblePaths.html",index=False)
|
||||
path_eligible.to_html("z_eligble_paths.html", index=False)
|
||||
path_ineligible.to_html("z_ineligible_paths.html",index=False)
|
||||
|
||||
if choice == '5':
|
||||
|
||||
executionhist = utils.allowlist.allowlistexechistories(url,True)
|
||||
print(executionhist)
|
||||
#print(executionhist)
|
||||
|
||||
aggregated = utils.hashfunctions.aggregateHashes(executionhist)
|
||||
print(aggregated)
|
||||
@@ -69,20 +70,27 @@ def menu():
|
||||
augmented = utils.hashfunctions.augmentAggregatedHashes(url,aggregated)
|
||||
print(augmented)
|
||||
|
||||
augmented.to_html("augmentedlist.html", index=False)
|
||||
html_file = "augmentedlist.html"
|
||||
augmented.to_html("z_augmented_list.html", index=False)
|
||||
html_file = "z_augmented_list.html"
|
||||
augmented_df = pd.read_html(html_file)
|
||||
combined_df = pd.concat(augmented_df, ignore_index=True)
|
||||
|
||||
path_eligible, path_ineligible = utils.pathfunctions.filepathInitialGroup(combined_df)
|
||||
path_eligible.to_html("EligblePaths.html", index=False)
|
||||
path_ineligible.to_html("IneligiblePaths.html",index=False)
|
||||
path_eligible.to_html("z_eligble_paths.html", index=False)
|
||||
path_ineligible.to_html("z_ineligible_paths.html",index=False)
|
||||
|
||||
badpublisherlist = []
|
||||
badpublisherlist = ["Brave Software, Inc.", "Zoom Video Communications, Inc."]
|
||||
categorized = utils.hashfunctions.categorizeHashes(augmented, 5, badpublisherlist)
|
||||
categorized[0].to_html("needsreview.html", index=False)
|
||||
categorized[1].to_html("approved.html", index=False)
|
||||
categorized[2].to_html("remaining.html", index=False)
|
||||
categorized[0].to_html("z_needs_review.html", index=False)
|
||||
categorized[1].to_html("z_approved_hashes.html", index=False)
|
||||
categorized[2].to_html("z_remaining.html", index=False)
|
||||
|
||||
allowpaths = utils.allowfunctions.filter_and_drop(categorized[1],path_eligible,4)
|
||||
allowpaths.to_html("z_allowed_paths.html", index=False)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user