Saturday, November 24, 2012

iBall Groovy Bluetooth Neckphone With Mic


Hello Friends,

Just a little Review on iball Groovy .


  1. Effective range : 10 m
  2. Working Time : 6-7 Hours
  3. Supported Profiles : HSP, HFP, A2DP, AVRCP
Pairing with device :

  1. Switch on by pressing power button for 5-6 seconds till alternate RED , BLUE LED blinks , which means you are in Pairing Mode
  2. Search from Laptop Bluetooth Devices > Add a Bluetooth Device > My Device is Setup and ready to find 
  3. It will start Bluetooth device search  , select iBall-Groovy 
  4. Select --> Use Passkey Found in Documentation
  5. For iBall-Groovy passkey is 0000 .
  6. Once done , you need to click on Audio Icon at bottom right 
  7. Click on Devices > Independent (R.T.C.) Headphones (IDT High Defination Audio CODEC)
  8. Unmute selected volume and that should work!!!!

iBall-Groovy Main Pannel

Playback Interface 


Blue LED




  • Simple and Slim design 
  • Nice audio quality 
  • Mic works absolutely fine , with clarity
  • affordable price


I Personally Enjoying iBall Groovy!!!! Your reviews and experience is welcome here , any problems issues it will be nice if all of you can post here, I know this was just a little overview and not a complete analysis

Best Regards,
Girish

Tuesday, November 20, 2012

Squid Proxy Configuration RHEL5

Hello Friends,

Squid is very popular proxy used on Redhat servers , here is little tutorial on configuring sqid , checking squid logs , Hope you will enjoy!

SQUID Configuration :
---------------------------

1. yum install squid*
2. vi /etc/squid/squid.conf

Parameters to configure :
-----------------------------

By Default no machine is allowed to connect proxy server except localhost so need to allow access
to our subnet 192.168.0.0/24 (Need to create acl Step 3)

1. visible_hostname universe.server.com    # universe.server.com is my Servers Hostname
2. http_port 192.168.0.60:8080             # My Servers Ip : 192.168.0.60 , Port 8080
3. acl mylan src 192.168.0.0/255.255.255.0 # mylan is name given to ACL
4. http_access allow mylan
5. http_access deny !mylan
6. Save changes and Exit
7. service squid start

On Client :
---------------
1. Open browser
2. Edit > Preferences > Connection settings > 
3. Manual Proxy Configuration > Http Proxy > 192.168.0.60 , Port 8080

Thats it!!!!
You should be able to browse websites here onwards!!!



Additional Configuration :
-------------------------------
http://www.redhat.com/archives/ext3-users/2010-August/msg00003.html
1. vi /etc/squid/squid.conf
2. cache_dir ufs /var/spool/squid 100 16 256 
Amount of Disk in MB to be used for Caching             : 100
Number of First  Level cache directories to be created  : 16
NUmber of Second Level cache directories to be created  : 256

Default Squid Cache directory  : /var/spool/squid/(16 dirs)/(256 dirs)/(the small files)

'Level-1' is the number of first-level subdirectories which will be created under the 'Directory'--> The default is 16.
'Level-2' is the number of second-level subdirectories which will be created under each first-level directory -->  The default is 256.

Where to check Squid Access Logs ? Who visited XYZ Sites?
-----------------------------------------------------------
Log File : /var/log/squid/access.log
Sample Logs :
---------------
[root@universe squid]# tail -f /var/log/squid/access.log
1350983287.130   2452 192.168.0.254 TCP_MISS/200 83569 GET http://www.htc.com/managed-assets/images/home-page/marquee/wp-8x-360/blue/wp8_35.png - DIRECT/125.99.127.201 image/png
1350983287.865   3913 192.168.0.254 TCP_MISS/200 61282 GET http://www.htc.com/managed-assets/images/home-page/marquee/wp-8x-360/blue/wp8_31.png - DIRECT/125.99.127.209 image/png
1350983288.327   1746 192.168.0.254 TCP_MISS/200 44226 GET http://www.htc.com/managed-assets/images/home-page/marquee/wp-8x-360/blue/wp8_08.png - DIRECT/125.99.127.209 image/png
1350983290.043   1595 192.168.0.254 TCP_MISS/200 22004 GET http://www.htc.com/managed-assets/images/home-page/marquee/wp-8x-360/blue/wp8_10.png - DIRECT/125.99.127.201 image/png
1350983290.214   2348 192.168.0.254 TCP_MISS/200 32779 GET http://www.htc.com/managed-assets/images/home-page/marquee/wp-8x-360/blue/wp8_26.png - DIRECT/125.99.127.209 image/png
1350983290.553   3932 192.168.0.254 TCP_MISS/200 66018 GET http://www.htc.com/managed-assets/images/home-page/marquee/wp-8x-360/blue/wp8_17.png - DIRECT/125.99.127.201 image/png
1350983291.331    777 192.168.0.254 TCP_MISS/200 830 GET http://metrics.htc.com/b/ss/htcww-en-prod,htcglobal-prod/1/H.25.2T/s3457431454036? - DIRECT/66.235.142.3 image/gif
1350983291.525   3197 192.168.0.254 TCP_MISS/200 79093 GET http://www.htc.com/managed-assets/images/home-page/marquee/wp-8x-360/blue/wp8_01.png - DIRECT/125.99.127.209 image/png
1350983292.021   1806 192.168.0.254 TCP_MISS/200 32147 GET http://www.htc.com/managed-assets/images/home-page/marquee/wp-8x-360/blue/wp8_28.png - DIRECT/125.99.127.209 image/png
1350983292.572   2529 192.168.0.254 TCP_MISS/200 66253 GET http://www.htc.com/managed-assets/images/home-page/marquee/wp-8x-360/blue/wp8_19.png - DIRECT/125.99.127.201 image/png

Squid Forensics :
----------------------
http://philosecurity.org/2009/04/19/squid-forensics
Where in cache , file xyz.jpg stored ?
------------------------------------------
grep -r “xyz.jpg” /var/spool/squid/    --> recursively search

Monitoring and Displaying squid logs in a nice fashion, and may then go deeper with searching and reporting functions --> squidview
Squidview Tool   : http://www.rillion.net/squidview/
Sarg tool        : http://sarg.sourceforge.net/sarg.php

Squidview :
---------------
1. wget http://www.rillion.net/squidview/squidview-0.79.tar.gz
2. tar -zxvf squidview-0.79.tar.gz
3. cd squidview-0.79/
4. ./configure
5. make
6. cp Makefile.old Makefile
7. make oldgcc
Launch squidview : ./squidview


Best Regards,
Girish







 

Snort Tutorials

Snort Tutorial :
-------------------

3 Basic Modes :
--------------------
1. Sniffer Mode
2. Packet Logger Mode (Logs Packets to disk)
3. Network Intrusion Detection System (NIDS) , analyze network traffic as per Rules Defined by users.

Sniffer Mode :
------------------
[root@universe rules]# snort -v
10/23-16:53:37.964423 192.168.0.104:22 -> 192.168.0.102:51490
TCP TTL:64 TOS:0x10 ID:9175 IpLen:20 DgmLen:712 DF
***AP*** Seq: 0xE9BBEF63  Ack: 0x7C361CE8  Win: 0x4B60  TcpLen: 32
TCP Options (3) => NOP NOP TS: 2482891 2406025
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
10/23-16:53:37.964504 192.168.0.104:22 -> 192.168.0.102:51490
TCP TTL:64 TOS:0x10 ID:9176 IpLen:20 DgmLen:360 DF
***AP*** Seq: 0xE9BBF1F7  Ack: 0x7C361CE8  Win: 0x4B60  TcpLen: 32
TCP Options (3) => NOP NOP TS: 2482891 2406025
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+


Display packet data + Headers :
---------------------------------
[root@universe rules]# snort -vd
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
10/23-16:55:25.083474 192.168.0.104:22 -> 192.168.0.102:51490
TCP TTL:64 TOS:0x10 ID:10322 IpLen:20 DgmLen:168 DF
***AP*** Seq: 0xE9C66BA7  Ack: 0x7C364A68  Win: 0x4B60  TcpLen: 32
TCP Options (3) => NOP NOP TS: 2509669 2416736
87 45 00 A3 DC 71 91 72 AE 1E 8B B0 A6 A6 2E 56  .E...q.r.......V
9A 29 BE 45 64 80 28 71 5C 46 02 FF 52 FF 54 8B  .).Ed.(q\F..R.T.
51 39 5D B0 3E 14 BA 5D 99 27 FA 89 D8 0C DC EC  Q9].>..].'......
46 5A 27 29 DB DA E4 20 00 3B 93 3A C6 A4 43 A9  FZ')... .;.:..C.
E9 99 30 EC 69 5B 83 8D 46 9D DF FA C8 93 F9 04  ..0.i[..F.......
A4 02 28 33 4F CF 2D 15 EB 48 1D 55 C7 17 20 2A  ..(3O.-..H.U.. *
F3 58 C7 73 EA A5 2D 3F 66 82 64 F3 AE 76 C3 42  .X.s..-?f.d..v.B
C8 52 A5 88                                      .R..
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
10/23-16:55:25.084084 192.168.0.104:22 -> 192.168.0.102:51490
TCP TTL:64 TOS:0x10 ID:10323 IpLen:20 DgmLen:120 DF
***AP*** Seq: 0xE9C66C1B  Ack: 0x7C364A68  Win: 0x4B60  TcpLen: 32
TCP Options (3) => NOP NOP TS: 2509669 2416736
46 18 30 B7 BD 5C A8 16 E8 38 87 49 A7 CA DF 6C  F.0..\...8.I...l
AD 79 02 5F 17 A5 AF 17 6D 66 F6 E0 1F 3C 5B F9  .y._....mf...<[.
47 D4 CD 3C 62 03 D6 09 FB B3 B2 F5 4F 10 3C 05  G..34 BA 04 EB 0C EF 2A 7D 79 63 AE 3B AB 22 DE 2E  4.....*}yc.;."..
CE 79 D1 FB                                      .y..

=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+

3 Main Commands :
--------------------
snort -v                 --> Headers
snort -dv                --> Headers + Packet Data
snort -dev               --> Headers + Packet Data + Data Link Layer
snort -dev -l ./log      --> -l for specifying Log Directory
snort -dev -l ./log -h 192.168.0.0/24   --> Log data with specified network range
snort -dev -l ./log -b  --> Binary mode logging
snort -dev -r packet.log --> Read packets with -r switch


Links :
----------
http://seclists.org/snort/2010/q4/533

How to create own snort Rules :
--------------------------------------
SQL Injections are becoming very common attacks on websites , in such cases we can detect attemps on IDS like snort
We need to find signature for most common SQL Injection Queries
Ex.
' or 1=1--  -->  %27+or+1%3D1--
Rule for attack :
--------------------
alert tcp any any -> any any (content:"%27+or+1%3D1--";msg:"Dude Someone is performing SQL INJECTION";sid:1000003;rev:1;)

Content = %27+or+1%3D1--
msg     = Message you want to display
sid     = Unique ID assigned to this rule
sid & rev uniquely identify the rule

Implement Rule in Snort :
-------------------------------
1. vi sqlinjection.rules     (I created this file /etc/snort/rules )
2. alert tcp any any -> any any (content:"%27+or+1%3D1--";msg:"Dude Someone is performing SQL INJECTION";sid:1000003;rev:1;)
3. Save and Exit
4. vi /etc/snort/snort.conf
5. Edit As Below :
   ----------------------------------
   include $RULE_PATH/youtube.rules
   include $RULE_PATH/sqlinjection.rules
   ----------------------------------
   In our case #RULE_PATH = /etc/snort/rules/
6. Save and Exit

7. snort -v -i eth0 -l . -c /etc/snort/snort.conf --snaplen 1518 
-l .             --> Save files in current directory
-c               --> Snort configuration file
--snaplen 1518   -->

8. Execute attack on client machine
 
Snort Output :
-----------------
Action Stats:
     Alerts:            5 (  0.074%)   --> We successfully caught ATTACK!!!
     Logged:            5 (  0.074%)
     Passed:            0 (  0.000%)

9. Check file alert in current directory
[root@universe rules]# pwd
/etc/snort/rules
[root@universe rules]# cat alert
[**] [1:1000003:1] Dude Someone is performing SQL INJECTION [**]
[Priority: 0]
10/23-20:05:06.145217 192.168.0.101:45670 -> 192.168.0.13:8080
TCP TTL:64 TOS:0x0 ID:2665 IpLen:20 DgmLen:332 DF
***AP*** Seq: 0x6564F124  Ack: 0x28B08D67  Win: 0x2E  TcpLen: 32
TCP Options (3) => NOP NOP TS: 42526540 5354755
[**] [1:1000003:1] Dude Someone is performing SQL INJECTION [**]
[Priority: 0]
10/23-20:05:06.230814 192.168.0.104:28692 -> 220.226.205.30:80
TCP TTL:64 TOS:0x0 ID:41431 IpLen:20 DgmLen:260 DF
***AP*** Seq: 0x29121933  Ack: 0x43B3A536  Win: 0x2E  TcpLen: 32
TCP Options (3) => NOP NOP TS: 5354776 23618074

Now we have All required information about ongoing Attack!!!!


Why we used --snaplen ??
------------------------------
Command : snort -V
My Current Snort version : Version 2.9.0.5
When I use snort without --snaplen option , I was not able to collect alerts , nor any alert file was generated
With reference to : http://seclists.org/snort/2010/q4/533
The IPQ and NFQ DAQs had an internal buffer limitation that is fixed in the latest release.




Will be adding more soon.....

Best Regards,
Girish

Installation Snort IDS for FUN in 2 Minutes

Hello Friends,


As a beginner I struggled to run Snort IDS (Intrusion Detection System) on my Personal  RHEL 5 ,

Its absolutely easy but , was not for me on RHEL 5 especially , due to dependencies.


Snort Download Link                                 : http://www.snort.org/snort-downloads

RHEL5, Cent OS 5.5, or Fedora Core 11 : http://www.snort.org/snort-downloads/rhel5/


My Snort Version : Snort 2.9.0

Linux Kernel        : 2.6.18-8.el5xen

Linux OS             : RHEL 5


I am uploading all required dependencies for snort 2.9.0 here , you need to follow simple steps to install snort in 2 minutes.

After installation comes gr8 part of IDS World!!!!!

Soon will be adding snort tutorials!!!

Best Regards,
Girish





Tuesday, October 9, 2012

Keylogger source code


Hello Friends,

Here I am releasing Simple Keylogger's Source code (Visual Basic) , so that you can use it and create a better future :)

Let me know if you have any queries and questions , its a very basic keylogger , when you start it ,
Keystrokes will be recorded in txt file

Download

For simplicity I have included KEYLOGGER.txt file containing keystrokes with corresponding ASCII code.

Thanks & Regards,
Girish


HP-UX commands


 Hello ,

 It was gr8 experience for me to use HP-UX box , not upto expert level , but at certain comfort !
 While working with HP-UX , I decided to create one small draft of common commands used
 
 Below are Common HP-UX commands with their appropriate output 


HP-UX :
=======

Complete command or filename --> type few characters and press ESC key 2 times

List multiple files starting with "T" -->  type "p" then "ESC" then "="

# cd p

1) pids/
2) probes/


Rexecute command numbers 562 :
==============================

561     cd ..
562     ls
563     hios

[root@fwa-integ02] [/opt/nimbus]
# r 562
ls
bin       niscache  pids      probes    robot     tmp
[root@fwa-integ02] [/opt/nimbus]



Execute Last Command --> ESC + k



To display current baud rate, start/stop bits, parity, flow control, and other information 
==========================================================================================

# stty -a
speed 38400 baud; line = 0;
rows = 24; columns = 80
min = 4; time = 0;
intr = ^C; quit = ^\; erase = ^H; kill = ^U
eof = ^D; eol = ^@; eol2 ; swtch
stop = ^S; start = ^Q; susp ; dsusp
werase ; lnext
-parenb -parodd cs8 -cstopb hupcl cread -clocal -loblk -crts
-ignbrk brkint -ignpar -parmrk -inpck istrip -inlcr -igncr icrnl -iuclc
ixon ixany ixoff -imaxbel -rtsxoff -ctsxon -ienqak
isig icanon -iexten -xcase echo echoe echok -echonl -noflsh
-echoctl -echoprt -echoke -flusho -pendin
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel -tostop tab3
[root@fwa-integ02] [/opt/nimbus/bin]



Software removal process logged into /var/adm/sw/swremove.log



Find and remove unused softwares :
==================================

freedisk 


swremove 


Verifying Installed software :
==============================

swremove 

log of the command is recorded in /var/adm/sw/swverify.log



What is Software Depot :
========================

Software depots are places where filesets, products, and bundles are stored. A software depot may a directory on your disk, a CD-ROM, or a tape (DDS, DAT) used for 

distributing software

By default, the software depot directory is /var/spool/sw

(Its like Repository in RHEL , we can add , remove list packages from it.)


HP-UX Patches
==============

Patch Sources
Patches can be obtained using your Web browser through WWW or FTP. The WWW site address is:

http://ITResourceCenter.hp.com

The FTP site address is:

ftp://us-ffs.external.hp.com/hp-ux_patches

You can also order a patch CD-ROM from Hewlett-Packard to obtain a collection of all patches.


CUSTOM PATCH MANAGER
--------------------

This tool is available on the Hewlett-Packard Web site. It can be used to take inventory of existing software installed on your system and suggest needed patches. To 

use the custom patch manager, your system needs to be connected to the Internet and you must have a Personalized System Support Agreement with Hewlett-Packard.


Command patches   : CO
Kernel patches    : KL
Network patches   : NE
Subsystem patches : SS

Some example patch names are:
-----------------------------

PHSS_16473

PHSS_14158

PHCO_15623

PHKL_16189

Usually you need to reboot the system after installing a kernel patch



Check HP-UX Version :
======================

# uname -a
HP-UX fwa-inte B.11.23 U ia64 2745059608 unlimited-user license
[root@fwa-integ02] [/var/spool]
# uname -r
B.11.23


List Installed Patches :
=========================

swlist -l patch


HP-UX Patch Installing :
========================

Obtaining Patches
HP-UX patches are distributed as shar files. When you download a patch from the Hewlett-Packard FTP or Web site, use the sh command to unshar it. For example, to 

download the patch, PHCO_15220


ftp> get PHCO_15220
200 PORT command successful.
150 Opening BINARY mode data connection for PHCO_15220 (46784 bytes).
226 Transfer complete.
46784 bytes received in 1.04 seconds (44.02 Kbytes/s)

Step 1:
-------

After downloading, use the following command to unshar the patch.

$ sh PHCO_15220
x - PHCO_15220.text
x - PHCO_15220.depot [compressed]
$

Step 2:
-------

To add the patch to the /var/spool/sw depot, use this command.

swcopy -s PHCO_15220.depot PHCO_15220 @ /var/spool/sw



Step 3:
-------

swinstall -s /var/spool/sw



Important HP-UX commands :
===========================

swinstall  Install software  
swremove  Remove installed software; also remove software from a depot  
swlist  List installed software or software in a depot  
swcopy  Copy software components to a software depot  
swpackage  Package software in a depot  
swreg  Make a software depot visible to other systems on the network  
swverify  Verify integrity of installed software  
swagentd  SD-UX daemon  
swagent  SD-UX agent  
swacl  Control access to software  
swconfig  Configure installed software  


Default Kernel Configuration 


Find Server Model HP-UX :
==========================

# model
ia64 hp server BL860c



File system Utilization Monitoring :
=====================================

# bdf
Filesystem          kbytes    used   avail %used Mounted on
/dev/vg00/lvol3    1081344  296176  779104   28% /
/dev/vg00/lvol1    1835008  196192 1626112   11% /stand
/dev/vg00/lvol8    8912896 4506360 4372760   51% /var
/dev/vg00/lvol7    8454144 3328056 5086088   40% /usr
/dev/vg16/lvol01   312999936 289737520 21808526   93% /u16
/dev/vg15/u15      314179584 283827012 28455571   91% /u15
/dev/vg14/u14      314179584 288006701 24537156   92% /u14
/dev/vg13/u13      156893184 136963119 18684583   88% /u13
/dev/vg12/u12      156893184 132970698 22427429   86% /u12
/dev/vg11/u11      156893184 142032054 13932411   91% /u11
/dev/vg10/u10      156893184 133122858 22284868   86% /u10
/dev/vg09/u09      156893184 110786172 43225383   72% /u09
/dev/vg08/u08      156893184 81202860 70959740   53% /u08
/dev/vg07/u07      156893184 133755749 21691380   86% /u07
/dev/vg06/u06      156893184 129073047 26081532   83% /u06
/dev/vg05/u05      156893184 114496003 39747382   74% /u05
/dev/vg04/u04      156893184 136765202 18870135   88% /u04
/dev/vg03/u03      104595456 79934663 23119538   78% /u03
/dev/vg02/u02      104595456 89832217 13840545   87% /u02
/dev/vg01/u01      52297728 32247437 18808615   63% /u01
/dev/vg00/lvol4    2097152  140024 1942056    7% /tmp
/dev/vg00/lvol6    11239424 5844128 5353184   52% /opt
/dev/vg00/lvol5    2097152   18488 2065672    1% /home
/dev/vg00/lvol10    131072    1153  121806    1% /appl
[root@fwa-integ02] [/dev]




The timex command is used to report process and system activity. This command can be used to calculate the time used by a command or set of commands. For example, to 

check user and system time used during the execution of the ll /etc command, use the following command.

timex ll /etc

Display Swap Info :
===================

# swapinfo
             Kb      Kb      Kb   PCT  START/      Kb
TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME
dev     8388608       0 8386560    0%       0       -    1  /dev/vg00/lvol2
dev     41943040       0 41932800    0%       0       -    1  /dev/vg00/lvol9
reserve       - 12152220 -12152220
memory  33523432 5185588 28337844   15%



Command to check MAC Address :
===============================

# lanscan
Hardware Station        Crd Hdw   Net-Interface  NM  MAC       HP-DLPI DLPI
Path     Address        In# State NamePPA        ID  Type      Support Mjr#
0/2/2/0  0x002655F377E4 2   UP    lan2 snap2     1   ETHER     Yes     119
0/1/1/0  0x002655F377FE 0   UP    lan0 snap0     2   ETHER     Yes     119
0/1/1/1  0x002655F377FF 1   UP    lan1 snap1     3   ETHER     Yes     119
0/2/2/1  0x002655F377E5 3   UP    lan3 snap3     4   ETHER     Yes     119

Netstat with In/out packets :
============================

#  netstat -in
Name      Mtu  Network         Address         Ipkts   Ierrs Opkts   Oerrs Coll
lan0      1500 10.0.24.0       10.0.24.19     328560185 0     587394030 0     0
lo0       4136 127.0.0.0       127.0.0.1       2602919 0     2602921 0     0


Hope this article will be helpful for you guys.

Best Regards,
Girish

Rich Dad Poor Dad


Hello Friends,

Now you can download a very good book , RICH Dad and POOR DAD from here

Download Here

Hope it will be helpful .

Best Regards,
Girish

Shell Scripting Tutorial (notes)


Hello Team,

Here I am sharing my ,  simple shell scripts which i have created long back .

Hope this helps you.


Best Regards,
Girish

Load XML in oracle


Hello ,



LOAD XML DATA IN TABLES (ORACLE)
---------------------------------------------------

Links :
-------

http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96620/xdb04cre.htm#1030582

http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96620/xdb04cre.htm

Hope this helps,

Best Regards,
Girish

Certification Survey July 2011


Hello Friends,

Confused with which security certification to go for ? ?  I guess you can refer certification survey from
Infosecleaders.com , I hope this pdf will be helpful for you guys.

Here  -- >  PDF

Seems CISSP is very HOT one , and at TOP of the List!....

Thanks & Regards,
Girish

CD Burner Free tool ( Good one)


Hello Friends,

You can use CDBurnerXP Tool for burning CD's , its cool one

http://cdburnerxp.se/en/home

One of my friend asked me about CD Burning tool , and thought to put it on blog .

Best Regards

Thursday, April 26, 2012

Android Programming


Hello Friends,

Welcome to the new world of Android!!!

This tutorial will show you how to setup android development platform.

What tools we need ?
----------------------------

1) Android SDK , I preferred installer_r18-windows.exe

2) We need Latest JDK Tool , preferred JDK 7u4

3) Eclipse IDE , preferred Eclipse IDE for Java EE Developers ,

4) Requires ADT Plugin for eclipse , ADT PLUGIN 18.0.0


Thats it you need!!!..


Steps
----------

1. Download Android SDK , install it and open SDK Manager
2. It will ask you to install tools , takes some time for Indian Users ;) once
Below are tools you need to install





















3. Once you install all these tools , Install Eclipse
     Indigo

4.  Open Eclipse , Help > Install New Software >
     Click on ADD > Archive > select ADT 18 Plugin
     Which you downloaded.

5. After installation of ADT 18 pugin Eclipse will
    Restart.

6. Go to Windows > Preferences > Select Android
     Browse SDK Location, and it will show you
     Targer name and Platform below.

7. Click Apply > Ok
8. Set up Android Virtual Device , Windows > AVD Manager > New >
9. Provide Name of device , Target > Create AVD

Done!!!!....

Hello World Program :
------------------------

File > New > Project > Android Project , Provide name and package.
once project is created on left pane you can see project files , with main source file under src > packagename > filename.java

You can edit your finename java source and run android programs.

How to run Programs ?
-------------------------

Right click on android project > Run As > Android Application.

It will boot android OS first , will take some time at first sight, and they you can see output of your program!!!


Enjoy Android development!


Best Regards,
Girish...











Friday, March 16, 2012

Storage Box Structure on Paper

Hello ,

This is storage box structure , drawn on paper just for information purpose.

 





Basic structure of storage. Click here to Enlarge

Best Regards,
Girish...

Bitter Gourd Photography

Hello ,

Finally little Bitter Gourds are out in our home , which we planted before few days.
I wish I would have one of the TOP camera's with me . Anyways I am happy with my Olympus. :)




I will post more interesting potographs . Till then enjoy this.
Happy Blogging!!!
Best Regards,
Girish...

My Server World

Hello Friends ,

I really enjoyed SP replacement activity for storege Box ,  although we faced some problems , but overall
it was good experiance for me to learn very basic of storage box





I love to see and work on something like this activity. Always ready for that.

Best Regards,
Girish...

Tuesday, March 13, 2012

Facebook Shutting Down ! Fake News !


Hello Friends,

Facebook Shutting Down ! Fake News !

Since few days, we heard news that Facebook is shutting down on 15th March.
You probably read news from

http://weeklyworldnews.com/headlines/27321/facebook-will-end-on-march-15th/






  • Do you this  weeklyworldnews.com website is Trusted source to publish about Facebook?
  • If Facebook is going to shutdown then why Facebook people didn't mentioned it on their own wesbsite? 
  •  Reasons Given on weeklyworldnews.com :
  • "Facebook has gotten out of control" 
  • "stress of managing this company has ruined my life"
  • "I personally don’t think it’s a big deal "

Looking at above reasons on website don't you think its a Fake ?

Employees : 3000+ (2011)
Revenue :  increase US$ 3.71 billion (2011), up from $1.97b (2010)
Users : 845 million (active December 31, 2011)

  1. Do you think Zuckerberg will sell down all this property and close Facebook? 
  2. what about 3.71 billion $ ? so easily hes gonaa give up?
  3. How about 3000+ employees? they will be removed from Company ?
Don't you think all this is clearly stupidity ? This is called Social Engineering Tricks which makes peoples believe on such fake news, which are spread everywhere.

Benefits for Fake News Spreaders : 
  • You are visiting their website like "weeklyworldnews.com" and they getting money out of  it.
  • These websites are being advertised.
  • Hit counts are increased.

You can refer below trusted links :

 http://articles.timesofindia.indiatimes.com/2011-01-11/internet/28369666_1_facebook-users-facebook-founder-popular-social-networking-site

Conclusion :
Facebook is shutting down is clearly a Fake news. Still you are not believing on it then You are fooled.

Monday, March 12, 2012

Chanakya Niti Best Quotes



Hello Friends, 
Read following quotes ,
You will surely experienced them in your past life.

Quote 1: A man is great by deeds, not by birth.


Quote 2: A person should not be too honest. Just as straight trees are chopped-down first, honest people are taken advantage of first.
Quote 3: In a state where the ruler lives like a common man, the citizens live like kings do. And in the state where the ruler lives like a king, the citizens live like beggars do.

Quote 4: Jealousy is another name for failure.


Quote 5: The world's biggest power is the youth and beauty of a woman.

Quote 6: There is some self-interest behind every friendship. There is no friendship without self-interests. This is a bitter truth.


Quote 7: Once you start working on something, don't be afraid of failure and don't abandon it.

Quote 8: People who work sincerely are the happiest.

Quote 9: Books are as useful to a stupid person as a mirror is useful to a blind person.

Quote 10: Education is the best friend. An educated person is respected everywhere. Education beats the beauty and the youth.

Quote 11: Before you start some work, always ask yourself three questions— Why am I doing it? What the results might be? And Will Ibe successful?


Quote 12: Only when you think deeply and find satisfactory answers to the questions, go ahead.

Quote 13: An egoist can be won over by being respected, a crazy person can be won over by allowing 
him to behave in an insane manner and a wise person can be won over by truth.


Quote 14: As centesimal (hundred) droppings will fill a pot so also are knowledge, virtue and wealth gradually obtained.

Quote 15: A rich man has many friends.


Quote 16: A woman is four times as shy, six times as brave and eight times as lusty as a man.



Quote 17: The four greatest enemies of a man are — the father who has takena loan, the characterless mother, the beautiful but promiscuous wife and the stupid child.

Quote 18: The fragrance of flowers spreads only in the direction of the wind. But the goodness of a person spreads in all directions.


Quote 19: Even if a snake is not poisonous, it should pretend to be venomous.

Quote 20: God is not present in idols. Your feelings are your god. The soul is your temple.

Quote 21: He who befriends a man whose conduct is vicious, whose vision is impure, and who is notoriously crooked, is rapidly ruined.

Quote 22: If you get to learn something even from the worst of creatures, don't hesitate

Quote 23: As soon as the fear approaches near, attack and destroy it.

Quote 24: Avoid him who talks sweetly before you but tries to ruin you behindyour back, for he is like a pitcher of poison with milk on top.


Hope you enjoyed , and learned something from this.
Best Regards,
Girish..

kautilya's arthashastra pdf download ( Chanakya Arthashastra pdf )

Hello Friends,

Those who are interested in Chanakya's thoughts , his Arthashastra , can now get a copy of
Kautilya's Arthashastra in English.

Kautilya's Arthashastra :

Arthashastra deals in detail with the qualities and disciplines required for a Rajarshi – a wise and virtuous king.

Many of his thoughts apply in our real life.

 Kautilya's Arthashastra : Download

In his groundbreaking Arthashastra, Chanakya , Kautilya (c. 350 - 283 BCE) lists seven pillars for an organization.
 "The king, the minister, the country, the fortified city, the treasury, the army and the ally are the constituent elements of the state"

This applies to organizations in which we work today!
You can read this short description about this here


Best Regards,
Girish..

Thursday, March 1, 2012

Set timezone in php ( php wrong time displayed )


Hi,

While working on a Web portal , I came across this simple problem.

I wanted to get current Time , and we use date() function to display this.
But it was showing wrong time , simply because we must set default time zone,  and then we can try to use this date() function.

PHP Code :




//setting up timezone
date_default_timezone_set('Asia/Calcutta');


//use date() to display current time as follow


$curtime = date("H:i:s");


//Now you can use this variable to print true current date


?>


Ex.    12:2:00  


To split above string into we use   $split =  explode(":",$curtime)
$split  is now array containing values:

split[0] = 12
split[1] = 2
split[2] = 00




Best Regards,
Girish

Wednesday, February 22, 2012

WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!


Hello ,

Very simple yet common error we get while doing ssh to remote machine :

Reason :
  • Every SSH server uses a random key to identify itself
  • When ssh installed then new key is generated .
  • In this case host key is changed which result in client not able to connect with server , and this message is shown on client side.


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the DSA host key has just been changed.
The fingerprint for the DSA key sent by the remote host is
cc:35:09:ab:86:4b:72:f0:cc:4b:92:92:77:8e:7e:b2.
Please contact your system administrator.
Add correct host key in /home/username/.ssh/known_hosts to get rid of this message.
Offending key in /home/username/.ssh/known_hosts:7
DSA host key for 'servername' has changed and you have requested strict checking.
Host key verification failed.

How to get rid of this ?
  1.  Easiest way is to delete known_hosts file , with " rm ~/.ssh/known_hosts  " So next time when you connect same server it will create this file again and ask you  (Not Recommended)
  2. Preferred way is to use command " ssh-keygen -R server_host_name " , "-R" removes all keys belonging to server_host_name from know_hosts file ( ~/.ssh/known_hosts). (Recommended)
  3. Or you can manually delete keys from ~/.ssh/known_hosts by deleting 7th line in our example.

Best Regards,
Girish...

Tuesday, February 21, 2012

Blog I Follow


Hello Friends,

Here I will publish cool blogs which I came across.


Will go on adding more in this post!


Best Regards,
Girish



PHP TCP/IP Socket Error Codes


Hello Friends,

php TCP/IP socket error codes:

Make error.php with following code :

for($n=0;$n<125;$n++) {
    $msg = socket_strerror($n)."\n";
    echo $n,' = ',$msg;
}
?>



Socket Error Codes with meaning :


0 = Success
1 = Operation not permitted
2 = No such file or directory
3 = No such process
4 = Interrupted system call
5 = Input/output error
6 = No such device or address
7 = Argument list too long
8 = Exec format error
9 = Bad file descriptor
10 = No child processes
11 = Resource temporarily unavailable
12 = Cannot allocate memory
13 = Permission denied
14 = Bad address
15 = Block device required
16 = Device or resource busy
17 = File exists
18 = Invalid cross-device link
19 = No such device
20 = Not a directory
21 = Is a directory
22 = Invalid argument
23 = Too many open files in system
24 = Too many open files
25 = Inappropriate ioctl for device
26 = Text file busy
27 = File too large
28 = No space left on device
29 = Illegal seek
30 = Read-only file system
31 = Too many links
32 = Broken pipe
33 = Numerical argument out of domain
34 = Numerical result out of range
35 = Resource deadlock avoided
36 = File name too long
37 = No locks available
38 = Function not implemented
39 = Directory not empty
40 = Too many levels of symbolic links
41 = Unknown error 41
42 = No message of desired type
43 = Identifier removed
44 = Channel number out of range
45 = Level 2 not synchronized
46 = Level 3 halted
47 = Level 3 reset
48 = Link number out of range
49 = Protocol driver not attached
50 = No CSI structure available
51 = Level 2 halted
52 = Invalid exchange
53 = Invalid request descriptor
54 = Exchange full
55 = No anode
56 = Invalid request code
57 = Invalid slot
58 = Unknown error 58
59 = Bad font file format
60 = Device not a stream
61 = No data available
62 = Timer expired
63 = Out of streams resources
64 = Machine is not on the network
65 = Package not installed
66 = Object is remote
67 = Link has been severed
68 = Advertise error
69 = Srmount error
70 = Communication error on send
71 = Protocol error
72 = Multihop attempted
73 = RFS specific error
74 = Bad message
75 = Value too large for defined data type
76 = Name not unique on network
77 = File descriptor in bad state
78 = Remote address changed
79 = Can not access a needed shared library
80 = Accessing a corrupted shared library
81 = .lib section in a.out corrupted
82 = Attempting to link in too many shared libraries
83 = Cannot exec a shared library directly
84 = Invalid or incomplete multibyte or wide character
85 = Interrupted system call should be restarted
86 = Streams pipe error
87 = Too many users
88 = Socket operation on non-socket
89 = Destination address required
90 = Message too long
91 = Protocol wrong type for socket
92 = Protocol not available
93 = Protocol not supported
94 = Socket type not supported
95 = Operation not supported
96 = Protocol family not supported
97 = Address family not supported by protocol
98 = Address already in use
99 = Cannot assign requested address
100 = Network is down
101 = Network is unreachable
102 = Network dropped connection on reset
103 = Software caused connection abort
104 = Connection reset by peer
105 = No buffer space available
106 = Transport endpoint is already connected
107 = Transport endpoint is not connected
108 = Cannot send after transport endpoint shutdown
109 = Too many references: cannot splice
110 = Connection timed out
111 = Connection refused
112 = Host is down
113 = No route to host
114 = Operation already in progress
115 = Operation now in progress
116 = Stale NFS file handle
117 = Structure needs cleaning
118 = Not a XENIX named type file
119 = No XENIX semaphores available
120 = Is a named type file
121 = Remote I/O error
122 = Disk quota exceeded
123 = No medium found
124 = Wrong medium type
125 = Operation canceled
126 = Required key not available
127 = Key has expired
128 = Key has been revoked
129 = Key was rejected by service
130 = Owner died
131 = State not recoverable
132 = Unknown error 132



Error codes are from 0-131

I like to thanx Reverse Hack  for valuable suggestion on this post.
Thank you once again for bringing this to my attention. 

Best Regards,
Girish


Monday, February 20, 2012

How to mount an USB Pen Drive


Hello,

Those who are new to linux , may need to know procedure to mount it .
Check it out below :

1) Attach your USB pendrive to Linux computer.

   
2)  #dmesg

    ( Check the last lines. It will show the device name used by pendrive for example

    /dev/sda1 or /dev/sdb1 )

3) #mkdir /pendrive

    #mount /dev/sdb1 /pendrive
 
Your pendrive should be mounted!.
 
Best Regards,
Girish

Mind Reading Tricks (Mind Reading Game)


Hello Friends ,

I would recommand you to play this simple mind game!!!

How's that ? ?  Enjoye ? ? Shocked ? ? Lets discuss the logic behind this ? ?  We can discuss by commenting on this post...
Best Regards,
Girish

Sunday, February 19, 2012

8 Tips to Focus Your Mind

Hello ,

Found one good article to stop our monkey mind thinking.
Sometime need to get rid of stress , and need to focus on one thing.
 
http://www.care2.com/greenliving/8-tips-to-focus-your-mind-how-to.html
 
Hope this will be helpful.
 
Best Regards,
Girish

Saturday, February 18, 2012

Ubuntu Single User Mode without root password for maintenance


Hello Friends,

I came across problem , while resetting ubuntu password , Generally when we reset password for RHEL 5 OS , we enter into single user mode through grub by editing Kernel line with Single or 1  , and simply you will boot into single user mode.

But with Ubuntu it was a kinda different.


1.Reboot your machine; press 'Esc' to get to the GRUB menu; select your image; press 'e' to edit; select the Kernel line.

2.Press 'e' to edit the kernel line. Edit the line to get rid of quiet and splash; change 'ro' to 'rw'; and add 'init=/bin/bash'. The line should look something like this:

kernel /vmlinuz-2.6.15-27-386 root=/dev/mapper/Ubuntu-root rw init=/bin/bash3.Press 'enter' then 'b' to boot with these new settings.

Then you can fire up passwd command to reset root password.

Reffered from : http://www.noah.org/wiki/Single_User_Mode

It Works!

Best Regards,
Girish

Samsung Duos GT C-3222 Secrete code


Hello Friends,

You can play around with *#52828378#  code , I have tested it on my duos , and working fine with me.
I wanted to install java application on my duos , for that you need to get in :
OTA test basic >> set Maximum JAR size (kb)" between 500 to  650 , and you will be able to install small java applications on your duos , upto 650 to 700 Kb

Best Regards,
Girish...

Friday, February 17, 2012

Now we can have chat !

Hello Readers,

I have included simple chat plugin , so that we can have chat on technical topics.
We can share our views and get to know each other.

Thank & Regards,
Girish

Monday, February 13, 2012

Most Famous logos and its meaning

Hi Friends ,

This is  a simple but very good link to know famous Logo's and meanings associated with it.

Click here 

Best Regards,
Girish



Wednesday, February 1, 2012

Mysql installation on MAC OS X version 10.6.8


Hi,
Untar mysql in /usr/local/mysql  --> tar -zxvf filename .
As per instructions from INSTALL_BINARY (mysql) , we need to add groups , users , set permissions.

Once done , go to :

1. /usr/local/musql/bin
2. execute ./mysqladmin -u root -p Newpassword (Change root password for MySql)
3. ./mysql -u root -p
4. Enter new set password.

Once connected, you can list databases using

mysql> show databases;
mysql> use databasename;
mysql> show tables;
mysql> create table customer (custid INT , name TEXT);
mysql> insert into customer values(12,'Girish');

Database name --> test
Table name --> customer

While trying to connect using PHP we got following error :
------------------------------------------------------------
warning mysql_connect() function.mysql-connect 2002 no such file or directory (trying to connect via unix:///

Refer Link:
http://stackoverflow.com/questions/3968013/cakephp-no-such-file-or-directory-trying-to-connect-via-unix-var-mysql-mysq

Code :
--------


$con = mysql_connect("localhost","peter","abc123");
...
Error was with above line.

Solution :
----------
mysql defaults to use local unix domain sockets if you use localhost. Switching to the IP forces it to use TCP sockets instead

In above code insted of localhost we user 127.0.0.1 ip , and it worked Fine!!!!


Regards,
Girish