domingo, janeiro 31, 2010

How to view content of RPM installed using RPM command?

View rpm files installed. This command show the list of files RPM installed on your system.
(rpm query files)

rpm -ql openvpn


/etc/openvpn
/etc/rc.d/init.d/openvpn
/usr/lib64/openvpn
/usr/lib64/openvpn/plugin
/usr/lib64/openvpn/plugin/lib
/usr/lib64/openvpn/plugin/lib/openvpn-auth-pam.so
/usr/lib64/openvpn/plugin/lib/openvpn-down-root.so
/usr/sbin/openvpn
/usr/share/doc/openvpn-2.1.1
/usr/share/doc/openvpn-2.1.1/AUTHORS
/usr/share/doc/openvpn-2.1.1/COPYING
/usr/share/doc/openvpn-2.1.1/COPYRIGHT.GPL
/usr/share/doc/openvpn-2.1.1/INSTALL
/usr/share/doc/openvpn-2.1.1/PORTS
/usr/share/doc/openvpn-2.1.1/README
/usr/share/doc/openvpn-2.1.1/auth-pam.txt
/usr/share/doc/openvpn-2.1.1/contrib
/usr/share/doc/openvpn-2.1.1/contrib/README
/usr/share/doc/openvpn-2.1.1/contrib/multilevel-init.patch
/usr/share/doc/openvpn-2.1.1/contrib/openvpn-fwmarkroute-1.00
/usr/share/doc/openvpn-2.1.1/contrib/openvpn-fwmarkroute-1.00/README
/usr/share/doc/openvpn-2.1.1/contrib/openvpn-fwmarkroute-1.00/fwmarkroute.down
/usr/share/doc/openvpn-2.1.1/contrib/openvpn-fwmarkroute-1.00/fwmarkroute.up
/usr/share/doc/openvpn-2.1.1/contrib/pull-resolv-conf
/usr/share/doc/openvpn-2.1.1/contrib/pull-resolv-conf/client.down
/usr/share/doc/openvpn-2.1.1/contrib/pull-resolv-conf/client.up
/usr/share/doc/openvpn-2.1.1/down-root.txt
/usr/share/doc/openvpn-2.1.1/sample-config-files
/usr/share/doc/openvpn-2.1.1/sample-config-files/README
/usr/share/doc/openvpn-2.1.1/sample-config-files/client.conf
/usr/share/doc/openvpn-2.1.1/sample-config-files/firewall.sh
/usr/share/doc/openvpn-2.1.1/sample-config-files/home.up
/usr/share/doc/openvpn-2.1.1/sample-config-files/loopback-client
/usr/share/doc/openvpn-2.1.1/sample-config-files/loopback-server
/usr/share/doc/openvpn-2.1.1/sample-config-files/office.up
/usr/share/doc/openvpn-2.1.1/sample-config-files/openvpn-shutdown.sh
/usr/share/doc/openvpn-2.1.1/sample-config-files/openvpn-startup.sh
/usr/share/doc/openvpn-2.1.1/sample-config-files/roadwarrior-client.conf
/usr/share/doc/openvpn-2.1.1/sample-config-files/roadwarrior-server.conf
/usr/share/doc/openvpn-2.1.1/sample-config-files/server.conf
/usr/share/doc/openvpn-2.1.1/sample-config-files/static-home.conf
/usr/share/doc/openvpn-2.1.1/sample-config-files/static-office.conf
/usr/share/doc/openvpn-2.1.1/sample-config-files/tls-home.conf
/usr/share/doc/openvpn-2.1.1/sample-config-files/tls-office.conf
/usr/share/doc/openvpn-2.1.1/sample-config-files/xinetd-client-config
/usr/share/doc/openvpn-2.1.1/sample-config-files/xinetd-server-config
/usr/share/doc/openvpn-2.1.1/sample-keys
/usr/share/doc/openvpn-2.1.1/sample-keys/README
/usr/share/doc/openvpn-2.1.1/sample-keys/ca.crt
/usr/share/doc/openvpn-2.1.1/sample-keys/ca.key
/usr/share/doc/openvpn-2.1.1/sample-keys/client.crt
/usr/share/doc/openvpn-2.1.1/sample-keys/client.key
/usr/share/doc/openvpn-2.1.1/sample-keys/dh1024.pem
/usr/share/doc/openvpn-2.1.1/sample-keys/pass.crt
/usr/share/doc/openvpn-2.1.1/sample-keys/pass.key
/usr/share/doc/openvpn-2.1.1/sample-keys/pkcs12.p12
/usr/share/doc/openvpn-2.1.1/sample-keys/server.crt
/usr/share/doc/openvpn-2.1.1/sample-keys/server.key
/usr/share/doc/openvpn-2.1.1/sample-scripts
/usr/share/doc/openvpn-2.1.1/sample-scripts/auth-pam.pl
/usr/share/doc/openvpn-2.1.1/sample-scripts/bridge-start
/usr/share/doc/openvpn-2.1.1/sample-scripts/bridge-stop
/usr/share/doc/openvpn-2.1.1/sample-scripts/bs
/usr/share/doc/openvpn-2.1.1/sample-scripts/openvpn.init
/usr/share/doc/openvpn-2.1.1/sample-scripts/openvpn.init.orig
/usr/share/doc/openvpn-2.1.1/sample-scripts/ucn.pl
/usr/share/doc/openvpn-2.1.1/sample-scripts/verify-cn
/usr/share/man/man8/openvpn.8.gz
/usr/share/openvpn
/usr/share/openvpn/easy-rsa
/usr/share/openvpn/easy-rsa/1.0
/usr/share/openvpn/easy-rsa/1.0/README
/usr/share/openvpn/easy-rsa/1.0/build-ca
/usr/share/openvpn/easy-rsa/1.0/build-dh
/usr/share/openvpn/easy-rsa/1.0/build-inter
/usr/share/openvpn/easy-rsa/1.0/build-key
/usr/share/openvpn/easy-rsa/1.0/build-key-pass
/usr/share/openvpn/easy-rsa/1.0/build-key-pkcs12
/usr/share/openvpn/easy-rsa/1.0/build-key-server
/usr/share/openvpn/easy-rsa/1.0/build-req
/usr/share/openvpn/easy-rsa/1.0/build-req-pass
/usr/share/openvpn/easy-rsa/1.0/clean-all
/usr/share/openvpn/easy-rsa/1.0/list-crl
/usr/share/openvpn/easy-rsa/1.0/make-crl
/usr/share/openvpn/easy-rsa/1.0/openssl.cnf
/usr/share/openvpn/easy-rsa/1.0/revoke-crt
/usr/share/openvpn/easy-rsa/1.0/revoke-full
/usr/share/openvpn/easy-rsa/1.0/sign-req
/usr/share/openvpn/easy-rsa/1.0/vars
/usr/share/openvpn/easy-rsa/2.0
/usr/share/openvpn/easy-rsa/2.0/Makefile
/usr/share/openvpn/easy-rsa/2.0/README
/usr/share/openvpn/easy-rsa/2.0/build-ca
/usr/share/openvpn/easy-rsa/2.0/build-dh
/usr/share/openvpn/easy-rsa/2.0/build-inter
/usr/share/openvpn/easy-rsa/2.0/build-key
/usr/share/openvpn/easy-rsa/2.0/build-key-pass
/usr/share/openvpn/easy-rsa/2.0/build-key-pkcs12
/usr/share/openvpn/easy-rsa/2.0/build-key-server
/usr/share/openvpn/easy-rsa/2.0/build-req
/usr/share/openvpn/easy-rsa/2.0/build-req-pass
/usr/share/openvpn/easy-rsa/2.0/clean-all
/usr/share/openvpn/easy-rsa/2.0/inherit-inter
/usr/share/openvpn/easy-rsa/2.0/list-crl
/usr/share/openvpn/easy-rsa/2.0/openssl-0.9.6.cnf
/usr/share/openvpn/easy-rsa/2.0/openssl.cnf
/usr/share/openvpn/easy-rsa/2.0/pkitool
/usr/share/openvpn/easy-rsa/2.0/revoke-full
/usr/share/openvpn/easy-rsa/2.0/sign-req
/usr/share/openvpn/easy-rsa/2.0/vars
/usr/share/openvpn/easy-rsa/2.0/whichopensslcnf
/var/run/openvpn

segunda-feira, janeiro 25, 2010

How to Recover RAR, 7z and ZIP Password with RarCrack in Linux » My Digital Life

How to Recover RAR, 7z and ZIP Password with RarCrack in Linux » My Digital Life: "How to Recover RAR, 7z and ZIP Password with RarCrack in Linux

RarCrack is a program that uses brute force algorithm to find and recover the correct password for compressed archive in .rar (WinRAR), .7z (7-Zip) and .zip (WinZip) format in any POSIX compatible operating system. As such, RarCrack is useful when you have forgotten or lost the password for the compressed archive package in the supported format. To make bruteforce password breaking faster, RarCrack supports specifying a selection of characters and digits to be used in password generations in order to crack the password.

The guide below is a brief explanation on how to use RarCrack to recover and retrieve back the password for .rar, .7z or .zip files. Note that RarCrack requires glibc 2.4, pthreads and libxml2 libraries in order to work. Use rpm, pkg_add, apt-get and other commands to install the dependencies if it’s not installed yet.

1. Download RarCrack by using the one of the following commands (just the difference of downloading mirror) in terminal:

wget http://superb-east.dl.sourceforge.net/sourceforge/rarcrack/rarcrack-0.2.tar.bz2
wget http://kent.dl.sourceforge.net/sourceforge/rarcrack/rarcrack-0.2.tar.bz2
wget http://nchc.dl.sourceforge.net/sourceforge/rarcrack/rarcrack-0.2.tar.bz2
2. Extract the RarCrack archive:

tar -xjf rarcrack-0.2.tar.bz2
3. Change directory into the extracted RarCrack folder:

cd rarcrack-0.2
4. Install the RarCrack with the following command:

make
sudo make install (so simply make install if already login as root)
5. To crack or break the RAR, 7z or ZIP file Password, use the following syntax:

rarcrack encrypted_archive.ext [--threads thread_num] [--type rar|zip|7z]

The switch in [] is optional. RarCrack can autodetect the archive type, so the –type parameter only require if auto-detection of file type is wrong. And by default, RarCrack launches two cracking threads if no thread number is specified.

For example,

rarcrack example.rar
rarcrack forgetpassword.zip
6. After starting the process to break and crack the password, RarCrack will print and save the current status of cracking to a XML status file. Any valid good password to open the archive, if found, will be printed as good_password variable. An example of the XML file is as follow:

<?xml version=”1.0″ encoding=”UTF-8″?>
<rarcrack>
<abc>0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ</abc>
<current>uU</current>
<good_password></good_password>
</rarcrack>

Tip: If you can barely remember the password but pretty confident that only certain characters or digits are used, modify the “abc” character set to include those characters or numbers only. On first use, run the RarCrack to generate the XML status file, then edit then file and rerun the RarCrack again.

To unlock a protected or locked RAR archive, use WinRAR Unlock instead."