Security

A Linux shell script to mount dm-crypt (transparent disk encryption subsystem in Linux kernel) partitions with passphrase.

{ 1 comment }

A sample shell script wrapper to encrypt any text file using mcrypt / crypt UNIX / Linux.

{ 6 comments }

  #!/bin/bash # Linux Firewall: Simple Shell Script To Stop and Flush All Iptables Rules # Some Linux distros like Debian do not have /etc/init.d/iptables stop script # This can be also called from cron job if you are testing new firewall on # remote box to avoid lock out # ————————————————————————- # Copyright (c) [...]

{ 6 comments }

#!/bin/bash # Script to update user password in batch mode # You must be a root user to use this script # ————————————————————————- # Copyright (c) 2005 nixCraft project # This script is licensed under GNU GPL version 2.0 or above # ————————————————————————- # This script is part of nixCraft shell script collection (NSSC) # [...]

{ 1 comment }

#!/usr/local/bin/expect -f # Password change shell script, tested on Linux and FreeBSD # ———————————- # It need expect tool. If you are using Linux use following command # to install expect # apt-get install expect # FreeBSD user can use ports or following command: # pkg_add -r -v expect # ———————————- # If you are [...]

{ 16 comments }

A simple shell script (expect script) to supply OpenSSH root/admin password for remote ssh server and execute the Unix / Linux / BSD commands.

{ 76 comments }

#!/bin/bash # Shell script for search for no password entries and lock all accounts # ————————————————————————- # Copyright (c) 2005 nixCraft project <http://cyberciti.biz/fb/> # This script is licensed under GNU GPL version 2.0 or above # ————————————————————————- # This script is part of nixCraft shell script collection (NSSC) # Visit http://bash.cyberciti.biz/ for more information. # [...]

{ 1 comment }

#!/bin/bash # Firewall for Red hat enterprise linux Virtuozzo VPS # It is simple firewall but effective one on Red hat enterprise linux Virtuozzo VPS :) # ——————————————————— # 1) DO NOT FORGEDT TO SETUP CORRECT IPS first # 2) touch /root/allbadips.txt; echo "192.1678.0.10"> /root/allbadips.txt # 3) To load/start firewall from this script # chmod [...]

{ 4 comments }

FreeBSD IPFW example firewall script to shape traffic for your LAN and WAN network.

{ 2 comments }