I want to using nmap in my Ubuntu server but I found that nmap is not installed yet.
root@ubuntu:~# nmap
The program 'nmap' is currently not installed. You can install it by typing:
So, to install nmap just type the below command. It is extremely simple and easy :)
type this command : apt-get install nmap -bash: nmap: command not found
root@ubuntu:~# apt-get install nmap ** nmap will be installed and the below process will be shown Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
nmap
0 upgraded, 1 newly installed, 0 to remove and 46 not upgraded.
Need to get 1080kB of archives.
After this operation, 3789kB of additional disk space will be used.
Get:1 http://my.archive.ubuntu.com intrepid/main nmap 4.62-1ubuntu1 [1080kB]
Fetched 1080kB in 20s (52.4kB/s)
Selecting previously deselected package nmap.
(Reading database ... 53517 files and directories currently installed.)
Unpacking nmap (from .../nmap_4.62-1ubuntu1_amd64.deb) ...
Processing triggers for man-db ...
Setting up nmap (4.62-1ubuntu1) ...
taddaaaaaaa...!!!! Nmap is installed..Yeaaaaa
root@ubuntu:~# nmap
Nmap 4.62 ( http://nmap.org )
Usage: nmap [Scan Type(s)] [Options] {target specification}
TARGET SPECIFICATION:
Can pass hostnames, IP addresses, networks, etc.
Ex: scanme.nmap.org, microsoft.com/24, 192.168.0.1; 10.0.0-255.1-254
-iL : Input from list of hosts/networks
-iR : Choose random targets
--exclude : Exclude hosts/networks
--excludefile : Exclude list from file
HOST DISCOVERY:
-sL: List Scan - simply list targets to scan
-sP: Ping Scan - go no further than determining if host is online
-PN: Treat all hosts as online -- skip host discovery
-PS/PA/PU [portlist]: TCP SYN/ACK or UDP discovery to given ports
-PE/PP/PM: ICMP echo, timestamp, and netmask request discovery probes
-PO [protocol list]: IP Protocol Ping
-n/-R: Never do DNS resolution/Always resolve [default: sometimes]
--dns-servers : Specify custom DNS servers
--system-dns: Use OS's DNS resolver
SCAN TECHNIQUES:
-sS/sT/sA/sW/sM: TCP SYN/Connect()/ACK/Window/Maimon scans
-sU: UDP Scan
-sN/sF/sX: TCP Null, FIN, and Xmas scans
--scanflags : Customize TCP scan flags
-sI : Idle scan
-sO: IP protocol scan
-b : FTP bounce scan
--traceroute: Trace hop path to each host
--reason: Display the reason a port is in a particular state
PORT SPECIFICATION AND SCAN ORDER:
-p : Only scan specified ports
Ex: -p22; -p1-65535; -p U:53,111,137,T:21-25,80,139,8080
-F: Fast mode - Scan fewer ports than the default scan
-r: Scan ports consecutively - don't randomize
--top-ports : Scan most common ports
--port-ratio : Scan ports more common than SERVICE/VERSION DETECTION:
-sV: Probe open ports to determine service/version info
--version-intensity : Set from 0 (light) to 9 (try all probes)
--version-light: Limit to most likely probes (intensity 2)
--version-all: Try every single probe (intensity 9)
--version-trace: Show detailed version scan activity (for debugging)
SCRIPT SCAN:
-sC: equivalent to --script=safe,intrusive
--script=: is a comma separated list of
directories, script-files or script-categories
--script-args=: provide arguments to scripts
--script-trace: Show all data sent and received
--script-updatedb: Update the script database.
OS DETECTION:
-O: Enable OS detection
--osscan-limit: Limit OS detection to promising targets
--osscan-guess: Guess OS more aggressively
TIMING AND PERFORMANCE:
Options which take
Date: 31 May - 3 June, 2009 Venue: Berjaya Times Square Hotel & Convention Center, Kuala Lumpur.
MSC Malaysia's inaugural and full-fledged Open Source Conference to incorporate a "Quadruple play" of 4 crucial stakeholders consisting of government, businesses, developers and community in envisioning open source's contribution to the IT industry and socio-economy.
Positioned as International forum for sharing and exchanging ideas on technical advancements, applications, development and business cases on open source, and its positive impact in meeting challenges of the current economic climate.
Organised by MSC Malaysia in cooperation with the Malaysian Administrative Modernisation and Management Planning Unit (MAMPU), the annual MSC Malaysia OSCONF is also supported by the Malaysian Open Source community. This event complements the annual Malaysian Government Open Source Software Conference (MyGOSSCON) as the premier platform for all things Open Source in Malaysia.
With 3 DAYS, 3 TRACKS, 1 HACKATHON are in store for everyone who attend this conference. In addition, we have renowned speakers from prime Open Source Enterprises which are Mozilla, Google and Red Hat to name a few and also not forgeting from the developer community - Ubuntu, BSD, Fedora, PHPs, etc
Come join us at the MSC Malaysia Open Source Conference 2009! You'll be pleasantly surprised...
Who should attend?
Business executives from MSC Malaysia and Non-MSC Malaysia Status companies
Open Source developers, communities, inventors, evangelist, researchers, strategist
Government officers
Students, general public
Why you should attend?
Provide exposure and knowledge on the importance of Open Source in enhancing competitiveness by giving freedom of choice in software usage with lower total cost of ownership, hence benefiting businesses and society at large. Over 30 session tracks are made available.
Share amongst the open source community on new directions and latest innovations by the subject matter experts, thought leaders and industry gurus.
Provide a platform for conference participants to actively interact, share and exchange views, ideas, and tools on the latest trends and issues of Open Source.
Networking, learning and having great fun! Click here for more details
LogFormat=4 change to this value from default “ 1 ”
# If analyzing mail log, enter here the domain name of mail server.
# Example: "myintranetserver"
# Example: "www.domain.com"
# Example: "ftp.domain.com"
# Example: "domain.com"
#
SiteDomain="lbjt" make sure this is value is entered
# Example: "/var/lib/awstats"
# Example: "../data"
# Example: "C:/awstats_data_dir"
# Default: "."(means same directory as awstats.pl)
#
DirData="/var/www/awstats" change to this from the default “/var/lib/awstats”
Step 4
awstats@ubuntu:/var/www/awstats/tools$ type sudo /var/www/awstats/wwwroot/cgi-bin/awstats.pl config=lbjt -update
Create/Update database for config "/etc/awstats/awstats.lbjt.conf" by AWStats version 6.9 (build 1.925)
From data in log file "/var/log/apache2/lbjt.skali.my-access_log"...
Phase 1 : First bypass old records, searching new record...
Searching new records from beginning of log file...
Phase 2 : Now process new records (Flush history on disk after 20000 hosts)...
Jumped lines in file: 0
Parsed lines in file: 1788
Found 0 dropped records,
Found 0 corrupted records,
Found 0 old records,
Found 1788 new qualified records.
awstats@ubuntu:/var/www/awstats/tools$
Step 5
Open browser using Internet Explorer or Mozilla FireFox. At the URL address type the below address;
http://192.168.19.50/awstats/awstats.pl?config=lbjt and the web page as below will be displayed and your awstats configuration is successful. Replace the lbjt name with other website profile. Let say if you are creating a profile for Bank Rakyat, then type, bankrakyat after config= (eg; config=bankrakyat) and so on for other profile.
pfSense is a free, open source customized distribution of FreeBSD tailored for use as a firewall and router. In addition to being a powerful, flexible firewalling and routing platform, it includes a long list of related features and a package system allowing further expandability without adding bloat and potential security vulnerabilities to the base distribution. pfSense is a popular project with more than 1 million downloads since its inception, and proven in countless installations ranging from small home networks protecting a PC and an Xbox to large corporations, universities and other organizations protecting thousands of network devices.
This project started in 2004 as a fork of the m0n0wall project, but focused towards full PC installations rather than the embedded hardware focus of m0n0wall. pfSense also offers an embedded image for Compact Flash based installations, however it is not our primary focus.
This simple tutorial is based on my experience. This software is awesome with a lot of features in it. The main reason I'm installing this software is for creating a Squid proxy server. Since this software have a lot of add-on so why not I'm trying to install it. Actually, I had installed this PFSense in my SUN VirtualBox. On the moment I'm posting this post, I'm using the latest PFSense version 1.2.2. To download the software click here
Configure Console > Choose "Change Video Font (Default)"
Select Task > Choose "Install pfSense"
Select Disk > Select your desired disk, default is "ad0"
Select Geometry > I didn't change anything here, just proceed with the default, "choose Use this Geometry"
ABOUT TO FORMAT! Proceed? > Verified it first and then "choose Format ad0"
Partition Disk? > Read this first and choose Partition Disk if you satisfied :)
Edit Partitions > I'm using this default and choose Accept and Create
Partitions Anyway? > "Choose Yes, partition ad0"
Information > The disk was successfully partitioned, ahaaaa OK
Select Partition > Select the primary partition, I choose 1:blablabla ;)
Are you SURE? Choose OK if you dare to format your disk
Information > Primary partition #1 was formatted.
Select Subpartitions > I'm just selecting the default as below. Choose Accept and Create
Executing Commands
Install Kernel > Choose Uniprocessor kernel (one processor) if your system has only one processor. But, if you installed it on server maybe you should choose Symmetric multi processing blablabla
Cancelled? What the heck? I dont know why this happen but I Retry it and it works!!! Yeaa!
Install Bootblocks > I don't want headache so, I just keep the default and choose Accept and Install Bootblocks
Information > Bootblocks were successfully installed
Reboot > Choose Reboot
Reboot, bip! bip! will hear the bip bip sound
Open up the web browser FireFox or IE. Enter the default PFSense IP Address, 192.168.1.1, Username: admin and Password: pfsense to get to the page as below
General Information
Time Server Information
Time Server Information, choose Timezone
Configure WAN interface, I'm using DHCP at first.
Contd..
Configure LAN Interface
Set Admin WebGUI Password
Reload, click Reload button
A reload is now in progress. Please wait but if unpatient click on PFSense icon :-P
I have searching on the Internet how to setup a my Ubuntu (8.04) machine as a firewall and I finally found a step that I need to do. Lokkit, yeah this is the firewall that I think suitable. What I need to do is to download it first to my Ubuntu machine, install and configure it as I need.
rootubuntu@myubuntu-vbox:~$ sudo apt-get install lokkit<---- type this command [sudo] password for rootubuntu: type the root password, after that the below details will be displayed during the installation. (see below) Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: ipmasq Recommended packages: gnome-lokkit The following NEW packages will be installed: lokkit 0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded. Need to get 128kB of archives. After this operation, 811kB of additional disk space will be used. Get:1 http://my.archive.ubuntu.com hardy/universe lokkit 0.50.22-7.1ubuntu2 [128kB] Fetched 128kB in 6s (20.6kB/s) Selecting previously deselected package lokkit. (Reading database ... 138076 files and directories currently installed.) Unpacking lokkit (from .../lokkit_0.50.22-7.1ubuntu2_i386.deb) ... Setting up lokkit (0.50.22-7.1ubuntu2) ... You must use lokkit or gnome-lokkit to configure the firewall. -end of installation-
After installation of Lokkit is finished enter below command to run Lokkit rootubuntu@myubuntu-vbox:~$ lokkit <---- type this command
ERROR - You must be root to run lokkit.why I got this message? because I'm not run it as a root. use sudo
rootubuntu@myubuntu-vbox:~$ whoami rootubuntu rootubuntu@myubuntu-vbox:~$ sudo lokkit [sudo] password for rootubuntu: type the root password, then the Lokkit window will be pop-up as below.
Kuantan, Pahang Darul Makmur yang amai dan permai, Malaysia
Born to this world as a human that created by HIM to be a khalifah on this world. Happy with my job now. Independent, that's the most precious thing that I had now.
Nvidia new hotplug feature on Linux
-
If you use nvidia driver for your GPU, you probably wonder why in some
config, you can't hotplug your second monitor. You need to reboot to be
able to ...
Download The Open House Full Movie
-
[Download]*HD* The Open House
[image: The Open House]
[image: Watch The Open House Online Streaming]
The Open House (2018)
Release Date : 2018-01-19
G...
Redash RPM in COPR
-
Just a quick announcement post.
I've added a redash build in COPR.
To install:
dnf copr enable izhar/redash
dnf install redash
Configure your databa...
The Regex Goodies
-
I came across this post and thinking it's very useful information. A lot of
teaching points for people who love regular expression.
https://www.loggly.com/...
Continue my blogging
-
Whoaa..
After the long time and busy with lots of thing in my life.. I've decided
to resume my blog.. it's already 4 years.. it will filled up with mumblin...
New (not that new) Beginning part 1
-
Silent is the best policy. I think probably it’s been too quiet for this
blog. I guess it’s over 2 years since my last post? Hooo haa about quiting
my job,...
Google +1 Plus One MOSC2011 Official Blog
-
Google +1 Plus One MOSC2011 Official Blog
Help us promoting Malaysia Open Source Conference 2011 (MOSC2011) by Google
+1 our official blog. Visit our offic...
Mari2.. Bagaimana mahu baik pulih Grub2?? Begini...
-
Hari ni ak da hancurkan Grub2 aku dengan format windows lagi sekali. Ia
agak susah nak membaiki pasal tak banyak "how to" pasal recover balik Grub2
yang da...
Kembali Bergambar
-
Jangan salah paham dengan tajuk kat atas tu. pokcik nak maksudkan kembali
menggunakan kamera yang telah sekian lama bersemadi dalam DIY drybox tu.
Dah lama...