Linux administration , Unix administration , Vmware Vsphere administration , Oracle DBA ,apache, backup, dhcp, dns, kvm, xen, kernel, ldap, kvm, monitoring, ticketing, networking, Mail servers, SAN,troubleshooting
Labels
- Amanda (2)
- Ansible (2)
- Answer these Questions (2)
- antivirus (2)
- apache (3)
- Bash (16)
- Chef (3)
- Citrix (2)
- clusters (2)
- Concept (22)
- DatabaseAdminstration (11)
- DevOps (1)
- dhcp (2)
- Downloads (3)
- ELK (1)
- ELK stack (1)
- encryption (1)
- Free trainings (1)
- Frequently Used Commands (46)
- FTP (1)
- git (1)
- gpg (2)
- Hardware (1)
- httpd (2)
- Interview Questions (53)
- iptables (1)
- IT NEWS (3)
- java (1)
- kibana (2)
- knife (1)
- KVM (2)
- linux (17)
- Linux installations (22)
- Linux Jobs (4)
- Linux Links (2)
- logstash (1)
- Mac (1)
- MediaWiki (1)
- MySql (2)
- Nagios (2)
- Networking (3)
- open Nebula (5)
- Open Source tools (12)
- OpenNMS (1)
- openSSL (1)
- Oracle on Linux (5)
- Performance Monitoring (1)
- php (1)
- postfix (1)
- postgres (1)
- postgres-XL (1)
- Product Reviews (1)
- Python (2)
- rssh (1)
- Samba (2)
- Scripting (16)
- security (4)
- selinux (1)
- Server (1)
- SFTP (1)
- Social Awareness (1)
- Solaris (1)
- SSL (1)
- svn (1)
- TCP/IP (1)
- Technology (1)
- Tips and Tricks (32)
- Training and materials (8)
- Troubleshooting (6)
- Ubuntu (18)
- unix (1)
- virtualization (17)
- Vmware (25)
- Vyatta (1)
- windows7 (1)
- xml (1)
Rsync current directory using SSH port to remote host
/usr/bin/rsync -rave "ssh -p 22222 -l root" --delete . 192.168.1.111:/tmp
Bash script to check command-line arguments and set default if not present
if [ -n "$1" ]
# Test whether command-line argument is present (non-empty).
then
lines=$1
else
lines=$LINES # Default, if not specified on command-line.
fi
# Test whether command-line argument is present (non-empty).
then
lines=$1
else
lines=$LINES # Default, if not specified on command-line.
fi
how to encrypt your scripts using sch
Dont want to give your scripts to any one but want to give someone to execute for specific period of time then this is what you are looking for .
We can also give timeline in which the script can be used.
Also you will not be revealing you passwords in the script.
SCH will encrypt shell scripts using RC4 and make executable binary.
http://www.datsi.fi.upm.es/~frosal/sources/shc-3.8.7.tgz
shc [ -e date ] [ -m addr ] [ -i iopt ] [ -x cmnd ]
[ -l lopt ] [ -ACDhTv ] -f script
shc -e date ( script will not run afterdate specified )
-m "Please contact support " (message to display after we run the expired scirpt)
shc -e 01/06/2010 -m "You are late to run this script." -f script.sh
./script.sh.x
http://www.datsi.fi.upm.es/~frosal/sources/shc.html
I have tried to hack the encrypted binary that came as output, but was not successful
I used bashdb and GDB
We can also give timeline in which the script can be used.
Also you will not be revealing you passwords in the script.
SCH will encrypt shell scripts using RC4 and make executable binary.
http://www.datsi.fi.upm.es/~frosal/sources/shc-3.8.7.tgz
shc [ -e date ] [ -m addr ] [ -i iopt ] [ -x cmnd ]
[ -l lopt ] [ -ACDhTv ] -f script
shc -e date ( script will not run afterdate specified )
-m "Please contact support " (message to display after we run the expired scirpt)
shc -e 01/06/2010 -m "You are late to run this script." -f script.sh
./script.sh.x
http://www.datsi.fi.upm.es/~frosal/sources/shc.html
I have tried to hack the encrypted binary that came as output, but was not successful
I used bashdb and GDB
Subscribe to:
Posts (Atom)