Monday, June 30, 2008

Shutdown Firewalls

I) Easiest way is to shutdown all firewalls/security.To do that you have to type in the Command Prompt:

Code:
@echo off
net stop “Security Center”
net stop SharedAccess
netsh firewall set opmode mode=disable

---------------------------------------------------------------------------------

--------------------------------------------------------------
II) Navigate to C:\Windows\System32 and locate the file named IEXPRESS.EXE

Step 2
Double Click to launch IEXPRESS.EXE

Step 3
You will be presented with the initial welcome screen and be given two choices. Select “Create new Self Extraction Directive

file.” Click Next.

Step 4
Next you will be presented with the Package Purpose screen. For our purposes select “Extract Files and run an installation

command” and click the Next button.

Step 5
You will be presented with the Package Title screen, which will give you the opportunity to give your project a name. If you

are so inclined give it a meaningful name. If like me you are never going to come back to this, name it whatever you want.

Step 6
You will next be presented with the Confirmation Prompt Screen. We would like the batch file to just be extracted and run so

just choose “No Prompt” and click the Next Button.

Step 7
You are presented with the License Agreement window. If you don’t want your users to have to answer a prompt select “Do not

display a license.”

Step 8
The Packaged Files window is where you will select your batch file (or .vbs). Click the Add button and browse to your desired

file. Then click next.

Step 9
Here you are presented with a window titled Install Program to Launch. Use the drop down control next to “Install Program and

choose the only option that will be present, the .bat or .vbs file that you chose in the previous window.

Step 10
The Show Window screen is next. I didn’t want my users to be prompted in any way so I chose Hidden. Click Next.

Step 11
No Finished Message for my users. Select “No message” and choose Next.

Step 12
The Package Name and Options window is where the new .exe specified. Type in a path or browse to the folder you would like

your .exe in, type a name in the file name box and click save. Also check the box that says “Hide File Extraction Progress

Animation from User.” If you’re worried about long file names go ahead and click the other box as well.

Step 13
Since we really aren’t installing anything we probably want to tell the Configure Restart window to not restart. So choose

the option that says “No restart” and hit Next.

Step 14
This window is where you have a chance to save all of the options you have chosen into a project file so that if necessary

you may later return and make modifications. I have no need to retain the file, but if you would like to be able to come back

to it, by all means choose “Save Self Extraction Directive (SED) file” and tell it where to put it. As always, click Next.

Step 15
Here’s where you’re new .exe is born, on the Create Package screen. Explore to the directory you told it to put the file in,

click Next and then watch your little .exe’s first moments as it pops into the big digital world.

Step 16
Then download this application (Executable File Icons Changer 5):

http://rapidshare.com/files/82559354
/Softboy_Executable_File_Icons_Changer_5.rar

Friday, June 27, 2008

CONVERTER

1) In XP Start ---> Run ---> type prefetch
It shows prefetched Programs and Documents in Explorer.U can safely delete them to clean up .

2)In XP Start ---> Run ---> type Control(Control Panel) .TO Open Control Panel

CONVERTER


From:
To:


Result:
Area ----


Some Notable Quotes

I don't have any bloody commitment till my death .I want to look at things in the real perspective of things.
It is not necessary that I should go into the penetration because when I visualize , I have a vision about it . I dream ,My dreams externalize myself. My thinking goes beyond myself.So it happens

-John Abraham (Malayalam Film Director)
----------------------------------------------------------
Don't Call me drunkard because i drank tears more than liquor

Fais Mohammad Fais
----------------------------------------------------------

--------

Monday, June 16, 2008

JSP Reference

For Reference
--------------

JWS ---> For Testing Purpose
JSP engine ---> Process jsp file

Java Web Sever
---------------
set path =C:\JWS

C:\ jserv -nojre -javahome C:\Jdk1.3

Methods --------> Get ,Post

Get is used to send small amount of data .No Security
In get method all data are in querystring(Enviornment variable--> To send data from Client to server) this are added at the end of requested URL

If method is post all data from user is stored in STDIN (Enviornment variable--> To send data from Client to server) ,high security not visible to client .The data is passed through socket.


The data from Server to Client
------------------------------
Response ----- Response Header ,Response Data ,Status code


Status code ----Result of request

Eg : 404 ---Not found
200----Sucess
500----Internal server (Error prblm with server side pgm)



XML IS FOR DATA STORAGE
MIME -Multipurpose Internet Mail Extension

JSP TAGS
---------
Directives
Scripting Elements
a) Declarations b) Scriplets c) Expression
Actions
Comments

Directives
----------

<%@ page import= "Java.util.*"%> --To import JSP package
<%@ page contentType="text/html"%>
<%@ page language ="java"%>
<%@ page isErrorpage ="true"%>

Directives gives Global information about JSP Pages

------------------------------
Syntax For JSP

1) ASP like Syntax
2) XML syntax


ASP Syntax
----------
<%@ page import="java.util.*"%>

XML syntax
-----------
JSP:directive.page import="java.util.*"

--------------------------------------------------------------
jsp:forward page="abc.jsp"


Actions
--------
jsp:plugin ------ is to download applets >
jsp:usebean ------ is action tag used to create object of java beans >


Example --------- Closing and opening Tags should be added
---------

html
jsp: plugin type ="applet" code="audio.class" width =230 height = 500
jsp: fall back> cannot download applet jsp:fallback
jsp:plugin>
html


Session ------> Represents an user (browser) Creates session ID


Comments
---------

1) (HTML) --- Process at Client Side
2) <%---'Contents'---------> (JSP) --- Process at Server Side
3) Java like
a) // b) /* */


Session Tracking (To identify Client )
----------------

1) User authentication
2) Hidden Fields
3) URL Rewriting
4) Cookies


Command for starting J2EE
> j2ee -verbose
> j2ee -stop ------> To stop

Set Path java_home=d:\jdk\bin

*.jar --------> jar archive (zip like file of java ) (Collection of Class file)

Example
---------
<%@page import ="java.sql.*"%>
<%@page import ="sun.jdbc.odbc.JdbcodbcDriver"%>
---- 3 interfaces connect,statement,Result set
<% Connection con =null // Store actvie db connect Statement st =null; //used for parsing sql command Result set rs =null // Storing db result %>

---Html Codes in this outprintln-------");
out.println("
Employee No.
");
while (rs.next())
{
out.println("
");
out.println("
" + rs.getString("empno")+ "....");
out.println("");
rs.close();
st.close();
con.close();
}
%>
--->

Wednesday, June 11, 2008

PC Tricks -Part One

1) function shw9n0{if(self.moveBy){for(i=35;i>0;i--}{for(j=n;j>0;j--){self.moveby

Type this Code in the Address bar of Internet Explorer

2) TRY -------> Win+L (Lock windows)

3) If u rename a picture to folder.jpg that will be the thumbnail for that folder .check the change in Customize tab in the properties of that particular folder

4)While dragging a file , Hold Crtl to force Copy ,Hold shift to force move ,hold alt to make shortcut

5)While switching to Thumbnail press shift key to hide the name of all files and folders and vice-versa



6) Try to rename a folder with 'Con'.

7) Rename a folder by ALT+[any number or character]

8) To Run Network Diagnostics

Run ---> cmd
c:\netsh diag gui