How to Install OpenSSH on your iPhone and change your default passwords (Secure iPhone from Viruses)

I think you guys have red about the virus for jailbroken iPhones. It uses a ssh connection to your iPhone and most people forget to change the root and mobile user’s default password. So some crackers are using this security whole to infect your iPhone with viruses. Here a solution how to solve this problem:

  1. Go to Cydia and install OpenSSH
  2. Restart Iphone
  3. Install putty or another SSH Client on your Computer [Download Link]
  4. Find out your Iphones IP Address [Settings/Wi-Fi/Connected Network/DHCP/IP Address]
  5. Connect with putty to your Iphone
  6. Username: root
    Password: alpine
  7. Type passwd to change  your password for the root user (type once old password alpine and twice your new one)
  8. Now switch the user with su mobile
  9. Type passwd again to change the password for the mobile user (type once old alpine password and twice your new one)
  10. Done

2 Comments »

admin on November 11th 2009 in Smartphones

Install Webserver with apt-get

apt-get commands
My source.list for “/etc/apt/source.list”

  1. deb http://ftp.au.debian.org/debian/ stable main contrib non-free
  2. deb http://security.debian.org/ stable/updates main contrib non-free

Update Apt Database

  1. apt-get update

Upgrades Installed Packages

  1. apt-get upgrade

Install Package

  1. apt-get install {package name}

Remove Package

  1. apt-get remove {package name}

Check if there are no broken dependencies

  1. apt-get check

1. Installing Apache Webserver

  1. apt-get install apache2 php5 libapache2-mod-php5

To test this create a textfile

  1. nano /var/www/test.php

Put this code in it:

  1. <?php phpinfo(); ?>

Open your browser and go to: http://ip.address/test.php or http://domain/test.php. Now you should get a generated webpage with all the information about apache/php settings.

2. Enable GD Library with PHP

  1. apt-get install php5-gd

3. Installing MySQL Database Server

  1. apt-get install mysql-server mysql-client php5-mysql

4. Change root password on mysql

  1. mysql
  2. mysql> USE mysql;
  3. mysql> UPDATE user SET Password=PASSWORD('new-password') WHERE user='root';
  4. mysql> FLUSH PRIVILEGES;

5. PhpMyAdmin Installation

  1. apt-get install phpmyadmin

The phpmyadmin configuration file is located at: /etc/phpmyadmin folder.
To setup under apache all you need to do is include the following line in /etc/apache2/apache2.conf

  1. Include /etc/phpmyadmin/apache.conf
  1. Now restart apache: /etc/init.d/apache2 restart

Point your browser to: http://domain/phpmyadmin

This is a shortcut of the detailed described installation in:
www.mysql-apache-php.com

No Comments »

admin on January 20th 2009 in Linux, MySQL, PHP

MUST_CHANGE is ON

I tried to remove the check_policy and check_expiration from a user and got following error in MS SQL Server:

The CHECK_POLICY and CHECK_EXPIRATION options cannot be turned OFF when MUST_CHANGE is ON.

I forgot to remove the must change password flag when I created the user. A simple SQL query to change the users password solved the problem:

ALTER LOGIN %USERNAME% WITH PASSWORD='%PASSWORD%'
									

3 Comments »

admin on May 11th 2008 in IT, MSSQL




Check out new movies online website. Download and buy movies now.
1