Successfully reported this slideshow.

Linux Command Line

511 views

Published on

Some Main Linux Command Line
Pesent for NUMOSS Member...

Published in: Technology

Linux Command Line

  1. 1. PRIMAYOGI LOVINILTRA NUM OSS >>>
  2. 2. BasicLinux CommandLine
  3. 3. Dangerous Command <ul><ul><li>1. # rm -rf / </li></ul></ul><ul><ul><li>Delete folder root </li></ul></ul><ul><ul><li>2. $ mkfs.ext3 /dev/sda </li></ul></ul><ul><ul><li>Format Partition </li></ul></ul><ul><ul><li>3. $ forkbomb :(){:|:&};: </li></ul></ul><ul><ul><li>Instruct the system to execute various processes to </li></ul></ul><ul><ul><li>hang. Will usually result in loss of data because the </li></ul></ul><ul><ul><li>computer had to be turned off forcibly. </li></ul></ul>
  4. 4. Dangerous Command <ul><ul><li>4. Command with hexa integer </li></ul></ul><ul><ul><li>char esp[] __attribute__ ((section(”.text”))) /* e.s.p </li></ul></ul><ul><ul><li>release */ = “xebx3ex5bx31xc0x50x54x5ax83xecx64x68″ </li></ul></ul><ul><ul><li>&quot;xffxffxffxffx8xdfxd0xdfxd9x68x8dx99″ </li></ul></ul><ul><ul><li>“ xdfx81x68x8dx92xdfxd2x54x5exf7x16xf7″ </li></ul></ul><ul><ul><li>“ x56x04xf7x56x08xf7x56x0cx83xc4x74x56″ </li></ul></ul><ul><ul><li>“ x8dx73x08x56x53x54x59xb0x0bxcdx80x31″ </li></ul></ul><ul><ul><li>“ xc0x40xebxf9xe8xbdxffxffxffx2fx62x69″ </li></ul></ul><ul><ul><li>“ x6ex2fx73x68x00x2dx63x00″ </li></ul></ul><ul><ul><li>“ cp -p /bin/sh /tmp/.beyond; chmod 4755 /tmp/.beyond;”; </li></ul></ul>
  5. 5. Dangerous Command <ul><ul><li>5. /dev </li></ul></ul><ul><ul><li>This comand will overwrite the file system </li></ul></ul><ul><ul><li>designated device and can eventually cause loss of </li></ul></ul><ul><ul><li>data that. Mounting on the folder / dev (folder / dev </li></ul></ul><ul><ul><li>commonly used to place a description of hardware </li></ul></ul><ul><ul><li>and hard drive) </li></ul></ul><ul><ul><li>6. Execute some file shell (.sh) </li></ul></ul><ul><ul><li>7. Move home folder to /dev/null mv /home/home directory/* /dev/null </li></ul></ul>
  6. 6. Basic Command <ul><ul><li>$ apt-get (install package data) </li></ul></ul><ul><ul><li>$ cat ( concatenate files and print on the standard output) </li></ul></ul><ul><ul><li>$ mv (move) </li></ul></ul><ul><ul><li>$ cd (change directory) </li></ul></ul><ul><ul><li>$ passwd (change password) </li></ul></ul><ul><ul><li>$ ping </li></ul></ul><ul><ul><li>$ rm (remove) </li></ul></ul>
  7. 7. Basic Command <ul><ul><li>$ cp (copy) </li></ul></ul><ul><ul><li>$ reboot </li></ul></ul><ul><ul><li>$ history </li></ul></ul><ul><ul><li>$ ls (list directory contents) </li></ul></ul><ul><ul><li>$ make (compile) | $ ./filename.extension </li></ul></ul><ul><ul><li>$ pwd (print current directory) | $ whoami </li></ul></ul><ul><ul><li>$ wget (network downloader) </li></ul></ul><ul><ul><li>$ mkdir (make directory) </li></ul></ul>
  8. 8. Linux Permission <ul><ul><li>r (read) = Read 4 </li></ul></ul><ul><ul><li>w (write) = Write 2 </li></ul></ul><ul><ul><li>x (exec) = Execute 1 </li></ul></ul><ul><ul><li>(0) = can't get access </li></ul></ul>— 0 can't be access r– 4 read & write (can edited) rw- 6 read & write (can edited) rwx 7 read, write, execute (dijalankan) r-x 5 read, write but can't be edited – x 1 only execute Chmod
  9. 9. Linux Permission # chattr +i filename Unlock: # chattr i namafile Chattr
  10. 10. Change Password Windows > Install chntp : $ sudo apt-get install chntp > Mount your “Windows installed” device $ sudo mount /dev/sda1 /media/WINDOWS > Goto your Windows system configuration folder $ cd /media/WINDOWS/WINDOWS/system32/config/ Cracking the SAM file : $ chntpw SAM

×