Friday, August 24, 2012

A Beginners Guide to hacking Unix



Note: due to the many different 
Versions of unix (berkley unix, 
Bell system iii, and system v 
The most popular) many commands 
Following may/may not work. I have 
Written them in system v routines. 
Unix/xenix operating systems will 
Be considered identical systems below. 

How to tell if/if not you are on a 
Unix system:  unix systems are quite 
Common systems across the country. 
Their security appears as such: 

Login;     (or login;) 
Password: 

When hacking on a unix system it is 
Best to use lowercase because the unix 
System commands are all done in lower- 
Case. 
Login; is a 1-8 character field. It is 
Usually the name (i.e. Joe or fred) 
Of the user, or initials (i.e. J.jones 
Or f.wilson).  Hints for login names 
Can be found trashing the location of 
The dial-up (use your cn/a to find 
Where the computer is). 
Password: is a 1-8 character password 
Assigned by the sysop or chosen by the 
User. 
      common default logins 
   -------------------------- 
   login;       password: 
   root         root,system,etc.. 
   sys          sys,system 
   daemon       daemon 
   uucp         uucp 
   tty          tty 
   test         test 
   unix         unix 
   bin          bin 
   adm          adm 
   who          who 
   learn        learn 
   uuhost       uuhost 
   nuucp        nuucp 

If you guess a lgin name and you are 
Not asked for a password, and have 
Accessed to the system, then you have 
What is known as a non-gifted account. 
If you guess a correct login and pass- 
Word, then you have a user account. 
And, if you guess the root password, 
Then you have a "super-user" account. 
All unix systems have the following 
Installed to their system: 
Root, sys, bin, daemon, uucp, adm 
Once you are in the system, you will 
Get a prompt. Common prompts are: 


But can be just about anything the 
Sysop or user wants it to be. 

Things to do when you are in: some 
Of the commands that you may want to 
Try follow below: 

Who is on  (shows who is currently 
            logged on the system.) 
Write name (name is the person you 
            wish to chat with) 
      to exit chat mode try ctrl-d. 
      eot=end of transfer. 
Ls -a      (list all files in current 
            directory.) 
Du -a      (checks amount of memory 
            your files use;disk usage) 
Cd\name    (name is the name of the 
            sub-directory you choose) 
Cd\        (brings your home directory 
            to current use) 
Cat name   (name is a filename either 
            a program or documentation 
            your username has written) 
      most unix programs are written 
      in the c language or pascal 
      since unix is a programmers' 
      environment. 
One of the first things done on the 
System is print up or capture (in a 
Buffer) the file containing all user 
Names and accounts. This can be done 
By doing the following command: 

Cat /etc/passwd 

If you are successful you will a list 
Of all accounts on the system.  It 
Should look like this: 

Root:hvnsdcf:0:0:root dir:/: 
Joe:majdnfd:1:1:joe cool:/bin:/bin/joe 
Hal::1:2:hal smith:/bin:/bin/hal

The "root" line tells the following 
Info : 
Login name=root 
Hvnsdcf   = encrypted password 
0         = user group number 
0         = user number 
Root dir  = name of user 
/         = root directory 

In the joe login, the last part 
"/bin/joe " tells us which directory 
Is his home directory (joe) is. 

In the "hal" example the login name is 
Followed by 2 colons, that means that 
There is no password needed to get in 
Using his name. 



No comments:

Post a Comment

please let us know your thoughts ...