There are several options for transferring files to a cisco device. Tftp is a traditional way. Scp is also supported by IOS from 12.3(2)T, 12.2(14)S (encryption needs to be supported by the feature set). If no in-band connection is available, xmodem will become an option for it.
scp
Pro: Transfered files are encrypted
Con: Not supported by all platforms, in-band connection is necessary
tftp
Pro: Supported by all platforms
Con: Files are transfed in plain text, tftp protocol does not have authentication, in-band connection is necessary
xmodem
Pro: Supported by all platforms, No need for in-band connection
Con: Slow transmission
Whenever transferring a start-up configuration, it's better to think about using scp in favor of tftp since not a few passwords are on the config in a plain text or in an obscured form. Type 7 encryption is just an obfuscation that is cracked within a second, and even type 5 encryption can be decrypted with a massive computation power since the salt is also on the same file.
Reference:
Cisco IOS Configuration Fundamentals Command Reference
http://www.cisco.com/en/US/docs/ios/fundamentals/command/reference/cf_c1.html#wp1064741
Cisco Password Cracker (For type 5 encryption)
https://www.google.com/search?q=cisco+type+7+crack&ie=utf-8&oe=utf-8&aq=t
Decrypting Cisco type 5 password hashes
http://retrorabble.wordpress.com/2011/02/09/decrypting-cisco-type-5-password-hashes/
Friday, May 17, 2013
Thursday, May 16, 2013
How to enable native tftpd on Mac OS X Mountain Lion 10.8.2
I needed to tftp server to update IOS images for switches in my home lab. Mac OS X has its native tftp daemon and will do for the purpose.
To launch tftpd,
$ sudo launchctl load -F /System/Library/LaunchDaemons/tftp.plist
# Default tftp root directory, in which data files are stored, is /private/tftpboot/
To check tftp is up and running,
$ lsof -i:69
To stop tftpd
$ sudo launchctl unload /System/Library/LaunchDaemons/tftp.plist
or reboot the system.
Note:
1. tftpd will not start next time the system is booted. To make tftpd persistant, issue
$ sudo launchctl load -w /System/Library/LaunchDaemons/tftp.plist
1.1. -w option erases <key>Disabled</key> entry in tftp.plist and launch tftpd.
1.2. If you want to make tftpd persistant, think about security concerns since there is no authentication in tftp protocol. (i.e. at least adding -l option to tftpd.plist for logging, caring about permissions for files/directories.
To disable it,
$ sudo launchctl unload -w /System/Library/LaunchDaemons/tftp.plist
2. -F option is needed since /System/Library/LaunchDaemons/tftp.plist has <key>Disabled</key> entry.
3. The owner of /private/tftpboot/ is root and its permission is 755.
Reference:
man tftpd
man launchctl
man launchd.plist
To launch tftpd,
$ sudo launchctl load -F /System/Library/LaunchDaemons/tftp.plist
# Default tftp root directory, in which data files are stored, is /private/tftpboot/
To check tftp is up and running,
$ lsof -i:69
To stop tftpd
$ sudo launchctl unload /System/Library/LaunchDaemons/tftp.plist
or reboot the system.
Note:
1. tftpd will not start next time the system is booted. To make tftpd persistant, issue
$ sudo launchctl load -w /System/Library/LaunchDaemons/tftp.plist
1.1. -w option erases <key>Disabled</key> entry in tftp.plist and launch tftpd.
1.2. If you want to make tftpd persistant, think about security concerns since there is no authentication in tftp protocol. (i.e. at least adding -l option to tftpd.plist for logging, caring about permissions for files/directories.
To disable it,
$ sudo launchctl unload -w /System/Library/LaunchDaemons/tftp.plist
2. -F option is needed since /System/Library/LaunchDaemons/tftp.plist has <key>Disabled</key> entry.
3. The owner of /private/tftpboot/ is root and its permission is 755.
Reference:
man tftpd
man launchctl
man launchd.plist
Wednesday, May 15, 2013
How to enable sshd on Mac OS X Mountain Lion 10.8.2
It's an easy step with GUI.
1. Go to System Preferences => Sharing => Remote Login
2. Turn on Remote Login
3. Check sshd is running
$ sudo lsof -i:22
Note: The firewall on the system is automatically adjusted to pass an incoming ssh connection.
1. Go to System Preferences => Sharing => Remote Login
2. Turn on Remote Login
3. Check sshd is running
$ sudo lsof -i:22
Note: The firewall on the system is automatically adjusted to pass an incoming ssh connection.
Tuesday, May 14, 2013
How to rebuild kext cache on Mountain Lion 10.8
kext cache rebuild is just a two-step task.
It's NOT recommended to execute kextcache manually.
- sudo touch /System/Library/Extensions/
- sudo reboot
It's NOT recommended to execute kextcache manually.
KEXTCACHE(8) BSD System Manager's Manual KEXTCACHE(8)
Caution: Incorrect use of kextcache can render a volume incapable of startup. Installers and administrators should not use this program toupdate system kext caches. Instead they should run touch(1) on the /System/Library/Extensions/ directory of the installation target volumeafter they have finished, which invalidates the existing caches and causes the system to update all necessary kext caches.
Friday, February 22, 2013
Running StarUML on Windows 7
You need to run StarUML.exe as a administrator once. After that, StarUML will work with a user privilege.
StarUML and Windows7
http://sourceforge.net/p/staruml/discussion/510442/thread/9fe12cac/
StarUML and Windows7
http://sourceforge.net/p/staruml/discussion/510442/thread/9fe12cac/
Friday, February 15, 2013
Subscribe to:
Posts (Atom)