The following is a guest post by Anonymous915. This is the third part in a series of articles on his view of hacking. If you are interested in writing for MrCracker.com, click here. Otherwise, Enjoy.
I’m back. Being that summer was in session, let’s say school was out, and I disappeared for a while doing some stuff for business purposes. So last time I wrote, School of Hacks – Part 2, I emphasized the use or learning and understanding a UNIX/Linux Operating System. Based on the feedback, it goes without saying that learning Python is a popular response to learn next.
I plan to get you started on the right foot and in doing so, I anticipate we will program a strong password generator. The very first lesson of course, is this lesson: Installing Python on Linux. In part 2 of this series, I described the the meaning behind Linux distributions, most Linux distributions come with Python installed. However, I will show you how to install Python on Debian and Fedora Linux. I chose these two distributions because they are the two major distros other systems are based on. Ubuntu, Knoppix, Linspire and others are Debian based while Fedora is RPM based just as Mandriva, SUSE and all Red Hat versions.
RPM Based Python installation
- Boot up your favorite RPM based Linux ditro, I’m using Fedora.
- Go to the Python for Linux RPM page at http://www.python.org/download/releases/2.4/rpms/
- Download the Binaries for Fefora Core 3, they are i386 RPM
- When the download is complete, open a console and go to the python-2.4.2.4….. file
- Make sure you have root access, otherwise type the following commands
- Type in the following command
- rpm -1 python2.4-2.4-1pydotorg.i386.rpm
- you should get a message, to read message
- You should be able to start Python by typing Python on the console. This command can also be used prior to installation or to see the Python version currently installed.
- Boot up your favorite Debian based ditro, I’m running Debian 5
- Open a console and make sure you have root access, otherwise type the following commands
- Type in the following command
- Do you want to continue? [Y/n] Y
- At this point, you should be able to start Python on the console on a Debian based system.
- Start up Gentoo
- Download the Python ebuild
- Reference the Gentoo Python Developers Guide
localhost:~$ su
Password: [enter your root password]
cat /var/spool/mail/root | less
Debian based systems could also already be pre-installed with Python. However, if need be, installing on a Debian based system might be a little easier.
Debian Based Python installation
localhost:~$ su
Password: [enter your root password]
localhost:~# apt-get install python
Although this covers a broad range of distributions, the categories of Linux distributions also include Gentoo, a portage package distro.
If you can go to a console, and type:
python <enter>
1+1 <enter>
you should see and answer of 2, if so, you have properly installed Python on Linux and this should get you started in programming Python.”"
September 18, 2010 at 12:30 pm
it is exciting to learn how to hack. is there any other ways of hacking? by means of deleting the account in facebook of my friends and i want to learn more about hacking and without to be trace by the victim i will hack?..
September 20, 2010 at 4:25 am
There are hundreds of ways to hack something.. depends on what you want to hack.. for deleting a facebook account you’d need to get the password and there are many ways of doing it….malware and phishing being one of the easiest..
February 15, 2011 at 2:07 am
I am using Ubuntu 10.10. As you told i try this command in terminal “su” following password. But it is showing “Authentication Failure”. I think my password is wrong. I don’t know which password i should give? I am new to ubuntu. Can you please explain it how to login to ubunttu root?
Note:
When i try to create directory under /usr/*/ for some other reason, it is showing me “access denied”.
February 19, 2011 at 9:29 pm
@Ethical Hackers, what su does is escalate your privilege to root status so that you can execute a certain program…. you need to type in your root password .