Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes on testing ready for competition #11

Merged
merged 3 commits into from
Jan 19, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Ubuntu.conf
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ MEDIA_LOCATIONS=true
#log all root cronjobs
LOG_CRON=true

#Log all running processes
PS_LOG=true

#run netstat command and log the output
LOG_NETSTAT=true

Expand Down
9 changes: 7 additions & 2 deletions Ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if [ -r Ubuntu.conf ]; then
# Upgrade all installed packages
if [ "$UPGRADES" = true ]; then
echo "installing updates"
apt-get upgrade -y
apt-get dist-upgrade -y
fi

# Clean up unnecessary junk
Expand All @@ -55,6 +55,7 @@ if [ -r Ubuntu.conf ]; then
echo -n "" > /var/local/ASAO.log
echo -n "" > /var/local/mediafiles.log
echo -n "" > /var/local/cronjoblist.log
echo -n "" > /var/local/pslist.log

# Add additional instructions to log file
echo "adding instructions to log file"
Expand Down Expand Up @@ -135,7 +136,11 @@ if [ -r Ubuntu.conf ]; then
echo "Outputting cronjobs to /var/local/cronjoblist.log"
crontab -l >> /var/local/cronjoblist.log
fi

# List all processes & output to /var/local/pslist.log
if [ "$PS_LOG" = true ]; then
echo "Outputting processes to /var/local/pslist.log"
ps axk start_time -o start_time,pid,user,cmd >> /var/local/pslist.log
fi
# List all connections, open or listening
if [ "$LOG_NETSTAT" = true ]; then
echo "finding open connections and outputting to /var/local/netstat.log"
Expand Down
24 changes: 24 additions & 0 deletions windows10.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
http://brandonpadgett.com/powershell/Local-gpo-powershell/

################################################################################################################


function Starting-Menu{
Write-Host 'Choose an option:'
Write-Host '1. Find a file'
#Add new choices here

$choice = Read-Host "Choose a choice"
switch($choice){ #Read user input, choose from that
"1" { Find-File }
}
}

#Finding Files
function Find-File{
$path = Read-Host -Prompt 'Input what path you want to search'
$extensions = Read-Host -Prompt 'Input what extensions you want to search for'
Get-childitem -Path $path -Recurse -ErrorAction -Include $extensions SilentlyContinue
}

Starting-Menu