Crack Pdf Files with Ubuntu Linux!

The PDFCrack application is Open Source (GPL).


* Supports the standard security handler (revision 2 and 3) on all known PDF-versions
* Supports cracking both owner and userpasswords
* Both wordlists and bruteforcing the password is supported
* Simple permutations (currently only trying first character as Upper Case)
* Save/Load a running job
* Simple benchmarking
* Optimised search for owner-password when user-password is known

Install pdfcrack in Ubuntu

$sudo apt-get install pdfcrack

pdfcrack Syntax

pdfcrack -f filename [options]

For more info use $ man pdfcrack.


The system cannot log you on due to the following error: The RPC server is unavailable.

Error Symptom: When you try to login to your domain controller you get an error message “The system cannot log you on due to the following error: The RPC server is unavailable. ”

Solution: Please check the following services.

There can be a few reasons for this problem:
     1. Incorrect DNS settings.
     2. Incorrect Time and Time zone settings.
     3. The “TCP/IP NetBIOS Helper” service isn’t running.
     4. The “Remote Registry” service isn’t running.




Changing Windows Administrator password through Ubuntu

Symptom: To change the windows administrative password by Ubuntu, if you forgot the password or to hack.

Solution:  Here is how you change windows password within Ubuntu. Install the software chntpw.

$sudo apt-get install chntpw

Now its installed, so lets get to work…
Ok I am assuming your using a livecd or a Ubuntu machine which is  full installed
You will now need to mount the windows partition read/write permission then navigate to %systemroot%/system32/config
Once your located in the config directory issue this command to change the password

$chntpw -u administrator SAM

Prompt for password for ‘administrator’, if found (otherwise do nothing) use * to blank

Now reboot and login to windows

shell script to print IP address details from the internet domain name

Situation :  shell script that allows a user to enter any Internet domain name (eg.  & Your script should than print out the IP address of the Internet domain name

Solution: create file name $touch and give excute permission to that file. copy the below code in that file.
####To get the domain ip address ####

echo ” Enter the site name:”

read site

host $site

#echo “Site IP Details is $site”


mysql backup – shell script

Situation : To create a critical database backup through shell script.

Solution: Create a file and copy the below script into that file. Give excute permission(# chmod a+x to excute that  file.

###Intitiate mysql backup####

echo “Mysql-Backup-job initiated”

MUSER=”your user name”
MHOST=”your host”
MPASS=”your password”
LOGFILE=/root/mysqlback.log (Eg., put appropriate path for the log file according to your requirement)

mysqldump -u$MUSER -h$MHOST  -p$MPASS database name  > /home/karthick/filename.sql

###create a timestamo in a logfile.

date >> $LOGFILE

echo “Mysql-Backup Completed” >> $LOGFILE

mysql: symbol lookup error: /usr/local/lib/ undefined symbol: UP

Error Symptom:

when you run $mysql -u root -p command in the linux you get an error message ” mysql: symbol lookup error: /usr/local/lib/ undefined symbol: UP”


Step 1: Login as root

Step 2: Go to folder path #cd/usr/local/lib

there was a bunch of readline libs in there ( so i:

Step3: Create a directory #mkdir temp

Step 4: Move the files # mv /usr/local/lib/libreadline* temp

Step 5:  #ldconfig

Step 6: #apt-get update


After the update the problem get solved.


Shell Script for Tape backup

Symptom: To initiate backup from disk to tape in shell script.





 echo ” Trying to backup ${BAK} directory to tape device ${TAPE} ..”

 # See if $BAK exits or not else die

# Set unsuccessful shell script termination with exit status # 1

[! -d $BAK ] && { echo “Source backup directory $BAK not found.” exit1;} 

# See if $TAPE device exits or not else die

# Set unsuccessful shell script termination with exit status # 2

[! -b $TAPE ] && { echo  “Backup tape drive $TAPE not found or configured.” ; exit 2; }

 # Okay back it up

tar cvf $TAPE  $BAK  2> /tmp/error.log

if [$? -ne 0]



# die with unsuccessful shell script termination exit status # 3


 echo “An error occurred while making a tape backup, see /tmp/error.log file”

 exit 3


# Terminate our shell script with success message i.e. backup done!

exit 0

Save and close the file. Run it as follows:

chmod +x