Monday, July 14, 2014

Rotating button link

button.html




ACOE (UD)- Anna University, Chennai-25





           

Staff Registration
Registration Form for Staff


J
    Exam Results       
View the status          



I
    Student Section  
Student Page


X
      Downloads         
Download Circulars



w
    Registration         
Student Registration



http://acoe.annauniv.edu/index.php



















rotating_button.css


@font-face{
    font-family: 'WebSymbolsRegular';
    src: url('websymbols/websymbols-regular-webfont.eot');
    src: url('websymbols/websymbols-regular-webfont.eot?#iefix') format('embedded-opentype'),
        url('websymbols/websymbols-regular-webfont.woff') format('woff'),
        url('websymbols/websymbols-regular-webfont.ttf') format('truetype'),
        url('websymbols/websymbols-regular-webfont.svg#WebSymbolsRegular') format('svg');
    font-weight: normal;
    font-style: normal;
}

.a-btn{
    -webkit-border-radius:10px;
    -moz-border-radius:10px;
    border-radius:10px;
    padding:10px 30px 10px 70px;
    position:relative;
    float:left;
    display:block;
    overflow:hidden;
    margin:10px;
    background:#9cedef;
    background:-webkit-gradient(linear,left top,left bottom,color-stop(#b7f2f4,0),color-stop(#7ce7ea,1));
    background:-webkit-linear-gradient(top, #b7f2f4 0%, #7ce7ea 100%);
    background:-moz-linear-gradient(top, #b7f2f4 0%, #7ce7ea 100%);
    background:-o-linear-gradient(top, #b7f2f4 0%, #7ce7ea 100%);
    background:linear-gradient(top, #b7f2f4 0%, #7ce7ea 100%);
    filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='#b7f2f4', endColorstr='#7ce7ea',GradientType=0 );
    border:1px solid #90c6c8;
    border-color:#90c6c8 #78bdc0 #65b6ba;
    -webkit-box-shadow:0px -5px 0px 0px #458a8c, 0 1px 1px #d5d5d5, inset 0 1px 0 rgba(255,255,255,0.8);
    -moz-box-shadow:0px -5px 0px 0px #458a8c, 0 1px 1px #d5d5d5, inset 0 1px 0 rgba(255,255,255,0.8);
    box-shadow:0px -5px 0px 0px #458a8c, 0 1px 1px #d5d5d5, inset 0 1px 0 rgba(255,255,255,0.8);
    -webkit-transition:all 0.2s linear;
    -moz-transition:all 0.2s linear;
    -o-transition:all 0.2s linear;
    transition:all 0.2s linear;
}
.a-btn-symbol{
    font-family:'WebSymbolsRegular', cursive;
    color:#437b7d;
    text-shadow:0 1px 0 #bef3f5;
    font-size:20px;
    position:absolute;
    left:20px;
    width:20px;
    text-align:center;
    line-height:32px;
    -webkit-transition:all 0.3s ease-in-out;
    -moz-transition:all 0.3s ease-in-out;
    -o-transition:all 0.3s ease-in-out;
    transition:all 0.3s ease-in-out;
}
.a-btn-text{
    font-size:20px;
    color:#437b7d;
    text-shadow:0 1px 0 #bef3f5;
    line-height:16px;
    font-weight:bold;
    font-family:"Myriad Pro", "Trebuchet MS", sans-serif;
    display:block;
}
.a-btn-slide-text{
    font-family:Arial, sans-serif;
    font-size:10px;
    letter-spacing:1px;
    text-transform:uppercase;
    color:#555;
    text-shadow:0px 1px 1px rgba(255,255,255,0.9);
}
.a-btn:hover{
    -webkit-transform:scale(1.05);
    -moz-transform:scale(1.05);
    -ms-transform:scale(1.05);
    -o-transform:scale(1.05);
    transform:scale(1.05);
}
.a-btn:hover .a-btn-symbol{
    opacity:0.5;
    -webkit-transform:rotate(360deg);
    -moz-transform:rotate(360deg);
    -ms-transform:rotate(360deg);
    -o-transform:rotate(360deg);
    transform:rotate(360deg);
}
.a-btn:active{
    -webkit-transform:scale(0.95);
    -moz-transform:scale(0.95);
    -ms-transform:scale(0.95);
    -o-transform:scale(0.95);
    transform:scale(0.95);
    -webkit-box-shadow:0px 0px 0px 1px #458a8c, 0 1px 1px #d5d5d5, inset 0 1px 0 rgba(255,255,255,0.8), 0px 1px 1px 2px #fff;
    -moz-box-shadow:0px 0px 0px 1px #458a8c, 0 1px 1px #d5d5d5, inset 0 1px 0 rgba(255,255,255,0.8), 0px 1px 1px 2px #fff;
    box-shadow:0px 0px 0px 1px #458a8c, 0 1px 1px #d5d5d5, inset 0 1px 0 rgba(255,255,255,0.8), 0px 1px 1px 2px #fff;
}







Saturday, May 17, 2014

replace-regular expression-vulnerability


REPLACE COMMAND
REGULAR EXPRESSION
REGEX
for insertion of a function in a existing request input, to avoid  sqlinjection vulnerabilities.


2. <%=Request(.[a-z0-9_"()]+)%> <%=rem_culp_char\((Request\1)\)%>
2. =trim\(Request(.[a-z0-9_"()]+)\) =trim\(rem_culp_char\((Request\1)\)\)
3. =Request(.[a-z0-9_"()]+) =rem_culp_char\((Request\1)\)
4. SINGLE SPACE Request.form(.[a-z0-9_"()]+) SINGLE SPACE  rem_culp_char\((Request.form\1)\)
5.   SINGLE SPACE Request(.[a-z0-9_"()]+) SINGLE SPACE  rem_culp_char\((Request\1)\)

inital space at item 4 & 5 in both search replace



function rem_culp_char(strWords)
dim newChars, i
newChars = strWords

If len(newChars) > 0 Then

newChars= replace(newChars, "select", "s-e-l-e-c-t",1,-1,1)
newChars= replace(newChars, "script", "s-c-r-i-p-t",1,-1,1)
newChars= replace(newChars, "insert", "i-n-s-e-r-t",1,-1,1)
newChars= replace(newChars, "drop", "d-r-o-p",1,-1,1)
newChars= replace(newChars, "delete", "d-e-l-e-t-e",1,-1,1)
newChars= replace(newChars, "xp_", "x-p_",1,-1,1)
newChars= replace(newChars, "<", " [Less than] ")
newChars= replace(newChars, ">", " [Greater than] ")
newChars= replace(newChars, "'", " [Single Quote] ")
newChars= replace(newChars, "(", "[")
newChars= replace(newChars, ")", "]")
newChars= replace(newChars, ";", ",")
newChars= replace(newChars, "=", " Equal To ")
newChars= replace(newChars, "--", "...")
newChars= replace(newChars, "|", " [PipeChar] ")
newChars= replace(newChars, "\", " [backslash] ")
rem_culp_char=newChars
End If
end function

Get Create table structure in Oracle

select dbms_metadata.get_ddl('TABLE','YOUR TABLE NAME','YOUR USER NAME') from dual

e.g.
select dbms_metadata.get_ddl ('TABLE','STAFF','SCOTT') from dual


output:
CREATE TABLE "SCOTT"."MASTER_STUDENT" ( "CO_SCH_ID" VARCHAR2(20), "OBJECTIVE" VARCHAR2(50), "CONTENT_COMMENTS" VARCHAR2(50), "MAT_COMMENTS" VARCHAR2(50), "PRESENTATIONS" VARCHAR2(50), "ARRANGEMENTS" VARCHAR2(50), "PHYSICAL" VARCHAR2(50), "RATING" FLOAT(126), "DELIVERY_COURSE" VARCHAR2(1000), "INFRASTRUCTURE" VARCHAR2(1000), "IDEA" VARCHAR2(1000), "TRAINEE_ID" VARCHAR2(35) NOT NULL ENABLE, "IOBJ" NUMBER(2,0) DEFAULT 0, "ICONTENT" NUMBER(2,0) DEFAULT 0, "IMATERIAL" NUMBER(2,0) DEFAULT 0, "IPRESENTATION" NUMBER(2,0) DEFAULT 0, "IARRANGEMENT" NUMBER(2,0) DEFAULT 0, "NEWTOPICSUGGEST" VARCHAR2(1000), "TEMPLATEID" NUMBER(1,0) DEFAULT 1, CONSTRAINT "CHECK_RATING" CHECK (rating between 0 and 10) ENABLE ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE(INITIAL 53477376 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "MYTBLSPACE"

Followers