This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Script Name: OpsChal14.py | |
| # Author: Mario Pugh | |
| # Date of last revision: Sepetember 17, 2020 | |
| # Description of purpose: Malware Analysis | |
| #!/usr/bin/python # To use the python interpeter | |
| import os # Importing os library for accessing a variety of system-based functions, can be used for file and directory manipulation. | |
| import datetime # Importing datetime library for working with date and time. | |
| SIGNATURE = "VIRUS" # Declared the variable named signature and passed to it "Virus." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Script Name: Automated Network Backup | |
| # Author: Mario Pugh | |
| # Date of last revision: 8/16/2020 | |
| # Description of purpose: Create an Automated Network Backup | |
| # Copy a file to a different location on the same drive | |
| Copy-Item C:\Users\Mario\Documents\SundaySundaySunday.txt C:\Users\Mario\Desktop | |
| # Copy an entire folder and contents to desktop | |
| Robocopy C:\Users\Mario\Documents\SundayHeatWave C:\Users\Mario\Desktop\SundayHeatWave |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Script Name: showListeningPorts.sh | |
| # Author: Mario Pugh | |
| # Date of last revision: 08/12/2020 | |
| # Description of purpose: Show listening ports | |
| # Declaration of variables: | |
| listening_ports="Show listening ports" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Script Name: bashAnalyzer.sh | |
| # Author: Mario Pugh | |
| # Date of last revision: 08/11/2020 | |
| # Description of purpose: Bash domain analyzer | |
| # User input string for domain | |
| echo Hello, enter selected domain name to research. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| GNU nano 4.8 bashAnalyzer.sh Modified | |
| #!/bin/bash | |
| # Script Name: | |
| # Author: Mario Pugh | |
| # Date of last revision: 08/11/2020 | |
| # Description of purpose: Bash domain analyzer | |
| # Declaration of variables: | |
| domain_analyzer="Bash domain generated" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Script Name: IPv4Getter.ps1 | |
| # Author: Mario Pugh | |
| # Date of last revision: 8/10/2020 | |
| # Purpose: Powershell IP Analysis Output | |
| # Declaration of variables | |
| $IPv4 = "network_report.txt" | |
| # Declaration of functions | |
| Function infoGetter |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Script Name: systemProcessCommands.ps1 | |
| # Author: Mario Pugh | |
| # Date of last revision: 8/6/2020 | |
| # Purpose: A Powershell script that retrieves information from Task Manager | |
| # Descriptor of each assignment component | |
| # 1. Print to the terminal screen all active processes ordered by highest CPU time consumption at the top. | |
| Get-Process | Sort CPU -Descending | Select -First 5 -Property ID,ProcessName,CPU |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Script Name: powershellManagement.ps1 | |
| # Author: Mario Pugh | |
| # Date of last revision: 8/5/2020 | |
| # Purpose: A Powershell script that retrieves information from Event Log | |
| # Declare variables | |
| # Get all event logs from past 24 hours, output to last_24.txt | |
| Get-EventLog Application -After (Get-Date).Addhours(-24) > last_24.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Script Name: powershellCPUinfo.ps1 | |
| # Author: Mario Pugh | |
| # Date of last revision: 8/3/2020 | |
| # Purpose: A Powershell script that retrieves information about computer | |
| # Declare variables | |
| $CPUinfo = "System parameters" | |
| # Declare functions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Script: Automated backup | |
| # Author: Mario Pugh | |
| # Date of latest revision: 7/31/2020 | |
| # Purpose: Create a new file, in a new directory and back up file. | |
| # Declare variable: | |
| new_file="Backed up file" |
NewerOlder