Skip to content

sm0k3net/Useful-Scripts

Repository files navigation

Useful Scripts

Linux, Bash:

* vsftpd.sh -- fast vsftpd config for Debian server with /var/ftp directory, ftpuser group
* deb-kern-up.sh -- Debian distro kernel update script, don't forget to change version to keep it up to date
* simple_apache_firewall.sh -- Simple firewall script for apache to block IPs with lots requests from log
* swap.sh -- Script to count RAM and help create swap for faster system working
* wordpress.sh -- Special script to help configure Apache, MySQL, WordPress, Swap and some other stuff, automatically installs all required packages, configure files etc
* axfr.sh -- script for quick check for possible domain zone trasfer misconfiguration (simple guide inside the file)

Windows, PowerShell:

* winlogs.ps1 -- Windows Logs Extracting is a PowerShell script to easily extract required logs preformated for quick parsing into text file.
Usage:
 ./winlogs.ps1 list  #will show all available logs
 ./winlogs.ps1 "Security" 25  #will store 25 security log events into file with mask "date_logtype.txt" i.e: 20160303_security.txt
Windows, Batch: 
* quser.bat -- Windows batch script to check users in domain with "query user" command with list of IP addresses from ip.txt file (1 ip address on the line)
Usage:
 1. Create ip.txt file with list of IP addresses
 2. Put in the same directory both files (quser.bat & ip.txt)
 3. Start from command line batch file "quser.bat". If need to do output into the file, just use "quser.bat > results.txt" as example.

About

Useful scripts on bash, powershell, batch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published