Tampilkan postingan dengan label Linux. Tampilkan semua postingan
Tampilkan postingan dengan label Linux. Tampilkan semua postingan

Jumat, 06 Maret 2015

ADVANTAGES AND DISADVANTAGES OF USING LINUX UBUNTU


The excess if you use Ubuntu

1. Free and can be used for multiple computers
2. stable, because it is a derivative of Debian and safe from viruses, worms, malware and the like, although it does not use anti virus
3. can be used on computers that have low hardware specification, because Ubuntu is very light so that it does not burden your computer's performance
4. We could try using Ubuntu without the need to install it into the computer, the hard drive using the Live CD feature on Ubuntu through the boot process on a CD or a flash drive as RAM only.
5. There are many applications ranging from Office applications (libreOffice, OpenOffice), browsing (Firefox, chromunium), multimedia (Rhythmbox, VLC player), graphics (GIMP, shotwell), games (linecity, hedgewar), education/education (educational suite gcomprize, quran) and a variety of other applications that most of them are free (free)
6. most Drivers was in the CD, such as Wifi, LAN, Audio, etc so that it is not difficult for us to do the installation
7. There is an Ubuntu Software Center, where you can download a variety of applications and games with ease
8. you are exempt and allowed to use, modify and distribute as you like
9. There are more than 55 languages, including bahasa Indonesia. Making it easier for you to use Ubuntu, if you do not understand the language of the United Kingdom.
10. display of cool and interesting desktop with Compiz fusion
11. Windows application can still run on Ubuntu using an application called Wine (Windows Emulator)
12. the latest version of Ubuntu is released every 6 months
13. the Ubuntu ISO File can be obtained from many ways, via download, message, request from friends and as software piracy without breaking the law
14. can be installed along with Windows
15. can be installed via the Windows using the Windows Help application called Wubi
16. More lawful and many other advantages
Weakness if using Ubuntu
1. not yet user friendly, dikarena most Ubuntu users coming from Windows and other migration
2. not all of your windows applications are compatible with wine so that your penchant for applications may not be used in Ubuntu.
3. Little excommunicated from friends because most of them use Windows

The excess if you use Ubuntu

1. Free and can be used for multiple computers
2. stable, because it is a derivative of Debian and safe from viruses, worms, malware and the like, although it does not use anti virus
3. can be used on computers that have low hardware specification, because Ubuntu is very light so that it does not burden your computer's performance
4. We could try using Ubuntu without the need to install it into the computer, the hard drive using the Live CD feature on Ubuntu through the boot process on a CD or a flash drive as RAM only.
5. There are many applications ranging from Office applications (libreOffice, OpenOffice), browsing (Firefox, chromunium), multimedia (Rhythmbox, VLC player), graphics (GIMP, shotwell), games (linecity, hedgewar), education/education (educational suite gcomprize, quran) and a variety of other applications that most of them are free (free)
6. most Drivers was in the CD, such as Wifi, LAN, Audio, etc so that it is not difficult for us to do the installation
7. There is an Ubuntu Software Center, where you can download a variety of applications and games with ease
8. you are exempt and allowed to use, modify and distribute as you like
9. There are more than 55 languages, including bahasa Indonesia. Making it easier for you to use Ubuntu, if you do not understand the language of the United Kingdom.
10. display of cool and interesting desktop with Compiz fusion
11. Windows application can still run on Ubuntu using an application called Wine (Windows Emulator)
12. the latest version of Ubuntu is released every 6 months
13. the Ubuntu ISO File can be obtained from many ways, via download, message, request from friends and as software piracy without breaking the law
14. can be installed along with Windows
15. can be installed via the Windows using the Windows Help application called Wubi
16. More lawful and many other advantages

Weakness if using Ubuntu

1. not yet user friendly, dikarena most Ubuntu users coming from Windows and other migration
2. not all of your windows applications are compatible with wine so that your penchant for applications may not be used in Ubuntu.
3. Little excommunicated from friends because most of them use Windows

Sabtu, 14 Februari 2015

Snort


Linux application that can be used to enhance the security of computers is Snort. Generally, Snort is a program that has three three-function or mode of operation. Snort can be used in a packet sniffer mode so it works as a sniffer like Wireshark. Just like Wireshark, Snort can also save every packet that is captured into a storage medium in packet logger mode mode. But in contrast to Wireshark, Snort NIDS can be used as components by running it on Network Intrusion Detection System (NIDS) mode. In this latter mode, Snort will analyze the packet based on the existing rule to recognize the efforts of hacker attacks.

To start using Snort, Snort requirement, as well as download the source, then build & install. For those who use Ubuntu distro, libdnet in the distribution is a library that is different from the required Snort. In Ubuntu, libdnet is DECNet libraries, while required by Snort renamed menjadilibdumpnet. We recommend that you download the source from Google Code, and then install to the location/usr instead of/usr/local. The trick is to add the--prefix argument =/usr when calling the script configure.

Here is a sample run Snort as a packet sniffer:

$ sudo snort-v

Running in packet dump mode

--= = ==-Initializing The Snort-
Initializing Output Plugins!
This pcap DAQ configured to passive.
Acquiring network traffic from "eth0".
Decoding Ethernet

--= = ==--Initialization Complete-

,, _-* > Snort! <*-
o ") ~ Version 2.9.0.5 (Build 135)


' ' ' ' By Martin Roesch & The Snort Team: http://www.snort.org/snort/snort-team
Copyright (C) 1998-2011 Sourcefire, Inc., et al.
Using libpcap version 1.1.1
Using PCRE long version: 2011-01-15

Commencing packet processing (pid = 31839)
06/05-12: 07: 03.524481: 45263-192.168.1.200 > 192.168.1.5: 53
TTL: 64 UDP TOS 0x0: ID: 63753 IpLen: 20 DgmLen: 73 DF
Len: 45
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+

06/05-12: 07: 03.582863 192.168.1.5: 53-> 192.168.1.200: 45263
UDP: TTL 255 TOS: 4887 ID: 0x0 IpLen: 20 DgmLen: 186 DF
Len: 158
...
===============================================================================
Run time for packet processing was 27.619079 seconds
Snort 19 processed packets.
Snort ran for 0 days 0 hours 0 minutes 27 seconds
Pkts/sec: 0


===============================================================================
Packet I/o Totals:
Received: 19
Analyzed: 19 (100,000)
Dropped: 0 (0000)
Filtered: 0 (0000)
Outstanding: 0 (0000)
Injected: 0
===============================================================================
...

To record footage of the packet into a text file, Snort can be run with a command like:

Snort-dev-l./log

The above command will write a packet into the recording log directory (this directory must have been created earlier).
And for an extra argument, NIDS mode-c that refer to the Snort configuration file, as follows:

Snort-d-l./log snort-c/etc/proftpd.conf

In the above command, the configuration file named snort. conf.
To run Snort as a daemon (background process which goes on), add the-D argument as in this example:

Snort-d-l/var/log/snort.log-c/etc/snort.conf-D

Speaking of configuration files, here is a sample configuration file content:

var LOG_IP 100.10.12.13

alert tcp any IP-_ $LOG > any any (msg: "access from him"; sid: 1)

The above configuration file causes the Snort generates alerts in the alert every time a file called IP TCP access 100.10.12.13, with a message of "access from him." Of course this is an example of a simple configuration that is not much useful, but enough to show that the Snort configuration file syntax is quite complicated. The example above contains a variable named IP LOG_IP. These variables can be used to write the IP _ $LOG will be disubstitusi with the real value.

The arguments are usually given when calling Snort can also be written to a configuration file so it does not need to be manually at the moment running Snort, as in the following example:

#as with arguments-D
config daemon

#as with arguments-d
config dump_payload

#as with the argument-l
logdir config:/var/log/snort

var LOG_IP 192.168.1.2
alert tcp any IP-_ $LOG > any any (msg: "access from him"; sid: 1)

Use the preprocessor to wear the processor already provided by Snort. For example, to detect the occurrence of port scanning, add the following configuration:

preprocessor stream5_global: \
track_tcp yes, yes, yes track_icmp track_udp

preprocessor stream5_tcp: \

policy first

preprocessor stream5_udp

preprocessor stream5_icmp

preprocessor sfportscan: \
proto {all} \
scan_type {all} \
sense_level {high}

The above configuration will use preprocessor sfPortScan from Source Fire. The requirement for using sfPortScan are using the Stream5 preprocessor. Now, when someone performs port scanning (which is the initial stage in the attack), for example, by using tool Nmap:

$ nmap-A-v 192.168.1.22

Then, Snort will generate alerts as follows:

[**] [122: 1: 0] (portscan) TCP Portscan [* *]

[Priority 3]

06/06-03: 34: 13.052153 192.168.1.49-> 192.168.1.22

PROTO: TTL 255: 64: TOS 0x0 ID: 0 IpLen: 20 DgmLen: 158 DF

This alert indicates that an IP from 192.168.1.49 perform port scanning to a computer with IP ADDRESS 192.168.1.22.

thanks...hope helpful

Nessus



Nessus is a program that serves as a security scanner is a network auditing akana in tujui, then specify the weaknesses of network in tujui, the following are features that are owned by Nessus, i.e.

• Plug-in Architecture
Every security test dlu as external plugins. With features like these, you can easily add the desired tests without having to read the code from Nessus engine

• NASL (Nessus Attack Scripting Language)
NASL is a language designed to write security test easily and quickly. In addition to the NASL, the C language can also be used to write security tests.

• Client-server Architecture
Nessus security scanner consists of two parts, namely: a server that serves as the perpetrators of the attack and a frontend. Client and server can be running on a different system. This feature means that the whole network can be audited through a PC with the server that performs the attack to the network at tujui.

• Smart Service Recognetion
Nessus does not trust the host ditujui using the standard port specified by the IANA. This means that Nessus can recognize A web server running on Portyang is not mean is the standard port (e.g. on port 8080) or an FFP server running on port31337

• Multiple Services
If there are any web servers on the host duah which scroll then Nessus will access both the web server.

• Complete Reports
Nessus is not only a member of the network safety know in tujui, but also provide a way that can be used to prevent the bad guy exploiting a weakness of the network and provide a level of risk from the jga each problem found.

• Exportable Reports
UNIX Client can export reports as Ascii text, HTML,
LaTeX, and others
And that there is a description of the meaning of Nessus running on Linux with the Linux Technology So Will Berkmbang rapidly in the Days Following his, so we should all be familiar with Nessus, it, So From this I have to thank you for the presence of all of you here

Admin Say Sorry Born inner

So once again thank you for Reading This Article bnyk atak, Born, sorry, inner,, hopefully you guys Fasting Charity At thank God Almighty, Ohya, please leave her, Comentar, kalo ada, if you don't understand what it is, nonetheless, Nessus smille well


THANK YOU ALL HAVE COME TO THIS BLOGGER

Kamis, 12 Februari 2015

Basic Linux Console Command


Commands (command) base on Linux run on a terminal shell commonly referred to as terminal or console. Terminal or console is known as the command line interface (CLI) that can be activated by means of the menu click Applications-Accessories-Terminal. In addition it could also work with pure diconsole by pressing the key combination ctrl + alt + F1 where F1 can be replaced up to F6. To return to the mode of Grafical User Interface (GUI) press ctrl + alt + F7.

Here are some Basic Linux Console Command:

login: to log into the network.

password: enter the password after login.

who: to know the list of users who are active (logged in).

finger: provides user identity information that is more complete than there are who.

Logout: to get out of the system or ending a session log

whoami: to know the user who is currently logged on is used in a computer/terminal.

date: indicates the date/set.

ls: displays a list of files in the current directory.

Description: this command will display information about directories and files.The simple form of the ls command will display only the file name. The long form is marked by using the option-l, which will display the names of files along with information for each file is displayed. Several options are provided other antra as follows:
-a: Show all files in the directory including the stuffing.
-o: Show only the name of the directory
-g group ID: print only for long form
-l: Show the entire file of the complete
-r: change the order of the settings file names has been compiled
-t: set the name of the file based on the last modification time, not by name

chmod: changing permissions of a directory/file.
example: chmod 777 nama_file

clear: clears the screen to work on CLI
example: clear or pressing the ctrl + D

CMP: Compare file1 and file2 and report differences
example: cmp file1 and file2

CP: copying files
example: # cp file1/usr/lib

RM: deleting files
example: rm namafileyangmaudihapus

MV: move a file rename ato
example: # mv renamefile1 menjadifile2

Cat: display the contents of a file (similar to the TYPE command on DOS). Paint function to print to the screen monitors the contents of a text file. If the file dililihat using the command is not a text file it will be weird karakterkarakter out on the odd characters can use the command cat-v screen is. .. To avoid tercetaknya

grep: search for a file in any directory
example: grep-n ' file name '/direktori

mkdir: create a directory
example: mkdir namadirektori

rmdir: delete directory
example: rmdir namadirektori

CD: change directory
example: cd/pathdirektori

Basic Linux Backtrak


For users who've always backtrack, must already be familiar with basic command that I wrote it. .. But create new in the backtrack, must be very troublesome if not know what command to use. .. This command is most often I use, please correct the kalu nothing wrong. ..

[*] Login
Root password username default user > toor on backtrack, ane suggestions directly after login change password with the command
root @: ~ # passwd bt
then enter the new password



[*] Fix display of splash:
root @: ~ # bt fix-splash

[*] Starting the X-server (Desktop GUI)
root @: ~ # bt startx

[*] networking
to start networking usually use WICD tpi previously previewed in the console type:
root @ bt: ~ #/etc/init.d/wicd start
and then click:
menu internet > > wicd netwok manager

dynamic ip settings,
root @: ~ # dhclient bt < interface network ente >
--the interfaces here could be eth0 or eth1

Static IP settings
for example:
interface eth0
192.168.1.9-IP Address/24
Default Gateway-192.168.1.1
DNS server 192.168.1.1
then the command used was:

root @: ~ # bt ifconfig eth0 192.168.1.9/24
root @ bt: ~ # route add default gw 192.168.1.1
root @: ~ # echo bt nameserver 192.168.1.1 >/etc/resolv.conf

This will return the default settings when the reboot, to make permanent then we need to edit the/etc/network/interfaces file,

root @: ~ # nano bt/etc/network/interfaces

Auto eth0
iface eth0 inet static
address 192.168.1.9
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
Gateway 192.168.1.1

then save using the command CTRL + X then y then enter answer

root @ bt: ~ # update-rc.d networking defaults
root @: ~ # bt/etc/init.d/networking restart

[*] Start the service at BT:
• SSH (Secure Shell)
before running the ssh service for the first time, we need to generate its key run the commands:
root @: ~ # sshd bt-generate
root @: ~ # bt/etc/init.d/ssh start
Starting in OpenBSD Secure Shell server sshd.

to stop the service:
root @: ~ # bt/etc/init.d/ssh stop
Stopping OpenBSD Secure Shell server sshd.
• apache webserver
root @: ~ # bt/etc/init.d/apache2 start
or it could be with the command of jg

root @ bt: ~ # service apache2 start
* Starting web server apache2

or:
root @: ~ # apache2ctl bt start

to stop the service:

root @: ~ # bt/etc/init.d/apache2 stop

or:
root @ bt: ~ # service apache2 stop

or:
root @: ~ # apache2ctl bt stop
• MySQL
to start using the command:
root @ bt: ~ #/etc/init.d/mysql start

or:
root @ bt: ~ # mysql start

to stop:
root @: ~ # bt/etc/init.d/mysql stop

or:
root @ bt: ~ # mysql stop

30 Order policies in Linux


1. id
Function: See IDs on Linux, either the ID of the User, Group, Device installed.
Examples of the application of the id command.



2. hostname
Function: see the name of the computer that is being used/activated.
Examples of the application of the command hostname.



3. w
Function: See anyone who is logged in with a very complete information.
Examples of the application of the w.



4. whoami
Function: displays the name of the Login only, without other information.
Examples of the application of the command whoami



5. the chfn
Function: change the information of the user.
Examples of the application of the chfn.



6. finger
Function: See user information that has been added by the command "chfn".
Examples of the application of the finger command.



7. man
Function: Describe in detail the command question.
Examples of the application of the command man.





8. apropos
Function: Find command – command containing the letter in question.
Examples of the application of the command apropos.



9. the whatis
Function: displays the function of a command are referred to.
Examples of the application of the commands whatis.



10. ls
Function: view the contents of a directory.
Examples of the application of the ls command.



11. file
Function: See extension/type a file is.
Examples of the application of the command file.



Means that file type .txt

12. Paint
Function: view the contents of a file without the facility to see the contents of the file from above.
Examples of the application of the cat command



13. more
Function: view the contents of a file with the facility to see contents of a file from the top and to the bottom using the Enter key for the perbaris and the SPACEBAR button to perlayar.
Examples of the application of command more.




14. pg
Function: view the contents of a file with the facility to see contents of a file from the top and to the bottom
use the Enter key to perlayar.
Examples of the application of the pg.





15. cp
Function: Copying a file.
Examples of the application of cp commands.



It means that the file is copied to the directory galang.

16. mv
Function: Move a file and be able to change the name of a file.
Examples of the application of mv commands in the move file.



It means that the file was moved to galang directory.

Examples of the application of mv command to rename the file.



It means the file is converted to .txt galang galang3 .txt

17. rm
Function: Remove a file.
Examples of the application of the rm command



It means that the file .txt galang removed

18. pwd
Function: See position of Linux users are where.
Examples of the application of the command pwd



It means that you are in the directory/home/galang.

19. cd
Function: Move directory.
Examples of the application of the cd command.



20. mkdir
Function: create a directory.
Examples of the application of the command mkdir.



21. rmdir
Function: Delete the directory.
Examples of the application of the command rmdir.



22. grep
Function: searching for words in a file.
Examples of the application of the command grep



Galang is the word to be searched on galang file .txt.

23. echo
Function: displays the text that made after the command echo and it is not saved.
Examples of the application of the command echo.



24. sort
Function: Sort a text file alphabetically.
Examples of the application of the order of sort



25. wc
Function: displays the number of lines, words, and the memory of a large file.
Examples of the application of the wc command.



It means that the file .txt galang has 6 lines, 6 words, and size of the files is 36 bytes.

26. the cut
Function: Taking a particular column from the input rows specified in the option-c.
Examples of the application of the cut.



27. uniq
Function: Remove line – the line sequence that undergoes a duplication.
Examples of the application of the uniq command.



28. find
Function: searching for files on an Active Directory.
Examples of the application of the find command.



29. which
Function: Indicates the location of a command.
Examples of the application of the command which



30. locate
Function: searching for a file in another directory that were not visited.
Examples of the application of the command locate.



Note: before you write the command locate, updatedb command write. Wait until finished, new write command locate.