<jupyter_start><jupyter_text>Introduction : Internet Archiveit a collection of historical documents or records providing information about institutionor digital identity.<jupyter_code># Date of creation : 17 july 2021
# Version : 1.0
# Description : This notebook helps in collecting archive information
# Tools used here are:
1-  Axtrack
2-  Waybackurls<jupyter_output><empty_output><jupyter_text>Importing packages<jupyter_code># Importing packages 
import os<jupyter_output><empty_output><jupyter_text>Getting the location of current working directory<jupyter_code># Getting the location of current working directory

def current_working_directory():
    cwd=os.getcwd()
    print("Location of current working directory :", cwd)
current_working_directory()<jupyter_output>Location of current working directory : /root/Desktop/offensivenotebook/web_assets<jupyter_text>Making directory name Internet_archive<jupyter_code># making directory name internet archive

def making_directory_internet_archive():
    try:
        os.mkdir("Internet_archive")
    except Exception as e:
        print(e)
making_directory_internet_archive()<jupyter_output>[Errno 17] File exists: 'Internet_archive'<jupyter_text>Archiving information based on domain name<jupyter_code># Archivig information based on domain name

def archive_information():
    try:
        os.system("cat Subdomain_results/all_domains.txt | waybackurls > Internet_archive/waybackurls.txt")
    except Exception as e:
        print(e)
archive_information()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.07388204795852236, 'fraction_numerical': 0.007777057679844459, 'mean_word_length': 6.458937198067633, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 20, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '5', 'dir': 'jupyter-structured-clean-dedup', 'id': '181581', 'license': 'MIT', 'n_tokens_mistral': 459, 'n_tokens_neox': 443, 'n_words': 119, 'path': 'web_assets/.ipynb_checkpoints/internet_archive-checkpoint.ipynb', 'repo_name': 'Operation-Falcon/AttackSurfaceManagement', 'size': '1543'}