Skip to content

Instantly share code, notes, and snippets.

View marioepugh's full-sized avatar

marioepugh marioepugh

View GitHub Profile
# 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."
# 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
#!/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"
#!/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.
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"
# 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
# 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
# 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
# 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
#!/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"