This file contains 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
#I want to thank Mark Hufe for his video on creating a menu structure inside python. | |
#This helped me out a lot. https://www.youtube.com/watch?v=kGY9n5H6nr0 | |
# | |
import subprocess | |
import sys | |
subnet_list = '/root/subnet_list' | |
vulscan_results = 'root/vulscan_results' | |
scan_results = '/root/scan_results' |
This file contains 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 | |
# | |
#This script will locate and move all compressed log file | |
#from a server to an offsite filer using an SFTP push | |
#If will look at the folder you specify, | |
#Determine what files are compressed using gzip compression | |
#And copy them to a remote location of your choosing. I have modified | |
#this script to remove the questions at the beginning as the file transfer is done from the | |
#local server to a filer using a mount point connected via NFS. | |
# |
This file contains 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 | |
#The following script will look at the folder you specify | |
#Determine what files are in that folder | |
#How much space that they will take up | |
#And copy them to a remote location of your choosing | |
#TITLE="SFTP File Transfer" | |
#Print the string variable on the screen | |
echo $TITLE | |
echoPS3='Choose how you would like to transfer files:' | |
options=("SFTP Push" "SFTP Get" "Quit") |
This file contains 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 | |
#This script will create a random character base64 password | |
#to be used with users linux accounts. The user will be able | |
#to select how many characters that they would like to use | |
#for their user accounts. Once created, the passwords | |
#will be encrypted with openssl and placed into the /etc/shadow | |
#file under Redhat / CentOS | |
i=1 | |
TITLE="Strong Password Initiator" | |
#print the string variable on the screen |