Wednesday, January 13, 2010

Enabling ssh in OpenSuse

Good Morning all. I'm on my OpenSuse journey and learning alot about the OS. This is a quick tutorial on how to enable and access ssh using the following steps.


1. The ssh daemon comes disabled by default. Ssh can be enabled by typing the following command. /etc/init.d/sshd


2. The next step is to add the ssh service to the opensuse firewall you can use the following two methods.

method 1: type: yast firewall
method 2: you can directly edit the /etc/sysconfig/SuSEfirewall2 text file using either vi or emacs i prefer using vi. :)

3. In the /etc/sysconfig/SuSEfirewall2 text file edit the following: FW_SERVICES_EXT_TCP="" and replace it with FW_SERVICES_EXT_TCP="ssh"

4. restart the firewall with the following command: /sbin/rcSuSEfirewall2 restart

Well im off to bed now. Enjoy :p

How to reset/recover the Root password in opensuse

This is a quick tutorial on how to recover the root password on opensuse.



1. Boot the system and select the normal boot menu from the list. Once selected, in the “Boot Options” box type the following.


“init=/bin/bash” if you are using GRUB Boot loader

or

“linux init=/bin/bash” if you are using LILO Boot Loader

This will launch you straight into a Bash shell prompt which comes up even before the Single User mode loads and has the “/” root file system mounted.

2. Do a mount command to check if the root file system “/” is mounted as Read-Write. If root is not mounted as Read-Write, then run the following command:


mount -o remount,rw /


3. Now, simply type the passwd command and enter a new password


4. Reboot the system and log into the box with your new root password.

Wednesday, January 6, 2010

becoming a hacker

Happy New years to all. I took a nice long break and now I'm back with tutorial on becoming a hacker.

Steps to becoming a Hacker

#####################
#Disclaimer :()
#####################

First before i get into anything let me say that i don't encourage illegal activity so don't blame me if you wind up in jail for your own stupidity :) OK now that i have that out the way lets begin.


This first section will talk about a few things that you must know in order to hack something, when i say something i mean computers, phones etc .... Reading a simple tutorial on the Internet is no where near enough. So i would suggest starting off with learning networking, you use google.com (the gateway to world of information), read a network + book , or a guide to networking don't just read the book strive to understand everything that you are reading because you will need it later on . After reading a general networking book, go for something more specific like TCP/IP. Reading a full book on TCP/IP will improve your knowledge greatly. TCP/IP is the fundamental protocol of the Internet, and not understanding it means that your hacking skills are worthless. Knowledge of networking and TCP/IP will help you understand how and why different kinds of attacks work.


After Learning about networking and tcp/ip move on to Unix/Linux. Now adays there are many computers(servers) running some type of Unix or Linux so knowledge in it is absolutely essential. The best way to learn UNIX or Linux for that matter is to just install it and run it. There is alot of trial and error when learning UNIX/Linux i would recommend reading Running Linux by orielly this is a great book for beginners. I would also suggest starting off without a Gui when learning Linux/UNIX. because hacking is all command line and programming no Gui's like they show in the movies lol :).



The next step which is the biggest one is programming. I would this step the time sink because you will spend alot of time when learning programming. The leap into programming is very hard and can be frustrating. Hackers have been using C and Perl as a language of choice. However python has become a hot language to learn as of late. I would suggest the following languages , python or Perl, C, php, java, and a shell language. most people use bash, but i have crush on ksh (korn shell) :) just having some fun. But all jokes aside do go weak on learning how to program, programmers make much better hackers, that's just how it goes. This all stems back to knowing how things work, if you understand how networks work, how the OS works and know how programs work then you can find way to manipulate these things to let you do whatever you want.


Many people reading this article are probably saying that's all you need to know this is easy. The above topics will take many months or years depending on your situation of reading programming and experimenting. The pieces of the puzzle come together slowly but they take alot of work to put together. but if you commit yourself and preserve you will be fine. Remember the above steps are not written in stone you can go in any order you like. Final note when you understand how networks work, Os's work and how to program, then will all of this comes the knowledge of how security works.



Well I'm off to bed :P i hope this document sheds some light on the subject, and if it doesn't then o well.

Cracking Kerberos Service Tickets (TGS) Using Kerberoasting

As of late I've been spending a lot of time researching and learning different techniques when it comes to attacking Active Directory En...