Decrypt SQL Stored Procedures

In work I have to use proprietary software, some days ago my boss asked me if I could decrypt some stored procedures in MS SQL 2005, a person whose doesn’t works for the company anymore decided encrypt some essentials stored procedures, so I decided take the challenge :)

Here’s a little resume how the problem was solved:

First of all is ensure that the DAC option is enabled

Since DAC cannot be accessed via network, you must access locally, you can do this putting ADMIN: before the database address and instance (e.g. admin:myserver\defaultinstance), then you must logon in the regular way (DAC don’t allow the object browser, so you’re alone) after this, simply go to the database where the stored procedures are located and execute the following script:

and that it’s :D I hope this can be useful to someone.

Best Regards!!

Install PEAR on Debian Squeeze being normal user

Sometimes when you need to install PEAR, you do not want to do it globally, an easy way to do this is what I show below.

How do I do?

 

To carry out the task we need the file phar that contains the PEAR package manager. You can download with wget, just have to open a terminal and run the following command.

wget http://pear.php.net/go-pear.phar

 
If you execute the command

$ php go-pear.phar

 
Really nothing happens, only when you look in /var/log/syslog you can see what really happens, Suhosin indicating the error occurred.

Why?

By default the version of PHP that has Debian provides built the Suhosin patch which adds security to the interpreter, but results in slight discomfort for developers.

How I can fix?

Really is very easy, we just have to tell the PHP interpreter to ignore the directive only for this run and run the phar indicated:

$ php -d suhosin.executor.include.whitelist="phar" go-pear.phar

 

And that’s it, easy right?

I hope it’s useful for you :)

Best Regards!!

Programming in Python

As the title says, I decided to start the journey of learning a new programming language, I have finally decided by Python, So here I leave a few links where you can find e-books to get started in learning this great programming language.

A byte of Python

Is a great benninger’s book on Python by Swaroop C H.

Python Programming

Is a wikibook guide to Python

Think Python

is a beginner’s programming book written by Zed Shaw. It was written for Python 2.6.

 

And last but not least, an online interactive programming resource code.he.net, I hope that these resources are of great use to you, and remember never give up.

Best Regards!!

 

Starting again

Well, new year and new blog, but not because I want in that way, it’s because my old hosting provider decided suspend my account, why? I don’t know, I just know that they want me to upgrade my account to reactivate it again. So I decided change my hosting provider :)

Unfortunately, I couldn’t make a backup of the older posts :( anyway  I don’t  think much was lost, is just as well, so I can start again and in a best way :P

I hope do it better this  time and I will try to update this space more often, until then…

Best regards!!