This file contains hidden or 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
| foo |
This file contains hidden or 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 | |
| search=$1 | |
| if [ -z "$search" ];then search="objectclass=*";fi | |
| ldapsearch -h eftdomain.net \ | |
| -b "dc=eftdomain,dc=net" \ | |
| -D "[email protected]" \ | |
| -s sub -xw ${WINDOWS_PASSWORD} \ | |
| "(${search})" \ | |
| | tr "\n" ''| sed -e 's/ //g' | tr '' "\n" |
This file contains hidden or 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
| byggvir: 4.0 | |
| nerthus: 5.0.6 | |
| bragi: 5.0.6 | |
| hoenir: 5.0.6 | |
| epimetheus: 5.0.4 |
This file contains hidden or 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
| [root@newton ~]# rpm -Uvh mod_ssl-2.2.3-43.el5.centos.i386.rpm | |
| error: Failed dependencies: | |
| httpd = 0:2.2.3-43.el5.centos is needed by mod_ssl-2.2.3-43.el5.centos.i386 | |
| libdistcache.so.1 is needed by mod_ssl-2.2.3-43.el5.centos.i386 | |
| libnal.so.1 is needed by mod_ssl-2.2.3-43.el5.centos.i386 | |
| [root@newton ~]# rpm -qa | grep httpd | |
| httpd-2.2.3-43.el5.centos.3 |
This file contains hidden or 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 | |
| NETWORK=$1 | |
| if [ -z ${NETWORK} ]; then | |
| echo "Usage: $0 10.20.30 (for 10.20.30.x)" | |
| exit 1; | |
| fi | |
| for h in `seq 1 254`; do | |
| NAME=''; | |
| ping -i c3 -w3 ${NETWORK}.${h} >/dev/null 2>&1 || \ |
This file contains hidden or 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
| ssh-dss AAAAB3NzaC1kc3MAAACBAP19c+Hma3tWYgoXSUT3JfIx7dY2PiQt1sjs1HPYEptz23zX0sn5Qtj9QvixJt7ocmIf/KZSqu3QkCTLsF0IypxDPzqVK4TK1m8Z9brMLehsF/DG+VKE/EIw9TAC0qtbpK4KnY6VQlgG74gcMrC6n9Fe5bh7HlhezKTaxUVVnlj/AAAAFQDYJiHebh2qpVAeJSZsicXkPp1QgQAAAIBHiWEQvJ9j9Ya8KQxjSgQOnIqJ1m2xO7++YDHXzjWTby+vlh2J3Z4xZzDhMEVyAcVc216Ebrs4wNIkJ3VJFiyGOeTYP1vk32DAjLaKihw56C3+uxkTSUU9pAuYbKKfdYlrQnncWHgG6+jDvcw+KVBzTD9IgLzb5cyQtqvLZUbi3wAAAIEAg+uIJQZubI0jiJdn7/xGIXPFFqKUtUYtJi9FzLbbkM8GpRwEEClPHah2eA627Y+XBZOctW/pQjyNgCo3+EJ2CE9sEeiDlv2tCEVrlfs5om1/9lTMQeIU5KsPIFzH/gQ6m2OGbXZMHmXjnqBrlsnpunXc+0Z1yVB+voyD175yql4= whitejs@balder | |
| ssh-dss AAAAB3NzaC1kc3MAAAEBAKeiC9gq8e0wVs/WJOi+UxfQsgoWxtgbbcg0IyD5T0Jtuf192LzJMpn8DvAhlKrv9E6DUDrJ8+yPq4lDFrZBgxwhlc4sEH6mHlzojWCa1wRmqvnk1m8+8NJtNCKM/i18XSa5nkzAusaWsRX06b2c6fu3HXEkY4opqebHVDsDmNO/RCpV/OQUnZ1NRVRP0ajH3VVswOZk/Thpr1mqoxCsX/qOTKiFnSBRoeu+ogiSZjuupBZ3mAKnkXigEOyWxMfz8kFSEYkZ0aqyYy0aCshUdR3+lRG6Zc0UGdIkZosXLeiDkZthNPdUuW648RgTp/s0p2rQwezI18Qo37xWm2SX43MAAAAVAPnKZw/kbW5lSQiYm+byRlW+xL3HAAABABwkTDXu/43B |
This file contains hidden or 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
| logging enable | |
| logging asdm informational | |
| logging from-address [email protected] | |
| logging recipient-address [email protected] level notifications | |
| logging class ids mail notifications | |
| smtp-server 192.168.XX.XX |
This file contains hidden or 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
| ssh-dss AAAAB3NzaC1kc3MAAACBAP19c+Hma3tWYgoXSUT3JfIx7dY2PiQt1sjs1HPYEptz23zX0sn5Qtj9QvixJt7ocmIf/KZSqu3QkCTLsF0IypxDPzqVK4TK1m8Z9brMLehsF/DG+VKE/EIw9TAC0qtbpK4KnY6VQlgG74gcMrC6n9Fe5bh7HlhezKTaxUVVnlj/AAAAFQDYJiHebh2qpVAeJSZsicXkPp1QgQAAAIBHiWEQvJ9j9Ya8KQxjSgQOnIqJ1m2xO7++YDHXzjWTby+vlh2J3Z4xZzDhMEVyAcVc216Ebrs4wNIkJ3VJFiyGOeTYP1vk32DAjLaKihw56C3+uxkTSUU9pAuYbKKfdYlrQnncWHgG6+jDvcw+KVBzTD9IgLzb5cyQtqvLZUbi3wAAAIEAg+uIJQZubI0jiJdn7/xGIXPFFqKUtUYtJi9FzLbbkM8GpRwEEClPHah2eA627Y+XBZOctW/pQjyNgCo3+EJ2CE9sEeiDlv2tCEVrlfs5om1/9lTMQeIU5KsPIFzH/gQ6m2OGbXZMHmXjnqBrlsnpunXc+0Z1yVB+voyD175yql4= whitejs@balder |
This file contains hidden or 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
| #!/usr/bin/perl | |
| use strict; | |
| use warnings; | |
| use Linux::Inotify2; | |
| use POE; | |
| $|++; | |
| my $watch_directories = [ | |
| '/var/log', | |
| '/var/log/windows', | |
| '/var/log/system', |
This file contains hidden or 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
| Every now and then I still come across a box that is not under configuration management and/or has been foil-balled in some manner. (A foil-ball system or "big-ball-of-mud" system is one that was hand-crafted by artisans. | |
| 1) Get an alphanumeribetical list of every package installed according to the rpm database | |
| rpm -qa | sort > /tmp/allpackages.out | |
| 2) Get an alphanumeribetical list of every file on the system: | |
| ( | |
| cd /; | |
| for name in $(ls -1 | egrep -v "lost+found|dev|proc|sys"); do |